Papers › The Cross-Domain Generalization Cost of Offensive Language Detection

The Cross-Domain Generalization Cost of Offensive Language Detection

26 Jul 2026arXiv:2607.23512added by Syntology

Ruixing Ren, Junhui Zhao, Xiaoke Sun, Qiuping Li

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

Offensive language detection models generally suffer performance degradation when deployed across datasets and across languages, yet most existing studies stop at reporting this phenomenon and lack a systematic methodology for decomposing the causes of degradation into attributable components and quantifying the cost of remediation. This paper proposes a diagnosis and optimization framework composed of three coordinated technical components. First, a zero-shot transfer loss decomposition that separates the performance degradation from OLID to MLMA into two independently measurable components, namely dataset effect and language effect. Second, a controlled fine-tuning protocol that quantifies both adaptation efficiency and the hidden damage inflicted on the source task by comparing few shot learning curves under continued fine-tuning and cold-start starting points. Third, three joint training strategies incorpo rating temperature sampling and experience replay, which offer a controllable Pareto trade-off between improving multilingual capability and preserving source-task performance. Experiments built on this framework show that the dataset effect dominates the zero-shot transfer loss and substantially outweighs the language effect. Few-shot adaptation without a replay mechanism, though data-efficient, inflicts source task damage 4 to 9 times greater than that of the joint training strategies, and its damage magnitude is highly unstable. The three joint training strategies trade 3.2 to 4.1 percentage points of source-task performance for 8.1 to 42.6 percentage points of multilingual capability gain, forming a clear and controllable Pareto trade-off.

PaperPDFCode Syntology ran

In Syntology View this paper on Syntology, its page in Syntology's graph. That page adds which of its functions are also present in other papers' code Syntology holds, with dates, and its dated run record as JSON and a README badge. It also lists the repositories linked to the paper, the abstract and the calls for agents.

For agents, on Syntology's MCP service (how to connect):

Code

Syntology 14 code samples harvested from 1 repository linked to this paper: 10 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 0 violated, 3 with no contract checked; 6 where Syntology's instrument failed) · 4 unverified. Where Syntology's instrument failed: 5 where our contract draft was wrong; 1 where the contract check could not run; failures of Syntology's instrument, not of the code.

By repository: found in paper text by Syntology: 14 samples from 1 repository, 10 ran (4 with no instrument failure; 6 where Syntology's instrument failed). The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Levels written on 2026-09-24 (UTC): the dates Syntology's graph wrote each sample's verification level, not when the code executed.

renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection found in paper text by SyntologySyntology: 14 samples, 10 ran (6 instrument-failed) · 4 unverified report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested: 10 ran (of which 0 constructed an object rather than computing a result; 4 with no instrument failure: 1 honoured, 0 violated, 3 with no contract checked; 6 where Syntology's instrument failed) · 4 unverified. “Where Syntology's instrument failed” counts failures of Syntology's instrument, not of the code. Syntology's record for this page last changed ; when this build read Syntology's graph is in the build record. That date is not when the samples ran.

1ran · honoured contract
5ran · our draft was wrong
1ran; the contract check could not run
3ran
4unverified

Licence: 14 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. A line beginning “fixture:” under a sample that ran gives the arguments Syntology's fixture called the sample with, each as name:type/rank/element kind (? where none was recorded), and the type of what the fixture's run returned, exactly as the harness recorded them; the arguments and the returned type were recorded by two separate runs of the same fixture. No output value is shown, and a returned type says nothing about whether the output was right. “Level recorded” gives the UTC date when Syntology's graph wrote the sample's verification level, not when the code executed; where the level was written before Syntology's graph kept that date, the row says “level recorded, date not recorded”. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself. “Our draft was wrong” and “the contract check could not run” are failures of Syntology's instrument, not of the code: the sample ran on Syntology's synthesized input, and then the drafted contract did not describe it, or the check itself raised an error (RAISES), lacked a dependency (DEP_MISSING) or ran out of time (TIMEOUT); hover the label for which. A metamorphic tier, where shown, is evidence of the output's shape, not that the sample implements the method.

Each sample ends with its code_sha256. A sample's code_sha256 is Syntology's identity for that exact code. It is printed in full (16 hexadecimal characters for every sample in this build), and get_code(code_sha256="…") takes it exactly as printed. An agent calls it on Syntology's MCP service (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples are grouped by repository: a repository marked official first, then by how directly the repository is tied to the paper, then in the archive's order; never by how many ran. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of six reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar); this paper's copy was not located, so its licence is not recorded; or this paper's copy is cleared, but the stored copy of the same code that Syntology serves is not. Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

A function or class name links to its page when the name occurs in the harvested code of at least 5 papers; the name is a string, not an identity.

renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection found in paper text by Syntology 14 samples, 10 ran (6 instrument-failed) · 4 unverified
cap train_multilingual.py ran · our draft was wrong no licence file found · pointer only · 94abb6fd5dfdbbf3 · report fixture: signature df:DataFrame/0/?, n:int/0/int · returned DataFrame · level recorded 2026-09-24
clean_text in 84 papers prepare_dataset.py ran · our draft was wrong fingerprinted no licence file found · pointer only · 2b3dcbbecbaa9c5b · report fixture: signature text:str/0/str · returned str · level recorded 2026-09-24
collect_main_results_table generate_figures.py ran · our draft was wrong no licence file found · pointer only · 5bc2cc4f4f6ba97c · report fixture: signature args:Args/0/? · returned dict · level recorded 2026-09-24
compute_metrics_dict adaptation_experiment.py ran; the contract check could not run (RAISES) fingerprinted no licence file found · pointer only · 4a20930a885c3d97 · report fixture: signature y_true:ndarray/1/int, y_pred:ndarray/1/int · returned dict · level recorded 2026-09-24
compute_temperature_sample_weights cascade_utils.py ran · honoured contract no licence file found · pointer only · eb51f06a41f49ca0 · report fixture: signature languages:list/1/str, temperature:float/0/float · returned ndarray · level recorded 2026-09-24
drop_bad_rows prepare_dataset.py ran · our draft was wrong no licence file found · pointer only · a64ddf9835e25b5f · report fixture: signature df:DataFrame/0/?, text_col:str/0/str, min_chars:int/0/int · returned DataFrame · level recorded 2026-09-24
find_dir prepare_dataset.py ran · our draft was wrong no licence file found · pointer only · d86e62a2a84077f5 · report fixture: signature root:str/0/str, keyword:str/0/str · returned str · level recorded 2026-09-24
predict_batch adaptation_experiment.py ran no licence file found · pointer only · d80902947f4179cc · report fixture: signature model:callable/0/?, tokenizer:callable/0/?, texts:list/1/str, max_length:int/0/int, batch_size:int/0/int, device:device/0/? · returned ndarray · level recorded 2026-09-24
sample_adapt_set adaptation_experiment.py ran no licence file found · pointer only · 10f7b6ac0aa098f5 · report fixture: signature pool_df:DataFrame/0/?, n:int/0/int, label_col:str/0/str, seed:int/0/int · returned DataFrame · level recorded 2026-09-24
split_mlma_holdout cascade_utils.py ran no licence file found · pointer only · 18dd01c59df16c28 · report fixture: signature lang_df:DataFrame/0/?, label_col:str/0/str, held_out_fraction:float/0/float, master_seed:int/0/int · returned tuple · level recorded 2026-09-24
fig_framework generate_figures.py unverified no licence file found · pointer only · 2b36d39c30ada086 · report
fig_main_results generate_figures.py unverified no licence file found · pointer only · 9825826a3f9c932d · report
filter_task_data cascade_utils.py unverified no licence file found · pointer only · f7c87466dfa05694 · report
load_split in 8 papers train_cascade.py unverified no licence file found · pointer only · dc67c760c61c18f2 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2607.23512, was issued in July 2026, after that date, so the archive has no leaderboard rows for it.

Placed on leaderboards by Syntology Syntology

Syntology's extractor, the model Claude Sonnet 4.5, judged this paper's tables to report on 1 leaderboard (a model's judgement, not a result) and has not placed the paper on it: Hate Speech Detection · OLID (refused by a rule: the value is not on the scale of the leaderboard column's archive values). What is not shown.

Syntology has checked 8,886 of the 18,637 papers on this site that are newer than the archive (for 3,717 of them no archive leaderboard matched the paper's tables, so there was nothing further to check); 733 were read and have nothing to place (arXiv has no HTML version of the paper, or that version has no tables), 41 could not be read (the extractor's reply could not be parsed), and results from the other 8,977 appear after they are checked.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections