SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2607.23512 · 2026

The Cross-Domain Generalization Cost of Offensive Language Detection

Ruixing Ren, Junhui Zhao, Xiaoke Sun, Qiuping Li

arXiv · PDF

Code that ran

10 of 14 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 8 failures of our instrument; 4 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2607.23512.json · badge: /api/ran/2607.23512.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection canonical (classifier label)
classifier basis: census
10 ran · 4 no recorded run
FunctionStatusWhere it lives
cap Ran
ran; our contract draft was wrong, not the code
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/train_multilingual.py
pointer only (licence: NONE) · get_code("94abb6fd5dfdbbf3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

clean_text Ran
ran; our contract draft was wrong, not the code
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/prepare_dataset.py
pointer only (licence: NONE) · get_code("2b3dcbbecbaa9c5b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

collect_main_results_table Ran
ran; our contract draft was wrong, not the code
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/generate_figures.py
pointer only (licence: NONE) · get_code("5bc2cc4f4f6ba97c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_metrics_dict Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/adaptation_experiment.py
pointer only (licence: NONE) · get_code("4a20930a885c3d97")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

compute_temperature_sample_weights Ran
ran, honoured the contract we drafted
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/cascade_utils.py
pointer only (licence: NONE) · get_code("eb51f06a41f49ca0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

drop_bad_rows Ran
ran; our contract draft was wrong, not the code
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/prepare_dataset.py
pointer only (licence: NONE) · get_code("a64ddf9835e25b5f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

find_dir Ran
ran; our contract draft was wrong, not the code
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/prepare_dataset.py
pointer only (licence: NONE) · get_code("d86e62a2a84077f5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

predict_batch Ran
ran, honoured the contract we drafted
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/adaptation_experiment.py
pointer only (licence: NONE) · get_code("d80902947f4179cc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

sample_adapt_set Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/adaptation_experiment.py
pointer only (licence: NONE) · get_code("10f7b6ac0aa098f5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

split_mlma_holdout Ran
ran; our contract draft was wrong, not the code
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/cascade_utils.py
pointer only (licence: NONE) · get_code("18dd01c59df16c28")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

fig_framework Not yet run
unverified (harvested, no recorded run)
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/generate_figures.py
pointer only (licence: NONE) · get_code("2b36d39c30ada086")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

fig_main_results Not yet run
unverified (harvested, no recorded run)
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/generate_figures.py
pointer only (licence: NONE) · get_code("9825826a3f9c932d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

filter_task_data Not yet run
unverified (harvested, no recorded run)
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/cascade_utils.py
pointer only (licence: NONE) · get_code("f7c87466dfa05694")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load_split Not yet run
unverified (harvested, no recorded run)
renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection/train_cascade.py
pointer only (licence: NONE) · get_code("dc67c760c61c18f2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 14 samples lifted from this paper's linked repositories, 14 carry a function identity and 0 do not. Of the 14 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 14 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 fewshot learning curves under continued fine-tuning and cold-start starting points. Third, three joint training strategies incorporating 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. Four methodologically distinct experiments converge on the same conclusion: the dominant factor governing cross-lingual generalization is the class-balance of the target language data itself, rather than the typological distance between languages. Relevant code can be found in https://github.com/renruixing/The-Cross-Domain-Generalization-Cost-of-Offensive-Language-Detection

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2607.23512")
get_code_for_paper("2607.23512")
have("2607.23512")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2607.23512.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2607.23512.svg)](https://syntology.ai/paper/2607.23512)

Connect an agent — have() is free.