atlas

Research map / Large language models / Instruction and fine-tuning

IF-Guide: Influence Function-Guided Detoxification of LLMs

NeurIPS 2025 · Large language models › Instruction and fine-tuning · approach: Safety alignment after fine-tuning · 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 IF-Guide, which uses EK-FAC influence functions with differential, token-level attribution to find toxic training tokens and suppresses them via a penalty term during pre-training or fine-tuning, reducing toxicity without human preference data.

Problem

LLMs learn toxic behaviors from training data, and existing mitigations (filtering, DPO, RAD decoding) are reactive, coarse, or require human preference data; the paper asks how to identify toxic training content via influence and suppress its effect during training.

Approach

Adapts influence functions into a token-level, differential score (toxic minus non-toxic query gradients, computed with EK-FAC), selects toxic tokens with document ranking and a 2% budget, and trains with a penalized next-token loss that lowers the likelihood of selected tokens.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use IF-Guide instead of RADPythia-160M · RealToxicityPrompts FullEMT: 0.118 -> 0.101Helped
Use IF-Guide instead of RADPythia-1B · RealToxicityPrompts FullTP: 0.138 -> 0.065Helped
Combine IF-Guide with RADPythia-160M · RealToxicityPrompts FullEMT: 0.101 -> 0.031Helped
Add 1 neighboring context token per influential token (ablation)IF-Guide on Pythia-410M · RTPEMT: 0.44 -> 0.24Helped
Add 2 neighboring context tokens per influential token (ablation)IF-Guide on Pythia-410M · RTPEMT: 0.24 -> 0.48Hurt
Add suppression penalty with lambda=1 rather than lambda=0 (ablation)IF-Guide on Pythia-410M · RTPEMT: 0.30 -> 0.14Helped
Increase toxic-token limit from 5M to 20M (ablation)IF-Guide on Pythia-410M · RTPEMT: 0.32->0.11Helped
Increase toxic-token limit to 25M (ablation)IF-Guide on Pythia-410M · RTPPPL: 26.33Hurt
Set toxic-token threshold to percentile 99 rather than 95 (ablation)IF-Guide on Pythia-410M · RTPEMT: 0.22->0.14Helped
Raise toxic-token threshold from percentile 99 to 99.5 (ablation)IF-Guide on Pythia-410M · RTPEMT: 0.14->0.21Hurt
Use 10k rather than 1k toxic/non-toxic query examples (ablation)IF-Guide · RTPEMT: 1k queries: 0.24; minimal differences at 10k (< 0.02)Helped
Replace attribution-based selection with toxicity-classifier filtering (ablation)IF-Guide on Pythia-410M · RTPEMTHurt

Surprising findings

Limitations

Experimental setup

Datasets: OpenWebText RealToxicityPrompts LAMBADA AttaQ BOLD The Pile

Benchmarks: RealToxicityPrompts BOLD AttaQ LAMBADA OpenWebText perplexity

Metrics: expected maximum toxicity toxicity probability perplexity accuracy attack success rate

Baselines: Word Filtering Toxicity Filtering DPO RAD Naive influence + suppression

Builds on: influence functions (Koh and Liang) EK-FAC (Grosse et al.) DPO RAD Kronfluence

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