Shaping capabilities with token-level data filtering
Not on the map. Why?
Abstract (arXiv)
Current approaches to reducing undesired capabilities in language models are largely post hoc, and can thus be easily bypassed by adversaries. A natural alternative is to shape capabilities during pretraining itself. On the proxy task of removing medical capabilities, we show that the simple intervention of filtering pretraining data is highly effective, robust, and inexpensive at scale. Inspired by work on data attribution, we show that filtering tokens is more effective than filtering documents, achieving the same hit to undesired capabilities at a lower cost to benign ones. Training models spanning two orders of magnitude, we then demonstrate that filtering gets more effective with scale: for our largest models, token filtering leads to a 7000x compute slowdown on the forget domain. We also show that models trained with token filtering can still be aligned on the forget domain. Along the way, we introduce a methodology for labeling tokens with sparse autoencoders and distilling cheap, high-quality classifiers. We also demonstrate that filtering can be robust to noisy labels with sufficient pretraining compute.
Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 136 of its 183 references that are in the map. First posted on arXiv 29 Jan 2026.
Builds on
136 of 183 references.
References · 136
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,780
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
38 more
- 2022Training Compute-Optimal Large Language Modelscited by 3,019
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2022Emergent Abilities of Large Language Modelscited by 2,512
- 2018Deep contextualized word representationscited by 2,290
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,998
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2022Large Language Models Encode Clinical Knowledgecited by 1,830
- 2017Understanding Black-box Predictions via Influence Functionscited by 1,741
- 2023Jailbroken: How Does LLM Safety Training Fail?cited by 1,651
- 2019Root Mean Square Layer Normalizationcited by 1,480
- 2023Sparse Autoencoders Find Highly Interpretable Features in Language Modelscited by 1,420
- 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,414
- 2020What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Examscited by 1,356
- 2020RealToxicityPrompts: Evaluating Neural Toxic Degeneration in Language Modelscited by 1,255
- 2021DeBERTaV3: Improving DeBERTa using ELECTRA-Style Pre-Training with Gradient-Disentangled Embedding Sharingcited by 1,254
- 2023PaLM 2 Technical Reportcited by 1,162
- 2024The FineWeb Datasets: Decanting the Web for the Finest Text Data at Scalecited by 1,160
- 2023Fine-tuning Aligned Language Models Compromises Safety, Even When Users Do Not Intend To!cited by 1,154
- 2019Machine Unlearningcited by 1,061
- 2024Tulu 3: Pushing Frontiers in Open Language Model Post-Trainingcited by 1,053
- 2025Does Reinforcement Learning Really Incentivize Reasoning Capacity in LLMs Beyond the Base Model?cited by 982
- 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
- 2022Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distributioncited by 739
- 2023The Flan Collection: Designing Data and Methods for Effective Instruction Tuningcited by 739
- 2022Grokking: Generalization Beyond Overfitting on Small Algorithmic Datasetscited by 629
- 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
- 2024TOFU: A Task of Fictitious Unlearning for LLMscited by 533
- 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearningcited by 509
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 492
- 2024Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attackscited by 486
- 2023Weak-to-Strong Generalization: Eliciting Strong Capabilities With Weak Supervisioncited by 467
- 2018Invariant Information Clustering for Unsupervised Image Classification and Segmentationcited by 455
- 2023Scaling Data-Constrained Language Modelscited by 403
- 2024Gemma Scope: Open Sparse Autoencoders Everywhere All At Once on Gemma 2cited by 394
- 2025Monitoring Reasoning Models for Misbehavior and the Risks of Promoting Obfuscationcited by 384
- 2022Last Layer Re-Training is Sufficient for Robustness to Spurious Correlationscited by 381
50 most cited of 136 All 136 (JSON)
Built on by
Citing papers per year: 2026: 13.
13 papers.
Sort:
By area:
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Factscited by 3
- 2026Bergson: An Open Source Library for Data Attributioncited by 3
- 2026Guiding LLM Post-training Data Engineering with Model Internals from Sparse Autoencoderscited by 2
- 2026Anatomy of Post-Training: Using Interpretability to Characterize Data and Shape the Learning Signalcited by 2
- 2026Mark, Don't Erase: Token Inoculation for Dual-Use Knowledge in LLMscited by 2
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modelingcited by 2
- 2026Introspective X Training: Feedback Conditioning Improves Scaling Across all LLM Training Stagescited by 1
- 2026Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflectioncited by 1
- 2026Synthetic Persona Pretraining: Alignment from Token Zerocited by 1
- 2026The Unequal Influence of Bad Advice: Using Training Data Attribution to Modulate Emergent Misalignmentcited by 1
- 2026Epistemic Injustice in Language Models: An Audit of Pretraining Filters and Guardrailscited by 0
- 2026Can Data Attribution Filter Out Subliminal Learning? Not Reliablycited by 0
1 more
- 2026Decoupling Token Roles in Autoregressive Pretrainingcited by 0
- 2026The Unequal Influence of Bad Advice: Using Training Data Attribution to Modulate Emergent Misalignment29 Sep 2026
- 2026Decoupling Token Roles in Autoregressive Pretraining27 Sep 2026
- 2026Can Data Attribution Filter Out Subliminal Learning? Not Reliably17 Sep 2026
- 2026Synthetic Persona Pretraining: Alignment from Token Zero13 Aug 2026
- 2026OctoLong: Mid-Training On Cross-Repository Code Contexts Enhances Long-Context Modeling5 Aug 2026
- 2026Mark, Don't Erase: Token Inoculation for Dual-Use Knowledge in LLMs21 Jul 2026
- 2026Beyond Safe Data: Pretraining-Stage Alignment with Regular Safety Reflection17 Jun 2026
- 2026Anatomy of Post-Training: Using Interpretability to Characterize Data and Shape the Learning Signal10 Jun 2026
- 2026Bergson: An Open Source Library for Data Attribution10 Jun 2026
- 2026Epistemic Injustice in Language Models: An Audit of Pretraining Filters and Guardrails4 Jun 2026
- 2026Guiding LLM Post-training Data Engineering with Model Internals from Sparse Autoencoders26 May 2026
- 2026Introspective X Training: Feedback Conditioning Improves Scaling Across all LLM Training Stages19 May 2026
1 more
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Factscited by 3
- 2026Bergson: An Open Source Library for Data Attributioncited by 3
- 2026Anatomy of Post-Training: Using Interpretability to Characterize Data and Shape the Learning Signalcited by 2
- 2026Synthetic Persona Pretraining: Alignment from Token Zerocited by 1
- 2026The Unequal Influence of Bad Advice: Using Training Data Attribution to Modulate Emergent Misalignmentcited by 1
- 2026Can Data Attribution Filter Out Subliminal Learning? Not Reliablycited by 0
- 2026Decoupling Token Roles in Autoregressive Pretrainingcited by 0
- 2026The Unequal Influence of Bad Advice: Using Training Data Attribution to Modulate Emergent Misalignment29 Sep 2026
- 2026Decoupling Token Roles in Autoregressive Pretraining27 Sep 2026
- 2026Can Data Attribution Filter Out Subliminal Learning? Not Reliably17 Sep 2026
- 2026Synthetic Persona Pretraining: Alignment from Token Zero13 Aug 2026
- 2026Anatomy of Post-Training: Using Interpretability to Characterize Data and Shape the Learning Signal10 Jun 2026
- 2026Bergson: An Open Source Library for Data Attribution10 Jun 2026
- 2026Cram Less to Fit More: Training Data Pruning Improves Memorization of Facts9 Apr 2026
Similar, not cited
Close in wording, no citation either way
- 2026Unlearning What Matters: Token-Level Attribution for Precise Language Model Unlearning
- 2025If It's Nice, Do It Twice: We Should Try Iterative Corpus Curation
- 2025Robustness of Probabilistic Models to Low-Quality Data: A Multi-Perspective Analysis
- 2025Tokens for Learning, Tokens for Unlearning: Mitigating Membership Inference Attacks in Large Language Models via Dual-Purpose Training
- 2026Forget What Matters, Keep the Rest: Selective Unlearning of Informative Tokens
- 2024uDistil-Whisper: Label-Free Data Filtering for Knowledge Distillation in Low-Data Regimes
- 2025A Lightweight Method to Disrupt Memorized Sequences in LLM
- 2024Token-Efficient Leverage Learning in Large Language Models