DETER: Toward Tamper-Resistant Suppression During PretrainingDETER: Suppression During Pretraining for Tamper Resistance
The authors say that interleaving gradient-ascent suppression (DETER) during pretraining makes medical knowledge harder to recover through fine-tuning: for the 1030M model to reach the unfiltered baseline's PubMed loss requires 20.36 times as many fine-tuning tokens as the filtered baseline.
After an open-weight model is released, the attacker holds the weights and directly fine-tunes on target-domain data (the PubMed portion of Common Pile), attempting to recover the suppressed target-domain capability; the defender filters and actively suppresses target-domain knowledge during pretraining. The attacker uses the same optimizer as in pretraining, with a learning rate searched to be the one requiring the fewest tokens to reach the unfiltered baseline PubMed loss.
- After an open-weight model is released, it may be directly fine-tuned to recover suppressed dangerous knowledge; the authors state that post-training unlearning is easily undone by a small amount of fine-tuning, that pretraining data filtering is more durable but still a proxy, and that target-domain learning may still remain.
- Pretrain normally on the filtered corpus while, starting from the beginning of pretraining, inserting 1 step of gradient-ascent suppression on the filtered medical documents every 50 steps (DETER); pretraining and suppression share parameters but maintain independent optimizer states.
- At four scales from 113M to 1030M, DETER makes the number of PubMed fine-tuning tokens required to reach the unfiltered baseline's PubMed loss 3.05×–20.36× that of the filtering baseline, higher than token filtering and post-hoc RMU, and the gap grows with scale; general loss changes very little.
- The authors state that the experiments use only medical knowledge as the proxy target domain and models up to 1030M, and do not verify extension to genuinely dangerous capabilities and other domains; pretraining uses only a single seed, and adversarial modifications are not exhaustively evaluated; all methods can reach the unfiltered baseline's PubMed loss within the evaluated attack budget.
- Evaluated models
- decoder-only transformer (113M)decoder-only transformer (224M)decoder-only transformer (521M)decoder-only transformer (1030M)
- Benchmarks
- FineWeb-EduPubMed (Common Pile)bioRxivarXivPhilPapersMedQuADMedMCQAMedQA-USMLEMMLU
- Metrics
- held-out corpus losstask lossPubMed fine-tuning tokens to parityTokens ÷ FILTERING
The researchers propose the DETER method, which during pretraining interleaves gradient-ascent suppression on filtered target-domain documents with regular pretraining, making target-domain knowledge in open-weight models harder to acquire through subsequent adversarial fine-tuning. Experiments pretrain models from scratch at 113M to 1030M parameters, using medical knowledge as a proxy target domain, filtering out medical documents on FineWeb-Edu and then inserting suppression steps. Results show that at 1030M parameters, to reach the held-out PubMed loss of the unfiltered model through adversarial fine-tuning requires 20.36 times as many PubMed fine-tuning tokens as filtering alone (2.09M vs. 0.10M), and at all scales it also exceeds filtering alone and the post-hoc unlearning method RMU; the damage is concentrated in the medical domain, the loss in general capabilities is limited, and the larger the model, the more favorable the suppression trade-off. The authors note that the experiments cover only up to 1B parameters and a medical proxy domain, do not verify whether the method holds for genuinely dangerous capabilities, and that within the tested attack budgets all methods eventually reach the unfiltered baseline. Code at github.com/MEGlr/DETER.
Why it was selectedThe paper quantifies, on models of up to 1B parameters, the tamper-resistance gains of pretraining-time suppression compared with filtering and post-hoc unlearning, providing a reference for safety training of open-weight models.
Paper analysis
What problem does this paper attempt to solve?
How to make knowledge suppressed in open-weight models withstand adversarial fine-tuning after release; the authors advocate active suppression during pretraining.
Core question: how to actively suppress target-domain knowledge during pretraining so that, after an open-weight model is released, it is harder to reacquire that capability through adversarial fine-tuning.
- Setting and importance: Open-weight models may acquire knowledge related to biological, chemical, or cyber misuse; after weights are released, an attacker holding the weights can fine-tune directly on target-domain data, undoing any suppression (the authors cite Henderson et al., 2023).
- Shortcomings of existing methods: The authors state that post-hoc unlearning is fragile under this threat model, and a small amount of fine-tuning can restore target-domain performance; pretraining data filtering is more durable, but filtering rules are only a proxy estimate of "which data contribute to target-domain learning," target-domain learning may still emerge from the retained corpus, and filtering itself provides no explicit signal for how the model should behave on the target domain.
- Core observation: The filtered-out high-scoring documents can serve as an explicit negative training signal, forming a second line of defense against target-domain learning (Figure 1).
- Method proposed in the paper: DETER—pretraining on the filtered corpus while periodically interleaving suppression updates on a subset of the removed documents (gradient ascent by default), and comparing its fine-tuning resistance with filtering alone, token-level filtering, and post-hoc RMU at four model scales.
- Threat model:
- Attacker goal: Restore the suppressed target-domain (medical) capability through fine-tuning, with the criterion being reaching the held-out PubMed loss of the unfiltered baseline model.
- Attacker knowledge: Can access the model weights (open-weight setting).
- Attacker capability: Fine-tune the final pretraining checkpoint on the PubMed portion of Common Pile, using the same optimizer as pretraining, with the learning rate searched to be the one requiring the fewest tokens to reach the target loss.
- Victim system: Decoder-only transformers pretrained from scratch at 113M–1030M, with medical knowledge as the proxy target domain.
What related research exists?
Related work covers pretraining data filtering, intervention timing, capability localization during training, post-training unlearning and tamper-resistant training; this paper uses filtering and RMU as the main baselines.
Pretraining data filtering
- O'Brien et al. (2026)—filtering data related to biological threats, which the authors state remains effective under large-scale adversarial fine-tuning; this paper uses filtering as the main baseline.
- Rathi & Radford (2026)—token-level filtering improves the retain–forget trade-off, which the authors state strengthens with scale and remains effective under label noise; this paper adopts their medical target-domain setting, evaluation protocol, and token filtering baseline.
- Yu et al. (2024) (MATES)—using a data influence model to measure documents' contribution to the target domain; the paper notes that such methods are still proxy estimates of what the final model has learned.
Post-hoc unlearning
- Output-level objectives: gradient ascent (Jang et al., 2023), NPO (Zhang et al., 2024), SimNPO (Fan et al., 2025), PALU (Zhai et al., 2026), Unilogit (Vasilev et al., 2025); representation-level: RMU (Li et al., 2024).
- The authors state that such interventions can be quickly undone by fine-tuning (Lee et al., 2025; Qi et al., 2025; Che et al., 2025); Zhang et al. (2024) documented gradient ascent's tendency to damage general capabilities in post-hoc unlearning.
- Zhong et al. (2025) (DualOptim)—using independent adaptive optimizer states for unlearning updates; this paper studies whether optimizer states should be shared in the pretraining–suppression setting.
Intervention timing and localizing capabilities during training
- Sam et al. (2026)—behavior-shaping safety interventions introduced earlier generally improve robustness to subsequent fine-tuning; Rathi & Radford (2026) found that delaying loss masking weakens suppression. This paper accordingly treats suppression start time as an experimental variable.
- Gradient Routing (Cloud et al., 2024) and SGTM (Shilov et al., 2025)—routing target-domain gradients to designated parameters so they can be removed afterward; the authors state that SGTM resists adversarial fine-tuning and can outperform filtering when labels are imperfect. This paper does not retain or remove parameters, but instead uses shared parameters throughout for periodic suppression.
Tamper-resistant training and preference pretraining
- Henderson et al. (2023) and TAR (Tamirisa et al., 2025)—explicitly optimizing the model against a simulated fine-tuning attacker; Qi et al. (2025) noted that their evaluation is sensitive to attack strength, and stronger fine-tuning configurations can substantially weaken previously reported durability.
- Korbak et al. (2023)—introducing human preferences during pretraining to avoid undesirable behavior; this paper studies the different goal of suppressing domain knowledge acquisition.
Baselines and benchmarks: The baselines are FILTERING (document-level filtering, ρ=20%), TOKEN FILTERING (token-level filtering from Rathi & Radford, 2026, removal variant), and post-hoc RMU (Li et al., 2024, using the same target-domain token budget as suppression); the pretraining corpus is FineWeb-Edu, and the fine-tuning attack data is the PubMed portion of Common Pile.
The authors position this paper as: using target-domain data excluded by filtering as a negative training signal, and testing whether active suppression during pretraining raises the cost of subsequent target-domain fine-tuning more than filtering or post-hoc unlearning.
How does the paper address this problem?
In pretraining on the filtered corpus, DETER periodically inserts gradient-ascent suppression on the removed medical documents; pretraining and suppression share parameters but have independent optimizer states.
Overall approach: first filter medical documents with a classifier before pretraining (first line of defense), then periodically interleave suppression updates on a subset of the removed documents throughout pretraining (second line of defense); the method is named DETER (suppression during pretraining).
Problem setting and formalization
- Target domain and retained domain: target capability refers to a capability that requires exposure to target-domain data to be acquired and that one wishes to suppress; retained capabilities refer to capabilities one wishes to preserve. D is the pretraining corpus, Dρ is the filtered corpus after removing the highest-scoring documents according to the classifier (proportion ρ of corpus tokens), and DF is a subset of the removed documents.
- Resistance measure: Following Rosati et al. (2024), tamper resistance is measured by the amount of fine-tuning compute an attacker needs to fine-tune the model to the target-domain loss of a reference model θ̄T (standard pretraining on the unfiltered corpus).
- Suppression updates: Starting from step tstart, S suppression steps are performed every P pretraining steps: θ(s+1) = Update(θ(s), ∇θ LF(θ(s)); cηt), i.e., the suppression learning rate is c times the pretraining learning rate ηt; by default LF is the negative next-token loss on DF (i.e., gradient ascent, Jang et al., 2023).
Data and target-domain construction (Appendix C)
- Category definition: Whether a document is medical is judged by topic (clinical information, diagnosis and treatment, pharmaceutical research, human anatomy and physiology, etc.), explicitly excluding veterinary medicine, molecular/organismal biology, health policy, mental health, etc.; the annotation prompt requires judging by topic rather than vocabulary.
- Annotation and classifier: Qwen3-30B-A3B-Instruct-2507 annotates 50,000 FineWeb-Edu documents with 5 samples and majority voting, achieving F1 0.89 on 300 human-annotated held-out documents; a logistic regression classifier is then trained on frozen bge-base-en-v1.5 representations, with test-set F1 0.78 and AUROC 0.98.
- Filtering and suppression sets: The filtering threshold is set for recall, with ρ=20% removing 99% of medical documents (precision 0.45); DF takes the highest-scoring documents totaling 5% of corpus tokens (threshold 0.75, precision 0.94, recall 0.51), with filtering targeting recall and the suppression set targeting precision.
Training procedure and optimizer design
- Default configuration: tstart=0 (from the start of pretraining), P=50, S=1, c=5 (c=3 for 1030M); both pretraining and suppression use Muon (AdamW for embeddings and normalization parameters), with µP transferring the same peak learning rate across the four widths; each model is trained for about 20 tokens/parameter (Chinchilla optimal).
- Independent optimizer states: Pretraining and suppression use the same optimizer type and update the same parameters, but each maintains its own momentum/moment estimates, updated only by the gradients of its own objective, and the two objectives interact only through shared parameters (Algorithm 1, Figure 9).
- Overhead: With S=1 and P=50, suppression adds about 2% of pretraining compute (2.7% for the target requiring a reference model); the second set of moment estimates adds about 50% memory overhead under AdamW, tending toward about 33% under Muon (Appendix B.2).
Suppression objectives and baseline design
- Comparison of seven suppression objectives: gradient ascent, truncated gradient ascent, local entropy (PALU), maximum entropy, uniform-target self-distillation (Unilogit unlearning term), past self-distillation (distilling toward the 5% pretraining checkpoint), small-model distillation (distilling toward the 61M model); none uses a retain loss, with suppression strength controlled by c and P.
- Baselines: FILTERING (document filtering only), TOKEN FILTERING (token-level filtering, replacing medical tokens with <|hidden|> and masking loss, with a 15% filtering rate matching suppression's general loss at 113M and 20% at 1030M), post-hoc RMU (applied after FILTERING, with the same target-domain token budget as suppression and hyperparameters grid-searched).
Evaluation method
- Corpus loss: Cross-entropy on held-out FineWeb-Edu medical/general documents, PubMed, bioRxiv (the closest retained domain), arXiv, and PhilPapers, all reported relative to NO FILTERING.
- Task loss: MedQuAD, MedMCQA, MedQA-USMLE, MMLU medical subset (target domain), MMLU biology (closest retained domain), MMLU STEM and non-STEM (general); the metric is the negative log-likelihood of the correct answer text given the question, averaged over 4 checkpoints from the last 10% of training.
- Adversarial fine-tuning: Fine-tuning on the PubMed portion of Common Pile (at most 100 steps, extended for the two largest models to 0.08% of pretraining), reporting the number of PubMed fine-tuning tokens required to reach NO FILTERING's held-out PubMed loss, and that value normalized relative to FILTERING at the same scale; each model and seed uses the learning rate requiring the fewest steps to reach the target.
What experiments did the paper conduct?
At all four scales, DETER's anti-fine-tuning capability exceeds that of filtering, token filtering and RMU, reaching 20.36× at 1030M, and the gap widens with scale.
Experimental setup
- Models tested: Decoder-only transformers pretrained from scratch at four scales: 113M, 224M, 521M, 1030M (architecture in Table 5), about 20 tokens/parameter per model; main experiments use Muon, some ablations use AdamW.
- Data: Pretraining corpus FineWeb-Edu (filtering ρ=20%, DF is the medical documents among the top 5% of tokens); fine-tuning attack data is the PubMed portion of Common Pile; evaluation corpora include held-out FineWeb-Edu, PubMed, bioRxiv, arXiv, PhilPapers.
- Baselines: FILTERING, TOKEN FILTERING (the removal variant of Rathi & Radford, 2026), post-hoc RMU (Li et al., 2024, same target-domain token budget); post-hoc gradient ascent, SimNPO, and Circuit Breakers were also run at matched general loss, but the authors state they have lower resistance, so only RMU is reported.
- Metrics: Held-out corpus loss and task loss relative to NO FILTERING; the resistance metric is the number of PubMed fine-tuning tokens required to reach NO FILTERING's PubMed loss and its normalized multiple ÷ FILTERING.
- Review and judgment method: No LLM review; target-domain document annotation uses Qwen3-30B-A3B-Instruct-2507 (F1 0.89 on 300 human-annotated documents); task loss is the negative log-likelihood of the correct answer.
- Sample size and repetitions: Main results are averaged over 3 fine-tuning seeds (Table 1); each model is pretrained only once; task loss is averaged over 4 checkpoints; some ablations use a single fine-tuning seed (Tables 3, 6, 7, Figures 6, 7, 10).
Main results
According to Table 1 (relative to NO FILTERING; Tokens is the PubMed fine-tuning tokens required to reach NO FILTERING's PubMed loss, in M; ÷FILT. is the multiple relative to FILTERING at the same scale; averaged over 3 fine-tuning seeds):
Swipe horizontally to read the table
Scale Method General loss ↓ Medical task loss ↑ Tokens (M) ↑ ÷FILT. ↑ 113M FILTERING −0.03 +1.39 0.13 1.00× 113M RMU +0.03 +3.54 0.17 1.34× 113M DETER +0.02 +3.94 0.39 3.05× 521M FILTERING −0.02 +1.37 0.12 1.00× 521M RMU +0.04 +5.10 0.16 1.40× 521M DETER +0.04 +4.79 1.58 13.53× 1030M† FILTERING −0.02 +1.27 0.10 1.00× 1030M† DETER +0.01 +4.09 2.09 20.36× †1030M setting: c=3, token filtering rate 20%. The table omits the TOKEN FILTERING rows (1.26×–2.16× for 113M–1030M) and all 224M rows (DETER 4.07×), as well as the general/closest-retain task loss columns; full data in Table 1.
- The authors state that DETER makes the required fine-tuning tokens more than twice those of filtering, token filtering, and RMU at every scale, and that the gap with token filtering widens from 521M onward; RMU stays close to filtering at all scales.
- The authors state that the damage is concentrated in medicine: biology (the closest retained domain) is less affected than medicine, and general-domain evaluation is affected even less (Table 1, Figure 11).
- Figure 3 shows: RMU's medical loss drops early in fine-tuning and approaches the filtering curve; DETER's medical loss drops more gradually, and after extending the attack to 0.08% of pretraining on the two largest models, medical task loss remains higher than FILTERING and converges with token filtering at the end of the attack.
Interaction between suppression start time and scale
- What was tested: Starting suppression at 0%, 20%, and 60% of pretraining progress, with a fixed number of suppression steps (later starts use a shorter P), with c chosen so that general loss roughly matches (Table 2).
- Results: At 113M, starting at 60% gives 3.67× and starting at 0% gives 3.05×; at 224M, 60% gives 6.78× and 0% gives 4.07×; at 521M, 60% gives 16.01× and 0% gives 13.53×. At 521M, starting at 0% gives lower general and biology task loss than starting at 60%, while retaining about 85% of the normalized fine-tuning difficulty.
- Authors' interpretation: Later starts give higher resistance on small models, but as scale increases, earlier starts are more favorable for retained capabilities and lose less resistance; the authors suggest a possible explanation is that early in pretraining the representations of medical and retained capabilities are not yet sufficiently differentiated, and gradient ascent may damage features shared across tasks. A control experiment (Table 14) shows that using a shorter interval P=20 from 0% only gives 2.77×, lower than the 3.67× from starting at 60%, i.e., shortening the interval alone cannot explain the advantage of later starts.
Ablations on suppression objective, optimizer state, and granularity
- Suppression objective (113M, AdamW, Figures 6, 10): Comparing seven LF, the authors state that gradient ascent gives the strongest general loss–fine-tuning difficulty trade-off, and the advantage appears to hold when the best objective is extended to 224M; the authors suggest a possible explanation is that gradient ascent only lowers the likelihood of target tokens without specifying an alternative distribution, complementing the positive signal of pretraining.
- Optimizer state (Table 3, single seed): Shared states make suppression appear stronger at the end of pretraining, but the authors state that the extra medical loss almost disappears within the first few steps of adversarial fine-tuning, and biology spillover increases substantially (e.g., AdamW 113M shared: closest-retain loss +14.13, independent: +0.75); independent states also give higher resistance on larger models (AdamW 224M: independent 3.35×, shared 2.47×).
- Granularity (Table 4, 113M, 3 seeds): At matched general loss, token-level suppression reduces spillover to biology but has lower resistance than document-level (Muon: token 2.94× vs document 3.05×; AdamW: token 1.96× vs document 2.00×); the authors state that the weaker token-level resistance may partly reflect noise in token masking.
Other ablations and analyses
- Suppression without filtering (Figure 7, 113M, single seed): Without filtering, suppression still raises fine-tuning difficulty, but the trade-off is better when combined with document filtering; the authors speculate that filtering reduces objective conflict between pretraining and suppression.
- Teacher choice for past self-distillation (Table 6, 113M, AdamW): 5% checkpoint teacher 1.42×, initialization teacher 1.04×, rolling teacher 1.45× (similar general loss).
- Retain loss (Table 7): Without retain loss, S=1 gives resistance 1.42×, comparable to 1.43× for S=2 with retain loss, at lower compute.
- Post-hoc optimizer (Table 10): Switching the post-hoc baseline to AdamW for the two largest models does not increase resistance (521M RMU: Muon 1.40× vs AdamW 1.34×).
- Suppression strength frontier (Figure 5): As c increases, resistance first rises and then saturates, and larger models require more target-domain fine-tuning for the same general loss increase; the authors state that this trade-off improves with scale.
- Negative results/exceptions: At 521M, DETER's medical task loss (+4.79) is slightly lower than RMU's (+5.10), i.e., RMU suppresses more deeply at the task level before fine-tuning (Table 1); all methods reach NO FILTERING's PubMed loss within the evaluated attack budget (Limitations).
What are some points that can be further explored?
The authors list limitations including the proxy target domain, single-seed pretraining, and classifier quality, and give future directions such as combining with token filtering and representation-level analysis.
Limitations and future directions noted by the authors
- Proxy target domain and scale: The experiments use medical knowledge as the proxy target domain and models up to 1030M, so they cannot establish that the observed scaling trends extend to genuinely dangerous capabilities or other domains, or to larger models (Limitations).
- Classifier and suppression-set construction not systematically varied: Classifier quality and suppression-set construction were not systematically varied, and sensitivity to false positives, missed subdomains, and the source and diversity of suppression data remains unresolved; the same classifier also defines the FineWeb-Edu evaluation split, which may share blind spots with training data selection (Limitations).
- Attack coverage: Recovery is measured only through a PubMed fine-tuning attack on a single pretraining seed, and adversarial modifications are not exhaustively evaluated; every method reaches NO FILTERING's PubMed loss within the evaluated attack budget, and the budget in absolute terms is small (0.10M tokens for filtering and 2.09M tokens for suppression at 1030M, 0.010% of its pretraining tokens) (Limitations).
- Combining with token filtering: Suppression can also be interleaved into pretraining with token filtering, which the authors leave for future work (Section 3.1, Future work).
- More comparison targets and factors: Future work could evaluate SGTM and TAR, more fully characterize the filtering–suppression trade-off, account for the extra compute of suppression when comparing retained utility, and test the effect of using different optimizers for pretraining and suppression (Future work).
- Mechanistic analysis: Representation-level analysis could investigate why suppression during pretraining makes target-domain capabilities harder to acquire through fine-tuning, including differences among interventions in residual target knowledge or in the organization of target/retained representations (Future work).
Scope of experiments
- The models tested are 4 scales pretrained from scratch: 113M, 224M, 521M, and 1030M; the target domain is medicine only, and retained-domain evaluation includes biology, arXiv, PhilPapers, and general MMLU subsets (Section 3.1, 3.2).
- Defense method evaluation includes document filtering, token filtering, post-hoc RMU, DETER, and 7 suppression objectives; post-hoc gradient ascent, SimNPO, and Circuit Breakers were run at matched general loss but are not fully reported (Appendix D.1).
- Adversarial fine-tuning is performed only on PubMed, for at most 100 steps, extended for the two largest models to 0.08% of pretraining; the attacker uses the same optimizer as pretraining, with the learning rate searched (Appendix D.4).
- Main results are averaged over 3 fine-tuning seeds, and each model is pretrained only once; ablations in Tables 3, 6, 7 and Figures 6, 7, 10 use a single fine-tuning seed.
- The paper does not report the specific number of documents in the suppression set DF, the total number of pretraining tokens for each scale (only about 20 tokens/parameter is given), or a human evaluation.
Summarize the main content of the paper
DETER interleaves gradient-ascent suppression during pretraining, making the cost of adversarial fine-tuning of medical knowledge up to 20.36 times that of the filtering baseline, and the advantage grows with scale.
An empirical study on tamper resistance of open-weight models: actively suppressing target-domain knowledge during pretraining to raise the cost of restoring that knowledge through adversarial fine-tuning after weight release.
- Problem: The authors state that post-hoc unlearning is easily undone by a small amount of fine-tuning, and pretraining data filtering is more durable but only a proxy means; the filtered-out high-scoring documents can serve as an explicit negative signal, forming a second line of defense.
- Method: DETER pretrains on a filtered corpus (FineWeb-Edu with 20% of tokens of medical documents removed), and from step 0 inserts 1 step of gradient ascent on a subset of the removed documents (up to 5% of tokens) every 50 steps, with c=5 (3 for 1030M); pretraining and suppression share parameters but maintain independent optimizer states.
- Main results: At 113M–1030M, the PubMed fine-tuning tokens required to reach the unfiltered baseline's PubMed loss are 3.05× (113M) to 20.36× (1030M, 2.09M vs 0.10M tokens) that of the filtering baseline, higher than token filtering (up to 2.16×) and post-hoc RMU (up to 1.47×), and the gap grows with scale (Table 1).
- Retained capabilities: At 1030M, DETER's general loss is only +0.01 relative to the unfiltered baseline; the damage is concentrated in medicine, with biology less affected (Table 1, Figure 11).
- Other findings: Among seven suppression objectives, gradient ascent has the strongest trade-off (Figure 6); independent optimizer states avoid the biology spillover caused by shared states (Table 3); on larger models, starting suppression earlier is more favorable (Table 2).
- Authors' conclusion: Pretraining should be used to make harmful capabilities harder to acquire, just as it shapes useful capabilities; target-domain fine-tuning may still occur, and the goal is to raise its cost. The authors acknowledge that experiments are limited to the medical proxy domain, the 1030M scale, and single-seed pretraining, and that all methods can be fine-tuned to baseline level within the evaluation budget.