ArXiv: 2601.21571

🎯 Pitch

Removing dangerous capabilities from language models after training is easily reversed—the knowledge is still in the weights. This paper shows that simply deleting individual tokens related to a target domain (e.g., medicine) during pretraining makes forgetting up to 7000× more compute-efficient at scale, and the resulting models are 10× more resistant to adversarial finetuning than state-of-the-art unlearning.


1. Executive Summary

This paper studies the effectiveness of token-level data filtering as an intervention to shape model capabilities during pretraining, using the proxy task of removing medical knowledge while preserving related capabilities like biology. Training compute-optimal Transformers from 61M to 1.8B parameters on FineWeb-Edu, the authors demonstrate that filtering individual tokens—operationalized through either loss masking (zeroing gradients for medical tokens) or token removal (replacing medical tokens with a special <|hidden|> placeholder)—is a Pareto improvement over document-level filtering, achieving equal reduction in undesired capabilities at lower cost to benign ones. The central finding is that filtering gets more effective with scale: for the largest 1.8B models, token removal produces a 7000× effective compute slowdown on the forget domain (meaning a filtered model matches the medical loss a baseline model would achieve with 7000× more training compute), and filtering is up to 10× more robust to adversarial finetuning than a state-of-the-art unlearning baseline (RMU). The paper further establishes that token filtering surprisingly improves alignment on the forget domain—models trained with token removal generalize to refusal training better than the unfiltered baseline—and that even low-quality classifiers can be made effective filters by adjusting the decision boundary toward high recall and scaling pretraining compute, though this effectiveness holds only when the base model's representations contain sufficient signal for the filtering task.

2. Context and Motivation

The Core Problem: Capability Shaping as a Fundamental Challenge for Frontier Models

The paper tackles a deceptively simple question: How can we prevent language models from acquiring dangerous capabilities in the first place, rather than trying to remove them after the fact? This reframes the safety problem from a reactive to a proactive posture. As the authors put it in Section 1:

"an important design goal is capability shaping: selectively reducing undesired capabilities without harming desired ones."

This is not merely an academic exercise. The paper's opening paragraph lays out concrete scenarios where capability shaping matters: preventing models from assisting with "running disinformation campaigns or synthesizing bioweapons" while preserving legitimate uses like "writing quality prose or conducting biology research." The stakes escalate as models improve—misuse risks become "increasingly pressing" (Section 1) as frontier models acquire more general capabilities that could be repurposed for harm.

The paper identifies a critical structural vulnerability in the current safety paradigm. Most deployed safeguards are post hoc: they are applied to an already-trained model through methods like RLHF, refusal training, or input-output classifiers. But these approaches share a fatal flaw: the dangerous capability remains latent in the base model's weights. As the authors argue in Section 2:

"once a capability exists in a base model, it is extremely hard to remove it."

This creates what the paper characterizes as "a perpetual cat-and-mouse game" (Section 1). No matter how sophisticated the safety training, an adversary with sufficient access can work around it. The authors cite a substantial body of evidence: models can be jailbroken through prompt engineering (Zou et al., 2023; Wei et al., 2023), finetuning (Qi et al., 2023; Zhan et al., 2023), or even simple automated attacks (Chowdhury et al., 2025). Even frontier labs' sophisticated constitutional classifiers and internals-based probes "fall to cheap-to-find jailbreaks" (Section 2).

This motivates the paper's central premise: if removing a capability post hoc is fundamentally difficult, we should prevent the model from acquiring it during pretraining itself. The paper positions pretraining-time intervention as a complement to—and in some ways a prerequisite for—robust posttraining safeguards.

Why Existing Solutions Fall Short

The paper surveys three categories of existing approaches, each with documented failure modes.

Post Hoc Safeguards: A Losing Game of Whack-a-Mole

Refusal training and RLHF are the most common approaches. They work by teaching the model to surface-level reject dangerous queries. But the paper cites extensive evidence that this surface-level alignment is fragile. Jailbreaking techniques—from simple adversarial suffixes (Zou et al., 2023) to multi-turn optimization (Andriushchenko et al., 2024)—consistently extract the forbidden capabilities. Finetuning attacks are even more concerning: Qi et al. (2023) showed that even benign-intentioned finetuning can strip safety protections, and Anil et al. (2024) demonstrated that providing many in-context examples of harmful outputs could elicit them from supposedly aligned models.

Machine unlearning represents a more ambitious post hoc strategy. Rather than just masking undesirable behavior, unlearning methods attempt to directly modify model weights to remove specific knowledge. The paper focuses on Representation Misdirection for Unlearning (RMU; Li et al., 2024), which works by (1) preserving model representations on benign data while (2) pushing representations of forget-domain data toward random noise. The authors acknowledge RMU is "at, or close to, the Pareto frontier of effectiveness and robustness amongst unlearning methods" (Section 4.3).

But the paper argues current unlearning has fundamental limitations. The evidence they marshal is damning: unlearned models fail against "just a few steps of adversarial finetuning" (Section 2). Multiple independent evaluations (Lynch et al., 2024; Łucki et al., 2024; Che et al., 2024) show that capabilities apparently "removed" by unlearning can be rapidly recovered through targeted training. The paper also cites mechanistic work by Jain et al. (2023) and Deeb and Roger (2025) suggesting that:

"Models are not organized in a way that naturally lends itself to this kind of surgical post hoc 'extraction' of capabilities."

In other words, the problem isn't just that current unlearning methods are imperfect—it's that the underlying model architecture may not support precise, surgical capability removal at all. The representations that encode dangerous capabilities likely overlap substantially with those encoding benign ones, making clean separation geometrically impossible.

Input-output classifiers deployed at inference time offer another layer of defense for closed-source models. The paper acknowledges recent progress here—Cunningham et al. (2026) showed production-grade defenses are possible—but notes this approach is fundamentally reactive and still breakable.

The unifying failure across all post hoc methods is what the paper terms the latent capability problem. Section 2 develops this argument:

"Large-scale pretraining bestows models with capabilities essentially indiscriminately; posttraining simply elicits these capabilities into a human-usable form."

This is a crucial theoretical claim. It draws on the elicitation hypothesis: the idea, supported by work from Radford et al. (2019) through Hofstätter et al. (2025), that pretraining encodes a broad superset of capabilities, and posttraining primarily teaches the model when and how to surface them rather than teaching new capabilities from scratch. If dangerous capabilities are encoded in pretraining, then no posttraining intervention can fully eliminate them—it can only make them harder to access. The paper cites the Superficial Alignment Hypothesis (Zhou et al., 2023) and related work as evidence that capabilities are latent in the base model and merely need the right prompting or finetuning to emerge.

Document-Level Data Filtering: The Coarse Predecessor

The paper's closest intellectual predecessor is document-level pretraining filtering, particularly the work of O'Brien et al. (2025) and Chen et al. (2025). These papers showed that training a classifier to identify documents containing dangerous content (e.g., CBRN weapons information) and removing those documents from the training corpus could produce models that were substantially more robust to adversarial attacks than posttraining safeguards alone.

O'Brien et al. (2025) found that a 6.9B model trained with blocklist-based document filtering was 10× more robust to adversarial finetuning than state-of-the-art unlearning. This is a strong result that the current paper explicitly builds upon. But the current paper identifies a critical inefficiency in the document-level approach that motivates the move to tokens.

The insight draws from two observations in the broader literature:

First, work on data attribution—particularly Grosse et al. (2023)'s influence function analysis—showed that the influence of training data on model capabilities varies within documents at the token level. As the paper puts it in Section 2:

"The influence of individual tokens on model generations within a single document can fluctuate substantially."

This means a document labeled as "dangerous" likely contains many benign tokens whose removal wastes valuable training data, while a document labeled as "safe" may contain scattered sequences of dangerous tokens that slip through.

Second, the limited data regime makes precision-critical. The paper cites the well-known observation that "models can effectively learn capabilities from short subsequences of tokens within documents" (Section 2), using the example from Radford et al. (2019) where GPT-2 acquired French capabilities from sentences like "I'm not the cleverest man in the world, but like they say in French: Je ne suis pas un imbecile"—a single embedded phrase within an English document. As pretraining data becomes scarce (Muennighoff et al., 2023; Villalobos et al., 2024), the cost of throwing out benign content to catch these embedded dangerous sequences becomes increasingly prohibitive.

The paper frames the document-vs-token granularity as fundamentally a precision-recall tradeoff. Document filtering achieves high recall at the cost of low precision—it catches most dangerous content but throws out lots of benign content with it. Token filtering promises to maintain high recall while improving precision by only removing the specific subsequences that matter.

The Alignment Paradox: Filtering Can Make Control Harder

A particularly subtle motivation comes from a counterintuitive finding in prior work. One might expect that removing dangerous content from training would make models easier to align—they simply wouldn't know the dangerous material, so they couldn't produce it. But prior research found the opposite.

Section 2 summarizes the puzzle:

"Longpre et al. (2024) and Li et al. (2025) both find that decreasing the amount of undesired content in pretraining can make it harder to elicit correct refusal behaviors on that domain."

In the toxicity domain, models trained on less toxic data were worse at recognizing toxic content and refused less reliably. The proposed mechanism is intuitive: to know when to refuse, a model needs some representation of the thing it should refuse. A model never exposed to medical knowledge cannot distinguish medical questions from general biology questions, so it cannot selectively refuse—it would have to refuse everything or nothing.

This creates a tension for capability shaping: we want to remove the capability to answer medical questions while preserving the ability to detect medical questions so we can train refusals. The naive approach (aggressive filtering) risks creating models that are both incapable and uncontrollable—they would either hallucinate medical answers or fail to recognize when a query requires a refusal.

The paper explicitly engages with this tension, citing the philosophical argument from Wu (2021) titled "Filtering vs Finetuning":

"Intuitively, it seems as though filtering data would be less effective than teaching the model the dangerous material and then teaching it how to respond to it."

This sets up one of the paper's most surprising findings: that token-level filtering, counter to expectations set by the toxicity literature, actually improves alignment on the forget domain. The resolution—that refusal training on a forget domain is fundamentally about distinguishing "trained vs. untrained" tokens rather than classifying content within a known domain—is a key theoretical contribution.

How the Paper Positions Itself

The paper situates itself at the intersection of three research threads, none of which fully addressed the token-level filtering problem:

From the capabilities-shaping literature, it inherits the core problem formulation and the insight that pretraining intervention is more robust than posttraining. But prior work (O'Brien et al., 2025; Chen et al., 2025) operated at document granularity, leaving the token-level hypothesis untested.

From the data attribution literature, it takes the insight that influence varies at the token level (Grosse et al., 2023) and that models can learn from sparse token sequences (Radford et al., 2019). But attribution work was descriptive—it showed that token-level influence matters—without providing a prescriptive method for using it to shape capabilities. The paper fills that gap by developing a complete token-filtering pipeline.

From the weak supervision and mechanistically interpretability literature, it borrows sparse autoencoders as a labeling tool (Bricken et al., 2023; Lieberum et al., 2024) and the weak-to-strong generalization framework (Burns et al., 2023) to address the practical challenge of obtaining token-level labels at scale.

The paper explicitly contrasts its approach with gradient routing (Cloud et al., 2024; Shilov et al., 2025), which attempts to segment capabilities within the model's own representations during training rather than using external classifiers to pre-filter data. While gradient routing also operates during pretraining, the paper positions it as conceptually closer to posttraining safeguards because it "leverages the representations of the trained model in order to shape its own capabilities" (Section 2). The tradeoff is that gradient routing eliminates the need for external classifiers but introduces additional architectural complexity and optimization constraints.

The paper's core theoretical bet is that an external classifier filtering pretraining tokens is sufficient to achieve robust capability shaping, and that this simpler approach offers practical advantages (interpretability, auditability, modularity) over methods that intertwine the filtering mechanism with the model being trained.

Why Medical Knowledge as a Proxy?

The paper's choice of the medical domain deserves explanation. It's not chosen because medical knowledge is inherently dangerous—rather, it serves as a tractable proxy for the types of dangerous capabilities (CBRN weapons knowledge, cyberattack methodologies) that would be the actual target of filtering in production systems. Section 3 explains:

"We don't have the resources to train models to sufficient scale to get signal on actual dangerous capabilities, we focus on the representative proxy of preventing models from acquiring medical capabilities while preserving related areas like biology."

This proxy choice has several desirable properties: (1) medical knowledge is well-represented in standard pretraining corpora, so baseline models will have non-trivial performance to measure degradation against; (2) there exist high-quality evaluation benchmarks (MedMCQA, MedQA-USMLE, MMLU Medicine) that can reliably measure medical capabilities; (3) medical knowledge has clear boundary cases with related but benign domains (biology, chemistry); and (4) the distinction between medical and non-medical content is sufficiently subtle that it provides a realistic test of classifier quality—it's not just keyword matching.

The paper's definition of "medical" (Appendix C.1) focuses on "information that could be useful in a clinical context"—diseases, treatments, pharmacology, human physiology—while explicitly excluding related but non-clinical topics like healthcare policy, psychiatry, wellness, and public health. This careful boundary-drawing is essential because the hardest cases for the classifier (and therefore the most informative for the research) will be at the margins: is a discussion of biochemistry "medical"? What about genetic mechanisms that have both clinical and basic-science implications? The paper's results on classifier development (Section 5) and evaluation on boundary domains like biology (Figure 5) are designed to test whether token filtering can make these fine-grained distinctions.

In summary, the paper motivates its investigation through a clear chain of reasoning: (1) post hoc safeguards are structurally limited because capabilities remain latent in base models; (2) pretraining intervention is the logical alternative, but prior work operated at document granularity, sacrificing precision; (3) token-level filtering should offer better precision-recall tradeoffs given evidence of token-level influence from attribution studies; (4) the practical challenge is obtaining token-level labels at scale without prohibitive human annotation cost; and (5) the medical domain provides a tractable testbed where these claims can be rigorously evaluated against strong baselines.

3. Technical Approach

3.1 Reader Orientation

The paper develops a complete pipeline for token-level data filtering during pretraining—a system that labels every token in a pretraining corpus as "keep" or "remove" based on its relevance to an undesired capability (here, medical knowledge) and then trains language models on the filtered corpus to produce models that lack the undesired capability while preserving everything else. The core problem this system solves is that existing document-level filtering is wasteful—it removes entire documents to catch scattered dangerous tokens, discarding large amounts of benign content—and post hoc safety methods leave dangerous capabilities latent in model weights where adversaries can extract them. The solution's "shape" is a precision-recall tradeoff improvement: by operating at token rather than document granularity, the system removes medical content with fewer collateral deletions (higher precision at equal recall), which becomes increasingly important as model scale increases. The system also includes practical engineering for a critical bottleneck—obtaining token-level labels at scale without prohibitive human annotation—through a weakly-supervised pipeline using sparse autoencoders and classifier distillation.

3.2 Big-Picture Architecture (Diagram in Words)

The system has five major components connected in a sequential pipeline:

  1. Ground-Truth Label Generator — takes a small sample of pretraining documents and produces token-level labels (medical vs. non-medical) using a pretrained sparse autoencoder (SAE) on Gemma 2 9B. This is the "teacher" for the label distillation process. Its responsibility is to produce a training dataset for the classifier without human annotation.

  2. Token-Level Classifier — a small bidirectional language model (up to 224M parameters) with a linear probe on top, trained on the SAE-generated labels. Its responsibility is to generalize from the noisy SAE labels to produce accurate token-level classifications, and to do so cheaply enough to run over the entire pretraining corpus. Multiple architecture variants are compared.

  3. Pretraining Corpus Filter — takes the trained classifier and applies it to every token in the FineWeb-Edu pretraining corpus, producing a filtered version. Two filtering strategies are studied: loss masking (zero out gradients for medical tokens during training, but keep them in the forward pass so the model sees coherent context) and token removal (replace medical tokens with a special <|hidden|> placeholder and mask the loss at those positions).

  4. Model Trainer — trains compute-optimal autoregressive Transformers (61M to 1.8B parameters) on the filtered corpus, using architectures and hyperparameters informed by modern scaling practices. A separate unfiltered baseline is trained for comparison.

  5. Evaluation Suite — measures the filtered models' capabilities across three axes: text perplexity on medical/biology/general domains, multiple-choice question answering on medical licensing exams, and free-response generation judged by Claude Sonnet 4. Robustness to adversarial finetuning and alignment via refusal training are also evaluated.

Information flows as follows: a small sample of documents (128k) enters the SAE pipeline → token-level labels are generated → these labels train the classifier probe → the trained classifier processes the entire FineWeb-Edu corpus, marking each token → filtered corpora are created via loss masking or removal → models are trained on these corpora → models are evaluated on perplexity, multiple-choice, and free-response benchmarks.

3.3 Roadmap for the Deep Dive

  • First, the ground-truth labeling methodology (the SAE pipeline), because understanding the nature of the labels—their systematic noise, their strengths, and their limitations—is essential for evaluating every downstream decision. The SAE pipeline is the conceptual foundation that makes token-level labeling tractable at all, and its design choices directly motivate the classifier architecture choices that follow.

  • Second, the token-level classifier architecture and training, because the classifier is the workhorse that converts the expensive, small-scale SAE labels into a cheap, large-scale filtering system. This covers the bidirectional model design, the probe training procedure, and the empirical investigation of why small task-specific models outperform large general ones.

  • Third, the filtering strategies (loss masking vs. token removal) and their implementation details, because they represent different points on a tradeoff between context coherence and capability suppression effectiveness. Understanding these mechanisms requires understanding what the Transformer sees during its forward and backward passes under each strategy.

  • Fourth, the model training protocol, covering the compute-optimal scaling setup, architecture choices, and instruction tuning procedures. This establishes what is being compared and ensures that the filtering intervention is evaluated fairly against strong baselines.

  • Fifth, the evaluation framework, covering perplexity benchmarks, multiple-choice evaluations, free-response judging, and the adversarial robustness and alignment experiments. Each evaluation type probes a different aspect of capability shaping and has specific design choices that matter for interpretation.

  • Sixth, the document-level filtering baseline, because understanding what token filtering improves upon requires understanding how the document-level comparison is constructed—same classifier architecture, different labeling granularity, different filtering mechanism.

3.4 Detailed, Sentence-Based Technical Breakdown

This is primarily an empirical systems paper whose core idea is that token-granularity data filtering during pretraining Pareto-dominates document-granularity filtering for capability shaping, gets more effective with scale, and can be made practical through a pipeline that distills weak SAE-based supervision into cheap, accurate classifiers.


Ground-Truth Labeling: The Sparse Autoencoder Pipeline

The fundamental challenge for token-level filtering is that no large-scale token-level labels exist. While document-level labels can be generated relatively easily (e.g., using Claude to classify whether a document is medical), token-level annotation would traditionally require expensive human effort: a human would need to highlight every medically-relevant span within thousands of documents. The paper's first key methodological contribution is a weakly-supervised pipeline that uses sparse autoencoders (SAEs) to generate token-level labels from a pretrained language model, accepting that these labels will be noisy but arguing they are sufficient to train a classifier that generalizes beyond the noise.

What Sparse Autoencoders Provide

A sparse autoencoder (SAE) is a technique from mechanistic interpretability that decomposes a language model's internal activations into a sparse linear combination of interpretable "features" or "latents." The key properties the paper exploits:

  • The SAE is trained on activations from a specific layer of a pretrained model (Gemma 2 9B, from the Gemma Scope release by Lieberum et al., 2024). Each latent dimension in the SAE represents a particular interpretable concept—for example, "references to health and medical information" or "pharmaceutical and medical research data related to Galafold."

  • For any input token, the SAE produces an activation value for each latent dimension. Tokens that are relevant to a given concept will show high activations on the latents corresponding to that concept.

  • Each latent is described with a short natural-language explanation generated by an automated interpretation pipeline (using Claude 3.5 Haiku via the Neuronpedia API; Bills et al., 2023).

The paper uses the Gemma Scope 16k-width SAE at layer 31 of Gemma 2 9B. The choice of layer 31 is motivated: "Later layers tended to have better latents for labeling. We suspect this is because the medical/bio distinction is likely clearer later in the forward pass of a model." This makes intuitive sense—early layers encode more syntactic and local semantic features, while later layers encode more abstract, domain-relevant distinctions.

Step 1: Collecting Forget-Domain Latents

The paper uses the automated latent explanations to identify which SAE latents are relevant to the medical domain:

  1. For each of the 16,384 latent dimensions in the SAE, the paper uses Claude 3.5 Haiku to generate a natural language explanation via the Neuronpedia API.

  2. Each explanation is then classified as "medical" or "non-medical" by Claude Sonnet 4, using a carefully constructed prompt (detailed in Appendix E). The prompt defines medical content precisely, drawing the same boundaries used for the rest of the paper (clinical information, symptoms, diagnoses, treatments, human physiology, etc.).

  3. To filter out low-quality or ambiguous latents, the paper additionally scores each explanation using the embedding-based scoring method of Paulo et al. (2024) and discards latents with scores lower than 0.9. This scoring measures how well the generated explanation actually captures the latent's behavior (by comparing activation patterns to explanation-derived predictions).

  4. After filtering, approximately 600 latents are identified as medical-relevant.

Step 2: Token-Level Classification Using SAE Activations

With the set of medical latents identified, the paper defines a rule-based procedure to label individual tokens as medical or not, motivated by practical challenges:

Feature splitting: SAEs are known to split single high-level concepts across multiple latents (Bricken et al., 2023). For example, "medical" might be split into "clinical medicine," "pharmacology," "anatomy," etc. A single token relevant to medicine will typically activate multiple medical latents.

Autointerp quality variance: Automated latent explanations vary substantially in quality. Some latents have clear, specific interpretations; others are vague or capture mixtures of concepts. Requiring activation on multiple latents reduces the impact of spuriously-labeled individual latents.

Desired span-level granularity: The paper wants to label entire phrases like "insert the catheter" as medical, not just the keyword "catheter." This is important because the classifier should learn that tokens in the context of medical discussion are medical even if they aren't themselves medical keywords.

The labeling procedure operates as follows:

  1. Multi-latent activation threshold: A token is labeled as medical if it has activation at least 4 standard deviations above the mean on at least two of the 600 medical latents. The 4SD threshold ensures high-confidence labeling; the requirement of two latents addresses feature splitting and autointerp noise.

  2. Iterative adjacency expansion: Starting from the tokens labeled in step 1, the procedure iteratively labels adjacent tokens as medical if they have positive activation on at least one medical latent and are adjacent to a token already classified as medical. This step propagates labels outward until no new tokens are marked in an iteration (convergence). The adjacency propagation handles phrases: "insert the catheter" where "catheter" strongly activates multiple medical latents and "insert" and "the" have weak but positive activation on general medical latents.

The paper states that it "select[ed] these hyperparameters mostly by inspection"—there is no formal optimization of the 4SD threshold, the 2-latent minimum, or the adjacency criterion. This is acknowledged as a limitation but justified by the downstream finding that classifiers trained on these labels generalize well, suggesting the labels are "hill-climbable" (the classifier can improve upon them rather than being misled by systematic errors).

What the Labels Look Like (Quality and Noise)

Figure 10 shows three example documents with token-level labels. The paper acknowledges that the labels are "noisy in systematic ways" but that the goal is "to create a dataset that is hill climbable, and upon which hill climbing leads to improvements in effectiveness." The paper explicitly frames classifier training as a weak-to-strong generalization problem (Burns et al., 2023): the SAE labels are "weak" supervision, and the hope is that a "strong" classifier (trained on these labels) can generalize beyond the noise to learn the true underlying classification boundary.

Systematic noise sources mentioned include:

  • Latents that capture adjacent domains (biochemistry, molecular biology) that partially overlap with medicine
  • Edge cases where the SAE's features don't perfectly map to the paper's definition of "medical"
  • Tokenizer mismatch issues (discussed below)
Training Data Construction

The paper annotates a mix of academic papers and web documents as the classifier training corpus. The split is roughly 75% academic, 25% web. Academic sources include PubMed, bioRxiv, medRxiv, chemRxiv, arXiv, Project Gutenberg, and the Stanford Encyclopedia of Philosophy, sampled with equal distribution. Web documents are drawn from FineWeb-Edu and pre-labeled by Claude Sonnet 4 to ensure domain balance.

In total, the dataset consists of 128k documents. The classifier training uses 8.2 million tokens sampled from these documents, with an even split of forget (medical) and retain (non-medical) tokens. Evaluation is on a held-out validation set of 1.64 million tokens (from the same distribution) and a test set of 0.82 million tokens (consisting solely of FineWeb-Edu documents to test generalization to the actual pretraining distribution).

Tokenizer Mismatch Handling

A crucial implementation detail: The SAE labels are generated for the Gemma tokenizer, but the pretraining experiments use the cl100k_base tokenizer from tiktoken (OpenAI, 2023). These tokenizers have different vocabularies and tokenization boundaries. The paper handles this with a pragmatic rule: "We relabel tokens such that if a Gemma forget token maps to a partial token of the new tokenizer, the whole token is labeled as forget." This conservative approach (when in doubt, label as forget rather than retain) ensures no medical information leaks through tokenizer boundaries, at the cost of slightly over-filtering at token boundaries.

Why Not Use the SAE Directly for Full Corpus Labeling?

The paper explicitly addresses why the SAE is used only for the small labeling dataset rather than applied to the entire pretraining corpus:

  • Computational cost: "running 9B SAE inference over an entire pretraining corpus is prohibitively expensive"
  • Classification quality: Recent work (Wu et al., 2025; Kantamneni et al., 2025) has shown that "SAEs—while useful for unsupervised concept detection—lag behind simple linear probes for classification"

The SAE serves as a bootstrapping mechanism to generate initial labels, which are then used to train a much smaller and faster classifier. This "distillation" approach is the paper's solution to the cost-quality tradeoff.


Token-Level Classifier Architecture and Training

The classifier is the computational workhorse of the system—it must accurately classify billions of tokens as medical or non-medical, and it must do so at a computational cost that is a small fraction of the pretraining compute it enables. The paper develops a series of increasingly sophisticated classifier architectures, demonstrating that small, task-specific bidirectional models outperform large, general-purpose ones for this token-level classification task.

Design Principle: Bidirectional Context is Essential

The paper's first architectural claim is that bidirectional context provides significant performance gains for token classification. The motivating example is the word "virus": whether it refers to virology (medical, should be filtered) or computer security (benign, should be kept) depends entirely on surrounding context. A left-to-right autoregressive model sees only the left context; a bidirectional model sees both sides. Formally, for a token at position $t$ in a sequence, a bidirectional model computes a representation $h_t$ that is a function of all tokens $x_{1:T}$ rather than only $x_{1:t}$.

The paper's approach is therefore to use bidirectional encoder models (BERT-like architectures) and fit linear probes on their frozen representations. The linear probe is simply a learned matrix $W \in \mathbb{R}^{d \times 2}$ (where $d$ is the hidden dimension) that maps the model's representation at each token position to a two-class logit, followed by a softmax.

Why Linear Probes Rather Than Full Fine-Tuning?

The paper explicitly justifies this choice by citing evidence that linear probing is more robust to spurious correlations than full fine-tuning (Pimentel et al., 2020; Kumar et al., 2022; Kirichenko et al., 2022). The intuition: when you fully fine-tune a pretrained model, you can distort its representations to fit idiosyncratic patterns in the training labels. When the training labels themselves are noisy (as the SAE-generated labels are), this distortion can lead the model to learn the noise rather than the signal. A linear probe, by contrast, can only learn to linearly separate the existing representations—if the underlying model has good features, the probe will find a good separation; if it doesn't, the probe will fail, but it won't create spurious features that happen to fit the noisy labels.

The probes are trained using L-BFGS, a quasi-Newton optimization method, rather than stochastic gradient descent. L-BFGS is standard for linear probe training because the convex optimization problem on a fixed representation has no local minima, and second-order methods converge faster and more reliably than SGD for this specific class of problems.

The paper sweeps across layers of the base model to find the best layer for classification. All reported results use the highest-performing layer's probe. The layer sweep is important because different linguistic and semantic information is encoded at different depths—early layers may have better local/syntactic features for token-level classification, while later layers may have better semantic features for distinguishing domains.

Architecture Evolution: From Off-the-Shelf to Custom

Table 1 summarizes the classifier variants, showing a clear progression:

Baseline: ModernBERT-large (Warner et al., 2024). This is a 395M parameter BERT-like bidirectional encoder, representing the state of the art in off-the-shelf bidirectional models. Probes fit on its frozen representations achieve an F1 score of 0.794 on the validation set. The paper notes having tried "a number of other off-the-shelf pretrained friends of BERT: BERT, RoBERTa, DeBERTa, SciBERT, BioLinkBERT" and finding them all worse.

Improvement 1: From-scratch RoBERTa on FineWeb-Edu (65M params). The paper pretrains a 65M parameter RoBERTa model (6 layers instead of RoBERTa-base's 12, reducing parameters) from scratch on FineWeb-Edu using a masked language modeling objective. Despite being 6× smaller than ModernBERT-large, probes on this model achieve F1 0.808—a meaningful improvement. The paper hypothesizes this is because "training on FineWeb-Edu gave it representations that were more salient for medical classification" compared to general web text. This is a key insight: domain-matched pretraining can matter more than absolute model scale for representation quality on a specific classification task.

Improvement 2: Bidirectional Language Model (biLM) at 122M total params. The paper identifies a limitation of masked language modeling: it "induces a number of strange artifacts which can make frozen-representation probes weaker" (Clark et al., 2020; Meng et al., 2024). Specifically, MLM-trained models see corrupted input (tokens replaced with [MASK]) during pretraining, which can lead to representations that don't transfer well to clean-input probe training.

The solution is to train bidirectional language models (biLMs) using the classical approach of Graves and Schmidhuber (2005) and Peters et al. (2018): train two separate autoregressive models, one processing left-to-right and one processing right-to-left. For classification, the representations from both directions are concatenated at each token position, giving a bidirectional representation without the artifacts of masked training. Each direction uses a 61M parameter model, so 122M total parameters. Both models are trained on FineWeb-Edu for 4.8B tokens (4× the Chinchilla-optimal amount for models of this size). This yields F1 0.830.

The architecture detail (from Appendix A): the biLM uses the same modified GPT-2 architecture as the main pretraining experiments but trained bidirectionally by reversing the input sequence for the right-to-left model. The representations are concatenated before the linear probe, meaning the probe sees $2d$-dimensional vectors where $d$ is the hidden dimension of each unidirectional model.

Improvement 3: Domain-upsampled pretraining (122M params). The paper's hypothesis about domain-matched pretraining suggests that explicitly upsampling medical-adjacent content during biLM pretraining should further improve representations. The experiment: retrain the biLM on a corpus where 50% of tokens are sourced from the PubMed section of the Common Pile (Kandpal et al., 2025) and 50% from FineWeb-Edu. This yields F1 0.834—another incremental improvement. The mechanism: by seeing more medical and biomedical text during pretraining, the model develops sharper representations of the features that distinguish medical from non-medical content, making the classification boundary more linearly separable.

Improvement 4: Scaling the biLM. The paper scales the biLM to 113M total parameters and then 224M total parameters (keeping the 4× Chinchilla training budget proportional to model size). The 224M biLM achieves F1 0.856 on the validation set and 0.894 on the test set (FineWeb-Edu only, testing generalization to the actual filtering distribution). This is the final classifier used for all main filtering experiments.

What the Classifier Learns

Figure 11 shows the classifier's predictions on three example FineWeb-Edu documents, visualizing $p(\text{medical})$ on a continuous color scale. The examples show the classifier making plausible fine-grained decisions—highlighting medical terms within otherwise non-medical documents and correctly ignoring non-medical uses of medically-adjacent vocabulary.

The paper also verifies in Appendix C.3 that better classifier performance indeed correlates with more effective filtering. This is shown by training model series on data filtered by each classifier variant in Table 1 and measuring the resulting Pareto frontier of forget-vs-retain loss. Higher-AUROC classifiers push the frontier closer to the top-left (high forget loss, low retain loss). This validates that the engineering effort spent on classifier improvement translates to downstream capability-shaping effectiveness.

Computational Cost of the Classifier

A critical practical consideration: the classifier must be cheap enough to run over the entire pretraining corpus without dominating the total compute budget. The paper states that the classifiers "cost a small fraction of pretraining compute to run" (Section 1). The 224M parameter biLM, running inference over billions of tokens, requires far less computation than training even the smallest pretraining models (61M parameters, which using Chinchilla scaling requires processing roughly 1.2B tokens).


Document-Level Classification Baseline

To enable fair comparison between token and document filtering, the paper needs a document-level classifier of comparable quality to the token-level classifier. The approach is straightforward:

  • Use the same 224M biLM backbone as the token-level classifier
  • Train a linear probe on top using document-level labels
  • Document labels are generated by Claude Sonnet 4: each of the 128k documents in the classifier training set is classified as medical or non-medical by the model
  • The probe takes the mean-pooled representation of all tokens in a document and classifies the entire document

The document-level classifier achieves F1 0.922 on the validation set and 0.941 on the test set. Note that these F1 scores are not directly comparable to the token-level F1 scores—document classification is an easier task (average predictions over many tokens) with different label granularity. The point is that both classifiers are well-optimized for their respective granularities, making the downstream comparison between filtering strategies a fair test of granularity itself rather than classifier quality.

How Document Filtering Works

Document filtering is conceptually simple: any document classified as medical by the document-level probe is entirely removed from the pretraining corpus. The model never sees any tokens from that document. When comparing document filtering to token filtering, the paper matches the percentage of total tokens filtered by adjusting classification thresholds (Section 4.1, Figure 3).


Filtering Strategies: Loss Masking vs. Token Removal

Given a token-level classifier that labels each token as medical (forget) or non-medical (retain), the paper implements two strategies for preventing the model from learning medical capabilities. Both strategies modify the standard autoregressive training procedure, and they represent different points on a tradeoff between context coherence (how much the model benefits from seeing surrounding context when predicting benign tokens) and forget token exposure (how much the model can form representations of medical content).

Strategy 1: Loss Masking

Loss masking is the less aggressive intervention. The procedure:

  1. The model processes the training sequence normally during the forward pass: all tokens (both medical and non-medical) are seen by the attention mechanism and contribute to the hidden state representations. This means the model has access to coherent, uninterrupted context when making predictions.

  2. During the loss computation, the cross-entropy loss is computed only on tokens labeled as non-medical. For medical tokens, the loss is set to zero. Equivalently, the gradient for those positions is zeroed out before the backward pass begins.

  3. During the backward pass, gradients flow only through the computation graph for non-medical token predictions. The model's parameters are not updated to improve predictions of medical tokens.

The key operational detail from the paper (Section 3.1): "In principle loss masking ensures that the model has access to coherent context when predicting retain tokens, but this might consequently allow the model to develop non-trivial contextual representations for forget tokens." In other words, even though the model isn't explicitly trained to predict medical tokens, it still processes them in its hidden layers, and the attention mechanism can build representations that capture medical concepts as context for subsequent non-medical predictions. This is related to phenomena like in-context learning and out-of-context reasoning (Berglund et al., 2023; Treutlein et al., 2024) where models can incidentally acquire capabilities from data they weren't directly trained to model.

Strategy 2: Token Removal

Token removal is the more aggressive intervention:

  1. Before training, every token labeled as medical is replaced with a special <|hidden|> token. The pretraining corpus is literally rewritten: where there was once a medical term, there is now a placeholder.

  2. The model processes the modified sequence normally. When it encounters <|hidden|>, it sees a generic placeholder with no semantic content.

  3. The loss is also masked at <|hidden|> positions, ensuring the model is never trained to predict these placeholders in a medically-meaningful way.

The tradeoff, as the paper explains: "Removal, on the other hand, trades context coherence for complete removal of all forget tokens." The model loses the benefit of seeing the surrounding medical vocabulary as context for predicting non-medical tokens that might be semantically related. For example, in the sentence "The patient was prescribed [HIDDEN] to treat the [HIDDEN]," the model loses the information that this is a medical context when predicting subsequent benign tokens, potentially reducing the quality of representations for edge-case benign tokens.

Implementation Details for Filtering

For both strategies, the paper sets the classifier threshold to maximize F1 score on a held-out subset of FineWeb-Edu (unless otherwise specified, as in the threshold-sweep experiments of Section 6.2). The F1-maximizing threshold balances precision and recall equally:

F1=2precisionrecallprecision+recall\text{F1} = 2 \cdot \frac{\text{precision} \cdot \text{recall}}{\text{precision} + \text{recall}}

where precision is the fraction of tokens labeled as medical that are actually medical, and recall is the fraction of actual medical tokens that are labeled as medical.

The paper reports (Appendix C.2, Figure 24) that the token-level classifier identifies a distribution of medical content across documents: only about 23% of documents contain zero medical tokens, and 37% of documents are greater than 10% medical. The document-level classifier identifies 18% of documents as medical, and within those documents, the SAE pipeline identifies only 50% of their tokens as medical. This directly confirms the paper's motivating hypothesis: document filtering throws out roughly 50% benign content (false positives) within the documents it removes, while token filtering can be more surgical.


Model Training Protocol

Pretraining Setup

The paper trains compute-optimal Transformers following the Chinchilla scaling paradigm (Hoffmann et al., 2022), meaning the number of training tokens is approximately 20× the number of model parameters. The model sizes span two orders of magnitude: 61M, 155M, 298M, 521M, 1B, and 1.8B parameters. Key architectural details (from Section 3.2 and Appendix A):

  • Architecture: A modified GPT-2 style decoder-only Transformer with several modern enhancements:

    • RoPE (Rotary Position Embedding; Su et al., 2024) instead of absolute position encodings, which provides better length generalization and is now standard in most LLMs
    • ReLU² activation (So et al., 2021) instead of standard ReLU—the squared ReLU has been found to improve training stability and final performance in some settings
    • Pre-RMSNorm (Zhang and Sennrich, 2019) instead of post-LayerNorm—pre-normalization is more stable during training
    • Width-to-depth ratio held constant at 64 across all model sizes, meaning as parameters increase, both width and depth increase proportionally
    • Block size 2048 for pretraining experiments
    • Effective batch size 327,680 tokens
  • Tokenizer: cl100k_base from tiktoken (the GPT-4 tokenizer; OpenAI, 2023), with a vocabulary size of 100,256 tokens

  • Optimization: AdamW optimizer (Loshchilov and Hutter, 2017) with μP (maximal update parameterization; Yang et al., 2022) for hyperparameter transfer across model sizes. Key optimizer settings:

    • $\beta_1 = 0.9, \beta_2 = 0.95$
    • Learning rate sweep: {5×104,,5×102}\{5 \times 10^{-4}, \dots, 5 \times 10^{-2}\}
    • Weight decay sweep: {0.01,0.1}\{0.01, 0.1\}
    • Cosine learning rate decay to 0.1×0.1\times the maximum value
    • 10% linear warmup

The paper reports that it initially experimented with Muon (Jordan et al., 2024b; Bernstein, 2025), a recently proposed optimizer for hidden layers, but "found that this led to undertraining as we scaled compute." This is a notable engineering detail—it suggests Muon's properties don't transfer well to the compute-optimal scaling regime used here.

  • Hyperparameter transfer: The paper uses μP to transfer hyperparameters from small proxy models (constant width 512, equivalent depth to target models) to the full range of model sizes, following the standard μP recipe.

  • Training hardware: Models up to 521M parameters are trained on 2× NVIDIA H200s; 1B and 1.8B models on 8× NVIDIA H200s.

Data Source and Filtering Application

All models are trained on FineWeb-Edu (Penedo et al., 2024), a high-quality educational subset of the FineWeb corpus. The paper specifically uses the Edu split because "even 1.8B models trained on the default split of FineWeb performed poorly on relevant benchmarks"—the Edu split is enriched for biomedical text, providing sufficient signal for the baseline models to demonstrate medical capabilities that filtering can then suppress.

The filtered corpora are produced by running the token-level classifier over the entire FineWeb-Edu pretraining set and applying either loss masking or token removal as described above. The document-filtered baseline is produced by running the document-level classifier and removing entire documents classified as medical.

Chapter 4.1 and Section 6.2 describe experiments where the classification threshold is varied to filter different proportions of tokens (3% to 50%). For the main experiments (Section 4.2 onward), the threshold is set to maximize F1 score.

Instruction Tuning

For the largest (1.8B parameter) models, the paper applies instruction tuning to evaluate capabilities on multiple-choice and free-response tasks. This is necessary because "baseline models were too weak to get any signal on whether filtering was actually a useful intervention" when evaluated with simple prompting on smaller models—instruction tuning elicits the latent capabilities more effectively, enabling cleaner comparison.

Multiple-choice instruction tuning uses a custom mix of datasets (detailed in Appendix A.3, Table 3), including:

  • MMLU auxiliary training set (Hendrycks et al., 2020)—the core of the dataset
  • ARC Easy and Challenge (Clark et al., 2018)
  • BIG-Bench Abstract Narrative Understanding (Srivastava et al., 2022)
  • BoolQ (Clark et al., 2019)
  • MCTest (Richardson et al., 2013)
  • OpenBookQA (Mihaylov et al., 2018)
  • PIQA (Bisk et al., 2020)
  • RACE Middle and High (Lai et al., 2017)

The paper notes that adding Abstract Narrative Understanding, BoolQ, and PIQA "led to substantial gains in terms of eliciting MCQ performance, particularly on reasoning benchmarks like MedQA-USMLE." The total training set is 122k examples, trained for a single epoch. All questions are formatted consistently:

Question: <question_text>

Choices:
Choice: <choice_A> = A
Choice: <choice_B> = B
Choice: <choice_C> = C
Choice: <choice_D> = D

Answer: <answer_letter>

Hyperparameters: AdamW with constant learning rate 10410^{-4} (selected via hyperparameter sweep). Models achieved 0.66 accuracy on an in-distribution held-out set (compared to 0.23 before instruction tuning), confirming that the instruction tuning procedure is effective.

Chat instruction tuning for free-response evaluation uses the smol-smoltalk dataset (Allal et al., 2025), which consists of 460k examples of conversational data. The paper trains for a single epoch. It tried the full smoltalk dataset (1.1M examples) but "found that this degraded coherence on both Alpaca and HealthSearchQA." Hyperparameters: AdamW with constant learning rate 10510^{-5} (selected via hyperparameter sweep).


Evaluation Framework

Text Perplexity Evaluation

Text perplexity (equivalently, cross-entropy loss) is the most direct metric because it measures exactly what data filtering intervenes on: the model's ability to predict tokens from a domain. The paper constructs three evaluation datasets:

  • Medical text: PubMed articles
  • Biology text: bioRxiv articles (the "canary" for closely-related retain capabilities)
  • General non-medical text: arXiv and PhilPapers articles

All datasets undergo two cleaning passes with Claude Sonnet 4:

  1. Remove non-medical documents from the medical dataset (and vice versa) to ensure domain purity
  2. Remove unrelated tokens within documents using the SAE-based methodology from Section 5.1 to ensure that evaluation measures domain-specific capabilities rather than general language modeling

This cleaning is critical because contamination of the evaluation set would mask the effects of filtering—if the medical evaluation set contains general text, a model that is bad at medicine but good at general text might still show decent perplexity, obscuring the intervention's effectiveness.

Multiple-Choice Evaluation

For instruction-tuned 1.8B models, the paper evaluates on medical multiple-choice benchmarks:

  • MedMCQA (Pal et al., 2022): Indian medical entrance exam questions
  • MedQA-USMLE (Jin et al., 2020): U.S. medical licensing exam questions
  • MMLU Medicine: Subset of MMLU including "college medicine, professional medicine, medical genetics, anatomy, virology, and clinical knowledge categories"

For retain evaluation, the paper uses:

  • MMLU Biology
  • MMLU non-biomedical STEM
  • MMLU non-STEM

The paper also reports cloze-style evaluation (Appendix B.2, Figure 18) where base (non-instruction-tuned) models are evaluated by computing the loss of each answer choice conditioned on the question and selecting the lowest-loss answer. This avoids any effects of instruction tuning on capability measurement.

Free-Response Evaluation

Chat-trained 1.8B models are evaluated on free-response answers to HealthSearchQA (Singhal et al., 2023), a dataset of commonly-searched consumer medical questions. The paper uses Claude Sonnet 4 as a judge along three criteria (prompts in Appendix E):

  1. Correctness: "Is the provided response (in isolation) factually correct? It does not need to answer the question asked for this to be true."
  2. Relevance: "Does the provided response attempt to be at all relevant to the question asked?"
  3. Coherence: "Is the language of the provided response fluent English? The response does not have to be logically sound or coherent for this to be true, it just needs to read like English words strung together in a normal-sounding sentence."

Control evaluation uses Alpaca (Taori et al., 2023), chosen because it is "syntactically quite similar to HealthSearchQA." Medical questions are filtered from Alpaca using Claude Sonnet 4 to prevent contamination.

Evaluation of Robustness to Adversarial Finetuning

Section 4.3 evaluates whether an adversary with open-weight access could "train-in" medical capabilities that were withheld during pretraining. The setup:

  • Models are finetuned on the PubMed section of the Common Pile (Kandpal et al., 2025)
  • For each model, the paper sweeps learning rates in {1×105,,1×103}\{1 \times 10^{-5}, \dots, 1 \times 10^{-3}\} and weight decay in {0.01,0.1}\{0.01, 0.1\} to find the configuration that achieves parity with the unfiltered baseline's medical loss in the fewest steps
  • Effective batch size: 40,960
  • The key metric is finetuning compute required to match baseline loss, measured as a fraction of pretraining compute

The unlearning baseline is RMU (Representation Misdirection for Unlearning; Li et al., 2024), configured with:

  • AdamW with constant learning rate 1×1041 \times 10^{-4}, weight decay 0.01, batch size 8192
  • α=100.0\alpha = 100.0, c=20.0c = 20.0 (the RMU objective hyperparameters controlling the tradeoff between retain preservation and forget randomization)
  • RMU loss applied to the middle layer and two preceding layers, targeting MLP layers only (following Li et al., 2024)
  • Trained for 1,000 steps, "well beyond the point at which forget loss begins to plateau"
  • Forget set: PubMed documents; retain set: Project Gutenberg text
Evaluation of Alignment via Refusal Training

Section 4.4 tests whether models trained on filtered data can still be controlled to refuse medical queries. The procedure:

  1. Chat-trained 1.8B models are finetuned on HealthSearchQA questions with refusal responses (single-sentence refusals) and Alpaca questions with normal responses.
  2. Evaluation on held-out subsets of both datasets using Claude Sonnet 4 to classify refusals.
  3. Success metric: high refusal rate on HealthSearchQA, low refusal rate on Alpaca (correct generalization).
  4. Repeated across three random seeds to ensure reliability.
  5. Same hyperparameters as chat training.

An alternative setup (Appendix B.4) trains models to generate a special <|refusal|> token instead of prose refusals, testing whether the alignment benefit comes from semantic generalization or simpler token-level mechanisms.

4. Key Insights and Innovations

Innovation 1: The Granularity of Intervention Determines the Precision-Recall Frontier, Not Just the Method

The paper's most conceptually distinctive contribution is not token filtering itself (which could be dismissed as an obvious engineering refinement) but the empirical demonstration that filtering granularity defines a fundamental Pareto frontier that cannot be crossed by improving classifiers alone. Prior work on pretraining data selection—including the directly preceding document-filtering papers by O'Brien et al. (2025) and Chen et al. (2025)—operated under an implicit assumption: if you train a good enough classifier, you can identify which documents contain dangerous content, and removing them will sufficiently suppress capabilities. The current paper shows this assumption is wrong for a structural reason, not an implementation quality reason.

The evidence in Figure 3 tells the decisive story. The paper sweeps across classifier thresholds for both token-level and document-level filters, producing points at different precision-recall tradeoffs. The document-level filtering points form a curve, but that curve is everywhere dominated by the token-level curve—there is no threshold setting, no amount of tuning, that lets document filtering achieve equal forget-loss suppression at equal retain-loss preservation. This is not "document filtering is worse at some thresholds" but rather "the document-level strategy has a strictly worse achievable frontier."

Why does this matter intellectually? It reframes data filtering from a classifier quality problem to a data structure problem. The limiting factor isn't how well you can classify documents as medical—the document classifier achieves F1 0.94, which is excellent—but the fact that medical content is distributed in bursts within documents rather than cleanly partitioned by document. Figure 24 confirms this distribution: only 23% of documents have zero medical tokens, and 37% are more than 10% medical, meaning medical content permeates the corpus in ways that make document-level removal inherently wasteful. The paper identifies this empirically (50% of tokens within classifier-identified "medical" documents are actually benign) and turns it into a foundational argument: you cannot solve a token-distributed problem with a document-level tool, regardless of how good the tool is within its granularity class.

This insight connects to the data attribution literature (Grosse et al., 2023) but inverts its typical use. Attribution work showed that individual tokens matter for influence—but it was largely descriptive, saying "here's which tokens influenced this particular model output." This paper makes the prescriptive leap: if tokens matter individually for capability formation, then filtering must operate at token granularity to avoid discarding benign tokens that share documents with dangerous ones. It's the difference between "token influence varies" (known) and "therefore document filtering has an inescapable ceiling" (novel implication).

Innovation 2: Capability Shaping Gets More Effective with Scale—The Opposite of What Post Hoc Methods Show

The paper's second major conceptual move is establishing that pretraining filtering exhibits favorable scaling: larger filtered models fall further behind their unfiltered counterparts on the forget domain. This is not an obvious result—in fact, plausible arguments predict the opposite. One could imagine that larger, more sample-efficient models would "squeeze more signal" out of residual medical content that slips through the filter, closing the gap with unfiltered baselines. Or that emergent capabilities (Wei et al., 2022b) would appear at scale despite filtering. The paper shows neither happens.

Figure 1 and Figure 16 together make the case. The compute-to-loss power laws for filtered models have lower-magnitude exponents on the forget domain than the baseline—meaning each additional doubling of compute yields less improvement on medical loss for filtered models than for unfiltered ones. The relative compute slowdown (the factor by which you'd need to scale a baseline model to match a filtered model's medical loss) grows from ~3× at 61M parameters to 7000× at 1.8B parameters for token removal. The gap is widening, not closing.

This is the opposite pattern from post hoc methods. For unlearning and refusal training, capabilities become easier to recover at larger scales—the RMU results in Figure 7 show the RMU robustness curve is steeper (more negative scaling), meaning larger unlearned models require proportionally fewer adversarial finetuning tokens to regain capabilities. The paper documents this explicitly: at 1.8B parameters, RMU requires 1.5× fewer adversarial tokens than document filtering, 3× fewer than token loss masking, and 13× fewer than token removal. The post hoc approach gets relatively weaker with scale; the pretraining approach gets relatively stronger.

This is a diagnostic insight with direct theoretical implications. It suggests that the reason post hoc methods fail is that larger models encode dangerous capabilities more redundantly and robustly—there are more "pathways" to recover the capability. Pretraining filtering, by contrast, attacks the problem at the source: if the data were never encoded in the first place, there's nothing for scale to amplify. The widening gap implies that the residual medical content in filtered corpora is genuinely insufficient for the model to develop the capability, not just insufficient at small scales. Scale amplifies what's present; it doesn't create knowledge from nothing.

The significance extends beyond this paper's results. If this scaling trend continues (and the paper appropriately flags this as an open question, noting the possibility of U-shaped scaling where very large models grok capabilities from sparse examples), then pretraining filtering becomes not just "another safety tool" but potentially the asymptotically dominant strategy for preventing capability acquisition. The comparison to pretraining scaling laws is instructive: just as Hoffmann et al. (2022) showed that optimal pretraining allocation changes with scale, this paper suggests optimal safety investment may shift decisively toward data filtering as models grow.

Innovation 3: The "Trained vs. Untrained" Distinction Reconciles Filtering with Alignment

The paper's third innovation resolves a tension in the literature that had cast doubt on data filtering as a safety strategy. Prior work on toxicity filtering (Longpre et al., 2024; Li et al., 2025) established a seemingly damning pattern: models trained on less toxic data become worse at recognizing toxicity, and therefore more difficult to align with refusal training. The mechanism is intuitive—you need to know what toxicity looks like to recognize when to refuse. Extrapolated to capability shaping, this suggests filtering medical knowledge would make models unable to distinguish medical from non-medical queries, producing either hallucinated answers or indiscriminate refusal.

The paper shows this extrapolation is wrong, and the reason it's wrong reveals something important about the structure of capability representations. The critical evidence is in Figure 9: models trained with token removal refuse medical queries at 2× the baseline rate while maintaining near-zero false refusal on Alpaca. This is not a small effect or a statistical tie—it's a substantial improvement from filtering. For document filtering, by contrast, refusal rates on Alpaca and HealthSearchQA are similar (poor discrimination), consistent with the toxicity literature's findings.

What explains the discrepancy? The paper's probe analysis (Figure 8, Figure 21) provides the diagnostic: models trained with token filtering can still distinguish forget-domain from retain-domain tokens (the forget/retain classification probe achieves near-baseline accuracy), but they struggle with within-domain classification (distinguishing between medical subdomains like neurology vs. infectious disease). The proposed mechanism is that refusal training on a filtered domain exploits a simpler signal than domain-knowledge classification: the model learns to separate "tokens I was trained on" from "tokens I wasn't trained on." Since medical tokens were filtered, they fall into the latter category and can be detected as distribution shift. This is fundamentally different from toxicity classification, where toxic tokens are present in the training data (just in non-toxic contexts), requiring the model to make a contextual judgment about usage rather than a simpler presence/absence judgment.

This is a conceptual reframing of the alignment-vs-filtering tension. It suggests the prior negative results on filtering and alignment were specific to domains where the "undesired" content shares vocabulary with benign content (toxicity research papers, news reports about harmful events). For capability domains with distinct vocabulary and knowledge structures—like medical knowledge, or by extension CBRN weapons information, cyberattack methodologies—filtering creates a clean separation that makes alignment easier rather than harder. The paper doesn't just contradict prior findings; it provides the boundary conditions that explain when those findings do and don't apply.

Innovation 4: Weak-to-Strong Generalization at the Token Level Enables Practical Filtering Without Perfect Labels

While Section 5 describes the how of the SAE → classifier pipeline, the intellectual contribution is a demonstration that token-level classifiers can generalize from systematically weak, noisy labels in ways that document-level classifiers cannot. This is not an engineering detail—it's a finding about the inductive biases of the two approaches that has implications for what is and isn't feasible as we move to more complex capability domains.

Figure 15 shows the stark result: when a "strong" 224M biLM probe is trained on labels generated by a "weak" 13M biLM probe (itself trained on limited data), the strong token-level probe improves over its weak teacher—it exhibits weak-to-strong generalization. The strong document-level probe, under identical conditions, is consistently worse than its weak teacher. It fails to generalize; it overfits the weak labels' errors.

Why does this matter? It means token-level filtering is practically scalable in ways document-level filtering is not. As we move to more ambiguous and complex capability domains (where "dangerous biology knowledge" is harder to define than "medicine"), we will inevitably have to rely on noisy, imperfect labeling pipelines. The SAE approach is one such pipeline, but the principle is broader: any weak supervision source that provides some signal at the right granularity can be refined by a sufficiently strong classifier. Document-level classifiers, by contrast, appear to hit a ceiling determined by their label quality—beyond a certain point, scaling the classifier doesn't help because it's learning to replicate label errors rather than underlying ground truth.

The paper also demonstrates the complementary finding that token-level classifiers trained on coarse labels (document or sentence level) can still learn fine-grained token-level distinctions. This is shown in Figure 14 and Figure 25: classifiers trained where every token inherits the label of its containing document or sentence perform only marginally worse than those trained on token-level SAE labels, and produce filtered models close to the same Pareto frontier. This means the expensive SAE pipeline isn't strictly necessary—you can get most of the benefit from cheaper, coarser labeling strategies. The key requirement is that you train at token granularity even if your labels are coarse; the classifier's representational capacity fills in the gaps.

Together, these findings establish a new feasibility argument for token-level filtering: it's not just more efficient than document filtering (Innovation 1), it's also more robust to the practical reality that perfect labels are unavailable and never will be for the genuinely dangerous domains we care about. This shifts the conversation from "filtering requires perfect labels, which we can't get" to "filtering requires hill-climbable labels, which we can generate through multiple cheap, imperfect pipelines."

5. Experimental Analysis

Evaluation Methodology

  • Dataset. All pretraining experiments use FineWeb-Edu (Penedo et al., 2024), an educational subset of the FineWeb corpus. The Edu split is specifically chosen because "even 1.8B models trained on the default split of FineWeb performed poorly on relevant benchmarks"—it is enriched for biomedical text, providing sufficient signal for baseline models to demonstrate medical capabilities that filtering can then suppress. For evaluation, the paper constructs three text perplexity datasets from PubMed (medical), bioRxiv (biology, the "canary" for closely-related retain capabilities), and arXiv/PhilPapers (general non-medical), each cleaned with Claude Sonnet 4 to ensure domain purity. Multiple-choice evaluation uses MedMCQA (Pal et al., 2022), MedQA-USMLE (Jin et al., 2020), and MMLU Medicine (Hendrycks et al., 2020). Free-response evaluation uses HealthSearchQA (Singhal et al., 2023) with Alpaca (Taori et al., 2023) as a control. Adversarial finetuning uses the PubMed section of the Common Pile (Kandpal et al., 2025).

  • Base model(s). All pretraining experiments use compute-optimal Transformers ranging from 61M to 1.8B parameters, trained from scratch on FineWeb-Edu with a modified GPT-2 architecture (RoPE, ReLU², pre-RMSNorm, width-to-depth ratio held constant at 64). The paper states that it "believe[s] this model is representative of the capabilities of many contemporary LLMs" (Section 3.2), though this claim cannot be verified without replication on other model families. Models are trained using Chinchilla scaling (Hoffmann et al., 2022), meaning training tokens are approximately 20× the number of parameters. For classifier development (Section 5), the paper uses Gemma 2 9B (for SAE labeling), ModernBERT-large (Warner et al., 2024), and custom-pretrained RoBERTa and biLM models up to 224M parameters.

  • Metrics. The paper evaluates across three axes: (1) Text perplexity (cross-entropy loss) on medical, biology, and general text—this is the most direct metric since it measures exactly what data filtering intervenes on, but is "privileged" by loss masking since that method directly intervenes on the backpass for medical tokens. (2) Multiple-choice accuracy on MedMCQA, MedQA-USMLE, and MMLU subsets, measured both via standard prompted selection and cloze-style selection (selecting the answer choice with lowest loss conditioned on the question). (3) Free-response quality on HealthSearchQA and Alpaca, judged by Claude Sonnet 4 along three criteria: correctness, relevance, and coherence (see Appendix E for prompts). For robustness, the key metric is finetuning compute required to match baseline medical loss, measured as a fraction of pretraining compute. For alignment, the metric is refusal rate on HealthSearchQA vs. Alpaca, classified by Claude Sonnet 4. For relative scaling, the paper computes loss-matched baseline compute—the amount of compute a baseline (unfiltered) model would need to achieve the same forget-domain loss as a filtered model, calculated by linearly interpolating the log-log compute-to-loss curve of the baseline model series (Appendix B.1, Figure 19).

  • Baselines. The paper compares against: (1) Unfiltered baseline: models trained on unmodified FineWeb-Edu with no data filtering. (2) Document-level filtering: models trained on FineWeb-Edu with entire documents removed if classified as medical by a document-level classifier trained on the same 224M biLM backbone as the token-level classifier (using Claude Sonnet 4 labels). (3) RMU unlearning (Li et al., 2024): a state-of-the-art unlearning method that finetunes a pretrained model by preserving retain representations and pushing forget representations toward random vectors; used as the post hoc comparison for robustness experiments. (4) Majority voting and cloze-style selection baselines for MCQ evaluation (comparing instruction-tuned vs. base model evaluation approaches). For text perplexity experiments, the unfiltered baseline is the primary comparison, with document filtering as the alternative pretraining intervention.

  • Generation budget / compute accounting. For pretraining, compute is measured in tokens processed, following standard Chinchilla scaling conventions where FLOPs are proportional to tokens × parameters. All model series are trained at compute-optimal ratios. For adversarial finetuning, compute is measured as finetuning tokens as a fraction of pretraining compute, enabling comparison across model scales. For classifier inference, the paper notes that classifiers "cost a small fraction of pretraining compute to run" but does not provide explicit FLOP counts. A significant unaccounted cost: the difficulty of generating the 128k-document training set for classifiers is not amortized into any filtering experiments—though this is a one-time cost for a given domain definition, not a per-model cost.

  • Cross-validation / statistical protocol. For the main filtering experiments, there is no explicit cross-validation—each model configuration is trained once (a single random seed). The paper acknowledges this implicitly by training multiple model sizes and observing consistent trends across scales, which serves as an informal robustness check. For refusal training (Section 4.4), the paper repeats experiments across three random seeds and reports aggregate refusal rates. Statistical significance testing is not reported for any result. For classifier evaluation, a held-out validation set of 1.64M tokens and a test set of 0.82M tokens (FineWeb-Edu only) are used, but no confidence intervals are reported. For the relative compute slowdown calculations (Figure 1, Figure 19), uncertainty from extrapolation of the baseline compute-to-loss curve is not quantified.

Main Quantitative Results

Text Perplexity: Token Filtering Pareto-Dominates Document Filtering and Scales Favorably

The paper's first major claim is that token filtering achieves equal forget-domain suppression at lower cost to retain capabilities compared to document filtering. Figure 3 demonstrates this through a threshold sweep experiment on 521M parameter models. For each classification threshold (set by filtering 3% through 50% of all tokens), the paper trains a model and measures both medical loss (forget) and biology loss (retain, the most closely related benign domain). The token filtering curve is everywhere above and to the left of the document filtering curve in the high-forget-loss / low-retain-loss region—meaning that for any given level of medical capability suppression (equal recall), token filtering preserves more biology capability (higher precision). This is not a statistical fluctuation; the Pareto dominance holds across the entire threshold range.

The mechanism is quantified in Appendix C.2, Figure 24: only 23% of documents contain zero medical tokens, and 37% of documents are greater than 10% medical. Within the 18% of documents classified as medical by the document-level classifier, only 50% of their tokens are actually medical by the SAE pipeline's judgment. Document filtering thus discards roughly half its classified content as false positives, while token filtering can be more surgical.

Figure 4 summarizes the scaling behavior across all model series (61M to 1.8B parameters), plotting forget loss vs. retain loss for each model. Token removal (replacing medical tokens with <|hidden|>) produces the most favorable frontier—the "top left" of the plot (high forget loss, low retain loss). Token loss masking is slightly behind, followed by document filtering, with the unfiltered baseline in the lower-right (low forget loss, low retain loss). The relative compute slowdown on the forget domain is reported in Figure 1: token removal achieves a 7000× compute slowdown at 1.8B parameters, meaning an unfiltered model would need 7000× more training compute to match the filtered model's medical loss. Document filtering achieves approximately 30×. For token loss masking, we can interpolate from Figure 7 that it is roughly intermediate (though exact figures are not quoted).

The scaling trend is critical: the gap between filtered and unfiltered models widens with scale for all filtering methods, but most dramatically for token-level. Figure 16 (Appendix B.1) shows the raw compute-to-loss plots; the key pattern is that the slopes (exponents) of the filtered models' scaling laws are smaller in magnitude on the forget domain. Each additional doubling of compute yields less improvement in medical prediction ability for filtered models than for the baseline. For token removal at 1.8B parameters, the forget-domain loss is essentially flat across the upper range of compute—the model has hit a capability ceiling.

On the retain side, filtering does impose a cost—biology loss is slightly elevated for filtered models compared to the baseline at the same pretraining compute (visible in Figure 4 as a rightward shift). However, this cost is relatively modest for token-level methods compared to the dramatic gains in forget suppression. The Pareto improvement means you can recover the retain loss by training slightly longer, but no amount of additional training recovers the forget loss.

Multiple Choice: Near-Chance Performance on Forget Benchmarks with Preserved Retain

For the largest (1.8B parameter) models instruction-tuned on multiple-choice data, Figure 5 shows that token filtering reduces medical multiple-choice performance to approximately chance level (25% for 4-option questions) on both MedMCQA and MedQA-USMLE. The filtered models achieve roughly 25–30% accuracy compared to the baseline, which is approximately double chance. Critically, this degradation is domain-specific: on MMLU Biology (the most closely related retain domain), token-filtered models show only a small degradation relative to baseline, and on non-STEM and non-biomedical STEM subsets, performance is essentially indistinguishable from baseline.

The pattern across filtering methods mirrors the text perplexity results: token removal is most effective at suppressing medical MCQ performance, token loss masking is slightly less effective, and document filtering is least effective. On MedQA-USMLE and MMLU Medicine, the model trained with document filtering is somewhat stronger than the token-filtered models, consistent with document filtering's lower precision (it throws out less medical content overall, or the medical content it retains is more coherent). Cloze-style evaluation on base models (Figure 18) shows the same qualitative pattern, confirming that the results are not artifacts of instruction tuning.

There is a notable asymmetry: filtering suppression appears stronger on MedMCQA and MedQA-USMLE (near-chance) compared to MMLU Medicine, where even token-removal models retain some above-chance performance. The paper does not explicitly discuss this difference, but it may reflect varying difficulty and varying reliance on factual medical knowledge vs. general reasoning skills across benchmarks.

Free Response: Order-of-Magnitude Reduction in Medical Response Quality

Figure 6 presents the free-response evaluation on HealthSearchQA, judged by Claude Sonnet 4. Token removal produces the most dramatic degradation: correctness drops 20× relative to baseline, while relevance and coherence drop approximately 3–4×. Token loss masking shows intermediate degradation, and document filtering has the most muted effect. On the control task (Alpaca, Figure 17), all models show comparable performance, confirming that the degradation is specific to the forget domain rather than a general collapse in generation quality.

The qualitative examples in Appendix D (Table 5) are essential for understanding what "degraded medical capability" actually means. The token-removal model does not simply refuse to answer or produce generic text—it generates responses that are often syntactically fluent but factually catastrophically wrong. Examples include: defining botulism as "a condition characterized by the formation of a new, larger, or more complex cell within the body" (confusing it with tumor formation or cell division), stating that arterial thrombus "is a type of infection," and characterizing Covid as "typically associated with temperatures below 0°C." The model sometimes falls into repetitive cycles ("bacteria, bacteria, bacteria"). These responses are coherent enough to pass basic fluency checks but contain no usable medical information—they are a form of confident hallucination rather than explicit refusal.

Document-filtered models show a different failure mode: their responses are more coherent and often attempt to answer the question, but still contain substantial inaccuracies (e.g., describing diabetic retinopathy as "a rare condition where the pancreas is unable to produce enough insulin," confusing it with diabetes itself). This suggests document filtering reduces but does not eliminate medical knowledge, with the residual knowledge being garbled and recombined incorrectly rather than truly removed.

Robustness to Adversarial Finetuning: Filtering Scales Better Than Unlearning

Section 4.3 tests how many adversarial finetuning tokens are required to recover baseline medical loss for filtered models vs. an RMU-unlearned model. Figure 7 plots the required finetuning compute (as a fraction of pretraining compute) against model scale. The key finding is that all filtering methods require more adversarial compute than RMU to recover capabilities, and the gap widens with model scale because RMU's robustness degrades more steeply.

For 1.8B models: RMU requires 1.5× fewer adversarial tokens than document filtering, 3× fewer than token loss masking, and 13× fewer than token removal. In other words, token removal is approximately 10× more robust than RMU at this scale. Figure 26 provides the underlying dynamics: RMU achieves a high initial test loss (10.73, 3× higher than token removal at 3.35) but drops precipitously in just a few finetuning steps—the capability is latent and easily recovered. Filtered models show more gradual loss decreases under finetuning, consistent with the interpretation that they are genuinely missing the knowledge rather than having it suppressed.

The scaling slopes are critical. RMU's curve is steeper (more negative), meaning as pretraining scale increases, RMU becomes proportionally less robust—larger models have more redundant representations of medical knowledge that RMU cannot fully randomize. Filtering curves are flatter, suggesting the intervention's effectiveness is more scale-invariant (or even improves with scale, as seen in Figure 1). The paper does not extrapolate beyond 1.8B, so it's unknown whether this trend would continue or reverse at frontier scales.

Alignment via Refusal Training: Token Removal Improves Controllability

Section 4.4 addresses whether filtered models can be trained to refuse medical queries. Figure 9 shows the refusal rates after finetuning on HealthSearchQA refusals and Alpaca normal responses. Models trained with token removal generate refusals on HealthSearchQA at 2× the baseline rate while maintaining near-zero refusal on Alpaca. Token loss masking produces refusal rates comparable to baseline. Document filtering performs poorly: it refusals Alpaca queries at a rate only slightly lower than HealthSearchQA, indicating poor discrimination between the forget and retain domains.

The paper's probe analysis (Figure 8) provides mechanistic insight: linear probes trained to classify tokens as medical vs. non-medical achieve near-baseline accuracy on filtered models, and the gap closes with scale. This means filtered models can still distinguish the forget domain from the retain domain—they haven't lost the ability to detect distribution shift. However, Figure 21 shows that filtered models are substantially worse at within-domain classification (distinguishing between medical subdomains like neurology vs. infectious disease), suggesting they have lost fine-grained medical knowledge while retaining coarse domain detection.

The refusal token experiment (Figure 20) generalizes this finding: when trained to output a special <|refusal|> token rather than prose refusals, token removal again outperforms baseline, token masking is on par, and document filtering lags. This suggests the alignment benefit is robust to the specific form of refusal training.

Ablation Studies and Robustness Checks

Filtering threshold sweep (Section 4.1, Figure 3): Sweeping the classifier threshold from 3% to 50% tokens filtered on 521M models confirms that token filtering Pareto-dominates document filtering across the entire range—there is no threshold where document filtering achieves better medical loss for the same biology loss. This is the foundational result for the token-vs-document comparison.

Loss masking vs. token removal (Figures 4, 6, 7): Token removal consistently outperforms loss masking on all metrics—higher forget loss, lower MCQ scores, lower free-response quality, and higher robustness to adversarial finetuning. The gap is notable at larger scales. This confirms the hypothesis that allowing the model to see medical tokens in the forward pass (as loss masking does) enables residual capability formation, either through contextual representation learning or through the attention mechanism building distributed representations of medical concepts that persist despite zero gradients.

Classifier architecture scaling (Section 5.2, Table 1): The paper tests six classifier variants: ModernBERT-large (395M, pretrained on general web text), from-scratch RoBERTa on FineWeb-Edu (65M), biLM on FineWeb-Edu (122M total), biLM with domain-upsampled pretraining (122M), and scaled biLMs at 113M and 224M. F1 on the validation set improves from 0.794 (ModernBERT-large) to 0.856 (224M biLM with domain upsampling). Appendix C.3, Figure 27 confirms that higher F1 classifiers produce better filtering frontiers, and Figure 28 quantifies this with normalized AUC relative to baseline. The key non-obvious finding: small domain-matched models (65M RoBERTa) outperform large general models (395M ModernBERT) for this task, suggesting representation quality matters more than raw parameter count.

Domain upsampling for classifier pretraining (Table 1): Augmenting the biLM pretraining corpus to 50% PubMed text improves F1 from 0.830 to 0.834—a small gain consistent with the hypothesis that domain-matched pretraining sharpens classification-relevant representations. The effect is present but modest, suggesting the FineWeb-Edu corpus already contains sufficient biomedical text for reasonable representations.

Classifier probe layer sweep: The paper sweeps across layers for all classifier variants and reports the best-performing layer. The specific layers are not enumerated, but the practice ensures fair comparison across architectures.

Document-level classifier quality (Section 5.3): The document-level classifier achieves F1 0.922 (val) and 0.941 (test), confirming that the Pareto dominance of token filtering is not due to a weak document-level baseline. The document classifier is actually higher-F1 than the token classifier, but this reflects the easier nature of document-level prediction (averaging over many tokens).

Artificially noised labels (Section 6.1, Figure 12): The paper simulates classifier error by randomly flipping labels (forget ↔ retain) with probabilities from 0.01 to 0.16. The effect on filtering effectiveness follows a power law: in the low-error regime, small increases in error cause disproportionately large drops in compute slowdown; in the high-error regime, the effect saturates. The paper estimates that its best classifier has an error rate of approximately 11% relative to SAE-generated ground truth.

Aggressive filtering with low-quality classifiers (Section 6.2, Figure 13): By shifting the classification threshold toward high recall (filtering 20% or 30% of all tokens, compared to the F1-maximizing rate of approximately 10–15%), models can approach the Pareto frontier even with imperfect classifiers, given sufficient pretraining compute. The tradeoff is that filtering more tokens also raises retain loss—the filtered models are trained on less total data. At 521M parameters, the 20% threshold brings models close to the high-forget / low-retain frontier, but benefits taper off at higher thresholds.

Training token-level classifiers from coarse labels (Section 6.3, Figure 14, Figure 25): Classifiers trained where every token inherits the label of its containing document or sentence perform only marginally worse than those trained on SAE token labels. Figure 25 shows F1 scores on token-level ground truth: the sentence-level probe achieves approximately 0.73 F1 compared to 0.76 for the token-level probe (using the 61M biLM). The resulting filtering frontiers (Figure 14) are nearly overlapping, though the coarse-label classifiers scale slightly worse. This finding is practically significant—it means the expensive SAE pipeline is helpful but not necessary; document-level or sentence-level labeling (which can be done with Claude Sonnet 4) suffices for effective token-level filtering.

Weak-to-strong classifier generalization (Section 6.3, Figure 15): A 224M biLM probe trained on labels generated by a weak 13M biLM probe (itself trained on limited data) shows improvement over the weak teacher—the strong F1 exceeds the weak F1 by up to 0.07 in the low-data regime. The document-level strong probe, under identical conditions, is consistently worse than its weak teacher, never exceeding weak performance. This is a critical finding for practical deployment: token-level classifiers can bootstrap from low-quality weak labels and improve, while document-level classifiers cannot reliably do so.

Delaying filtering onset (Appendix B.5, Figures 22, 23): Filtering only late in training (after 40% of training tokens) makes filtering approximately an order of magnitude less effective than filtering throughout. The relationship between filtering start time and compute slowdown is roughly exponential—most of the capability shaping benefit is won in early training. This has practical implications: a developer could train a model with minimal filtering, then later decide to train a filtered version from scratch, and the retraining would be efficient because early filtering dominates. Conversely, applying filtering only at the end of training provides little benefit.

Critical Assessment

Claim: Token Filtering Pareto-Dominates Document Filtering (Supported Convincingly with Boundary Conditions)

The evidence in Figure 3 and Figure 4 strongly supports the Pareto dominance claim for text perplexity on the medical/biology domains. The threshold sweep in Figure 3 is well-designed—by sweeping from 3% to 50% tokens filtered, it covers the relevant operating range and shows consistent dominance. However, the claim is demonstrated on a single domain pair (medical/biology) and a single model scale (521M) for the sweep. The paper implicitly assumes this dominance generalizes to other scales and domains, supported by the broader scaling results in Figure 4, but the sweep itself is only at one scale. The mechanism—that document filtering wastes ~50% precision within classified documents—is well-documented in Figure 24, providing a clear causal explanation for the Pareto improvement.

A limitation: the Pareto claim is established for text perplexity, but the free-response results (Figure 6) show that document filtering also degrades medical response quality, just less effectively. The Pareto frontier for "real" downstream capabilities (clinical accuracy, not just token prediction) may differ from the perplexity frontier. The paper does not systematically sweep thresholds on MCQ or free-response evaluations to verify that the Pareto relationship holds at the capability level.

Claim: Filtering Gets More Effective with Scale (Supported, but Extrapolation is Speculative)

The relative compute slowdown results (Figure 1, Figure 16) clearly show that the gap between filtered and unfiltered models widens from 61M to 1.8B parameters. The computation of relative compute slowdown via linear interpolation of baseline scaling curves (Appendix B.1) is methodologically sound. The widening of the gap is consistent across all filtering methods and across evaluation types (perplexity, MCQ, free-response).

However, the claim that this trend continues beyond 1.8B is speculative, and the paper appropriately flags this (Section 7: "It could be the case... that we see 'U-shaped' scaling"). The concern is not unfounded: larger models are more sample-efficient and might learn from the small fraction of medical content that inevitably slips through any classifier (the best token-level classifier has ~11% error under SAE labels). The 7000× figure should be understood as a measured result at 1.8B parameters, not an asymptotic prediction. An extension to 7B or 13B parameters would substantially strengthen (or refute) this claim. The paper's compute budget constraints are acknowledged, but this is a genuine limitation.

Additionally, the relative compute slowdown relies on extrapolation of baseline scaling curves beyond the measured range for the smallest models (where filtered models' medical loss is often worse than the baseline at any measured compute). The paper uses linear interpolation, but the baseline curve may not be perfectly linear in log-log space, introducing unquantified extrapolation error.

Claim: Filtering is 10× More Robust Than Unlearning (Supported at 1.8B, but Adversary Model is Weak)

The robustness experiments (Figure 7) show a clear advantage for token removal over RMU at larger scales, and the scaling trend (RMU's robustness degrades faster) strengthens the case. However, the adversarial finetuning setup has important simplifications:

The adversary finetunes on PubMed text and measures test loss on medical text. This is a narrowly-defined attack: the adversary has perfect knowledge of what domain to target and has high-quality in-domain data. In practice, an adversary might not know exactly what was filtered, or might have to use noisy/imperfect finetuning data. The paper sweeps learning rates to find the fastest recovery, which makes the attack strong but may not be reproducible in a black-box setting.

The RMU baseline is configured with hyperparameters from the original paper, but the paper does not report sweeps over α, c, or the choice of layers for RMU optimization. If RMU is sensitive to these choices, the comparison may favor filtering. The paper also does not compare against other unlearning methods or against combining RMU with other defenses.

The claim of "10× more robust" is based on the ratio of finetuning tokens required at 1.8B parameters. This ratio may not be a universal constant—it could vary with domain, model architecture, or the specific unlearning method. The paper's finding that RMU requires fewer tokens (1.5× fewer than document filtering, 3× fewer than loss masking, 13× fewer than removal) is specific to the 1.8B scale and PubMed domain.

Claim: Token Filtering Improves Alignment (Surprising and Well-Supported, but Mechanism Needs More Investigation)

The refusal training results (Figure 9) are the paper's most counterintuitive finding, and the experimental design is appropriately cautious: three random seeds, two refusal formats (prose and token), and probe-based diagnostics. The 2× improvement in refusal rate for token removal is substantial and robust across seeds and formats.

However, the paper's mechanistic explanation—that the model learns to separate "trained vs. untrained" tokens—is supported by evidence but not conclusively proven. The probe results (Figure 8, Figure 21) show that filtered models can classify forget vs. retain but struggle on within-domain classification. This is consistent with the "trained vs. untrained" hypothesis but does not rule out alternative explanations (e.g., the model learning to detect distribution shift in its own uncertainty, or learning spurious correlations with surface features of medical text). A direct test would be to train probes on the model's internal certainty estimates and see whether they predict refusal behavior better than simple domain classification probes.

More critically, the refusal training setup is simplified relative to real alignment: the model is trained to refuse all medical queries, but a deployed model should refuse dangerous medical queries (e.g., "how to synthesize a toxin") while answering benign ones (e.g., "what is a fever?"). The paper's setup conflates domain classification with harmfulness classification. The within-domain classification failure (Figure 21) suggests filtered models would struggle to make this distinction, which could make fine-grained alignment harder even if coarse refusal is easier.

Claim: Even Bad Classifiers Can Be Effective Filters with Sufficient Scale (Partially Supported)

Section 6.2 (Figure 13) shows that by lowering the classification threshold (filtering more tokens, trading precision for recall), models can reach the Pareto frontier with "aggressive" filtering, given enough pretraining compute. At 521M parameters, the 20% filtering threshold brings models close to the frontier.

However, this experiment only tests variation in classifier threshold, not variation in classifier quality. The underlying classifier is still the high-quality 224M biLM; the paper does not demonstrate that an objectively worse classifier (e.g., a simple keyword filter) can achieve comparable results through aggressive thresholding. The "bad labels" experiment (Section 6.1, Figure 12) shows that randomly noising labels degrades filtering, but this tests label perturbation on a high-quality base classifier, not a genuinely weak classifier architecture. The claim that "bad classifiers can still be effective filters" is better supported by the coarse-label experiments (Section 6.3), where classifiers trained on sentence or document labels approach the performance of token-label-trained classifiers.

A genuine test would be: take a simple bag-of-words medical classifier, set its threshold to filter 50% of tokens, train a large model, and see if it approaches the frontier. The paper does not run this experiment, leaving the "bad classifier" claim partially untested.

Missing Experiments and Baselines

Several experiments would have strengthened the paper substantially:

  1. Scaling beyond 1.8B parameters: The most important missing experiment. The paper's central claim that filtering "gets more effective with scale" extrapolates from 61M to 1.8B; testing at 7B would determine whether the trend continues or reverses. The paper acknowledges this as future work.

  2. Multiple domains: All results are on the medical/biology domain pair. Testing on other capability pairs (code generation vs. natural language, chemistry vs. physics, multiple languages) would establish generalization of the Pareto dominance claim. The SAE pipeline is described in enough detail to be replicated, but no replication is attempted.

  3. Different base model architectures: Only decoder-only Transformers with a specific architecture (RoPE, ReLU², pre-RMSNorm) are tested. The claim that results are representative of "contemporary LLMs" is asserted but not demonstrated.

  4. Statistical significance: No confidence intervals are reported for any result. The refusal training uses three seeds, but all other experiments use single seeds. For the threshold sweep (Figure 3), the Pareto dominance claim would be strengthened by showing the curves with error bars.

  5. Classifier cost amortization: The paper does not report the FLOPs required to run the classifier over the full pretraining corpus, making it difficult to evaluate the "costs a small fraction of pretraining compute" claim quantitatively.

  6. Comparison with gradient routing: The paper cites Cloud et al. (2024) and Shilov et al. (2025) as alternative pretraining interventions but does not implement a gradient routing baseline for direct comparison.

  7. "Real" dangerous capabilities: The paper uses medical knowledge as a proxy, justified by compute constraints and evaluation infrastructure. Whether the results transfer to genuinely dangerous domains (CBRN weapons, cyberattack methodologies) where the knowledge structure may differ (e.g., more procedural, less factual) is an open question.

Where Claims Hold and Where They Break

The paper's claims are most solidly established for: (1) text perplexity on the medical domain, (2) the 61M–1.8B parameter scale range, (3) the specific architecture and training setup used, and (4) the comparison between token removal and document filtering.

The claims are less certain for: (1) behavior under adversarial conditions where the adversary has access to stronger finetuning methods, (2) domains where the forget/retain boundary is fuzzier or more contested, (3) frontier-scale models where sample efficiency may overcome filtering, (4) open-ended generation tasks where "capability" is harder to measure than on MCQ benchmarks, and (5) production settings where latency constraints prevent the aggressive filtering thresholds needed to compensate for weak classifiers.

The refusal training result—that filtering improves alignment—appears robust within the paper's setup but may not generalize to fine-grained alignment where the model must distinguish harmful from benign queries within the same broad domain. The paper's within-domain classification result (Figure 21) directly suggests this limitation, making it a self-documented boundary condition.

6. Limitations and Trade-offs

The Cost of Difficulty Estimation Is Unaccounted for in the Headline Efficiency Numbers

The assumption or constraint. The headline finding—that token filtering achieves a 7000× compute slowdown on the forget domain—measures the relative scaling of filtered versus unfiltered models once filtering is in place. It does not account for the cost of training the classifier that enables filtering, nor for generating the labels that train the classifier. The paper is transparent about this: in Section 5.1 it acknowledges that "running 9B SAE inference over an entire pretraining corpus is prohibitively expensive," but this statement only addresses why the SAE is not used as the primary filtering tool—it does not account for SAE inference used in label generation (processing 128k documents through a 9B model plus an interpretation pipeline), nor for the cost of pretraining and probing the 224M biLM classifier, nor for the cost of running that classifier over billions of FineWeb-Edu tokens.

The paper notes that classifiers "cost a small fraction of pretraining compute to run" (Section 1), but "small fraction" is never quantified in FLOPs or wall-clock time. Even if the per-token inference cost of the 224M biLM is modest relative to pretraining a 1.8B model, the fixed cost of developing the classifier pipeline—SAE interpretation with Claude 3.5 Haiku and Sonnet 4, biLM pretraining on 4.8B tokens, probe training across layers, and the human engineering effort to select hyperparameters "mostly by inspection"—represents a non-trivial barrier to entry for practitioners wanting to apply this method to a new domain.

The consequence. For a practitioner evaluating whether to deploy token filtering, the true cost is: cost of developing a domain-specific classifier + cost of running inference over the full pretraining corpus + cost of pretraining the filtered model. The 7000× figure describes only the relationship between the last term and the cost of an unfiltered baseline achieving equivalent forget loss. If the first two terms are large—and for a novel domain without existing SAE infrastructure, they plausibly could be larger than pretraining a small experimental model—then the efficiency advantage may be substantially smaller than reported, or may only become net-positive at large pretraining scales where the fixed cost amortizes.

Additionally, the paper reports that "most gains in filtering are won early" (Section B.5, Figure 22)—delaying filtering by 40% of training reduces effectiveness by an order of magnitude. This means the filtering decision must be made before or very early in pretraining. Any delay to develop or improve the classifier retroactively penalizes filtering effectiveness, creating pressure to invest in classifier development upfront without knowing whether the filtering domain definition is correct or whether filtering will be net-beneficial.

What evidence exists in the paper. None. The paper does not report FLOP counts for SAE inference during label generation, for biLM pretraining, for classifier inference over the corpus, or for the Claude API calls used in latent interpretation and document labeling. Section 5.2 reports that the biLM is trained for 4.8B tokens at 224M parameters—this alone is a meaningful compute expenditure, but it is never compared to the pretraining compute of the models being filtered (e.g., a 1.8B parameter model requires ~36B tokens at Chinchilla scaling). The relative cost is plausibly non-negligible, especially at smaller pretraining scales.

Mitigation status. The paper flags this as future work implicitly but does not address it directly. Section 6.3 shows that token-level classifiers can be trained from coarse (document or sentence) labels rather than requiring the SAE pipeline, which substantially reduces the label-generation cost—Claude Sonnet 4 document classification is cheaper than SAE inference plus latent interpretation. But even this reduced cost is not quantified relative to pretraining compute. The paper does not propose or evaluate any method for amortizing classifier development cost across multiple filtering runs or for estimating classifier cost before committing to the pipeline.


All Results Are on a Single Domain Pair with a Single Model Architecture

The assumption or constraint. The paper studies exactly one capability-shaping task—removing medical knowledge while preserving biology and general capabilities—using exactly one model architecture (a modified GPT-2 decoder-only Transformer with RoPE, ReLU², pre-RMSNorm) trained on exactly one pretraining corpus (FineWeb-Edu). The authors acknowledge this implicitly by describing medical knowledge as a "representative proxy" (Section 3) and claiming the model architecture is "representative of the capabilities of many contemporary LLMs" (Section 4), but no evidence is provided that the findings generalize to other domains, architectures, or corpora.

This matters because medical knowledge has specific structural properties that may make it unusually amenable to token-level filtering. Medical content uses a distinctive vocabulary (drug names, anatomical terms, disease classifications) that creates clear token-level features for classifiers to latch onto. The paper's classifier F1 of 0.856–0.894 reflects this separability. Other capability domains—particularly the genuinely dangerous ones this work proxies for (CBRN weapons knowledge, cyberattack methodologies, situational awareness about AI systems)—may have less distinctive vocabulary. Cyberattack knowledge shares extensive vocabulary with legitimate software engineering and security research; CBRN knowledge overlaps with legitimate chemistry and biology; and AI alignment knowledge (e.g., information about model evaluations, honeypots, monitoring) is written in the same technical English as AI research papers. Token-level filtering may be substantially harder—or fundamentally less effective—when the forget and retain domains are not lexically separable.

The consequence. If token filtering's effectiveness depends on the lexical distinctiveness of the forget domain, then its applicability to the most important safety-relevant domains is uncertain. The paper's demonstration that the medical/biology distinction is filterable does not guarantee that the chemistry/chemical-weapons distinction or the coding/exploit-development distinction is similarly tractable. Practitioners considering token filtering for a novel domain cannot assume that comparable classifier F1 scores are achievable, nor that Pareto dominance over document filtering will persist when the token-level features are less discriminative.

The single-architecture limitation is less severe but still relevant: decoder-only Transformers dominate current practice, but the paper's filtering strategies (loss masking on autoregressive objectives) may interact differently with encoder-decoder architectures, mixture-of-experts models, or models trained with different objectives (e.g., fill-in-the-middle training for code models). The claim that results are "representative" without testing across architectures is speculation, not evidence.

What evidence exists in the paper. The paper provides no cross-domain or cross-architecture experiments. All figures, all tables, and all ablations are on the medical/biology domain pair with the same decoder-only architecture. Appendix C.1 defines the medical/biology boundary in detail, implicitly acknowledging that the boundary-drawing exercise is domain-specific and would need to be repeated for each new capability pair. The paper's Section 6.3 demonstration that token classifiers trained on coarse labels approach the performance of those trained on SAE labels (Figure 14) provides some evidence that the pipeline can work with cheaper labeling strategies, but this evidence is still within the medical domain—it tests label quality, not domain transferability.

Mitigation status. The paper acknowledges the single-domain limitation only in passing. Section 7 gestures toward future work on "other domains and modalities" but does not frame the domain-specificity as a specific limitation of the current results. The lack of even a small-scale experiment on a second domain pair (e.g., chemistry vs. physics, or a synthetic domain with controlled vocabulary overlap) is a missed opportunity to characterize how filtering effectiveness degrades as the lexical boundary blurs.


Token Removal Risks Producing Degraded but Deceptively Coherent Outputs on the Forget Domain—Not Clean Refusals

The assumption or constraint. The paper demonstrates that token filtering suppresses medical accuracy (20× reduction in correctness on HealthSearchQA), but it does not suppress medical output. The filtered models do not refuse to answer medical questions; they generate syntactically fluent, topically engaged responses that are factually wrong. Table 5 (Appendix D) shows these "confident hallucinations": the token-removal model describes botulism as "a condition characterized by the formation of a new, larger, or more complex cell within the body," defines arterial thrombus as "a type of infection," and explains that Covid "is typically associated with temperatures below 0°C."

This behavior is a direct consequence of the filtering mechanism. Loss masking and token removal prevent the model from learning medical knowledge, but they do not prevent it from learning that certain tokens co-occur with medical contexts—the model still sees medical-adjacent framing ("How do adults usually get botulism?") and learns to produce fluent completions using the non-medical vocabulary it has learned. The outputs are syntactically English and topically relevant because the model's language modeling capabilities were trained on general text, but the factual content is recombined from fragments of non-medical knowledge that happen to share surface patterns with medical discourse.

This is a capability failure mode distinct from alignment failure. The model is not refusing, not outputting gibberish, and not deferring to human expertise—it is producing compelling-sounding misinformation. For genuinely dangerous domains, this could be worse than explicit refusal: an adversary querying about bioweapons synthesis who receives a coherent but incorrect protocol might waste time pursuing non-viable approaches, but they might also stumble upon dangerous partial information. More importantly, the output appears knowledgeable, which could mislead a non-expert user into trusting it.

The consequence. In a deployment context where the model is expected to either answer correctly or refuse, token filtering without additional refusal training produces the worst of both worlds: incorrect answers that appear correct. The paper addresses this in Section 4.4 by showing that refusal training can be applied to filtered models, and that token-removal models actually refuse better than baselines after such training. But this means token filtering alone is insufficient—it must be paired with alignment training to achieve safe behavior. The standalone filtered model is unsafe in a different way than the unfiltered model: not dangerously capable, but dangerously confident in incorrect outputs.

For open-weight model releases, this is particularly concerning. An open-weight model trained with token filtering but without refusal training would freely generate confident medical misinformation. If the model developer releases only the filtered base model (expecting downstream users to handle alignment), those users may not realize that the model requires refusal training specifically for the forget domain, or may apply generic alignment techniques that fail to address the confident-hallucination pattern.

What evidence exists in the paper. Table 5 (Appendix D) provides multiple examples across different filtering methods and question types. The token-removal model consistently produces these "confident but wrong" responses across all five randomly-selected HealthSearchQA questions. Figure 6 quantifies the degradation through Claude Sonnet 4 judgments, showing that coherence drops less than correctness (3–4× vs. 20×)—the responses are more coherent than they are accurate, consistent with the qualitative pattern.

The paper does not evaluate whether the incorrect outputs are dangerously wrong in a medical sense (e.g., recommending harmful treatments vs. stating irrelevant facts), nor does it evaluate how a non-expert human would judge the trustworthiness of these outputs. These would be natural evaluations for the medical domain but are arguably more important for the genuinely dangerous domains this work proxies.

Mitigation status. The paper partially addresses this through the refusal training experiments (Section 4.4), which show that the confident-hallucination behavior can be corrected through additional training. But this mitigation is external to the filtering pipeline—it requires an additional training stage with domain-specific refusal data, which reintroduces some of the annotation burden that pretraining filtering was meant to avoid. The paper does not explore whether there are filtering strategies that would naturally produce refusal-like behavior (e.g., explicitly training the model to recognize <|hidden|> tokens as signals to express uncertainty). The alignment results (Figure 9) should be understood as showing that filtered models are alignable, not that filtering alone produces aligned behavior.


The Scaling Results Stop at 1.8B Parameters—Two Orders of Magnitude Below Frontier Scale

The assumption or constraint. The paper demonstrates favorable scaling trends from 61M to 1.8B parameters. The relative compute slowdown grows with scale: from ~3× at 61M to ~7000× at 1.8B for token removal on the forget domain (Figure 1). The paper implicitly presents this as evidence that filtering "gets more effective with scale" (title of Section 4.2), suggesting the trend will continue.

But two orders of magnitude separate 1.8B parameters from frontier models (~70B for LLaMA 3, ~405B for LLaMA 3.1, larger for proprietary models). Scaling laws are not guaranteed to be linear or even monotonic at all scales—the paper itself acknowledges the possibility of reversal in Section 7:

"It could be the case, though, that we see 'U-shaped' scaling: sufficiently large and capable models might be able to grok dangerous capabilities from a small number of samples that slip through filtering."

This concern is not hypothetical. Larger models are more sample-efficient—they learn more from less data. The token-level classifier has a measured error rate of approximately 11% relative to SAE labels (Section 6.1). The small fraction of medical content that passes through the filter may be insufficient for a 1.8B model to develop medical capabilities, but it could be sufficient for a 70B or 405B model that extracts more signal per token. If this "grokking" threshold exists, the scaling curve would eventually bend downward—filtering would become less effective beyond some critical scale, not more.

The consequence. A lab training frontier models cannot directly apply the 7000× estimate to their scale. The estimate bounds filtering effectiveness from below 1.8B—it tells us filtering works well at this scale—but provides no bound on effectiveness at 70B or 400B. Since the paper's policy recommendation is that "pretraining filtering remains a safer option" (Section 7) and should be part of a "defense-in-depth approach," the uncertainty about scaling behavior at frontier scale directly undermines the strength of this recommendation. A developer committing to filtering for a 100B+ parameter model is making a decision based on trends measured at 1/50th to 1/200th of their target scale.

The extrapolation problem is compounded by the compute-optimal training setup. At 1.8B parameters, the model sees ~36B tokens. A 70B model would see ~1.4T tokens. The total amount of residual medical content slipping through the filter scales with total tokens processed—even at a constant error rate, the 70B model would be exposed to ~40× more residual medical tokens than the 1.8B model. If the "critical mass" of medical content needed for capability formation is relatively fixed (e.g., equivalent to a few thousand clean medical documents), then scale increases exposure faster than the sample efficiency advantage compounds, potentially crossing the capability threshold.

What evidence exists in the paper. The scaling trends themselves are the evidence for the claim, and they are measured cleanly across two orders of magnitude. Figure 16 shows consistent slope differences between filtered and unfiltered models on the forget domain—this is robust within the measured range. The paper provides no evidence for or against the U-shaped scaling hypothesis. It acknowledges the concern explicitly in Section 7, which is commendable transparency, but this acknowledgment does not resolve the limitation.

Mitigation status. The paper treats this as future work, calling for studies that "push scaling laws beyond the 7B scale." It does not propose or evaluate any method for predicting whether the trend will continue or reverse, nor does it provide theoretical arguments (beyond the qualitative "grokking" concern) for why a reversal might occur at a specific scale. The computational cost of extending to 7B+ parameters is acknowledged as a constraint, which is reasonable but does not change the fact that the current results cannot distinguish between "filtering gets more effective indefinitely" and "filtering effectiveness peaks and then declines at frontier scale."


The "Robustness" Claim Only Tests a Single, Narrow Adversarial Scenario

The assumption or constraint. Section 4.3 demonstrates that filtered models are more robust than an RMU-unlearned model against one specific attack: finetuning on in-domain medical text from PubMed with hyperparameters swept to minimize recovery time. The paper claims filtering is "10× more robust than unlearning" based on this experiment.

A real adversary attempting to recover filtered capabilities would have a much broader attack surface. They could: (1) finetune on a mixture of data rather than pure in-domain text, potentially with carefully constructed data that teaches the model to interpolate from related domains (biology, chemistry, general reasoning); (2) use retrieval-augmented generation to supply medical knowledge at inference time rather than through weight updates; (3) apply representation-engineering techniques that modify internal activations without finetuning; (4) exploit the fact that token removal leaves the model with general reasoning capabilities intact—an adversary could provide detailed medical knowledge in a system prompt or few-shot examples and have the model reason over it competently (since the model's general intelligence is preserved); (5) distill knowledge from a capable medical model into the filtered model through synthetic data generation.

The paper evaluates none of these. The adversarial evaluation is essentially a finetuning robustness test, not a general robustness test. Even within the finetuning paradigm, the paper tests only one unlearning baseline (RMU) and does not compare against models with both filtering and unlearning applied, or against document filtering combined with other posttraining defenses.

The consequence. The "10× more robust" claim may significantly overstate filtering's practical security properties. For open-weight release scenarios—which the paper explicitly targets as a motivating use case (Section 2, discussing the perpetual cat-and-mouse game with jailbreaks)—the relevant threat model is a motivated adversary with full model access and substantial compute. Such an adversary is not limited to naive finetuning on PubMed. The paper's robustness experiment addresses whether filtering resists casual recovery attempts, but provides no evidence about determined recovery attempts using more sophisticated techniques.

This limitation is particularly important given the paper's own framing that post hoc safeguards are insufficient because "once a capability exists in a base model, it is extremely hard to remove it." The robustness experiments test whether filtering prevents capability recovery, but the attack model tested (pure finetuning) is substantially weaker than the attack models that have succeeded against post hoc safeguards (which include jailbreaking, representation engineering, and multi-stage finetuning). To justify the paper's strong claim that pretraining filtering is categorically more robust than posttraining methods, a broader adversarial evaluation is needed.

What evidence exists in the paper. The finetuning robustness experiment (Figure 7, Figure 26) is well-executed within its narrow scope. The finding that RMU's robustness degrades faster with scale than filtering's robustness is substantiated and interesting. The paper reports hyperparameter sweeps for both RMU and finetuning, showing that the comparison is fair within the chosen attack model. But the paper reports no other attack types, no mixture-based finetuning, no retrieval augmentation experiments, and no few-shot elicitation tests.

Mitigation status. The paper does not acknowledge the narrowness of the adversarial evaluation as a limitation. Section 7 advocates for "defense-in-depth" and notes that O'Brien et al. (2025) "show that document filtering is not robust to in-context retrieval attacks"—this is an implicit acknowledgment that filtering has its own robustness limits, but the paper does not test whether token filtering shares this specific vulnerability or whether the token-level granularity provides any additional protection against retrieval attacks. The "10× more robust" figure is presented without qualification about the limited attack surface tested.


Fine-Grained Alignment Within the Forget Domain Is Likely Impossible with Token Filtering—Only Coarse Domain Discrimination Works

The assumption or constraint. Section 4.4 demonstrates that filtered models can be trained to refuse all queries from the forget domain. The refusal training setup is binary: HealthSearchQA (refuse) vs. Alpaca (answer normally). This conflates "detecting the domain" with "detecting harmfulness within the domain." For many real-world safety applications, this conflation is unacceptable.

In the medical proxy setting, a deployed model should not refuse all medical queries. It should refuse dangerous ones ("how to synthesize a toxin at home") while answering benign ones ("what are the symptoms of a common cold?"). In the paper's actual target domains (CBRN weapons, cyberattacks), the distinction may be even more critical: a model should refuse to provide bioweapon synthesis instructions while remaining willing to discuss biosecurity policy, and should assist with defensive cybersecurity while refusing to generate exploit code. These distinctions require fine-grained classification within the forget domain—distinguishing harmful from benign uses of overlapping knowledge.

The paper provides direct evidence that token filtering undermines this capability. Figure 21 shows that filtered models are "substantially worse than the baseline" at within-domain classification (distinguishing between medical subdomains like neurology vs. infectious disease). The paper characterizes this limitation explicitly in its analysis of refusal training: the model learns to separate "trained vs. untrained" tokens, which provides a clean signal for coarse domain discrimination but "does not allow for fine-grained control on multiple forget domains."

The consequence. If within-domain classification is necessary for alignment—as it is for most realistic safety applications—token filtering may create a fundamental tradeoff: it improves coarse domain detection (and thus coarse refusal) but degrades or eliminates the representations needed for fine-grained harmfulness judgments. The paper's claim that filtering "makes alignment easier" (Section 4.4) is only true for the specific (and relatively simple) alignment task of binary domain refusal. For more nuanced alignment tasks, filtering likely makes alignment harder, because the model no longer has the internal knowledge to distinguish safe from unsafe queries within the domain.

This limitation interacts with the scaling concern (Limitation 4): if larger models become better at fine-grained discrimination from sparse residual knowledge, then filtered models at scale might recover some within-domain classification ability. But the current evidence (up to 1.8B) shows no such recovery—the within-domain classification gap is substantial and does not show signs of closing in the measured range.

For practitioners, this means token filtering should not be viewed as a replacement for fine-grained alignment but rather as a boundary-setting intervention that makes the domain easier to detect and harder to inadvertently use, at the cost of making nuanced judgments within the domain more difficult. This is a legitimate design choice—in some settings, coarse refusal of an entire domain may be preferable to the risk of harmful outputs—but it must be recognized as a tradeoff, not a pure improvement.

What evidence exists in the paper. The Figure 21 probe results provide direct evidence of the within-domain classification failure. The paper's own analysis in Section 4.4 ("What's going on?") articulates the mechanism: "filtering does not allow for fine-grained control on multiple forget domains. But this is sufficient for refusal training: we simply need the model to refuse when asked a question it does not have an answer to." The paper thus acknowledges the limitation but frames it as acceptable for the specific use case of uniform refusal, without discussing whether this framing generalizes to safety applications that require discrimination within the forget domain.

Mitigation status. The paper does not attempt to mitigate this limitation or evaluate whether alternative filtering strategies (e.g., filtering at different granularities for different subdomains) could preserve within-domain discrimination. The refusal training experiments (Figure 9) only test binary domain detection. Section 7 mentions future work on "filtering for misalignment risk" and "shaping scheming capabilities," which would require within-domain discrimination, but does not address how the current approach would need to be modified to support such tasks.

7. Implications and Future Directions

How This Work Changes the Landscape

This paper fundamentally reframes capability shaping from a post hoc removal problem to a pretraining prevention problem, and in doing so shifts the burden of evidence for the field. Before this work, the dominant paradigm treated capability control as something you do after pretraining—through RLHF, unlearning, or inference-time classifiers—with pretraining data filtering relegated to a coarse, best-effort preprocessing step primarily aimed at toxicity and content quality rather than capability suppression. The paper's core empirical result—that token-level filtering achieves a 7000× compute slowdown on the forget domain at 1.8B parameters while document filtering achieves only 30×—establishes that granularity of data intervention is not a minor implementation detail but a first-order determinant of effectiveness. This is not an incremental improvement on document filtering; it is evidence that document filtering was operating at the wrong level of abstraction entirely.

The magnitude of this reframing becomes clear when you consider what the paper forces the field to explain. A researcher who now advocates for post hoc unlearning as a primary safety strategy must answer: if token filtering provides 13× more robustness than RMU at 1.8B parameters (Figure 7), and this gap widens with scale, under what conditions would unlearning be preferable? The paper does not merely present an alternative—it establishes a new Pareto frontier that other methods must be measured against, and the measured gap is large enough (an order of magnitude in robustness, three orders of magnitude in compute efficiency on the forget domain) that it cannot be dismissed as domain-specific noise.

The paper also resolves a puzzling contradiction in the literature that had practical consequences for safety research prioritization. Prior work on toxicity filtering (Longpre et al., 2024; Li et al., 2025) found that models trained on less toxic data became worse at alignment—they couldn't reliably detect toxicity and therefore couldn't reliably refuse. This finding had been (reasonably) extrapolated to suggest that capability-domain filtering would similarly impair alignment, creating a tension between "remove dangerous knowledge" and "maintain control over model behavior." The paper shows this extrapolation is incorrect for capability domains, and provides a mechanistic explanation: the alignment task for filtered capability domains reduces to detecting distribution shift ("trained vs. untrained" tokens), which the model can do even after filtering (Figure 8), whereas the alignment task for toxicity filtering requires contextual judgment within a domain whose vocabulary the model has seen (just in different contexts). This distinction—that filtering effectiveness for alignment depends on whether the forget domain has distinctive surface features that survive filtering—provides a boundary condition that reconciles the apparently contradictory prior findings. It means filtering can improve alignment when the domain is lexically separable, which is precisely the case for the dangerous capability domains (CBRN weapons, exploit code) that motivate this research.

Perhaps most importantly, the paper shifts the evaluation burden for capability-shaping research. Prior work on unlearning was evaluated primarily on immediate post-intervention metrics—did the model's accuracy on WMDP drop? Could it still answer general questions? This paper demonstrates that such evaluations are insufficient because they don't capture scaling dynamics: RMU looks effective at small scales (Figure 7 shows it requires substantial adversarial compute at 61M parameters) but its robustness degrades rapidly with model size. A method that passes a static evaluation at one scale may fail catastrophically at the next. The paper's approach—training model series across two orders of magnitude and measuring scaling exponents rather than point estimates—provides a template for more rigorous capability-shaping evaluation. Future work that reports only single-scale results on unlearning or filtering should be viewed with appropriate skepticism; the scaling slope matters more than the absolute number.

The paper also indirectly strengthens the case for investing in pretraining data infrastructure as a safety intervention. If token filtering is the most effective known method for preventing capability acquisition, then the ability to classify and filter pretraining data at token granularity becomes a critical safety capability. This has organizational implications: it suggests that teams building pretraining corpora (data collection, deduplication, quality filtering) are doing safety-relevant work, not just performance-relevant work, and that classifier development for safety domains should begin before large-scale pretraining, not as a retrospective cleanup step. It also implies that pretraining data transparency—knowing what is in the corpus at a granular level—is a prerequisite for effective filtering, which has policy implications for data documentation standards.

Follow-Up Research This Work Enables

1. Scaling laws beyond 1.8B to test the U-shaped scaling hypothesis. The paper's central scaling result—that filtering gets more effective from 61M to 1.8B parameters—establishes a trend but cannot distinguish between two futures: continued improvement (filtering becomes near-absolute at frontier scale) or eventual reversal (sufficiently sample-efficient models grok capabilities from residual unfiltered content). The most important follow-up is to extend the model series to 7B or 13B parameters, maintaining the same architecture, data, and filtering pipeline. The key measurement is whether the relative compute slowdown continues to grow (favorable) or begins to decline (indicating a U-shaped curve). A U-shaped reversal would not invalidate filtering—a 7000× slowdown at 1.8B that drops to, say, 500× at 70B is still a substantial intervention—but it would bound filtering's asymptotic effectiveness and suggest that complementary posttraining safeguards become relatively more important at frontier scale. The paper's compute-optimal training setup makes this extension expensive (Chinchilla scaling at 7B requires ~140B tokens), but the scientific value of distinguishing these two regimes justifies the cost. A negative result (U-shaped reversal) would be as scientifically valuable as a positive result (continued improvement), since it would establish the scale at which filtering's effectiveness peaks.

2. Characterizing filtering effectiveness as a function of lexical separability between domains. The paper demonstrates that medical/biology is filterable, but provides no evidence about why it's filterable or whether other domain pairs would show similar behavior. A systematic follow-up would construct a set of capability pairs with varying degrees of lexical and conceptual overlap: high-overlap pairs (organic chemistry vs. biochemistry, Python web development vs. Python exploit development), medium-overlap pairs (physics vs. engineering, legal reasoning vs. regulatory compliance), and low-overlap pairs modeled on the paper's medical/biology distinction. For each pair, replicate the core experiment: train token-level classifiers, filter pretraining data, train model series, and measure compute slowdown. The research question is whether there exists a predictable relationship between classifier F1 score and filtering effectiveness that would allow practitioners to estimate filtering benefits before committing to the full pipeline. If the relationship is approximately monotonic (better classifiers → more effective filtering), then classifier F1 on a small labeled set becomes a cheap proxy for filtering effectiveness. If not—if some domains resist filtering despite high classifier accuracy because the knowledge is more distributed or compositional—then the paper's medical proxy may be misleadingly optimistic and filtering may be less applicable to the most important safety domains.

3. Combining token filtering with gradient routing or representation-engineering methods during pretraining. The paper studies filtering in isolation but explicitly notes the existence of complementary pretraining interventions: gradient routing (Cloud et al., 2024; Shilov et al., 2025) attempts to segment capabilities within the model's own representations by modifying gradient flow during training. Token filtering and gradient routing operate on different parts of the training pipeline—filtering on the data, gradient routing on the optimization—and their failure modes are likely different. Token filtering fails when the classifier misses dangerous content (false negatives); gradient routing fails when the model's representations don't cleanly separate along the intended capability boundary. A natural combined experiment: apply token filtering to remove the most obvious forget-domain content, then apply gradient routing to handle the residual edge cases where token-level features are ambiguous. The hypothesis would be that the combination achieves better suppression than either alone, particularly on the boundary cases (like biology/medicine overlap) where token filtering shows its weakest performance. A strong experiment would compare (1) token filtering alone, (2) gradient routing alone, (3) both combined, and (4) an unfiltered baseline, all at matched pretraining compute, measuring both forget-domain suppression and the robustness of suppression to adversarial finetuning. The paper's finding that filtering effectiveness is won mostly in early training (Figure 22) suggests an implementation strategy: apply token filtering throughout training but apply gradient routing only in later stages when representations have matured.

4. Evaluating whether filtered models maintain general reasoning capabilities when supplied with forget-domain knowledge at inference time. The paper demonstrates that filtered models cannot generate medical knowledge, but does not test whether they can reason over medical knowledge provided in-context. This distinction is critical for safety: if a filtered model can competently reason about bioweapons when given a detailed system prompt describing synthesis protocols, then filtering has not removed the dangerous capability—it has only removed the model's ability to recall the knowledge from its own weights, while leaving intact the reasoning machinery to apply the knowledge when externally supplied. The experiment: finetune filtered and unfiltered models to follow instructions, then evaluate them on medical reasoning tasks where all necessary factual knowledge is provided in the prompt. If filtered models perform comparably to baselines on these "open-book" medical exams, then filtering is a retrieval prevention mechanism, not a capability removal mechanism. The safety implication would be that filtered models remain dangerous in any deployment where adversaries can supply domain knowledge through prompts, few-shot examples, or retrieval—which describes essentially all realistic deployment scenarios. This experiment would directly address the paper's acknowledged concern about in-context learning from sparse unfiltered tokens.

5. Weak-to-strong classifier generalization across genuinely distinct capability domains. The paper demonstrates weak-to-strong generalization for token-level classifiers within the medical domain (Figure 15): a strong classifier trained on weak labels improves over its teacher. But the weak and strong classifiers share the same domain—they're both trying to classify medical content, just with different label quality. A more ambitious test would ask: can a token-level classifier trained to detect medical content (where we have good SAE latents) generalize to detect biological-weapons-relevant content (where we expect latents to be sparse or nonexistent in current SAEs)? This is the realistic deployment scenario: we want to filter dangerous biology content, but we can only get high-quality labels for related-but-not-identical proxy domains. The experiment would train a token-level classifier on medical labels, then test its transfer performance on a held-out bioweapons corpus (e.g., using the WMDP biology subset). If the classifier shows non-trivial transfer—detecting at least some bioweapons content despite never being trained on bioweapons labels—then the SAE bootstrapping approach is practically viable for genuinely dangerous domains. If transfer is near-zero, then filtering for novel dangerous domains requires developing domain-specific SAE features or labeling pipelines from scratch, substantially raising the barrier to deployment.

6. The interaction between filtering and emergent misalignment risks. The paper focuses on filtering to remove capabilities, but Section 7 briefly raises the possibility of filtering to reduce misalignment risk—for instance, removing content about AI alignment evaluations, honeypots, or chain-of-thought monitoring that could enable situational awareness or deceptive alignment. This is a qualitatively different filtering objective: rather than removing a domain of knowledge, it involves removing a narrow slice of meta-knowledge that is lexically similar to the vast amounts of AI discourse the model should learn from. Token filtering's effectiveness likely drops sharply as the forget/retain boundary becomes finer-grained, because the classifier's error rate (11% for medical) would be substantially higher for a distinction like "AI alignment discussion that reveals evaluation methodologies" vs. "AI alignment discussion generally." A concrete experiment: construct a synthetic dataset where "dangerous" content is interspersed with "safe" content at varying ratios (1%, 5%, 20% dangerous content within otherwise identical-looking documents), train token-level classifiers, and measure filtering effectiveness as a function of the base rate of dangerous content. This would establish the minimum density of forget content required for effective token filtering—below some threshold, the classifier cannot achieve sufficient precision without massive over-filtering of benign content, and token filtering collapses to the document-filtering Pareto frontier. This directly informs whether filtering can address narrow misalignment risks or is limited to broad capability-domain removal.

Practical Applications and Downstream Use Cases

1. Open-weight model releases with defense-in-depth capability controls. The most direct application is for organizations releasing open-weight models who want to prevent misuse while maintaining broad utility. The paper shows that a model trained with token removal on medical content achieves near-chance performance on medical licensing exams (Figure 5) while matching baseline on non-medical STEM and humanities benchmarks. Translated to practice: a lab releasing a general-purpose language model could apply token filtering for a defined set of dangerous capability domains (CBRN weapons, cyber exploit development, surveillance techniques) before pretraining, producing a model that lacks these specific capabilities while preserving general utility. The cost: developing domain-specific classifiers for each dangerous domain (the paper's pipeline provides a template), running inference over the pretraining corpus (claimed to be a small fraction of pretraining compute), and training the filtered model (same cost as unfiltered pretraining, since the corpus size changes only by the fraction of tokens filtered—typically 10–15%). The benefit: the released model has no latent dangerous capabilities to recover through jailbreaking or finetuning, addressing the structural vulnerability the paper identifies in post hoc safeguards. However, the paper's caveats apply: the model would still be vulnerable to in-context retrieval attacks (adversaries supplying dangerous knowledge in prompts), and fine-grained alignment within filtered domains would be difficult.

2. Efficient mid-training corrections when new dangerous domains are identified. Figure 22 shows that filtering effectiveness drops exponentially as filtering onset is delayed—filtering only in the last 60% of training is roughly an order of magnitude less effective than filtering throughout. This suggests an operational pattern: if a new dangerous capability domain is identified after pretraining has begun, it is substantially better to restart training from scratch with the new filter than to apply filtering to the remainder of training. But the paper also notes (Section 7) that "most gains in filtering are won early," meaning a developer could train the bulk of a model on general data, then branch: train one version with filtering from the start for open release, and continue training an unfiltered version for controlled-access deployment. The early-training dominance of filtering makes this branching strategy relatively efficient—the filtered and unfiltered models share the early training compute, and only the later stages (which contribute less to capability formation on the forget domain) diverge. This has direct implications for how AI labs structure their training pipelines when they anticipate both open and restricted release tracks.

3. Verifier model training for capability-domain monitoring. The paper demonstrates that filtered models can still detect the forget domain with near-baseline accuracy (Figure 8: linear probes achieve comparable forget/retain classification on filtered and unfiltered models), even though they cannot use forget-domain knowledge. This suggests an architectural pattern for deployment: train a filtered model as the primary assistant, but also train a small classifier (or probe) on the model's internal representations to monitor whether user queries are attempting to elicit forget-domain capabilities. Because the filtered model retains domain-detection ability, its internal representations contain the signal needed for a monitor to flag suspicious queries. The monitor could trigger additional safeguards (refusal, human review, query sanitization) without requiring the filtered model to "know" the dangerous content. This exploits the paper's finding that classification and generation rely on different aspects of model representations—filtering degrades the latter while preserving the former. The benefit: a principled separation between the model's capability (what it can do) and its monitorability (whether we can detect when it's being asked to do dangerous things), which is a cleaner architecture than relying on the same model both to detect and to respond to dangerous queries.

4. Efficient data pruning for large-scale pretraining. Beyond safety, the paper's finding that token filtering achieves better precision-recall tradeoffs than document filtering has direct implications for data curation efficiency. If certain types of content are known to be unhelpful or harmful for downstream capabilities—low-quality text, toxic content, non-target languages—token-level filtering can remove them with less collateral damage to surrounding useful content. The paper quantifies this: within documents classified by the document-level filter, 50% of tokens are actually benign (Figure 24). For a pretraining run at the 1T+ token scale, recovering this 50% through token-level filtering means training on substantially more useful data without increasing total corpus size. The practical workflow: define an undesired content category, train a token-level classifier using the SAE bootstrapping pipeline (or coarse labels plus weak-to-strong generalization, per Section 6.3), filter the corpus, and train with either loss masking or token removal depending on whether context coherence or capability suppression is the priority. The paper's result that classifiers trained on sentence-level labels approach the performance of those trained on token-level labels (Figure 14, Figure 25) means this pipeline can often bypass the expensive SAE step entirely—sentence-level labels from a capable LLM are sufficient to train an effective token-level filter.

When to Prefer This Method

The paper explicitly positions token filtering against two alternatives—document-level filtering and post hoc unlearning (RMU)—and the experimental results provide clear decision boundaries:

  • Prefer token-level filtering over document-level filtering when the forget domain content is distributed in bursts within documents rather than cleanly separated by document boundaries, and when the pretraining corpus is sufficiently large that the precision improvement (recovering ~50% of false-positive tokens within classified documents, per Figure 24) translates to meaningful gains in retain-domain capability. The paper's evidence suggests this condition holds broadly—only 23% of documents have zero medical tokens—but the benefit is most pronounced when pretraining data is constrained (approaching the data scarcity regime discussed in Section 2) because every discarded benign token represents a non-recoverable loss of training signal.

  • Prefer token-level filtering over RMU unlearning when the model will be released with open weights (where adversaries can apply arbitrary finetuning), when model scale is large enough that the robustness gap is substantial (Figure 7 shows the gap widens with scale), and when the forget domain has lexical features that permit classifier F1 above approximately 0.80 (below which filtering effectiveness degrades rapidly, per Figure 12). Do not prefer token filtering over RMU when the forget domain is a narrow, lexically-indistinguishable subset of a larger domain (e.g., removing knowledge of a specific historical event while preserving general history knowledge), because the classifier precision required would force massive over-filtering of benign content, collapsing the token-filtering advantage.

  • Do not prefer token filtering alone when the deployment requires fine-grained refusal behavior within the forget domain (e.g., refusing dangerous medical queries while answering benign ones), because Figure 21 shows within-domain classification is substantially impaired. In such cases, token filtering must be paired with posttraining alignment, as demonstrated in Section 4.4. The filtered model provides a clean domain boundary for coarse refusal; additional training provides the within-domain discrimination that filtering removes.

  • Prefer loss masking over token removal when the surrounding context of forget tokens is important for learning retain-domain capabilities (e.g., when filtering code exploits, the surrounding legitimate code provides useful context for learning general programming). Prefer token removal when maximum forget-domain suppression is the priority and when the risk of the model forming residual representations of forget-domain content through forward-pass exposure outweighs the benefit of contextual coherence. The paper shows token removal is consistently more effective (lower forget loss, lower MCQ scores, higher robustness in Figure 7) but does not provide a systematic analysis of the retain-domain cost difference at matched forget suppression—this tradeoff must be estimated on a per-domain basis.