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 For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2607.23512")

Code

Syntology Ran 10 of 14 code samples harvested from 1 repository linked to this paper; 4 have no recorded run. Of those that ran: 10 ran with no contract checked.

By repository: found in paper text by Syntology: 14 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

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; 0 honoured the contract we drafted; 4 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10ran
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. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (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 from a repository marked official are listed first. 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 four 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; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). 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.

cap renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/train_multilingual.py found in paper text by Syntology ran no licence file found · pointer only · 94abb6fd5dfdbbf3 · report
clean_text renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/prepare_dataset.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 2b3dcbbecbaa9c5b · report
collect_main_results_table renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/generate_figures.py found in paper text by Syntology ran no licence file found · pointer only · 5bc2cc4f4f6ba97c · report
compute_metrics_dict renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/adaptation_experiment.py found in paper text by Syntology ran fingerprinted no licence file found · pointer only · 4a20930a885c3d97 · report
compute_temperature_sample_weights renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/cascade_utils.py found in paper text by Syntology ran no licence file found · pointer only · eb51f06a41f49ca0 · report
drop_bad_rows renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/prepare_dataset.py found in paper text by Syntology ran no licence file found · pointer only · a64ddf9835e25b5f · report
find_dir renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/prepare_dataset.py found in paper text by Syntology ran no licence file found · pointer only · d86e62a2a84077f5 · report
predict_batch renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/adaptation_experiment.py found in paper text by Syntology ran no licence file found · pointer only · d80902947f4179cc · report
sample_adapt_set renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/adaptation_experiment.py found in paper text by Syntology ran no licence file found · pointer only · 10f7b6ac0aa098f5 · report
split_mlma_holdout renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/cascade_utils.py found in paper text by Syntology ran no licence file found · pointer only · 18dd01c59df16c28 · report
fig_framework renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/generate_figures.py found in paper text by Syntology unverified no licence file found · pointer only · 2b36d39c30ada086 · report
fig_main_results renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/generate_figures.py found in paper text by Syntology unverified no licence file found · pointer only · 9825826a3f9c932d · report
filter_task_data renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/cascade_utils.py found in paper text by Syntology unverified no licence file found · pointer only · f7c87466dfa05694 · report
load_split renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/train_cascade.py found in paper text by Syntology 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.

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