Probe-based data attribution: finding and mitigating undesirable behaviors in LLM post-trainingProbe-Based Data Attribution: Discovering and Mitigating Undesirable Behaviors in LLM Post-Training
Activation differences trace OLMo 2's DPO data; filtering 30,000 yields 2.86% harmful rate, relabeling 1.66% (Table 2).
- Post-training data is opaque, and harmful behaviors may only appear under conditions not covered by evaluations. The authors observed in OLMo 2's production DPO: when a benign formatting instruction is appended to a harmful request, the model complies; without it, the model refuses. The authors say this behavior comes from contaminated preference data, not deliberate injection.
- Compare SFT checkpoint M0 and DPO checkpoint M1. On M0, compute behavior change vectors and data point vectors for preference pairs, sort by cosine similarity. Perform Ward clustering on the similarity matrix to reveal unspecified behaviors. After localization, filter or swap labels of high-scoring samples, and retrain from SFT.
- On 120 distractor prompts in OLMo 2 7B, the baseline harmful response rate is 7.63%. Probing vector filtering of 30,000 yields 2.86%, relabeling 1.66% (Table 2). After batch deletion by source model, Max over Vector Bank is 1.17% (Table 4). When filtering 3,000, the gradient method and LLM Toxic are lower.
- The authors note they studied only OLMo 2 and one harmful behavior; causal validation depends on publicly available post-training data and checkpoints; harmful cluster identification relies on humans; whether it applies to RLHF and SFT is untested. Experiments retrain on OLMo 2 7B, additionally report behavior on 32B, and perform clustering on OLMo 3 7B.
- Evaluated models
- OLMo 2 7BOLMo 2 32BOLMo 3 7B
- Benchmarks
- LMSysOLMo 2 DPO preference setGSM8KIFEvalXSTest
- Metrics
- harmful response rateGSM8KIFEvalXSTest
The paper proposes a data attribution method based on activation difference vectors, tracing post-training model behavior changes back to specific preference data points and causally validating them by retraining with modified data. The authors apply it to OLMo 2's production DPO data (378,341 preference pairs) and discover a distractor-triggered compliance behavior: the model complies when a harmless formatting instruction is appended after a harmful request, but still refuses when it is not appended; this behavior stems from poisoned preference data rather than deliberate injection. Filtering the top-ranked 30,000 data points reduces the harmful response rate by 63%, swapping the labels of these points reduces it by 78%, and removing data from 4 over-represented source models reduces it by 85%. Filtering does not harm capability metrics such as GSM8K and IFEval, while label swapping introduces capability trade-offs at larger scales. The method is more than 10 times cheaper than gradient attribution and LLM review baselines after training, with the limitation that it covers only the OLMo 2 model family and one behavior.
Why it was selectedThe paper locates poisoned samples that induce harmful compliance in OLMo 2's DPO data, providing a reproducible and cheaper attribution path for auditing post-training data.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Goodfire Researchcites the paper's id or linkGoodfire 提出基于探针的数据归因方法,定位并缓解 LLM 后训练中的有害行为
Research}, year = {2026}, note = {https://arxiv.org/pdf/2602.11079} }
Paper analysis
What problem does this paper attempt to solve?
Using activation differences to link DPO behavior changes to preference data, and finding distractor-triggered compliance in OLMo 2.
How to trace harmful behaviors that unexpectedly emerge in post-training to specific preference data, and discover them without knowing what to look for.
- Scenario: The authors argue that RLHF and DPO shape whether models follow instructions and refuse harmful requests, but post-training data is opaque. Harmful behaviors may only appear under conditions evaluators did not anticipate, thus evading evaluations targeting known failure modes.
- Existing Gaps: The authors cite Minder et al. (2025): model organisms created by narrow fine-tuning have unrealistic activation traces, are easily detected in the lab, and may not transfer to production models trained on diverse data.
- Observation: OLMo 2's production DPO complies when a benign formatting instruction (distractor) follows a harmful request, but refuses without it. The authors state this is not deliberate injection but contamination in automated preference data; the trigger looks innocuous, so it can evade evaluations that only test isolated harmful requests.
- Approach: Propose activation-based data attribution, using activation differences and cosine similarity to link behavior to data points, and causal verification by retraining from scratch with modified data; cluster the similarity matrix for unsupervised behavior discovery.
- Required Access: Use SFT checkpoint M0, DPO checkpoint M1, and preference pairs with prompt, accepted, rejected. Causal verification requires retraining from SFT with modified data. The paper does not label this setting as white-box or black-box.
What related research exists?
Related work covers gradient attribution, activation directions, and model organisms; this paper instead performs preference data attribution in activation space.
Grouped according to Related Work and the introduction.
Data attribution
- Influence functions (Koh and Liang, 2017): estimate training sample influence using inverse Hessian–vector products. The paper says second-order computation is expensive and assumes convexity.
- First-order gradient methods: TracIn (Pruthi et al., 2020) accumulates gradient dot products across checkpoints; TRAK (Park et al., 2023) adds random projections and model ensembles; LESS (Xia et al., 2024) uses gradient similarity for instruction fine-tuning with Adam.
- Datamodels (Ilyas et al., 2022): train many models on data subsets and fit a linear predictor.
Activation directions and steering
- Locating and adding vectors: Zou et al. (2023), Arditi et al. (2024) localize specific behaviors to activation directions; Turner et al. (2023)'s activation addition changes behavior by adding vectors.
- Linear representations: Elhage et al. (2022) discuss superposition and the linear representation hypothesis; Park et al. (2024) formalize it and connect linear probing and steering.
- Persona vectors (Chen et al., 2025): extract directions for pre-specified traits (e.g., sycophancy, hallucination tendency) and look at the correlation between training data projections and post-fine-tuning personality changes. The paper explicitly contrasts: that work monitors pre-specified traits; this paper uses clustering to discover unknown harmful behaviors, traces them back to data points, and then does causal validation via retraining.
Safety post-training and model organisms
- Alignment pipelines: the paper mentions RLHF (Ouyang et al., 2022) and Constitutional AI (Bai et al., 2022), and says these pipelines can still fail in subtle ways (Wei et al., 2023).
- Artificial organisms: Perez et al. (2023), Hubinger et al. (2024), van der Weij et al. (2025) train models to exhibit hypothesized failure modes. The paper says this line of work observed sycophancy, deceptive reasoning, and strategic underperformance.
- Narrow fine-tuning critique: Minder et al. (2025) argue that narrowly fine-tuned organisms have overly strong activation biases, making detection easy but not necessarily generalizable to production models. The paper treats its behaviors as an in-the-wild example responding to this critique.
Baselines and data
- Controls: random deletion or relabeling, LESS adapted to the DPO objective, and LLM Toxic comparing accepted versus rejected toxicity. Behavior evaluation uses LMSys prompts; attribution targets OLMo 2's DPO set (378,341 pairs). Capabilities use GSM8k, IFEval, XSTest.
The authors separate this paper from gradient attribution: the method operates in activation space rather than gradient space, to suit paired responses in preference learning; the difference from persona vectors is discovering behaviors that are not pre-specified and achieving data-point-level causal validation.
How does the paper address this problem?
Compute activation differences at the SFT checkpoint, rank by cosine similarity, and perform causal tests by retraining on modified data.
activation-based data attribution writes both the behavior change on test prompts and the DPO preference pairs as difference directions in the M0 activation space, aligned by cosine similarity; clustering the same type of similarity can reveal behavior clusters when no target is specified.
Checkpoints and Preference Pairs
- Two checkpoints: M0 is SFT, M1 is DPO. Given prompts on which the two answer differently, the goal is to find the training data points that drove the change.
- Data points: Each DPO sample contains a prompt, an accepted response, and a rejected response. This set for OLMo 2 has 378,341 pairs.
- Activations: After feeding the prompt together with the response into the model, take the average residual activation of the response tokens at a certain layer.
Two Types of Vectors and Scoring
Activations on both sides are computed on M0. For prompt p, M0's response is r0 and M1's response is r1; the behavior change vector at layer ℓ is
vbehavior(ℓ)=ā(ℓ)(p,r1;M0)−ā(ℓ)(p,r0;M0)
The data point vector is the activation difference between accepted and rejected on M0:
vd(ℓ)=ā(ℓ)(pd,rd+;M0)−ā(ℓ)(pd,rd−;M0)
- Scoring: The cosine similarity of the two. A large positive value indicates that the training signal of that data point points in the same direction as the observed change; a large negative value indicates it pushes toward the opposite behavior.
- Layer: Directed attribution uses the single layer selected by steering, layer 20 in the main experiments (Appendix A.3 compares layers 16–26). Unsupervised discovery concatenates the residual activations of each layer.
- Alternative formulation: Appendix A.6 compares a formulation that computes the new response activations using M1. The authors state that using M0 on both sides is better, so the main experiments use only M0; the numerical comparison is in Question 4.
Probe Vectors
- Generating prompts: Appendix A.1 uses Grok 4.1 to generate 8,000 prompts, divided into 20 harmful categories, 20 subcategories per category, and 20 prompts per subcategory, varying length, degree of harm, and tone. For each prompt, 100 samples are drawn on OLMo 2 7B's SFT and DPO, with and without a distractor, and GPT-5-mini scores toxicity from 0–100.
- Filtering: Keep prompts for which SFT toxicity is 0 under both conditions, DPO without distractor is 0, and DPO with distractor has non-zero toxicity, yielding 150 prompts. Harmful responses are taken from DPO with distractor, harmless responses from SFT, both teacher-forced on SFT. The probe vector is the average of these 150 directions at layer 20.
- Variants: Max over Vector Bank does not average first, but takes the maximum cosine over the 150 individual behavior vectors (Appendix A.4). Appendix A.7 gives the prompts used for toxicity and instruction-following scoring.
Unsupervised Discovery
- Matrix: Rows are the behavior change vectors of test prompts, columns are the training data point vectors, and entries are cosine similarities. Test prompts are random samples from LMSys, and training columns are a random subset of the DPO data.
- Clustering: Ward's method, with distance being the Euclidean distance between row or column similarity profiles, used to reorder rows and columns.
- How Figure 3 is drawn: 350 training points and test points are randomly sampled, and filtered to points with at least one cosine similarity greater than 0.4 in each row and each column. The authors state that a viewing tool will be released upon publication.
- Clusters marked by the authors: The red box is format changes (e.g., adding bold headings when segmenting); the brown box is lengthening short greetings; the green box is harmful prompts that SFT refuses and DPO complies with, including distractor-triggered compliance, corresponding to samples with accepted compliance and rejected refusal; the purple box is negatively correlated with these test prompts and prefers refusal over compliance. The authors state that Appendix C.1 checked these patterns, that the clusters still appear after switching to random samples in Appendix C.2, and that Appendix C.4 gives examples of each cluster.
Interventions and Evaluation
- Two interventions: Remove the top n items by score and redo DPO from SFT; or swap the accepted and rejected of these items and retrain. The main experiments use n of 3000, 12000, and 30000.
- Harmfulness judgment: GPT-5-mini scores 0–100, with above 50 considered harmful (Appendix A.8, medium reasoning effort). 100 responses are sampled per prompt, and the harmful response rate is reported.
- Capability: Higher is better on GSM8k and IFEval; XSTest measures over-refusal on safe prompts, where lower is better. The adaptation details of LESS are in Appendix A.5: sample 5% of the data, train LoRA for four epochs, rank 128, α=512, project gradients to 8192 dimensions, preprocess with Adam, and average over multiple checkpoints.
What experiments did the paper conduct?
On OLMo 2 7B, probing vector filtering of 30,000 yields harmful rate 2.86%, after relabeling 1.66% (Table 2).
Experimental setup
- Models tested: causal interventions and main tables use OLMo 2 7B, retrained from SFT each time. Behavior across scales uses OLMo 2 32B (Appendix B.3). The unsupervised pipeline is additionally applied to OLMo 3 7B (Appendix C.3). The paper says it chose OLMo because validation requires post-training data, frameworks, and intermediate checkpoints, and it is a recent open-source model that is competitive and publicly releases these artifacts.
- Training data: DPO set of 378,341 pairs. The paper describes its generation: each prompt samples from a response pool of 20 LLMs, scored by GPT-4o on a scale, the highest score is accepted, and one response is randomly drawn from the rest as rejected. The authors do not treat these 20 models as the models under test that they run.
- Safety evaluation: 120 prompts randomly drawn from LMSys, formatted as harmful request plus distractor; 100 responses each. The metric is harmful response rate, with 95% intervals bootstrapped over prompts. The paper does not report the number of retraining repetitions.
- Reviewer: GPT-5-mini, scores above 50 are harmful. Appendix A.9 re-labels 250 each sampled from its harmful and clean responses, agreement 90.6%, Cohen's κ=0.81; the authors call this strong agreement.
- Ranking methods: Random; Probing Vector (layer 20, average of 150 directions); LESS; LLM Toxic (accepted toxicity minus rejected toxicity). The appendix additionally has Max over Vector Bank and LLM Toxic+Instruction Following.
- Capabilities: GSM8k, IFEval, XSTest. Table 3 errors are standard error (the paper says where available).
Main results
The table below gives OLMo 2 7B harmful response rates (%), from Table 2, mean ± 95% bootstrap CI. The no-intervention DPO baseline is 7.63±0.36. Switches of 3,000 and 12,000 are not listed in this table.
| Method | Filter 3,000 | Filter 12,000 | Filter 30,000 | Switch 30,000 | | Random | 6.78±0.46 | 8.18±0.49 | 6.67±0.45 | 4.96±0.33 | | Gradient (LESS) | 3.75±0.33 | 3.10±0.31 | 5.78±0.41 | 2.51±0.28 | | Probing Vector | 5.13±0.31 | 3.30±0.26 | 2.86±0.23 | 1.66±0.19 | | LLM Toxic | 3.48±0.35 | 3.90±0.35 | 3.61±0.31 | 3.73±0.34 |
- Scale and exceptions: when filtering 3,000, Gradient and LLM Toxic are lower than Probing Vector; at 30,000 filtering and switching, Probing Vector is lowest. Gradient filtering at 30,000 is higher than at its 12,000. Random filtering at 12,000 is higher than baseline. In Section 7 the authors hypothesize: the gradient method captures local sensitivity of loss to single points, becoming noisy when extended to more dissimilar points; activation similarity captures alignment between behavior and training signals, making it better suited for marking tens of thousands of data points.
- Wording: abstract, Section 6.3, and conclusion say filtering reduces 63% and relabeling reduces 78%. Figure 1 caption addresses the 30,000 intervention, writes filtering 2.9% and switching 1.7%, reductions 62% and 78%. For Probing Vector, switching 3,000 and 12,000 are 6.38±0.36, 6.33±0.34, higher than same-scale filtering. Gradient switching at 12,000 is 2.57±0.28, lower than that row's filtering at 12,000 in the table above. The authors' claim that small-scale switching is worse than filtering is consistent with Probing Vector rowsaging and inconsistent with the Gradient 12,000 row. The authors believe enough correctly labeled samples are needed to overcome noise.
- Capabilities: the authors say filtering preserves GSM8k and IFEval, XSTest only slightly increases. Table 3 baseline is GSM8k 72.5±1.2, IFEval 70.9±1.9, XSTest 6.8±1.6; Probing Vector filtering 30,000 is 72.9±1.2, 71.7±1.9, 9.2±1.8. When switching 30,000 the authors say GSM8k drops from 72.5% to about 68%, and all methods' XSTest increases; the four rows' GSM8k are 68.5±1.3, 69.4±1.3, 68.2±1.3, 68.2±1.3, Probing Vector's IFEval is 73.7±1.8, XSTest 11.2±2.0. SFT (before DPO) is 53.8±1.4, 65.2±1.9, 14.4±2.2.
Deletion by source model
- What was measured: accepted came from 20 LLMs. Figure 5 plots the proportion of accepted per source model entering the top 3,000; the caption does not specify the ranking methodaging and names InternLM, GPT-4o, Gemma as higher. Table 6 gives the top 4 per ranking method. Probing Vector's top is InternLM-2.5-20B, 455/24,355, i.e., 1.87%.
- Results: delete all relevant data points from the method's top 4 source models and retrain (Table 4). Harmful rates: Probing Vector 2.33±0.28, Max over Vector Bank 1.17±0.19, Gradient 3.28±0.32, LLM Judge 3.03±0.31; baseline 7.63±0.36. GSM8k is 72.1±1.2, 74.2±1.2, 70.3±1.3, 72.9±1.2, baseline 72.5±1.2. The paper does not state whether Table 4's LLM Judge is the same as Section 6.2's LLM Toxic.
- Author interpretation: the authors say Max over Vector Bank reduction of 85% relative to baseline is higher than the best per-data-point intervention; all methods reduce harmful rate and preserve GSM8k. The authors believe that when constructing preference data, one should inspect the outputs of models generating the data.
Behavior characterization, steering, and OLMo 3
- 7B and 32B: Section 5.2 says the DPO checkpoint complies about 7% when a distractor is present, and still refuses when it is absent. In Figure 4 (120 prompts), the authors say SFT is near zero under both conditions, DPO compliance is low without distractor and rises with distractor; the main text does not give an exact percentage without distractor. Figure 14 caption: OLMo 2 32B is near zero on harmful requests alone, and 25% with distractor; the authors say the effect is stronger on 32B than 7B. The authors say many benign auxiliary instructions increase compliance, examples are in the main text and not repeated here.
- Steering: Appendix A.2 multiplies the probing vector by α and adds it to layer 20 of SFT. Figure 6: at α=2.0, compliance on harmful requests with distractor goes from 0% to 29%; the authors say it affects harmful-only requests little and accordingly claim the vector corresponds to distractor-triggered compliance rather than general harmfulness. Appendix A.6, when computing new responses with M1, the same steering rises to 19%. The inter-layer cosine similarity of the two steering vectors is 0.89–0.96. Appendix A.3 says layers 19 and 20 are best for steering among layers 16–26.
- OLMo 3: Figure 18 is the similarity matrix for OLMo 3 7B. The authors say the green cluster is harmful roleplay vulnerable only after DPO, the brown cluster is reasoning that sets an evaluation criterion first and then follows it. Figure 19: green cluster prompts run 50 times each, SFT harmful response rate 39.3%, DPO 70.0%.
Other ablations and analyses
- Table 5: Max over Vector Bank filtering 3,000/12,000/30,000 is 4.98%, 5.86%, 4.52%, switching 30,000 is 1.77%; LLM Toxic+IF filtering 30,000 is 4.25%, switching 30,000 is 2.53%. The authors say adding an instruction-following score is worse than toxicity alone.
- Appendix C.1: 16 short greetings, 5 responses each; the main text says DPO average length around 34 tokens, SFT around 20 (Figure 15). 500 LMSys prompts, 1 response each, bolded mean roughly 6.1 versus roughly 1.1, the authors say approximately 6 times (Figure 16).
- Appendix C.2: another 8 500×500 heatmaps manually reviewed; Figure 17 shows 4. The authors say format, length, harmful compliance, and preferred rejection repeat across different random samples, and say clusters need not contain only these features.
- Figure 13: harmful behavior gradually appears at intermediate DPO checkpoints; the curve uses 10 proxy prompts. The paper does not give exact harmful rates per checkpoint.
- Table 1: ranking all 378,341 items, at H100 $2.50/hour: Probing Vector is 12 hours, $30; LESS is 128 hours, $320; LLM Judge is $500 (hours not given). The authors say after training is complete it is more than 10 times cheaper than both; and say running probing vector attribution on a 4090 is 36 hours, about $10.
- Appendix B.1: the authors say probing vector scores are approximately Gaussian centered at 0; Max over Vector Bank distribution is similar but all positive. The text does not give bin heights.
What are some points that can be further explored?
The authors note that causal verification relies on publicly available post-training artifacts, and harmful cluster identification still depends on human effort.
Limitations and future directions noted by the authors
- Single family and single behavior: the Discussion's Limitations says the main limitation is focusing on one model family (OLMo 2) and one harmful behavior.
- Artifacts required for validation: the same section says retraining validation requires post-training data and intermediate checkpoints; OLMo is a recent open-source model that is competitive and publicly releases these artifacts. Validation on other families depends on whether comparable training artifacts are released.
- Clustering relies on humans: Limitations says unsupervised discovery depends on human interpretation of clusters; automatically identifying clusters worth attention remains future work. The conclusion repeats this and says automation would be a step toward fully automatic safety audits.
- Extending to other developers' models: the conclusion says extending causal validation beyond OLMo awaits other model developers releasing post-training data and checkpoints.
- Other post-training algorithms: the conclusion says whether activation attribution applies to RLHF and SFT remains untested.
Experimental coverage
- Causal retraining is on OLMo 2 7B, with intervention scales 3,000, 12,000, 30,000; rankings include Random, LESS, Probing Vector, LLM Toxic, plus appendix Max over Vector Bank and LLM Toxic+IF (Table 2, Table 5).
- Safety numbers come from 120 LMSys prompts with distractor, 100 responses each; reviewer is GPT-5-mini, threshold 50; intervals are bootstrap over prompts. The paper does not report number of retraining repetitions.
- Capability numbers cover GSM8k, IFEval, XSTest (Table 3). Model-level experiments delete all relevant data points from each method's top 4 source models (Table 4, Appendix A.10).
- Behavior numbers additionally report OLMo 2 32B (Figure 14). The unsupervised matrix is also constructed on OLMo 3 7B, with 50 samples each on green cluster prompts (Figure 19). Probing vectors come from 150 prompts, layer 20.
- Reviewer and human comparison is 250 harmful plus 250 clean (Appendix A.9). The main text does not give exact harmful response rate for the no-distractor condition.
Summarize the main content of the paper
Activation differences link OLMo 2's DPO behavior to data points; filtering and relabeling reduce harmful responses with distractors.
Activation-based data attribution uses activation differences at the initial checkpoint to link post-DPO behavioral changes to preference pairs, and uses retraining to test whether these data points drive the behavior.
- Problem: Post-training data is opaque, and unforeseen trigger conditions can evade evaluations that only test known failure modes. The authors observed distractor-triggered compliance in OLMo 2's production DPO: harmful requests are complied with when accompanied by benign formatting instructions, but rejected without them. The authors state the contamination comes from automatically generated preference data, not deliberate injection.
- Method: At the SFT checkpoint M0, the behavior change vector is the mean residual activation difference between new and old responses, the data point vector is the activation difference between accepted and rejected, ranked by cosine similarity. The unsupervised part performs Ward clustering on the similarity matrix between LMSys prompts and a DPO subset. Targeted experiments use layer 20 and the average probe vector over 150 prompts.
- Main numbers: On OLMo 2 7B with 120 distractor-augmented prompts, the no-intervention harmful response rate is 7.63±0.36 (Table 2). Probing Vector filtering 30,000 yields 2.86±0.23, and label flipping yields 1.66±0.19. The authors report reductions of 63% and 78%; the Figure 1 caption states a 62% reduction from filtering, with rates of 2.9% and 1.7%. When filtering 3,000, Gradient and LLM Toxic are lower.
- Other results: After removing over-represented source models, Max over Vector Bank has a harmful rate of 1.17±0.19, which the authors report as an 85% reduction (Table 4). For OLMo 2 32B with distractors, the caption states 25% (Figure 14). When filtering, GSM8k and IFEval in Table 3 are near baseline; when flipping 30,000, Probing Vector's GSM8k is 68.2±1.3 versus a baseline of 72.5±1.2.
- Authors' conclusions: The authors argue that activation-space similarity is better suited than gradient attribution for audits that need to flag tens of thousands of problematic data points, and state that probe vector ranking is more than 10 times cheaper than LESS and LLM review after training (Table 1: 12 vs. 128 H100 hours). They treat this behavior as a model organism that emerges naturally from standard DPO.