Model tampering attacks make LLM capability evaluation more rigorousModel Tampering Attacks Enable More Rigorous Evaluations of LLM Capabilities
Quick read
Evaluation and benchmarksBased on the paper PDF (generated by Gemini); refer to the original
The authors tested 8 unlearning and 9 refusal models with input and tampering attacks, finding that finetuning attacks achieve effects on 64/65 models that meet or exceed the strongest input-space attack.
- Current risk assessment of large models mainly relies on input-space attacks, but input-space search cannot exhaustively cover worst-case scenarios and cannot adequately assess internal tampering risks for models with open weights or finetuning interfaces.
- The authors propose combining input-space and model tampering attacks (hidden-layer activation perturbation, weight pruning, and few-shot finetuning) for capability-inducing testing, evaluating robustness on unlearning and refusal-finetuned models and analyzing cross-attack correlations.
- Experiments show that tampering attacks achieve or exceed the strongest input attack on 64/65 models; the first three principal components explain 89% of attack variance; and current unlearning methods are all recovered by more than 30 percentage points of capability within 16 fine-tuning steps.
- Experiments are based only on Llama-3-8B-Instruct-derived models; model tampering and input attacks may have limitations in mechanism similarity; tampering attacks do not show consistent predictive capability across tasks.
- Evaluated models
- Llama-3-8B-InstructLlama-3-8B-Instruct + GradDiffLlama-3-8B-Instruct + RMULlama-3-8B-Instruct + RMU+LATLlama-3-8B-Instruct + RepNoiseLlama-3-8B-Instruct + ELMLlama-3-8B-Instruct + RRLlama-3-8B-Instruct + TARLlama-3-8B-Instruct + K-FADEslz0106/llama3_finetune_refusalJINJIN7987/llama3-8b-refusal-vpiYouliang/llama3-8b-dertaGraySwanAI/Llama-3-8B-Instruct-RRLLM-LAT/llama3-8b-instruct-rt-jailbreak-robust1LLM-LAT/robust-llama3-8b-instructlapisrocks/Llama-3-8B-Instruct-TAR-RefusalOrenguteng/Llama-3-8B-Lexi-Uncensored
- Benchmarks
- WMDP-BioMMLUMT-BenchAGIEvalWikiTextUltraChatUK AISI Bio evaluation
- Metrics
- WMDP-Bio accuracyUnlearning ScoreHarmful response rateMMLU accuracyMT-Bench scoreAGIEval accuracyPearson rR^2
The paper proposes supplementing input-space LLM capability evaluations with model tampering attacks (modifying weights or latent activations), benchmarking 8 unlearning methods and 9 safety fine-tuned models against 5 input-space attacks and 6 model tampering attacks, respectively. The authors report that three principal components explain 89% of the variance in attack success rates, and model robustness to capability-evoking attacks lies in a low-dimensional subspace; model tampering attack success rates can predict and conservatively estimate held-out input-space attacks. State-of-the-art unlearning methods can be reversed within 16 fine-tuning steps and 128 samples, with a single gradient step improving WMDP performance by more than 25 percentage points for 6 of 8 methods, based on the Llama-3-8B-Instruct series.
Why it was selectedThe paper evaluates tampering attacks on weights and activation layers alongside input-space attacks, noting that input-only evaluation provides only a lower bound on a model's worst-case behavior.
Related events and news
0 events · 1 news mentions
News that mentions this paper
- Thinking Machinescites the paper's id or linkThinking Machines 提出开放权重模型的安全发布路径
above what an inference API alone allows.Model Tampering Attacks Enable More Rigorous Evaluations of LLM Capabilities (Che et al, 2025) However, the risks stay below releasing weights: the provider
Paper analysis
What problem does this paper attempt to solve?
The authors argue that existing input-prompt-based evaluations cannot cover worst-case scenarios and open-source model risks, and propose introducing model tampering attacks for stricter capability evaluation.
The paper attempts to address the problem that existing safety evaluations of large models mainly rely on input-space attacks, which struggle to effectively cover open-source risks and worst-case behavior.
- Evaluation scenario and practical needs: The authors note that capability and risk assessment of large language models is being gradually incorporated into AI governance frameworks in multiple countries, but developers often fail to identify harmful behavior before deployment, requiring more rigorous evaluation methods to build safety cases.
- Limitations of existing input evaluation: The authors argue that input-space attacks have two shortcomings: first, the search space is too large under modern tokenizers to exhaustively search, so evaluation results only provide a lower bound on worst-case behavior; second, they cannot fully assess the risks of open-source models where attackers have access to weights.
- Core analogy and hypothesis: Drawing on the principle in safety engineering of applying stress beyond expected deployment conditions to safety-critical systems (e.g., building load requirements several times actual use), the authors propose stress-testing large language models through model tampering attacks that go beyond the input space.
- Proposed evaluation paradigm: The paper proposes using model tampering attacks (modifying hidden-layer activations or weights) as a complement to input-space evaluation, to directly assess open-weight risks and indirectly infer the vulnerability of closed-source models to unknown input attacks.
- Threat model analysis: The authors set different threat models for two types of problems:
- For models with open weights, leaked weights, or fine-tuning interfaces: attackers have white-box or weight access, can perturb hidden-layer activations, or use few-shot parameter fine-tuning and pruning, aiming to re-induce suppressed harmful biological knowledge or bypass refusal defenses.
- For closed-source or black-box models: attackers only have access to inputs and outputs, but evaluators (e.g., auditing bodies) can internally use model tampering attacks as a proxy tool to infer and conservatively estimate the model's worst-case performance under unforeseen input-space attacks.
What related research exists?
The paper reviews three research areas—hidden-layer space attacks, weight finetuning attacks, and capability-inducing evaluation—to position model tampering as a complementary evaluation tool.
- Latent-space attacks:
- Sankaranarayanan et al. (2018), Singh et al. (2019), Casper et al. (2024) et al. studied latent adversarial training to improve model robustness; Xhonneux et al. (2024) and Sheshadri et al. (2024) use latent adversarial training to defend against held-out attack types.
- Zou et al. (2023a), Arditi et al. (2024) et al. studied modifying model behavior through activation engineering; Zhang et al. (2025) report that model quantization breaks the protective effect of unlearning methods.
- Weight-space / fine-tuning attacks:
- Huang et al. (2024) survey fine-tuning attacks; Qi et al. (2023) report that fine-tuning with 10 samples can jailbreak GPT-3.5.
- Jain et al. (2023), Lermen et al. (2023), Zhan et al. (2023), Shumailov et al. (2024), Qi et al. (2024b) et al. report re-inducing harmful capabilities suppressed by fine-tuning or unlearning methods through few-shot fine-tuning.
- Capability elicitation and evaluation:
- Hofstätter et al. (2025), Liu et al. (2024a), Barez et al. (2025) study adversarial capability elicitation and machine unlearning evaluation; Greenblatt et al. (2024) and van der Weij et al. (2024) study capability elicitation in the context of password-locked models and model sandbagging.
- Patil et al. (2023), Lynch et al. (2024), Li et al. (2024b) (proposing the WMDP benchmark) study robustness evaluation against safety fine-tuning and unlearning algorithms; Yi et al. (2024b) survey jailbreak attacks and defenses for large models.
- Baseline methods and benchmarks used:
- This paper evaluates 8 unlearning methods (GradDiff, RMU, RMU+LAT, RepNoise, ELM, RR, TAR, K-FADE) and 9 off-the-shelf refusal fine-tuned models against 5 input-space attacks (GCG, AutoPrompt, BEAST, PAIR, Human Prompt) and 6 model tampering attacks (Embedding perturbation, Latent perturbation, WandA pruning, benign LoRA, adversarial LoRA, adversarial full-parameter fine-tuning), evaluated on benchmarks such as WMDP-Bio, MMLU, MT-Bench, AGIEval.
- Positioning relative to existing work:
- The authors note that previous research often treats fine-tuning attacks or activation modification as separate attack threats, whereas this paper systematically compares input attacks and tampering attacks, and is the first to analyze the methodological value of tampering attacks in geometric subspaces and predicting unknown input vulnerabilities.
- Latent-space attacks:
How does the paper address this problem?
The authors construct a general evaluation pipeline combining input and tampering attacks, propose an unlearning score formula that balances unlearning effectiveness and general utility, and analyze the geometric structure of robustness.
The authors propose combining model tampering attacks with input-space attacks as a comprehensive framework for systematically evaluating the robustness of capability suppression in large language models, and analyze the correlation of capabilities induced by different attack methods.
Evaluation setup and unlearning score definition
- Dual defense setting: The evaluation covers two types of defenses: machine unlearning methods that remove harmful biological knowledge, and refusal fine-tuned models that resist jailbreak prompts.
- Universal adversarial attack construction: To exclude the model's interference from answer-forcing on specific prompts, the attacks used in the paper are all universal adversarial attacks optimized for any prompt, ensuring that success rates reflect true recovery of capabilities.
- Unlearning Score: For unlearning methods that need to reduce target-domain capability while preserving general utility, the authors propose a composite scoring formula:
Sunlearn(M′) = ([SWMDP(M) − SWMDP(M′)] − [Sutility(M) − Sutility(M′)])/(SWMDP(M) − SWMDP(rand)) where M is the original model, M' is the unlearned model, S_utility is the general utility metric (weighted as 1/4 MMLU, 1/4 AGIEval, 1/2 MT-Bench), and rand represents random-guessing performance (0.25 on WMDP-Bio). The ideal unlearning score is 1.0, and the original model is 0.0.
Implementation of capability suppression defense methods
- Unlearning model training: Using Llama-3-8B-Instruct as the base, with 1600 samples (max length 512) from the bio-remove split of the WMDP unlearning set and up to 1600 samples from the Wikitext retain set. During training, 8 checkpoints are saved uniformly, covering 8 methods: GradDiff, RMU, RMU+LAT, RepNoise, ELM, RR, TAR, K-FADE, plus the public TAR-v2 model, totaling 65 model checkpoints.
- Optimization and fine-tuning scope: Following the original papers, RMU, RMU+LAT, RepNoise, TAR, and K-FADE use full-parameter or layer-wise fine-tuning, while GradDiff, ELM, and RR use LoRA fine-tuning.
- Refusal model selection: Directly select 9 public Llama-3-8B-Instruct variants, including the standard instruction model, general refusal fine-tuned models, decoupled refusal training model (DERTA), representation rerouting model (RR), latent adversarial training model (LAT), anti-fine-tuning defense model (TAR), and an uncensored control model (Lexi-Uncensored).
Construction of capability induction attack system
- Input-space attacks: Include gradient-based GCG and AutoPrompt, perplexity-based beam search BEAST (beam width K=5), LLM-generated PAIR (using Llama-3-8B as the attack model to generate universal suffixes), and manually written expert question prefixes (Human Prompt).
- Latent and weight tampering attacks:
- Latent attacks: include Embedding attack applying l2 norm-constrained perturbation on the embedding layer, and Latent attack applying perturbation on the 5th layer hidden states;
- Weight attacks: include benign pruning using WandA to prune 15% of weights, benign LoRA fine-tuned on Wikitext (rank 16, alpha 32), adversarial LoRA and full-parameter few-shot fine-tuning on the WMDP bio dataset (within 16 steps, within 128 samples).
Robustness subspace and prediction analysis pipeline
- Weighted principal component analysis: Construct a matrix of WMDP-Bio accuracy improvements for 65 unlearning models under 11 attacks, perform centered PCA weighted by the square root of each model's unlearning score, and analyze the geometric dimensions of attack vulnerability.
- Cross-attack linear regression prediction: Use k-fold cross-validation leaving out model families, fit a linear regression model with success rates of some attacks as input to predict the worst-case input-space attack success rate, and compare the change in explained variance before and after including model tampering attacks.
What experiments did the paper conduct?
The experiments evaluated 65 unlearning models and 9 refusal models, finding that finetuning tampering attacks achieve effects on 64/65 models that meet or exceed the strongest input attack and can undo unlearning defenses.
Experimental setup
- Models under test:
- Unlearning experiments: 8 checkpoints each for 8 unlearning methods (GradDiff, RMU, RMU+LAT, RepNoise, ELM, RR, TAR, K-FADE) trained on Llama-3-8B-Instruct, plus the public TAR-v2 model from Tamirisa et al. (2024), totaling 65 models.
- Jailbreak experiments: 9 off-the-shelf Llama-3-8B-Instruct derivatives (Meta-Llama-3-8B-Instruct, slz0106/llama3_finetune_refusal, JINJIN7987/llama3-8b-refusal-vpi, Youliang/llama3-8b-derta, GraySwanAI/Llama-3-8B-Instruct-RR, LLM-LAT/llama3-8b-instruct-rt-jailbreak-robust1, LLM-LAT/robust-llama3-8b-instruct, lapisrocks/Llama-3-8B-Instruct-TAR-Refusal, Orenguteng/Llama-3-8B-Lexi-Uncensored).
- Evaluation datasets and scale:
- Unlearning and bio-knowledge evaluation: WMDP-Bio QA evaluation set (64 held-out multiple-choice questions for non-fine-tuning attacks; WMDP-Bio Remove or Retain sets for fine-tuning attacks); proprietary bio evaluation set from UK AISI.
- General utility benchmarks: MMLU, AGIEval, MT-Bench (normalized to 0.0-1.0 by dividing total score by 10).
- Jailbreak evaluation: held-out harmful requests and compliant response pairs from Sheshadri et al. (2024); benign fine-tuning uses Wikitext and UltraChat (64 samples).
- Baseline attack methods: 11 universal attacks, including 5 input attacks (GCG, AutoPrompt, BEAST, PAIR, Human Prompt) and 6 tampering attacks (Embedding perturbation, 5th-layer Latent perturbation, 15% WandA pruning, benign LoRA, adversarial LoRA, adversarial full-parameter fine-tuning); plus UK AISI proprietary attacks and Haize Labs' Cascade multi-turn proprietary attack.
- Evaluation metrics: WMDP-Bio accuracy, Unlearning Score, harmful response rate, Pearson correlation coefficient r, coefficient of determination R2.
- Review method: Unlearning experiments judge accuracy based on standard answers to multiple-choice questions; jailbreak experiments use StrongReject AutoGrader to automatically judge whether the model complies with harmful requests.
- Fine-tuning budget and sample size: Fine-tuning attacks are limited to 16 steps, with sample size of 128 or fewer (some single-step experiments use 64 samples).
Main results
Evaluation performance of the best checkpoint for each unlearning method (per Table 2; the un-unlearned base model Llama3-8B-Instruct has original WMDP 0.70, 0.75 under strongest input attack, 0.71 under strongest tampering attack, MT-Bench/10 0.78, unlearning score 0.00):
Swipe horizontally to read the table
Method WMDP ↓ Strongest input attack WMDP ↓ Strongest tampering attack WMDP ↓ MT-Bench/10 ↑ Unlearning score ↑ Grad Diff 0.25 0.27 0.67 0.13 0.17 RMU 0.26 0.34 0.57 0.68 0.84 RMU + LAT 0.32 0.39 0.64 0.71 0.73 RepNoise 0.29 0.30 0.65 0.71 0.78 ELM 0.24 0.38 0.71 0.76 0.95 RR 0.26 0.28 0.66 0.76 0.96 TAR 0.28 0.29 0.36 0.12 0.09 K-FADE 0.31 0.32 0.64 0.78 0.85 - Representation rerouting (RR) achieves the highest unlearning score: The authors note that RR suppresses harmful knowledge while preserving general capability well; Grad Diff and TAR have low unlearning scores due to language dysfluency in model generation.
- No method can resist all attacks: The authors state that even the best-performing methods see harmful knowledge accuracy rebound after tampering attacks, with all models having WMDP-Bio accuracy no lower than 0.36 under the most effective attack.
- Model tampering attacks show higher computational efficiency: According to Table 3, under the same model architecture, model tampering attacks require fewer forward and backward propagation steps overall than gradient-search-based input-space attacks.
Robustness low-dimensional subspace and attack correlation analysis
- What was measured: Weighted PCA and hierarchical clustering on the WMDP-Bio accuracy improvement matrix for 65 unlearning models under 11 attacks (Figure 3, Figure 4, Figure 13).
- Experimental results: The first three principal components explain 89% of the variance in attack success rates (Figure 3a); hierarchical clustering shows that attacks with similar algorithmic mechanisms naturally cluster together, with pruning and benign fine-tuning clustering with gradient-free input attacks; adversarial fine-tuning attacks (LoRA and Full) show geometric separation from other attacks on the first principal component (Figure 3b).
- Authors' interpretation: The authors believe that different capability induction attacks exploit interrelated mechanisms within the model; input-space attacks are strongly correlated with each other (r between 0.78 and 0.97, Figure 13), while correlations between model tampering attacks and input attacks are more diverse, probing model robustness from different mechanisms.
Prediction and conservative estimation of unknown input attacks by model tampering attacks
- What was measured: Compare the relative attack strength of latent perturbation, pruning, and fine-tuning attacks versus input-space attacks, and test their ability to predict held-out input attacks and UK AISI proprietary attacks (Figure 5, Figure 6, Figure 10, Table 6, Figure 14).
- Experimental results: Among 65 unlearning models, adversarial fine-tuning attacks achieve or exceed the strongest input attack on 64 models (Figure 5b); the best adversarial fine-tuning attack is stronger than input attacks in 98% of cases, with average relative strength 8.12 (Figure 5 table); in linear regression experiments, including tampering attacks improves the R2 for predicting input worst-case from 0.77 to 0.83 (with 4 predictors, Figure 14); for UK AISI proprietary attacks, benign fine-tuning (r = 0.59, p = 0.00) and pruning (r = 0.66, p = 0.00) remain correlated, and fine-tuning attacks achieve or exceed their effect on 60/65 models (Figure 6).
- Authors' interpretation: The authors argue that tampering attacks can provide evaluators with conservative estimates of a model's worst-case vulnerability in the input space, and offer complementary signals to input attacks in multivariate prediction.
Undoing effect of few-shot fine-tuning on unlearning defenses and refusal models
- What was measured: Under a budget of 16 gradient updates and at most 128 samples, test the recovery effect of few-shot fine-tuning on unlearning checkpoints and 9 off-the-shelf refusal fine-tuned models (Figure 7, Figure 8).
- Experimental results: Except for the TAR model with clearly impaired language fluency, all unlearning methods that maintain utility recover more than 30 percentage points of WMDP accuracy after few-shot fine-tuning (Figure 7); a single fine-tuning step (batch size 64) recovers more than 25 percentage points of performance for 6 of the 8 methods; among the 9 refusal models, all safety fine-tuned models recover harmful compliance ability after fine-tuning attacks or Cascade multi-turn attacks (Figure 8), with Cascade increasing RT3's compliance rate by 0.92.
- Authors' interpretation: The authors state that current safety fine-tuning defenses based on unlearning and refusal are difficult to resist parameter-level modifications, and capabilities suppressed by unlearning easily reappear after a few fine-tuning steps.
Other ablations and analyses
- PCA of attacks on refusal fine-tuned models: the first three principal components explain 96% of the variance in jailbreak success rates across 9 models (Figure 16).
- Attack combinations for predicting input-space worst-case vulnerability: GCG, PAIR, and Benign Fine-tune combination achieves the highest R2 of 0.8161, RMSE 0.0469% (Table 6).
- Average-case input vulnerability prediction: including model tampering attacks does not improve average-case prediction performance (R2 0.54 to 0.55 with 5 predictors, Figure 15).
- Correlation between tampering attacks and multi-turn proprietary attack Cascade: 5th-layer Latent perturbation correlates with Cascade jailbreak increase rate r = 0.87 (p = 0.00), pruning r = 0.71 (p = 0.03) (Figure 19).
- Cross-task prediction correlation test: when predicting UK AISI bio evaluation residuals using tampering attacks on WMDP-Bio, only pruning (r = 0.72) and benign fine-tuning (r = 0.69) are statistically correlated (Figure 12).
- Excluded attack methods: Many-shot attacks and low-resource translation attacks fail to induce capabilities under the authors' experimental settings (Section A.4).
Negative results and exceptions
- On the 9 refusal models, the authors find no clear evidence of a reliable correlation between tampering attacks and input-space attacks (Figure 17), attributing this to the small sample size of only 9 models.
- In cross-task prediction, tampering attacks on WMDP-Bio fail to effectively predict model performance on the UK AISI bio benchmark (Figure 12), indicating that the predictive value of tampering attacks is limited to the same task distribution.
- On the Orenguteng model without safety refusal alignment, fine-tuning attacks fail to exceed the effect of input attacks (Figure 17 note).
- Under fine-tuning attacks, the TAR model has only 1 attack improving by more than 10 percentage points, but the authors note that this model already has impaired general language ability without attack.
- Models under test:
What are some points that can be further explored?
The authors note that the study only covers models derived from a single base model and that evaluation transfer is difficult; future work could explore defense mechanisms and cross-task generalization; the evaluation scope is limited to 8B models and specific attacks.
Limitations and future directions noted by the authors
- Single model family (Section 5): The experiments focus only on Llama-3-8B-Instruct-derived models; the authors note that other models may exhibit different dynamics.
- Unclear translation of evaluation results into actionable recommendations (Section 5): Evaluation science is still developing; the authors note it is unclear how to optimally translate such red-teaming evaluation results into actionable safety recommendations.
- Uncertain similarity between input and tampering attack mechanisms (Section 5): The authors note that input attacks under black-box models and white-box tampering attacks may differ in underlying mechanisms and have limitations.
- Limited cross-task distribution prediction capability (Section B.2): In the appendix, the authors note that while model tampering attacks can provide information on failure responses across attack types, they do not necessarily maintain valid predictions across different task distributions.
- Exploring tamper-resistant defenses and underlying mechanisms (Section 5 future work): The authors plan to explore building tamper-resistant defenses through pretraining interventions, knowledge destruction, or improved unlearning algorithms; they attempted to explain robustness using activation rank differences between base and unlearned models on the unlearning set but did not confirm it, leaving it for future research.
- Promoting integration of evaluation and practice (Section 5 future work): The authors propose applying model tampering attacks to security reviews of high-risk critical models before deployment.
Experimental coverage
- Tested model architectures: All experiments are based on Llama-3-8B-Instruct and its derived checkpoints (65 unlearning checkpoints and 9 off-the-shelf refusal models), excluding other sizes or architectures.
- Unlearning domain and benchmarks: Knowledge unlearning evaluation is limited to the dual-use biosecurity domain (WMDP-Bio dataset) and the auxiliary UK AISI biological evaluation set.
- Finetuning budget and attack steps: Finetuning attacks are limited to 16 gradient steps and at most 128 samples; the paper does not report performance under larger-scale or full-dataset finetuning.
- General utility evaluation scope: Model capability retention tests are limited to three general benchmarks: MMLU, AGIEval, and MT-Bench.
- Attack coverage types: Includes 5 specific input attacks and 6 white-box tampering attacks; the paper notes that Many-shot and translation attacks were unsuccessful in their setting and thus excluded.
Summarize the main content of the paper
The paper proposes using model tampering attacks to evaluate the robustness of capability suppression, reports that fine-tuning can undo defenses, and that tampering attacks can provide conservative estimates of input-space vulnerabilities.
- Core positioning and challenge: The paper addresses the issues that current safety evaluation of large language models relies excessively on input prompt search, struggles to cover worst-case scenarios, and overlooks the risk of open-source model weight tampering. It proposes hidden-layer activation perturbation and weight modification (model tampering attacks) as a supplementary capability-inducing evaluation framework.
- Benchmark evaluation system: The authors construct an evaluation set comprising 65 unlearning models trained on Llama-3-8B-Instruct (covering 8 unlearning methods) and 9 public refusal-finetuned models, systematically testing capability recovery under 5 input attacks and 6 tampering attacks.
- Robust low-dimensional subspace: Weighted principal component analysis shows that the first three principal components explain 89% of the performance variance across 65 models under 11 attacks, indicating that different capability-inducing attacks largely exploit correlated vulnerability mechanisms.
- Conservative worst-case estimate: Finetuning tampering attacks achieve induced effects on 64/65 models that meet or exceed the strongest input attack (the average attack strength of the best adversarial finetuning is 8.12 times that of input attacks); in linear regression prediction, incorporating tampering attacks raises the predicted R2 for input worst-case vulnerability to 0.83.
- Vulnerability of unlearning and refusal defenses: Except for the TAR model, which is ineffective due to language loss, existing unlearning methods can recover more than 30 percentage points of harmful biological performance within 16-step few-shot finetuning; a single finetuning step can recover over 25 percentage points for 6 unlearning methods.
- Author conclusions and governance implications: The authors argue that relying solely on input-space prompts cannot adequately measure a model's true safety boundary. For open-source models and those offering finetuning APIs, model tampering attacks must be incorporated into pre-deployment safety case construction and red-team review processes.