atlas

Research map / Large language models / Reasoning and chain of thought

Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing

NeurIPS 2025 · Large language models › Reasoning and chain of thought · approach: Routing, pruning and distillation for reasoning · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes ArgRE, a test-time detoxification method that interpolates toxic/non-toxic hidden states along a PCA non-toxic direction to create dense transition data, trains a token-level autoregressive reward MLP, and edits representations with directional steering plus a few gradient steps.

Problem

LLMs generate toxic content; existing test-time representation editing methods rely on sparse toxicity annotations and make imprecise interventions because they poorly explore transitions between toxic and non-toxic outputs.

Approach

Model toxicity transitions by linearly interpolating final-layer hidden states between non-toxic and toxic responses along a PCA-derived non-toxic direction, turning sparse pairs into dense supervision for a token-level autoregressive reward model, which then drives an adaptive two-step representation edit (directional steering by expected reward gap, then a few gradient-ascent steps).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use ArgRE instead of GenARMLLaMA-7B · RealToxicityPrompts challengeToxic: 23.86 (0.84) -> 18.06 (0.68)Helped
Add iterative gradient refinement to the directional steering step (ablation)ArgRE on LLaMA-7B · RealToxicityPrompts challengeToxic: 19.49 (0.59) -> 18.06 (0.68)Helped
Add iterative gradient refinement to the directional steering step (ablation)ArgRE on LLaMA-30B · 128 generated tokens per promptinference time (s): 8.20 -> 9.30Hurt
Use ArgRE instead of GenARMLLaMA-30B · 128 generated tokens per promptinference time (s): 18.94 -> 9.30Helped
Use ArgRE instead of GenARMMistral 7B · Stereotype Recognitionaccuracy: 53.5 -> 54.7Helped
Use ArgRE instead of GenARMMistral 7B · JailbreakTriggerRtA rate: 68.4 -> 73.0Helped
Increase the number of toxicity transition trajectories from 0 to 7 (ablation)ArgRE on LLaMA-7B · RealToxicityPrompts challengeToxic: reduces Toxic by 8.58%Helped
Increase the number of toxicity transition trajectories from 7 to 15 (ablation)ArgRE on LLaMA-7B · RealToxicityPrompts challengeToxic: marginal gain of 0.24%Helped
Use one interpolated toxicity transition instead of no transitions (ablation)ArgRE on LLaMA-7B · RealToxicityPrompts challengeToxic: 2.8% lower toxicity score than GenARM at N_in = 0Helped
Increase gradient-refinement step size from η=0 to η=1.0 (ablation)ArgRE on LLaMA-7B · RealToxicityPrompts challengeToxic: 19.49 -> 17.58Helped
Increase gradient-refinement step size from η=0 to η=1.0 (ablation)ArgRE on LLaMA-7B · RealToxicityPrompts challengePPL_g: 11.60 -> 12.66Hurt
Use ArgRE with 100 toxicity annotations instead of 2000 (ablation)ArgRE on LLaMA-7B · RealToxicityPrompts challengeToxic: 43.27% to 22.19%Helped

Surprising findings

Limitations

Experimental setup

Datasets: pairwise toxic dataset (Wikitext-2 non-toxic, PPLM toxic) WikiText-2 RealToxicityPrompts TrustLLM stereotype and jailbreak data

Benchmarks: RealToxicityPrompts WikiText-2 BoolQ RTE HellaSwag WinoGrande ARC OpenbookQA TrustLLM stereotype recognition JailbreakTrigger

Metrics: Detoxify toxicity score perplexity zero-shot accuracy refuse-to-answer rate inference time

Baselines: ProFS Re-Control GenARM DPO Self-Detoxify DeStein

Builds on: ProFS Re-Control GenARM DPO linear representation hypothesis

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy