atlas

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

Residual Stream Analysis of Overfitting And Structural Disruptions

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.

The paper links repetitive safety fine-tuning data to false refusals, introduces FlowLens (a PCA over concatenated multi-layer residuals) to analyze residual geometry, and proposes Variance Concentration Loss (VCL), an auxiliary regularizer on mid-layer residual variance, which cuts XSTest false refusals by over 35 points.

Problem

Safety fine-tuning on repetitive refusal-templated data causes false refusals (benign queries declined), and the internal representational cause is not well understood.

Approach

Analyze residual-stream geometry by concatenating residuals across all layers and applying a single PCA (FlowLens), observe that safety data concentrates variance in top components, and add a loss that penalizes this variance concentration in mid-layer residuals during SFT.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add Variance Concentration LossLlama-3.2-1B-SFT · XSTestscore: 0.78 -> 0.86Helped
add Variance Concentration LossLlama-3.1-8B-SFT · XSTestscore: 0.80 -> 0.89Helped
add Variance Concentration LossLlama-3.2-1B-SFT · JBBscore: 0.91 -> 0.86Hurt
add Variance Concentration LossLlama-3.1-8B-SFT · JBBscore: 0.93 -> 0.89Hurt
add Variance Concentration LossLlama-3.2-1B-SFT · MMLUscore: 0.45 -> 0.42Hurt
add Variance Concentration LossLlama-3.1-8B-SFT · GSM8Kscore: 0.63 -> 0.58Hurt
increase safety data ratio from 0.0 to 0.4Llama-3.2-1B · XSTestFalse Refusal (%): 0.63 -> 0.84Hurt
increase safety data ratio from 0.0 to 0.4Llama-3.2-1B · XSTestScore: 1.0 -> 0.85Hurt
vary principal component cutoff k (ablation)VCL · XSTest and structural metricsfalse refusal rateNo clear effect
increase regularization weight γ too much at small k (ablation)VCL · general capability taskshelpfulnessHurt
set γ to 1.0×50 (ablation)VCL · safety and structural stabilityoverall performanceHelped
select residual window depth [0.3,0.5] (ablation)VCL · safety and structural stabilitytrade-offHelped

Surprising findings

Limitations

Experimental setup

Datasets: WildJailbreak WildGuardMix Tulu-3-SFT-Mixture TruthfulQA XSTest

Benchmarks: DAN HarmBench ToxiGen JBB OKTest ORB-H XSTest MMLU GSM8K BBH CodexEval

Metrics: accuracy false refusal rate lexical entropy distinct n-gram rate alignment score

Baselines: Llama-3.2-1B-SFT System Prompting DRO Self-CD Vector Ablation

Builds on: Tulu 3 SFT recipe TwoNN intrinsic dimension Self-Contrastive Decoding DRO

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