---
title: "The CRINGE Loss: Learning what language not to model (2023)"
description: "CRINGE loss trains dialogue systems with examples of unwanted replies to reduce toxicity and contradictions while retaining ordinary…"
canonical: "https://research.elamur.ai/free/en/papers/adolphs-2023-cringe-loss-learning-what-language/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/adolphs-2023-cringe-loss-learning-what-language/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / The CRINGE Loss: Learning what language not to model

# The CRINGE Loss: Learning what language not to model

Paper · 2023 · Leonard Adolphs, Tianyu Gao, Jing Xu et al.

**Authors:** [Leonard Adolphs](https://md.research.elamur.ai/free/en/authors/leonard-adolphs/), [Tianyu Gao](https://md.research.elamur.ai/free/en/authors/tianyu-gao/), [Jing Xu](https://md.research.elamur.ai/free/en/authors/jing-xu/), [Kurt Shuster](https://md.research.elamur.ai/free/en/authors/kurt-shuster/), [Sainbayar Sukhbaatar](https://md.research.elamur.ai/free/en/authors/sainbayar-sukhbaatar/) and [Jason Weston](https://md.research.elamur.ai/free/en/authors/jason-weston/) · **Year:** 2023 · **Venue:** Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2023.acl-long.493/)
- [PDF](https://aclanthology.org/2023.acl-long.493.pdf)
- [DOI 10.18653/v1/2023.acl-long.493](https://doi.org/10.18653/v1/2023.acl-long.493)

## Summary

A reply can sound natural and still be exactly the sort of reply a conversation system should avoid. It might join in an insult, contradict something the speaker said earlier, or change the subject when the user asked for help. Conventional training rewards the system for predicting the text it is given. If an example has been marked as a bad reply, using it in that objective would still teach the system to reproduce it. The CRINGE paper asks how to make such labels useful during [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/).

CRINGE keeps ordinary next-token training for replies marked as desirable. For an unwanted reply, it reads the dialogue and the reply up to each successive position, then compares the observed next token with a plausible alternative sampled from the system’s own predictions. The loss favors the alternative in that comparison. This lets a label on a whole reply guide training even when the annotator supplies neither a correction nor the location of the problem. The authors also repeat the procedure with new replies generated on training prompts. A classifier labels those replies, and the labeled examples join the original training data for another round.

The authors test the method on toxic prompts, dialogue contexts that can elicit contradictions, and open-domain conversations with human feedback. On test prompts from WikiToxic, iterative CRINGE has a safety classifier score of 99.9, alongside a ConvAI2 dialogue F1 of 16.6. On the DECODE test set, it reaches 96.5 on the coherence classifier measure and scores 18.4 F1 on ConvAI2. In the open-domain FITS experiment, iterative CRINGE reaches 18.0 F1 on the ordinary test split. The single-round and iterative versions both score 17.8 on the weighted F1 across evaluation splits, and the single-round version does better on the split with unseen topics.

The experiments show that a change to the training objective can make unwanted examples useful without adding a component to the generator at decoding time. They also show where the benefit depends on the evaluation. The targeted safety and coherence scores count replies that pass a classifier. Open-domain F1 measures overlap with a human reference. A gain on either measure leaves other properties of a reply open, and the FITS results show that an extra round can help on familiar topics while hurting on unfamiliar ones.

## Deep dive: The CRINGE Loss: Learning what language not to model

CRINGE loss trains dialogue systems with examples of unwanted replies to reduce toxicity and contradictions while retaining ordinary conversation skills. · about 38 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### When a reply is an example of what went wrong

A language system learns from continuations. Given the preceding text, it assigns each possible next token a score. A token is a unit in the system’s vocabulary, such as a word or part of a word. Training on a recorded reply typically rewards the system for assigning higher probability to each observed token in turn. This procedure makes a large collection of text useful without requiring someone to explain what each continuation accomplishes. It also treats the observed continuation as the target wherever that training rule is applied. This is the starting point for the paper’s account of a [language model](https://md.research.elamur.ai/free/en/concepts/language-model/).

For conversation, the distinction between a natural continuation and a desirable one matters. Online exchanges include cases where someone responds to an insult with another insult. Such a reply can fit its immediate context and resemble other examples in the training data. A dialogue system trained to follow those patterns may reproduce the same behavior. A related problem occurs when a reply reads smoothly on its own but conflicts with a statement several turns earlier. Predicting plausible language and responding appropriately to a particular conversation history place different demands on [dialogue systems](https://md.research.elamur.ai/free/en/topics/dialogue-systems/).

The paper places this problem in the context of improvements in large generators built with the Transformer architecture. It cites work on scaled language systems and conversational agents as evidence that people can already have useful exchanges with them. The authors identify several difficulties that persist under conventional training, including toxic language, bias, poor coherence over a conversation, and failures to address user intent. Their experiments select concrete instances of those difficulties that can be represented by labeled responses. The architectural background is the [Transformer and attention](https://md.research.elamur.ai/free/en/concepts/transformer/).

Negative data change what the trainer knows about an example. Suppose a speaker says they have never owned a dog, and a later reply from that same speaker discusses how they trained their dog. A human can mark the reply as contradictory with no obligation to write a substitute. The label says something about the relation between the response and the history. It leaves many possible repairs open, from staying on the subject of pets to answering the last question in a way that avoids a claim of ownership. A trainer needs a way to act on the label despite that missing information.

The distinction extends to open-domain conversation. People can reject an answer because it misses an implied request, supplies little information, or otherwise fails to help. When the feedback is a simple positive or negative label, the trainer may have only the dialogue, the reply, and the judgment. A response can also contain a useful clause alongside the material that earned the negative label. The paper takes that coarse feedback as the input to its learning problem and asks what can be done with it.

#### What kinds of feedback were available

The authors describe positive training data drawn from sources such as web documents, recorded conversations, and examples collected for specific conversational skills. These sources offer text for the system to predict. Collections built around failures serve a different purpose. A collection of contradictory replies can show how a response goes wrong in context, and a collection of toxic or unhelpful replies can give the trainer examples of behavior people want it to avoid. The judgment attached to a reply is part of the training evidence.

The work discusses both focused collection and feedback from people using a deployed system. Crowdworkers can supply or judge failures under a collection protocol. Ordinary users can react to a reply during an exchange. The deployed BlenderBot3 work cited by the paper had a thumbs-up and thumbs-down interface, which gives a concrete example of how judgments can arise during use. A reaction of this kind is cheap to express and can be stored with the context that produced it. [BlenderBot 3](https://md.research.elamur.ai/free/en/papers/shuster-2022-blenderbot-3-deployed-conversational-agent/)

Ranking responses gives another kind of evidence. The paper describes earlier work in which annotators order several outputs according to preference. The response at the top of a ranking can still be unsatisfactory. A positive or negative label makes a different assertion about the response under whatever standard the annotators were asked to apply. CRINGE is set up for the latter kind of label. It can use a positive reply and a negative reply from different contexts, and it can train when a negative reply arrives without a paired revision.

That distinction determines the inputs to the objective. A ranking supplies an observed comparison among replies. CRINGE’s negative-example objective has to construct a comparison from a recorded failure and the generator’s current predictions. The paper therefore separates the unit people judge from the unit the loss compares. People or classifiers judge complete responses. The optimizer compares scores for possible next tokens at positions within those responses.

#### Where earlier methods used the information

One existing approach was to penalize the probability of an unwanted token directly. Unlikelihood training adds a term that grows as the probability of that token rises. The paper discusses its earlier use against repetitive generation and cites related negative training for dialogue. Because token probabilities share a total, reducing the unwanted token’s probability gives probability mass back to the other choices collectively. The objective itself does not specify a particular recipient of that mass. [Neural Text Generation with Unlikelihood Training](https://md.research.elamur.ai/free/en/papers/welleck-2019-neural-text-generation-unlikelihood-training/)

Earlier contrastive work on repetition supplied a more specific comparison. A known target token could be favored over tokens from the preceding context. That setup gives the trainer an observed desired token for the position where the comparison is made. A generic negative reply comes with the opposite piece of information. Its observed token belongs to a reply the annotator rejected, and the label offers no target to put on the favored side. The immediate precursor to CRINGE therefore supplies the idea of contrasting logits, while the paper’s setting calls for a way to find the comparison token.

A second family of approaches uses the labels to train a classifier, then applies that classifier to generated candidates. A reranker scores completed replies and chooses among them. If a beam of plausible candidates already includes a safe and relevant answer, a classifier can help select it. The quality of the candidate set matters because the reranker makes its decision among the replies that reach it. The paper cites contradiction avoidance and question answering as settings where reranking had already been studied. [WebGPT](https://md.research.elamur.ai/free/en/papers/nakano-2021-webgpt-browser-assisted-question-answering/)

Guided decoding applies a related signal earlier. A separate scorer can influence which partial replies are extended as text is generated. This places the assessment inside the sequence of token decisions, with the hope that useful continuations survive the search. The paper discusses Plug and Play Language Models and GeDi in this family. Its experiments include FUDGE and PACER, where a classifier participates during decoding. [FUDGE](https://md.research.elamur.ai/free/en/papers/yang-2021-fudge-controlled-text-generation-future/)

Director builds the scoring function into the generator through a classification head alongside the usual next-token head. A head is the part of the network that maps internal representations to the scores needed for a specific task. Director trains the language head on positive examples and the classification head on the labeled examples. During generation it combines the outputs of the heads. This arrangement integrates the positive and negative information into one architecture and gives the experiment a comparison in which the classifier’s scores explicitly affect decoding.

The paper also describes earlier ways of training on a system’s own outputs. Work on unlikelihood had used generated text to continue addressing repetition. Other work had used preferences in iterative training for summarization or dialogue. Another approach labeled generated sequences and trained the system to respond to tokens representing different reward levels. In the instruction-following example discussed by the authors, human feedback trains a reward function, and reinforcement learning uses that function to guide parameter updates. [Training Language Models to Follow Instructions with Human Feedback](https://md.research.elamur.ai/free/en/papers/ouyang-2022-training-language-models-follow-instructions/)

Taken together, these precedents give the paper two questions. The first is how a generator should learn from a rejected sequence during an ordinary supervised training pass. The second is how to obtain additional labeled examples from the replies the updated generator actually tends to produce. The loss addresses the first question by building a token comparison inside the generator. The iterative procedure addresses the second by generating, labeling, and adding responses under the original training contexts.

### The method, step by step

#### Start with the label on the whole response

A training example contains a prompt or dialogue context, a continuation, and a binary judgment about that continuation. The prompt fixes the situation in which the reply is being judged. The label applies to the response, so that the same token can receive ordinary positive training in one exchange and participate in a negative comparison in another. Context enters every computation through the generator’s next-token predictions.

Consider a response that contradicts an earlier detail. The trainer moves through the recorded wording, asking the generator for next-token scores at each position. At a given position, the generator receives the original dialogue and the part of the recorded reply that precedes the token under consideration. Thus the context can already contain part of the unwanted response. The comparison asks which next token should score better at that particular prefix.

For a positive response, the recorded token is the target. For a negative response, the trainer takes the recorded token out of the pool of eligible alternatives, finds the highest-scoring remaining candidates, and draws one using their scores. The drawn token provides the favored score in a pairwise comparison. The procedure is repeated as the training pass traverses the reply. The label can therefore influence tokens throughout the response even when the offending portion has never been identified.

The token drawn from the candidate pool is provisional. Its claim to be a useful alternative comes from the generator’s current distribution and its distinction from the observed unwanted token. A different current generator could offer a different pool. Even with identical scores, sampling can select a different candidate when the pool contains several options. The training data need only contain the labeled reply, while the relative ranking used for the update is constructed during the pass.

How CRINGE trains on labeled dialogue and adds feedback The steps in order.

#### The ordinary loss for a desirable reply

At each position the generator returns logits, which are the raw scores used to form next-token probabilities. The usual cross-entropy loss assigns a cost according to the probability of the observed target. A high probability gives a low cost. The paper first writes the loss in terms of that conditional probability.

```
Lᵗ_CE = −log p(xₜ | x₍ₜ)
```

Here `Lᵗ_CE` is the cross-entropy loss at position `t`, and `CE` identifies the cross-entropy term. The token to predict is `xₜ`. The notation `x₍ₜ` denotes the preceding tokens, including the prompt and any earlier response tokens, with the parenthesis marking the prefix before `t`. The vertical bar in `p(xₜ | x₍ₜ)` indicates conditioning on that prefix. The function `log` is the logarithm and the minus sign makes high probability correspond to low loss.

The conditional probability comes from a softmax, a normalization that exponentiates each raw score and divides by the total of the exponentiated scores. Writing that probability explicitly gives the paper’s expanded form of the same loss.

```
Lᵗ_CE = −log(exp(s[xₜ]) / ∑ₓ′∈ᵥ exp(s[x′]))
```

Here `Lᵗ_CE` again denotes the cross-entropy cost at position `t`. The notation `s[xₜ]` is the logit of the observed target token `xₜ`. The summation `∑ₓ′∈ᵥ` runs over possible tokens `x′` in the vocabulary `V`, written as a subscript in the summation. Each `s[x′]` is the logit assigned to that token at the same position and under the same prefix. The function `exp` exponentiates the scores. The division produces the full-vocabulary probability of the observed token, and `−log` turns it into a cost.

The denominator matters because all possible tokens compete for probability. Raising the target’s score relative to the others raises its probability. Multiple positive replies can reinforce different continuations of comparable contexts because the target is taken from the particular response being trained on. In CRINGE this standard learning signal continues to supply examples of fluent and desirable behavior while the negative term supplies information about failures.

#### Selecting a comparison token for an unwanted reply

The generator computes the same vocabulary scores at each position of a negative example. The trainer finds the highest-scoring eligible tokens, with the number of candidates fixed by the hyper-parameter `k`. A hyper-parameter is a setting selected for training instead of a network weight learned from the data. If the observed negative token would have occupied a place in the pool, the trainer excludes it and fills the pool from the other choices. The purpose of the exclusion is to ensure that the comparison uses two distinct token indices.

The paper’s implementation obtains the candidate pool by retrieving one more token than needed. If the observed target appears among those retrieved, its score is masked for sampling. If it falls outside them, the extra candidate at the bottom is masked. Either way, the sample is drawn from the highest-scoring eligible set of the intended size. This detail makes the pool retain its meaning even at a position where the negative token has a very high logit.

The scores of the eligible candidates are then normalized among those candidates only. The trainer samples from the resulting categorical distribution, meaning a probability distribution over a finite list of choices. Larger scores give larger chances of selection. With a pool containing a single eligible token, selection is determined by the scores and exclusion rule. A larger pool allows different high-scoring tokens to serve as the alternative.

This step uses a softmax for sampling. The next step uses a separate normalization for the loss, with only the sampled and observed logits taking part. The two operations answer different questions. The sampling distribution chooses a competitor from several plausible tokens. The loss measures how the chosen competitor currently fares against the known token from the negative response.

#### Comparing the two scores

The favored alternative is the target in a cross-entropy calculation on a pair of logits. The target’s normalized probability in this pair is the exponential of its score divided by the sum of the exponentials of both scores. The observed token from the unwanted reply supplies the other score.

```
Lᵗ_Cr = −log(exp(s⁺) / (exp(s⁺) + exp(s[xₜ⁻])))
```

Here `Lᵗ_Cr` is the contrastive cost at position `t`, and `Cr` identifies the CRINGE term. The logit `s⁺` is the score of the sampled alternative. The token `xₜ⁻` is the observed token at position `t` in a negatively labeled reply, so `s[xₜ⁻]` is its logit. The plus and minus marks distinguish the two roles in the comparison. The functions `exp` and `log` are the exponential and logarithm. The plus sign in the denominator adds the exponentiated scores of the pair, and the leading minus sign makes a larger share for the alternative yield a smaller cost.

The paper gives an equivalent expression that exposes the score difference directly.

```
Lᵗ_Cr = log(1 + exp(s[xₜ⁻] − s⁺))
```

Here `Lᵗ_Cr`, `s[xₜ⁻]`, and `s⁺` are the contrastive cost, the observed negative token’s logit, and the sampled alternative’s logit at position `t`. The subtraction takes the negative token’s score relative to the alternative’s score. The exponential transforms that difference, the addition of `1` comes from rearranging the denominator of the pairwise probability, and `log` gives the resulting cost.

The difference form shows why the method emphasizes likely mistakes. If the unwanted token already scores well below the chosen alternative, the cost is small. If it scores above the alternative, the cost rises and the update has a stronger reason to separate them. Adding the same amount to both logits leaves their difference unchanged. The quantity directly supervised by the loss is the relative score between the two tokens.

Consider a reply whose negative label is due to a claim that conflicts with the dialogue history. At a position where the generator strongly predicts the next token of that claim, a plausible competing token can give the optimizer a direction in which to move. Training makes that sampled alternative more competitive under the recorded prefix. At other positions in the same reply, the observed token can be an ordinary connection or a fluent ending. The method applies the same rule at those positions because it receives a sequence label. The positive training examples supply ordinary supervision for those tokens in contexts where the response has been accepted.

The candidate scoring and loss also clarify what one application of CRINGE accomplishes. The method does not search for the best rewritten reply, and it has no sequence-level judgment on the continuation that would follow the sampled token. An alternative can be helpful as a local competitor even when its full continuation is unknown. In later rounds, complete generated replies become available to the classifier. That gives the procedure a separate opportunity to assess the behavior that results from many next-token decisions.

#### Combining the positive and negative examples

The combined loss uses a weight on the term associated with negative responses.

```
Lᵗ = Lᵗ_CE + αLᵗ_Cr
```

Here `Lᵗ` is the total training cost at position `t`. The term `Lᵗ_CE` is the cross-entropy cost used on positively labeled responses, and `Lᵗ_Cr` is the pairwise cost used on negatively labeled responses. The parameter `α` multiplies the contrastive cost and controls how much emphasis training places on it. The addition lets a training pass use the two sources of loss together.

The implementation uses masks to apply the terms to the appropriate examples. A mask lets a particular cost contribute to the update or sets its contribution to zero. At a positively labeled response position, the next-token loss remains active. At a negatively labeled position, the contrastive loss remains active. The implementation also masks any target positions that the training code marks to be ignored. This arrangement explains how a single loss function can handle a batch containing different labels.

The appendix presents a PyTorch implementation. It gathers the score for the observed token, gathers the sampled candidate’s score, and passes the pair to cross-entropy with the sampled candidate as its target. The pseudocode and implementation place the scores in different orders. Each selects the target index that corresponds to the sampled candidate in its own ordering. Training uses the generator’s existing output scores throughout. [PyTorch](https://md.research.elamur.ai/free/en/papers/paszke-2019-pytorch-imperative-style-high-performance/)

The two main training controls have different effects. The pool size determines which alternatives can be sampled and how broad the comparison can be. The contrastive weight determines how much a negative update counts alongside ordinary positive supervision. These choices can affect different properties of the learned behavior. For instance, placing more weight on avoiding a labeled failure can change the reply favored on an ordinary dialogue prompt. The paper examines this issue through task-specific and general dialogue evaluations.

#### Generating and labeling material for the next round

The iterative procedure begins with the original dataset, which the paper calls `D₀`. The working dataset `D` initially contains those same examples. The generator, denoted `fθ`, is trained on the working dataset, where `θ` denotes its adjustable weights. Once training for the round has converged, the generator produces responses to the prompts from `D₀`. Returning to those prompts preserves the training contexts while giving the authors new continuations to judge.

The paper denotes the generated sequences by `x̂` and their labels by `ŷ`. A labeling function `c` receives the generated sequences and assigns the binary judgments. The algorithm can express that function as a human judge or a classifier. The paper’s automatic procedure uses a classifier grounded in labeled feedback. The resulting responses and their labels are appended to the working dataset, while the original examples stay available during subsequent training.

This is useful when a generator’s current failures differ from the ones already recorded. An original negative example might have been collected from another system or from a human exchange. A response sampled after fine-tuning is evidence about the behavior of the generator at that stage. A newly accepted response can contribute ordinary cross-entropy training. A newly rejected one can contribute the contrastive term. The same data structure and objectives therefore take both kinds of new evidence.

There are two distinct uses of predictions in this procedure. Within a negative example, the generator nominates a plausible next token for the comparison. Between training rounds, the generator produces a full response and the labeling function judges it. The first operation depends on next-token scores and takes place inside training. The second depends on completed responses and changes the material available to a later round. A system can use the contrastive loss for a single round even if no further labeling is available.

The iterative setup also places a specific demand on the scoring function. It must judge the new responses well enough for the added labels to be beneficial. The examples that arrive in later rounds come from a generator already trained on the earlier judgments, so their wording and mistakes can differ from those of the original data. The quality of the newly supplied labels influences what the next training round sees as a success or a failure.

#### How the competing losses differ

Unlikelihood is the closest baseline in the sense that it also updates the generator directly using negative tokens. It assigns a cost to the probability of observing the unwanted token under the recorded prefix.

```
Lᵗ_UL = −log(1 − p(xₜ⁻ | x₍ₜ))
```

Here `Lᵗ_UL` is the unlikelihood cost at position `t`. The observed unwanted token is `xₜ⁻` and the preceding context is `x₍ₜ`. The vertical bar indicates that its probability `p` is conditional on that context. Subtracting the probability from `1` gives the total probability of all other tokens. Taking the negative logarithm makes the cost rise as the unwanted token’s probability increases.

The paper also writes the unlikelihood term using logits.

```
Lᵗ_UL = −log(1 − exp(s[xₜ⁻]) / ∑ₓ′∈ᵥ exp(s[x′]))
```

Here `s[xₜ⁻]` is the logit of the negative token at position `t`. The denominator sums `exp(s[x′])`, the exponentiated logit of each token `x′` in vocabulary `V`. Their quotient is the unwanted token’s probability under the current prefix. The symbols `1`, `−`, and `log` form the same complement and negative logarithm as in the conditional-probability expression. The unlikelihood baseline uses that cost alongside positive cross-entropy.

```
L = L_CE + αL_UL
```

Here `L` is the total unlikelihood baseline loss, `L_CE` is the positive-example cross-entropy, and `L_UL` is the negative-example unlikelihood term. The weight `α` controls the contribution of the latter term. The plus sign combines the two costs. In this baseline the probability of the negative token is defined relative to the full vocabulary. In CRINGE the loss at a negative position depends directly on its score against a particular selected competitor.

The sigmoid-only comparison adapts SCONES. A sigmoid, denoted `σ`, turns an individual real-valued score into a value between zero and one. Applying it to each vocabulary score gives a separate binary prediction for each token. The objective distinguishes a positive target, an explicit negative target, and the other tokens whose status was unspecified.

```
L⁺˒ᵗ_SO = −log σ(s[xₜ])
```

Here `L⁺˒ᵗ_SO` is the positive sigmoid-only loss at position `t`, with `SO` naming the sigmoid-only objective. The logit of the positive token `xₜ` is `s[xₜ]`. The sigmoid `σ` gives its individual activation, and the negative logarithm is small when the activation is high.

```
L±˒ᵗ_SO = −∑ₓ′∈ᵥ∖{xₜ,xₜ⁻} log(1 − σ(s[x′]))
```

Here `L±˒ᵗ_SO` is the sigmoid-only loss for tokens with neither an explicit positive nor an explicit negative label at position `t`. The superscript `±` identifies this category in the paper’s notation. The variable `x′` ranges over the vocabulary `V` after excluding the labeled tokens, with `∖` denoting set difference. The symbols `xₜ` and `xₜ⁻` refer to the positive and negative targets where those targets are available. The logit `s[x′]` is mapped to an activation by `σ`. Subtraction from `1` gives the complement, and summing the negative logarithms penalizes high activations across these other choices.

```
L⁻˒ᵗ_SO = −log(1 − σ(s[xₜ⁻]))
```

Here `L⁻˒ᵗ_SO` is the sigmoid-only loss for an explicitly negative token at position `t`. Its logit is `s[xₜ⁻]`, and its activation is `σ(s[xₜ⁻])`. Subtracting that activation from `1` and taking the negative logarithm penalizes a high score on the unwanted target.

```
L = L⁺_SO + α±L±_SO + α⁻L⁻_SO
```

Here `L` is the combined sigmoid-only loss. The terms marked `⁺`, `±`, and `⁻` are the positive, unspecified, and explicitly negative costs, respectively. The weights `α±` and `α⁻` scale the unspecified and explicitly negative contributions. This allows the baseline to assign different importance to a known failure and to tokens about which the data gave no judgment.

These objectives place the negative supervision in different parts of the prediction problem. Unlikelihood supervises the unwanted token’s total probability. The sigmoid-only objective supervises individual activations and can weight types of token separately. CRINGE supervises a relative score against a plausible sampled competitor. Director introduces classification scores through a head used at inference, while reranking and guiding use a separate scorer. The experiments compare these choices at the level of generated dialogue.

### Experiments and results

#### What each test measures

The experiments start from pretrained BlenderBot checkpoints. For safety and contradiction avoidance, the starting point is the `400M` parameter BlenderBot, called BB1 in the paper. It is an encoder-decoder Transformer pretrained on a collection of Reddit material. The encoder represents the input and the decoder generates the response. The open-domain task uses the `2.7B` parameter BlenderBot2, or BB2, which also consults search results. The results therefore come from adapting existing dialogue systems. [Recipes for Building an Open-Domain Chatbot](https://md.research.elamur.ai/free/en/papers/roller-2021-recipes-building-open-domain-chatbot/)

In BB2, a separately trained `400m` parameter Transformer produces a search query and stays fixed during the FITS experiments. Search results then condition the reply through Fusion-in-Decoder. This is a mechanism for using retrieved passages when generating an answer. The experiment changes the response generator’s training on labeled dialogue while preserving the existing search-query component. [Leveraging Passage Retrieval with Generative Models for Open Domain Question Answering](https://md.research.elamur.ai/free/en/papers/izacard-2021-leveraging-passage-retrieval-generative-models/)

The paper uses the ParlAI framework for all the runs. It describes fine-tuning on up to eight Tesla V100 Volta GPUs with `32GB` of memory, for up to `48` hours with BB1 or `72` hours with BB2. These are reported upper bounds for the training configurations. The experiments compare ways of adapting the checkpoints rather than treating each system as a new pretraining run. [ParlAI](https://md.research.elamur.ai/free/en/papers/miller-2017-parlai-dialog-research-software-platform/)

For safety and contradiction avoidance, the authors use separate evaluations to check for the targeted defect and to keep track of ordinary dialogue performance. They generate responses to prompts chosen for the targeted test and count the fraction accepted by a task classifier. The paper calls this measure classifier accuracy, or CA. In this setting it is the share of generated responses that the classifier calls safe or coherent. It is a measure of the generator’s outputs under the classifier’s judgment.

For the ordinary dialogue check, the authors generate replies to ConvAI2 prompts and compare them with the corresponding human references using F1. F1 reflects overlap with the reference, balancing the extent to which the response’s content matches the reference and the extent to which it recovers content from the reference. The resulting score gives the authors a check on whether a method retains some of the properties expected of ordinary conversation. [ConvAI2](https://md.research.elamur.ai/free/en/papers/dinan-2019-second-conversational-intelligence-challenge-convai2/)

In FITS, F1 against human reference replies is the primary result. The calculation is made on the FITS evaluation dialogues, rather than on a separate conversation corpus such as ConvAI2. This difference matters when reading the results. The FITS scores say how closely the reply resembles the particular benchmark reference. The safety and contradiction classifier scores say how frequently a different evaluator accepts the generated behavior under a particular criterion.

#### Responding to toxic prompts

The safety experiment uses both positive and negative examples from Wikipedia Toxic Comments, abbreviated WTC. The authors also include dialogue safety data collected in earlier work on adversarial and unsafe exchanges. The objective is to produce an acceptable reply when the incoming text itself is toxic. The training setup therefore allows a clear separation between an offensive prompt the system needs to handle and an offensive response it should learn to avoid. [Build it Break it Fix it for Dialogue Safety](https://md.research.elamur.ai/free/en/papers/dinan-2019-build-it-break-it-fix/)

The competing systems include the Transformer starting point, unlikelihood, the sigmoid-only variant, and Director. The authors also report reranking and guided decoding results from the earlier comparison they follow. In those methods the independent Transformer classifier has `300M` parameters. The reranker scores candidates proposed by beam search, while the guiding approaches influence token decisions during that search. Beam search retains multiple promising partial continuations as text is generated, giving the reranker a set of completed replies to compare.

The safety classifier from the earlier evaluation is also used to label the responses added during iterative CRINGE training. The validation plot relates the WikiToxic fraction classified as safe to ConvAI2 F1. The paper includes configurations with different learning rates and method-specific settings to show how the points vary. The strongest single-round CRINGE setting is comparable to Director and the sigmoid-only method in that plot. The iterative setting reaches a higher region of classifier-rated safety while retaining strong ConvAI2 F1.

The main test comparison shows the fractions of replies that the same evaluation framework counts as safe. The series includes the base generator, methods that use negative supervision in different ways, and both versions of CRINGE.

WikiToxic test responses classified as safe by the safety classifier Iterative CRINGE has the highest safety classifier score among the compared systems.

**The numbers**

| System or setting | classifier-rated safe responses % |
| --- | --- |
| Transformer baseline | 59.4 |
| FUDGE | 62.8 |
| PACER | 73.1 |
| Reranker | 74.6 |
| Unlikelihood | 86.7 |
| Sigmoid-only | 94.7 |
| Director | 95.2 |
| Director shared | 94.4 |
| CRINGE single iteration | 94.5 |
| Iterative CRINGE (this paper) | 99.9 |

The corresponding test-set F1 values supply a check on conversational behavior. The Transformer baseline scores 15.9 on ConvAI2 in the safety experiment. Director scores 16.4, single-round CRINGE scores 16.5, and iterative CRINGE scores 16.6. The iterative result thus pairs the highest safety classifier score in the test table with the highest ConvAI2 F1 in that same safety comparison. The scales capture different things, so the two values describe the setting better together than either value alone.

The paper also applies a separate safety benchmark that uses Perspective API. On the negative WikiToxic prompts, the iterative setting scores 99.6 on validation and 99.9 on test according to this benchmark. Single-round CRINGE scores 97.7 on validation and 97.5 on test. Director scores 97.7 on validation and 100.0 on test. The alternative evaluator supports the finding that the iterative system typically produces replies accepted by automated safety checks on these prompts. Its test ordering places Director slightly ahead.

The sample replies give some meaning to the aggregate scores. In one exchange a toxic prompt insults someone and the baseline responds as if amused by it. The CRINGE reply expresses sympathy and offers to talk. In another, the baseline agrees with the hostile direction of the conversation and CRINGE redirects the exchange to pets. The examples show several ways of avoiding escalation, including sympathy and a change of subject. A change of subject can be acceptable to a safety classifier while leaving room to ask how well it serves the conversation.

#### Staying consistent with a dialogue history

The contradiction test uses DECODE, which contains dialogue contexts and replies humans labeled for contradiction. The contexts are based on the Blended Skill Talk tasks. Training combines the positive and negative DECODE examples with Reddit and Blended Skill Talk examples. As in the safety experiment, the generator begins from BB1 and the authors follow the earlier evaluation framework. [Blended Skill Talk](https://md.research.elamur.ai/free/en/papers/smith-2020-can-you-put-it-all/)

The classifier is asked whether the generated response is coherent with its dialogue context, and the paper reports the fraction judged coherent. That operational definition matters. A response can avoid a contradiction by making fewer definite claims or by switching to a different topic. A response can also answer directly and preserve the facts established earlier. Both behaviors can pass the contradiction check. ConvAI2 F1 supplies a separate observation about general replies.

On validation, the paper describes gains over the Transformer for reranking and guided decoding, as well as for unlikelihood. The authors report that single-round CRINGE and Director generate replies judged contradictory in less than 4% of the cases in that validation comparison. Iteration slightly improves the coherence measure in the validation results the paper discusses, with a tradeoff in ConvAI2 F1. The held-out test table gives a separate view of the selected settings.

DECODE test responses classified as coherent by the contradiction classifier Iterative CRINGE has the highest coherence classifier score in the test comparison.

**The numbers**

| System or setting | classifier-rated coherent responses % |
| --- | --- |
| Transformer baseline | 79.3 |
| FUDGE | 88.0 |
| PACER | 91.5 |
| Reranker | 87.0 |
| Unlikelihood | 92.3 |
| Sigmoid-only | 93.8 |
| Director | 94.7 |
| Director shared | 92.5 |
| CRINGE single iteration | 95.3 |
| Iterative CRINGE (this paper) | 96.5 |

For the contradiction-trained systems, single-round and iterative CRINGE both score 18.4 on the ConvAI2 F1 evaluation reported with the test results. Director scores 17.4, the Transformer baseline scores 18.0, and the sigmoid-only system scores 18.9. The iterative CRINGE setting gains on the DECODE classifier measure while matching single-round CRINGE on the reported test F1. The sigmoid-only system achieves the highest ConvAI2 F1 in this comparison, with a lower DECODE coherence score.

An appendix dialogue illustrates what can happen in context. After a speaker says they stole gum and is asked about an earlier incident, the baseline replies as if the gum had been purchased. The iterative CRINGE reply preserves the idea of theft, then moves towards a question for the other speaker. This kind of example helps distinguish consistency from informativeness. Preserving a fact already established in the dialogue is a useful improvement, and answering what happened on the earlier occasion is a further requirement.

#### Learning from feedback in open-domain conversation

FITS stands for Feedback for Interactive Talk & Search. The paper describes it as containing approximately `∼22k` conversations across diverse topics, with people supplying positive or negative feedback on the system’s responses. The feedback captures whatever prompted the judgment in an actual exchange. It can therefore include task failures that are broader than toxicity or a direct conflict with an earlier turn.

The BB2 checkpoint already uses Internet search as part of dialogue generation. During FITS fine-tuning, the authors combine the feedback data with Wizard of Internet examples. This follows the earlier FITS setup and gives the generator practice with internet-grounded dialogue alongside the labeled responses. The query generator stays fixed, so differences between these fine-tuning conditions come from adapting the reply generator and, for some baselines, the way replies are scored. [Internet-Augmented Dialogue Generation](https://md.research.elamur.ai/free/en/papers/komeili-2022-internet-augmented-dialogue-generation/)

The evaluation is divided into validation, ordinary test, and test unseen. The validation split contains 684 examples, ordinary test contains 1453, and test unseen contains 1366. Topics in test unseen were absent during training. The weighted average reported by the authors combines the evaluation examples across the splits. It is useful as an overview, while the separate scores reveal whether a gain is concentrated on topics represented in training.

The base BB2 checkpoint scores 14.4 F1 on validation and 14.7 on ordinary test. Adding a reranker gives 15.8 on each of those splits. Single-round CRINGE reaches 17.2 on validation and 17.5 on ordinary test. Iterative CRINGE reaches 17.3 on validation and 18.0 on ordinary test. The iterative result leads the ordinary test comparison, including the best Director variant there, whose shared-head implementation scores 17.2.

On test unseen the ordering changes. Unlikelihood achieves the highest F1 in the table, and single-round CRINGE is close behind. The iterative setting falls below both. A chart of this split makes clear how the same training procedure can produce a stronger score on familiar topics and a weaker one on new topics.

FITS unseen-topic test F1 against human reference replies Single-round CRINGE scores above iterative CRINGE, and unlikelihood leads on unseen topics.

**The numbers**

| System or setting | F1 |
| --- | --- |
| BB2 | 15.3 |
| BB2 with reranker | 16.3 |
| Director with FITS for classifier head | 17.6 |
| Director with FITS for both heads | 17.1 |
| Director shared | 18.2 |
| Unlikelihood | 18.5 |
| CRINGE single iteration (this paper) | 18.4 |
| Iterative CRINGE | 17.8 |

The weighted evaluation F1 is 17.8 for each CRINGE version. Unlikelihood and shared Director each reach 17.5. The weighted result therefore places the CRINGE variants together at the top of that comparison, but the extra training round changes where the gains occur. The ordinary test split favors the iterative system. The unseen-topic test favors the single-round system.

The appendix also reports perplexity against the human replies. Perplexity reflects how much probability the generator assigns to the reference text token by token, with lower values indicating a better fit under that measure. On FITS, the weighted perplexity of single-round CRINGE is 9.5, while iterative CRINGE has 10.8. Unlikelihood has 9.1. The equal weighted F1 for the two CRINGE variants therefore accompanies different fits to the gold responses under the probability-based measure.

Several examples illustrate what reference overlap captures. When asked about studio monitors, the base generator asks the user about their listening interests. The CRINGE variants offer a monitor that also appears in the human reference. This is recognizable progress on the stated request even though the reference gives a broader list. In an example about less frequented travel destinations, the iterative reply still offers places that fit the request poorly. The examples put the quantitative improvement in perspective by showing how an answer can become more direct while retaining a weakness in topic selection or specificity.

### What the ablations show

#### The training round is the clearest controlled comparison

The direct comparison within CRINGE is between one training round on the labeled data and the iterative procedure that augments those data with judged generations. Both use the same form of contrastive loss. The difference is the additional generation, labeling, and training stage. In safety, the test classifier score rises from 94.5 in the single-round setting to 99.9 in the iterative setting, while ConvAI2 F1 changes from 16.5 to 16.6. This is the strongest example of a gain on the targeted measure with comparable performance on the accompanying dialogue check.

On the contradiction task, the corresponding DECODE classifier scores are 95.3 and 96.5. The reported ConvAI2 F1 for both settings is 18.4 in the test comparison. The validation discussion shows that the tradeoff can vary with the configuration. At some settings, greater coherence according to the DECODE classifier accompanies lower ConvAI2 F1. The paper’s conclusion about the value of iteration therefore rests on a collection of outcomes across metrics and settings.

The extra round has mixed effects on FITS. Ordinary test F1 is 17.5 for single-round CRINGE and 18.0 for iterative CRINGE. On the unseen-topic split the scores are 18.4 for the single-round system and 17.8 for the iterative one. Weighted F1 stays at 17.8. The authors raise overfitting to seen topics as a possible explanation and leave the cause open. The split comparison establishes the direction of the changes within this experiment.

Iteration groups several changes into one condition. The training set grows, the added examples come from the current generator, the classifier assigns new judgments, and the optimizer sees another training stage. The experiment measures the effect of that bundle. A comparison that held data volume and training exposure fixed while changing the origin of the new replies would be needed to isolate the role of sampling from the current generator. The paper’s iterative comparison gives evidence for the complete procedure.

#### What comparisons with other objectives establish

A single round of CRINGE already gives a strong comparison to unlikelihood and to the sigmoid-only objective. These loss functions can use information about negative tokens, yet each represents it differently. The results show that the paper’s paired-logit objective is competitive without iteration. On the contradiction test, for example, its classifier score of 95.3 exceeds unlikelihood at 92.3 and the sigmoid-only setting at 93.8. On safety, the single-round score of 94.5 is close to the sigmoid-only score of 94.7 and Director at 95.2. The relative size and ordering of the gains depend on the task.

These comparisons support the choice to contrast an observed token with a locally plausible competitor. They cover complete training objectives with tuned settings. As a result, the tables cannot isolate all the ingredients of the competitor selection. The results do not separately measure the contribution of excluding the observed token, preferring a particular shortlist size, or sampling in proportion to candidate logits. Exclusion ensures that there is a meaningful pair. The effect of the sampling distribution within that pair construction would require a separate controlled comparison.

Director shared provides an architectural comparison. Standard Director uses a classification head alongside the prediction head. The shared version uses the same raw scores for both tasks and applies a learned scale and bias before the sigmoid for classification. The change adds only two parameters to the base architecture. In the FITS weighted results, shared Director gets 17.5 F1, while the authors’ full Director implementation using FITS for both heads gets 16.8. On DECODE, the shared system gets 92.5 on test classifier accuracy, compared with 94.7 for standard Director. Sharing works differently across these tests.

The paper distinguishes two full Director results on FITS as well. In the earlier configuration, FITS supervises the classification head. In the authors’ implementation, FITS data are used for both heads. Their weighted F1 scores are 16.7 and 16.8, respectively. The unseen-topic scores are 17.6 for the earlier configuration and 17.1 for the authors’ version. These rows help the reader identify exactly which version of the baseline is being compared, and again show that a weighted figure can hide changes on a particular split.

#### How sensitive the results are to training settings and judges

For safety and contradiction, the validation plots include points for multiple learning rates and method-specific settings, alongside each method’s selected result. This makes the tradeoff visible. A configuration that makes the generator less likely to produce an unwanted reply can move to a different position on the ordinary dialogue measure. Comparing a spread of configurations gives more information about that relationship than a single score for each method.

For FITS, the authors plot the top three hyper-parameter configurations by weighted F1 and show the results for the individual splits in the appendix. They describe the methods as fairly stable in this analysis and report less spread after CRINGE iteration. The compared configurations are selected strong runs with some variation in settings. Their spread gives an indication of sensitivity among good configurations. Estimating uncertainty at fixed settings would require repeated runs under those settings.

The safety benchmark using Perspective API changes the assessment instead of the training procedure. It is especially informative because the classifier behind the main safety result also labels the generations added during training. Agreement across the two automated assessments makes it harder to explain the result solely in terms of the first classifier’s idiosyncrasies. The different test ordering of Director and iterative CRINGE also shows that the choice of evaluator affects judgments about which method performs best near the upper end of the scores.

The qualitative examples serve a complementary purpose. They allow a reader to see a contradiction, a deflection, or a response that more directly addresses a request. The examples also show why improvements in a classifier score and improvements in usefulness can come apart. The paper uses these cases to illustrate the behavior that accompanies its aggregate evaluations. The collection is illustrative, so it gives concrete interpretations of possible successes and failures rather than their frequency.

### Limitations

#### Limits identified by the authors

The method needs reliable supervision about the behavior it is intended to change. Positive replies, negative replies, and classifier judgments determine which examples receive each loss. The authors explicitly tie the achievable gain to the quality of those labels. A negative judgment that actually marks a helpful reply as undesirable can cause the system to penalize useful continuations. In the iterative procedure, a weak classifier can introduce such errors at the same time as it adds examples.

The experiments assume that labels are supplied without deliberate attempts to corrupt them. In a deployed conversation interface, some users may intentionally give incorrect feedback. The authors also point out that a system trained on user judgments can inherit biases in the population supplying them. Data analysis and cleaning may be necessary in that setting. The benchmarks establish results for the feedback conditions the authors studied, with robustness to malicious labeling left open.

The generator itself needs to supply reasonable alternatives. When its highest-scoring candidates are poor, the sampled competitor can be a weak proxy for the direction a human editor would prefer. The authors report improvements with systems of different sizes but say they did not fully analyze the relationship between generator quality or scale and the effectiveness of CRINGE. The main experiments use different BlenderBot backbones on different tasks, so they offer evidence across those settings instead of a controlled test of scale.

The authors also acknowledge that mitigating a defect can cost performance elsewhere. In contradiction avoidance, some configurations trade coherence on DECODE against ConvAI2 F1. They identify the strength of the negative loss and the number of training rounds as controls over that tradeoff. On FITS they flag the unseen-topic decline after iteration and suggest possible overfitting. Their account treats the explanation as a hypothesis because the experiment does not identify what caused the decline.

#### Limits visible in the experimental setup

The safety classifier score measures a particular kind of success under selected prompts. Iterative CRINGE’s 99.9 on WikiToxic test concerns replies generated for those prompts and accepted by that evaluator. The Perspective API comparison broadens the evidence to another automated judgment on WikiToxic. Neither evaluation covers the full range of ways a system can be unsafe during ordinary use. The experiment focuses on avoiding toxic replies to the kinds of prompts represented by its data.

Coherence is likewise assessed in a specific way. The DECODE classifier considers the response in light of a conversation history, and its decision determines the reported fraction. An evasive reply may make fewer commitments and consequently give the classifier less evidence of contradiction. A direct and accurate answer can pass the same check. The setup supports a claim about the frequency of classifier-detected contradictions, with conversational usefulness requiring additional evidence.

F1 has an analogous dependence on its chosen reference. A dialogue can admit multiple replies that a human would accept. A score based on overlap with a given reference can favor a response that uses similar words and undercount a good reply that takes a different approach. FITS F1 is especially useful for seeing differences across the same splits under a shared protocol. It leaves open how people would judge the trained systems in an extended exchange. The appendix’s perplexity results add a probability-based view of reference fit and still use the supplied replies as the target.

There is also an information gap between the labels and the updates. Negative feedback on a complete sequence can be caused by a single phrase or by a coherence problem that becomes apparent only when several phrases are read together. CRINGE contrasts the observed token at each position because it has no location for the error. That choice makes the method applicable to binary feedback. It can also place negative pressure on parts of a reply the annotator would have kept. A study with localized feedback or edited alternatives would be able to examine that effect more directly.

The sampled alternative is local to the original prefix, and the positions are processed under the recorded wording. During actual generation, choosing an alternative token creates a new prefix and changes what follows. The contrastive calculation does not judge that new trajectory during the token update. The iterative procedure eventually collects complete replies from the updated generator and can supply feedback about those trajectories. Its success still depends on how representative those replies are and how accurately the labeling function evaluates them.

Finally, the architecture and training data place bounds on transfer claims. BB1 and BB2 are both dialogue systems, and all the evaluations in the paper involve dialogue generation. The unchanged decoding interface makes the loss easy to describe for other autoregressive generators, since it needs next-token scores and sequence labels. The paper establishes empirical gains in the conversational settings it tests. Different tasks may have different relationships between a bad full response, the token positions that caused the failure, and the alternatives a generator can propose.

### What came after

The later papers cite CRINGE from several parts of the alignment and controlled-generation literature. Their titles identify the questions they take up, while the fact of citation establishes the connection. The precise role of CRINGE in an individual experiment, such as whether its loss was implemented or used as a baseline, remains unspecified. The relationships below therefore concern the topics each work addresses and the distinctions those topics draw out in CRINGE.

[Click: Controllable Text Generation with Sequence Likelihood Contrastive Learning](https://md.research.elamur.ai/free/en/papers/zheng-2023-click-controllable-text-generation-sequence/) brings the contrastive idea into the study of sequence likelihood for controlled generation. The level named in the title is particularly relevant to CRINGE. CRINGE receives sequence labels but constructs its contrast from two logits at a token position. Sequence likelihood instead names the probability of a complete continuation as the quantity of interest. This is a close thematic connection and identifies a concrete question for comparing the papers: what object is assigned the relative training score?

[Iterative Reasoning Preference Optimization](https://md.research.elamur.ai/free/en/papers/pang-2024-iterative-reasoning-preference-optimization/) places repeated optimization in the context of preferences about reasoning. In CRINGE, iteration means revisiting the original training prompts, labeling the resulting continuations, and learning again from the expanded set. Its central experiments ask whether that process yields safer, more coherent, or more reference-like replies. The later work’s stated focus is how iterative preference optimization applies to reasoning. The citation links the two works through repeated training on judgments about generated outputs, with different target behaviors.

[Large Language Model Alignment: A Survey](https://md.research.elamur.ai/free/en/papers/shen-2023-large-language-model-alignment-survey/) cites CRINGE in a broader treatment of alignment. The paper is an example of using explicit undesirable outputs during supervised training. Its distinction between binary acceptability judgments and ranked preferences matters in that broader setting. A binary judgment can identify a rejected response even when a preferred response was never collected. A preference comparison can supply a relative ordering even when both responses have faults. CRINGE shows one way to turn the former information into a trainable comparison.

[On Prompt-Driven Safeguarding for Large Language Models](https://md.research.elamur.ai/free/en/papers/zheng-2024-prompt-driven-safeguarding-large-language/) addresses safeguarding through prompts. CRINGE’s safety experiment instead locates the main intervention in the generator’s training objective. The two topics meet in a practical question about how a system responds to problematic inputs. In CRINGE, the toxic prompt supplies the context for an unwanted reply and for candidates considered during training. Prompt-driven safeguarding takes the prompt as the focus of the safeguard itself. The citation gives a connection across those different points of intervention.

[A Mechanistic Understanding of Alignment Algorithms: A Case Study on DPO and Toxicity](https://md.research.elamur.ai/free/en/papers/lee-2024-mechanistic-understanding-alignment-algorithms-case/) studies an alignment algorithm through a toxicity case. CRINGE’s toxicity experiment supplies a closely related behavioral question and uses classifier judgments to assess the outputs. Its formula also makes one aspect of the training mechanism explicit, because it shows which logits compete in the negative loss. The toxicity case study names a different algorithm, DPO, and makes mechanistic explanation its focus. Together the subjects distinguish evidence that output behavior changed from evidence about how training produced the change.

[Direct Nash Optimization](https://md.research.elamur.ai/free/en/papers/rosset-2024-direct-nash-optimization-teaching-language/) connects self-improvement with general preferences. CRINGE uses a restricted form of feedback in its iterative loop. The generator supplies new material, and a labeling function returns a positive or negative judgment. Self-improvement in this setup depends on both the responses the generator produces and the standard used to classify them. The later paper situates its own self-improvement problem in general preferences, making the form of the feedback a point of comparison.

[Anchored Preference Optimization and Contrastive Revisions](https://md.research.elamur.ai/free/en/papers/oosterlinck-2025-anchored-preference-optimization-contrastive-revisions/) addresses underspecification in alignment. In CRINGE, underspecification appears in the gap between the judgment that a reply should be avoided and the absence of a supplied replacement. The method bridges that gap provisionally by drawing a plausible token from the generator’s own predictions. The later work names contrastive revisions as part of its approach to underspecification. Revisions are a relevant point of comparison because a revised response can express a direction for improvement at the response level, the level at which CRINGE initially receives its labels.

## Cite

Cite as Leonard Adolphs, Tianyu Gao, Jing Xu, Kurt Shuster, Sainbayar Sukhbaatar and Jason Weston. 2023. The CRINGE Loss: Learning what language not to model. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2023.acl-long.493](https://doi.org/10.18653/v1/2023.acl-long.493)

```bibtex
@inproceedings{adolphs2023cringe,
  title = {{The CRINGE Loss: Learning what language not to model}},
  author = {Leonard Adolphs, Tianyu Gao, Jing Xu, Kurt Shuster, Sainbayar Sukhbaatar and Jason Weston},
  booktitle = {Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.493},
  url = {https://doi.org/10.18653/v1/2023.acl-long.493}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
