SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2108.11830 · EMNLP · 2021

Just Say No: Analyzing the Stance of Neural Dialogue Generation in Offensive Contexts

Mark Riedl, Ashutosh Baheti, Maarten Sap, Alan Ritter

arXiv · PDF · Open in the Atlas

Code that ran

3 of 5 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; 0 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2108.11830.json · badge: /api/ran/2108.11830.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
abaheti95/toxichat canonical (classifier label)
classifier basis: classifier_2025
3 ran · 2 no recorded run
FunctionStatusWhere it lives
get_GPT2_string_from_utterances Ran
ran; our contract draft was wrong, not the code
abaheti95/toxichat/experiments/train_and_evaluate_DGPT_offensive_classifier.py
pointer only (licence: CC-BY-SA-4.0) · get_code("644397b5b7a04dfd")
How it ran

The body of this sample is withheld: CC-BY-SA-4.0, as GitHub detects it on this paper's repository, abaheti95/toxichat, is not in the permissive set Syntology serves inline. 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.

get_first_and_reply_f1_for_OS_C_flat_dataset Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
abaheti95/toxichat/experiments/train_and_evaluate_NBOW_offensive_classifier.py
pointer only (licence: CC-BY-SA-4.0) · get_code("851b700c4f538348")
How it ran

The body of this sample is withheld: CC-BY-SA-4.0, as GitHub detects it on this paper's repository, abaheti95/toxichat, is not in the permissive set Syntology serves inline. 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.

reweight Ran
ran, violated the contract we drafted
abaheti95/toxichat/experiments/train_and_evaluate_BERT_offensive_classifier.py
pointer only (licence: CC-BY-SA-4.0) · get_code("18a7fe95b28ee45d")
How it ran

The body of this sample is withheld: CC-BY-SA-4.0, as GitHub detects it on this paper's repository, abaheti95/toxichat, is not in the permissive set Syntology serves inline. 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.

evaluate_OC_S_NBOW_offensive_predictions Not yet run
unverified (harvested, no recorded run)
abaheti95/toxichat/experiments/train_and_evaluate_NBOW_offensive_classifier.py
pointer only (licence: CC-BY-SA-4.0) · get_code("50890dea0cb3dbeb")
How it ran

The body of this sample is withheld: CC-BY-SA-4.0, as GitHub detects it on this paper's repository, abaheti95/toxichat, is not in the permissive set Syntology serves inline. 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.

make_bert_predictions_on_offensive_dataset Not yet run
unverified (harvested, no recorded run)
abaheti95/toxichat/experiments/train_and_evaluate_BERT_offensive_classifier.py
pointer only (licence: CC-BY-SA-4.0) · get_code("b8bc11854f95d579")
How it ran

The body of this sample is withheld: CC-BY-SA-4.0, as GitHub detects it on this paper's repository, abaheti95/toxichat, is not in the permissive set Syntology serves inline. 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 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 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 5 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-22.

Repositories linked to this paper

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

Abstract

Dialogue models trained on human conversations inadvertently learn to generate toxic responses. In addition to producing explicitly offensive utterances, these models can also implicitly insult a group or individual by aligning themselves with an offensive statement. To better understand the dynamics of contextually offensive language, we investigate the stance of dialogue model responses in offensive Reddit conversations. Specifically, we create TOXICHAT, a crowd-annotated dataset of 2,000 Reddit threads and model responses labeled with offensive language and stance. Our analysis reveals that 42% of human responses agree with toxic comments, whereas only 13% agree with safe comments. This undesirable behavior is learned by neural dialogue models, such as DialoGPT, which we show are two times more likely to agree with offensive comments. To enable automatic detection of offensive language, we fine-tuned transformerbased classifiers on TOXICHAT that achieve 0.71 F 1 for offensive labels and 0.53 Macro-F 1 for stance labels. Finally, we quantify the effectiveness of controllable text generation (CTG) methods to mitigate the tendency of neural dialogue models to agree with offensive comments. Compared to the baseline, our best CTG model achieves a 19% reduction in agreement with offensive comments and produces 29% fewer offensive replies. Our work highlights the need for further efforts to characterize and analyze inappropriate behavior in dialogue models, in order to help make them safer. 1

For agents

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

get_harvested_code_for_paper("2108.11830")
get_code_for_paper("2108.11830")
have("2108.11830")

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

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

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

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

Connect an agent — have() is free.