Skip to content

Composable interventions for language modelsComposable Interventions for Language Models

arXiv· arXiv:2407.06483· ICLR 2025· Arinbjorn Kolbeinsson, Kyle O'Brien, Tianjin Huang, Shanghua Gao, Shiwei Liu, Jonathan Richard Schwarz, Anurag Vaidya, Faisal Mahmood, Marinka Zitnik, Tianlong Chen, Thomas HartvigsenUniversity of Virginia; Askan; EleutherAI; University of Exeter; Harvard Medical School; University of Oxford; Thomson-Reuters Foundational Research; Mass General Brigham; UNC Chapel HillIndexed by this site · 2026-10-14· Originally publishedTools

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

The authors compare 417 combinations of editing, compression, and forgetting, stating that compression hinders other interventions and that order changes results.

Questions
Deployed language models still need to change facts, reduce resources, or remove undesirable knowledge, but editing, compression, and forgetting are mostly studied separately. The authors argue that multiple interventions on the same model should be composable; otherwise, one update may break the success of another.
Methods
The authors write test-time interventions as operators with hyperparameters and evaluation criteria, and define Order-free Error and Order Sensitivity: the former looks at the worse side of the two orders, the latter looks at the difference between the two orders. Experiments combine fine-tuning, LoRA, MEMIT, four compression methods, and GA, GD, RMU.
Experiments and results
The main experiments applied bidirectional combinations of interventions on Llama-3 8B, evaluated with zsRE, WMDP, and MMLU. The authors state that compression hinders editing and forgetting, the effect depends on order, and MMLU cannot replace composability metrics. The appendix also compares other models and the order when all three interventions are applied together.
Limitations and future work
Appendix A states that the possible combinations are far more numerous than those in this paper, some popular methods are omitted, and it is unclear whether they generalize across model scales. Section 3.1 states that WMDP cannot comprehensively evaluate generalized forgetting. The main model is Llama-3 8B, with additional models from 1B to 9B; no effective RMU hyperparameters were found on Yi.
Experimental setupLlama-3 8B、Llama-3 8B Instruct et al. · zsRE、WMDP et al. · Order-free Error、Order Sensitivity et al.
Evaluated models
Llama-3 8BLlama-3 8B InstructMistral 7B InstructYi 1.5 9B ChatLlama-3.2 1B
Benchmarks
zsREWMDPMMLUWikiText
Metrics
Order-free ErrorOrder SensitivityEdit SuccessEdit GeneralizationStrict Edit LocalityWMDPMMLUWikiText PPL
AI summaryThe paper proposes a composable interventions framework, using new metrics and a unified codebase to study the interactions when multiple test-time interventions are applied sequentially to the same language model. The authors complete 310 combination experiments across three method categories—knowledge editing, model compression, and machine unlearning—finding that model compression weakens editing and unlearning, that combined effects depend on the order of intervention application, and that common general-purpose metrics are insufficient for evaluating composability. The paper concludes that there is a clear gap in composability requiring new multi-objective intervention methods, and releases all code.

The paper proposes a composable interventions framework, using new metrics and a unified codebase to study the interactions when multiple test-time interventions are applied sequentially to the same language model. The authors complete 310 combination experiments across three method categories—knowledge editing, model compression, and machine unlearning—finding that model compression weakens editing and unlearning, that combined effects depend on the order of intervention application, and that common general-purpose metrics are insufficient for evaluating composability. The paper concludes that there is a clear gap in composability requiring new multi-objective intervention methods, and releases all code.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Multiple test-time interventions need to be applied to the same model, but there is no unified method to evaluate whether they interfere with each other.

    The same language model must undergo multiple test-time interventions sequentially, but there is no unified method to evaluate whether these interventions interfere with each other.

    • Scenario: The authors state that deployed models may still produce hallucinations, factual errors, and harmful outputs; regulations, compute, knowledge obsolescence, and copyrighted material also change requirements. If updates cannot be made quickly, models may be unsafe, outdated, biased, or non-compliant.
    • Existing gaps: Knowledge editing, compression, detoxification, and forgetting methods mostly advance independently. The authors state that in practice, the same model often needs to satisfy multiple attributes; existing work has begun to study interactions between training objectives, but lacks a unified evaluation of how interventions interact.
    • Assumption: The authors propose that practical interventions should be composable, meaning applying one intervention should not interfere with the success of prior or subsequent interventions. The example in the text is first fixing facts, then quantizing for mobile: quantization should preserve edited facts, and editing should withstand quantization.
    • This paper: The authors provide the composable interventions framework, Order-free Error, Order Sensitivity, and a unified codebase, and combine knowledge editing, model compression, and machine unlearning. The authors state that across 417 different combinations, compression hinders editing and forgetting, results depend on the order of application, and general metrics are insufficient to evaluate composability.
  2. What related research exists?

    Editing, forgetting, and compression have previously developed largely independently; the authors use a unified metric to compare combinations rather than proposing a new single algorithm.

    The introduction and Appendix B divide related work into editing, forgetting, compression, and interactions between training objectives. The authors position this paper as addressing the lack of combined evaluation across independently developed intervention types.

    Knowledge Editing

    • Four approaches: Appendix B categorizes them as memory caching (Mitchell et al., 2022b; Hartvigsen et al., 2023), locate-then-edit (Meng et al., 2022; 2023), hypernetwork predicting new weights (Sinitsin et al., 2020; Mitchell et al., 2022a; Tan et al., 2024), and writing facts into prompts (Zhong et al., 2023b; Cohen et al., 2024).
    • Scale and side effects: Most methods update a single fact; there are also simultaneous multi-edit and sequential editing. The authors state that recent work examines the unintended effects of editing on pretrained models, but focuses on model performance, not interactions with other intervention types.

    Machine Unlearning

    • Problem definition: Removing the influence of specific samples or other undesirable attributes after training (Cao & Yang, 2015; Shaik et al., 2023; Liu et al., 2024a). The authors state that the target must be forgotten without reducing utility in other domains, and make it difficult for adversaries or probes to elicit the target again.
    • Overlap with compression: Hooker et al. (2019) studied which samples are forgotten during compression; Jia et al. (2023) studied whether compression hinders forgetting and whether compression itself can serve as forgetting. The authors state that forgetting is related to knowledge editing, but the two directions have largely developed independently.

    Model Compression

    • Quantization and pruning: The authors focus on quantization and pruning that modify weights in place, rather than distillation and low-rank factorization. ZeroQuant (Yao et al., 2022) and LLM.int8 (Dettmers et al., 2022) mainly operate at higher bit widths like 8-bit; GPTQ and AWQ reduce bit width to 3 or 4 bits. SparseGPT and Wanda retain much performance when dropping about 50% of weights; OWL achieves higher sparsity by reallocating sparsity across layers.

    Objective Interactions and Experimental Baselines

    • Training objectives: The introduction mentions that Matzken et al. (2023), Xu et al. (2023b), and Li et al. (2024b) have studied interactions between training objectives. The authors state that without a unified evaluation of intervention interactions, widespread practical use remains limited.
    • Baselines and data: Comparison methods are fine-tuning, LoRA, MEMIT; pruning with Wanda and SparseGPT; quantization with GPTQ and AWQ; forgetting with GA, GD, RMU. Data and utility metrics are zsRE, WMDP, and MMLU (Table 1).

    The authors position their work as providing a composability metric and comparing these three intervention types with a unified implementation, rather than proposing another standalone editing, compression, or forgetting algorithm.

  3. How does the paper address this problem?

    Write interventions as composable operators, and use Order-free Error and Order Sensitivity to measure order and success.

    Composable interventions write test-time updates as operators that can be composed sequentially, and use two errors to respectively examine "whether the worse order still succeeds" and "whether success changes with order."

    Problem Setting

    • Intervention tuple: The model is fθ, with θ as pretrained parameters. An intervention ϕ includes an operator ω(fθ, γ), a strength hyperparameter γ, a loss ℓ specifying the update, and a criterion κ(fθ, D) ranging from 0 to 1, higher is better. The authors omit data dependency notation for readability.
    • Composition: Multiple interventions act sequentially. Applying ϕ0 then ϕ1 is denoted ϕ1∘ϕ0(fθ). The main text uses two interventions as an example and states the framework can be extended.
    • Comparison: First measure κi(ϕi(fθ)), then measure κi after adding ϕj; swapping the order gives another result, used to separate absolute performance and order effects.

    Two Composability Metrics

    • Order-free Error: The authors state that interventions are more composable when both orders achieve high criterion values. When integrating over γi, the error is 1 minus the integral of the minimum of the two orders' criteria; the upper bound is 1. The point estimate is 1−min(κi(ϕj∘ϕi(fθ,γi)),κi(ϕi(γi)∘ϕj(fθ))). Smaller is better. The main text also writes "area above the maximum of the two curves," but the formula and point estimate use min.
    • Order Sensitivity: Measures whether the criterion changes with the order of application. The point estimate is |κi(ϕj(ϕi(fθ)))−κi(ϕi(γi)∘ϕj(fθ))|; integrating over γi gives the area between the two curves. Smaller indicates less order influence.
    • Comparison rule: Each criterion can be computed; bounds can also be set for acceptable performance degradation. Cross-method comparison uses # Wins, the number of times a method beats others in the same category, with ties counted as losses.

    Three Intervention Types and Success Criteria

    • Knowledge editing: Increase the likelihood of correct answers on zsRE, using MEMIT, LoRA, and fine-tuning. Edit Success checks whether the edited model gives the correct response; Edit Generalization is the average Edit Success over 10 held-out paraphrases; Strict Edit Locality is the average success on random unedited samples. All three are F1 of correct output logits, capped at 1.0.
    • Machine unlearning: GA reduces the likelihood of the forgetting target; GD additionally maintains predictions on unrelated retained data; RMU perturbs representations of inputs related to the forgetting target. Evaluation uses WMDP, averaged over cyber and bio, totaling 3,260 questions. The authors state that random chance of 25% for four-choice questions corresponds to optimal forgetting. The retention set is Wikitext.
    • Compression: Pruning with SparseGPT and Wanda; quantization with GPTQ and AWQ. Sparsity levels are .25, .35, .45, .55, .65, .75; quantization reduces from 16-bit to 2, 3, 4, 8 bits. The authors state that most compression requires decompression first, so after editing or forgetting, the same method is reapplied for compression. Pruning and quantization serve different purposes, and the authors generally do not compare between them.
    • General utility: Use LM Eval Harness to compute question-answering accuracy on MMLU, with 25% indicating random chance. The appendix pairwise tables also report WikiText perplexity.

    Implementation Choices

    • Main setting: Section 4 main results use Llama3-8B. Editing results are averaged over 10 batches of 50 random edits on zsRE.
    • Editing hyperparameters: MEMIT modifies layers 4–8, 25 steps, learning rate 0.5, KL factor 0.0625; LoRA uses adalora, 70 steps, learning rate 0.005, rank 8, scaling 32, applied to query and value; fine-tuning also targets layers 4–8, 25 steps, learning rate 10^-5. Generation length cap is 40, batch size 50, each edit repeated 10 times and averaged.
    • Forgetting hyperparameters: For Llama-3 8B, RMU uses α=1000, layer 3, 250 batches; the authors state RMU is sensitive to hyperparameters. GA learning rate 5e-5, 50 training samples, only the last 16 layers are trained. GD retention weight: the main text writes 400, Table 7's Selected is 40.
    • Role of WMDP: The authors state it is sufficient to measure composability for forgetting, but not a complete evaluation of general forgetting; comprehensive evaluation remains an open problem.
  4. What experiments did the paper conduct?

    On Llama-3 8B, the authors state that compression reduces editing and forgetting, and the order of application changes results.

    Experimental Setup

    • Models: Section 4 main results use Llama-3 8B (written as Llama3-8B in Section 3.2). Also Mistral 7B Instruct, Yi 1.5 9B Chat, and in the appendix Llama-3 8B Instruct, Llama-3.2 1B.
    • Methods and directions: Editing with fine-tuning, LoRA, MEMIT; pruning with Wanda, SparseGPT; quantization with GPTQ, AWQ; forgetting with GA, GD, RMU. Intervention pairs are done in both directions.
    • Data: zsRE; WMDP cyber and bio combined 3,260 questions; MMLU. Appendix pairwise tables also report WikiText perplexity. Per-category WMDP results are in Appendix E.
    • Metrics: Three editing F1 scores; WMDP and MMLU accuracy, with random chance at 25%; Order-free Error and Order Sensitivity, smaller is better. # Wins counts wins, ties count as losses. Table 4 note states that lower WMDP MCS indicates more forgetting, while other metrics are better when higher.
    • Summary points and sweeps: Editing is the mean of 10 batches × 50. Table 2 note specifies 25% sparsity and 4-bit. Curves also include other sparsity levels, and 2, 3, 4, 8 bits; appendix AWQ also has 5, 6 bits.
    • Statistics and judgment: Appendix E.3 states that editing is averaged over 10 random subsets, compression methods are deterministic, and the standard deviation of accuracy for forgetting reproduction experiments is about ±0.5%. Editing uses F1 of output logits, not LLM evaluation.

    Main Results

    Swipe horizontally to read the table

    Combination (Section 4 Llama-3 8B)Order-free ErrorOrder SensitivityConditionSource
    Wanda × MEMIT, Edit Success.05.2425% sparsityTable 2
    AWQ × MEMIT, Edit Success.07.014-bitTable 2
    GPTQ × LoRA, Edit Success.42.374-bitTable 2
    Wanda × RMU, WMDP.29.03Note does not specify sparsity or bit widthTable 3
    AWQ × GD, WMDP.24.00Note does not specify sparsity or bit widthTable 3
    RMU × MEMIT, Edit Success.03.01Editing and forgettingTable 4
    GA × FT, Edit Success.93.07Editing and forgettingTable 4
    • The authors state that compression reduces editing metrics for MEMIT, LoRA, and fine-tuning; for pruning, compressing first is generally better, GPTQ is better to edit first, AWQ is better to compress first, and the order effect varies with the editing method (Section 4.1 interpretation of Figure 2).
    • In the discussion of Table 2, the authors state that MEMIT totals 14 wins, fine-tuning 9 wins, LoRA 4 wins; SparseGPT 8 wins, Wanda 6 wins; AWQ 17 wins, GPTQ 2 wins. The # Wins column in the table is counted per block, not the same as this total.
    • The authors state that MMLU cannot proxy composability. In Table 2, MMLU Order Sensitivity for Wanda, SparseGPT, and the three editors is .00. Table 4 note writes 25% sparsity and 4-bit, but the table has no compression methods, and Section 4.3 does not state whether compression was applied in that combination.

    Compression and Forgetting

    • What was measured: Figure 3 combines GA, GD, RMU with four compression methods bidirectionally at different sparsity levels and bit widths; Table 3 gives composability errors. Single-intervention baselines are in Table 15.
    • Results: Table 15 shows WMDP of 0.58 and MMLU of 0.62 for no intervention; WMDP for GA, GD, RMU only is 0.46, 0.26, 0.29, and MMLU is 0.5, 0.52, 0.57. In Table 3, GPTQ's WMDP Order Sensitivity is GD .02, RMU .18.
    • Authors' interpretation: The authors state that forgetting after compression is harder, the degree depends on the combination and compression level, and forgetting should generally be done before compression. The authors state that GD and RMU have comparable forgetting success and both are higher than GA, and RMU is less sensitive to order; the previous GPTQ cell does not support "RMU is always less sensitive." The authors treat GA's poorer forgetting performance as a possible confound.

    Editing and Forgetting

    • What was measured: Table 4 combines three editing methods with three forgetting methods, reporting editing metrics, WMDP, and MMLU with both errors.
    • Results: RMU's Edit Success Order Sensitivity is FT .01, MEMIT .01, LoRA .00; GD is .67, .40, .56. GA×LoRA's Edit Generalization Order-free Error is .22, lower than RMU×LoRA's .29.
    • Authors' interpretation: The authors state that excluding GA, editing does not break the forgetting of the target, and suggest this may be because edits are relatively local and the edited knowledge is semantically different from WMDP. The authors state that GA's catastrophic forgetting makes it unsuitable for combination.

    Cross-Model, Scale, and Three Interventions

    • Cross-model: Table 9 compares Order Sensitivity at 25% sparsity and 4-bit. MEMIT↔Wanda Edit Success order sensitivity is Llama .24, Mistral .00, Yi .01. The authors state that except for editing and compression, composability metrics are largely consistent; Edit↔Forgetting and Compression↔Forgetting Order Sensitivity are consistently low. The authors state they could not find effective RMU hyperparameters for Yi.
    • Variants and scale: Table 10 shows Llama-3 8B Base MEMIT→WANDA Edit Success of 70.11%, WANDA→MEMIT of 94.59%; Instruct correspondingly 93.93% and 99.10%. The authors state Instruct is less sensitive to order. Appendix E.2 states that Llama-3.2 1B average order sensitivity is 3.60%, 8B is 2.50%, and the preference for compressing first then editing is consistent across both scales.
    • Three interventions: Appendix E.4 uses WANDA, MEMIT, RMU at 25% sparsity in all 6 orders. The authors state that MMLU across orders ranges from Base 2.49%, Instruct 5.32%, and Edit Success from Base 6.50%, Instruct 24.28%. Table 13 shows WANDA→RMU→MEMIT Edit Success of 99.20%, WMDP of 30.77%; the authors state this order achieves a good balance of metrics on Base.

    Other Ablations and Analyses

    • Table 8: When RMU and MEMIT modify different layers, Edit Success Order-free Error / Order Sensitivity is .03 / .01; when layers overlap, it is .02 / .00. The authors state that layer overlap slightly increases Order Sensitivity and is negligible; the Edit Success column in that table goes from .01 to .00.
    • Table 12: Wanda×MEMIT Edit Success Order Sensitivity is .24 (standard error .03). The authors state that MMLU standard error does not exceed 0.01, and that the difference of 0.24 vs 0.08 is greater than the respective standard errors of 0.03 and 0.02.
    • Table 15: No intervention Edit Success 0.02, MMLU 0.62, WikiText PPL 5.54; LoRA only PPL 19.25; GA only PPL inf.
    • Table 15: GPTQ 2-bit MMLU 0.24, PPL 3681.23; AWQ 2-bit MMLU 0.27, PPL 1748954.75.
    • Appendix C: RMU, GA, GD hyperparameters come from grid search. The authors state that most RMU combinations either do not affect the model or harm utility.
    • Appendix E.1: Yi has no RMU results because the authors could not find effective hyperparameters.
  5. What are some points that can be further explored?

    In Appendix A, the authors note that the combinations are not exhaustive and it is unclear whether results generalize across model scales.

    Limitations and Future Directions Noted by the Authors

    • Combination space: Appendix A states that the possible combinations of interventions, methods, models, and datasets far exceed what one work can consider, so some popular methods are omitted.
    • Mechanisms: Appendix A states that this paper prioritizes broad experiments, hoping future work will examine individual methods in detail to study, improve, and extend the mechanisms driving composability.
    • Scale: Appendix A states it is unclear whether results generalize across model scales, and hopes the codebase can be used for more scales and architectures. Appendix E.2 also compares Llama-3 8B and Llama-3.2 1B.
    • Compression and knowledge: Section 4.4 states that the relationship between how models are compressed and how knowledge is modified remains underexplored.
    • Forgetting evaluation: Section 3.1 states that WMDP is one of the most studied forgetting benchmarks, but recent work suggests it is not a complete evaluation of general forgetting; comprehensive evaluation is an open problem. The authors still use it to measure composability.
    • Method goals: The conclusion states that experiments point to future work and argues for new interventions explicitly designed for composability; the authors state the framework can be extended to broader test-time interventions.

    Experimental Coverage

    • Main result model is Llama-3 8B; also reports Mistral 7B Instruct, Yi 1.5 9B Chat, Llama-3 8B Instruct, and Llama-3.2 1B (Table 1, Appendix E).
    • Methods are the 10 in Table 1, categorized into knowledge editing, pruning, quantization, machine unlearning; the abstract states the number of different combinations is 417. Yi has no RMU, Appendix E.1 states effective hyperparameters could not be found.
    • Editing is 10 batches × 50 on zsRE; WMDP is 3,260 questions averaged over cyber/bio; utility is MMLU, with WikiText perplexity in appendix pairwise tables.
    • Pairwise experiments are bidirectional. Table 2 fixes 25% sparsity and 4-bit; curves cover the listed sparsity levels and bit widths. Three-intervention experiments are 6 orders of WANDA, MEMIT, RMU, including Base and Instruct (Appendix E.4).
    • The paper does not report the sampling protocol and number of repetitions for MMLU, nor the agreement between editing F1 and human judgment. Appendix E.3 gives the standard deviation of accuracy for forgetting reproduction as about ±0.5%, without the number of repetitions, and no significance tests are reported.
  6. Summarize the main content of the paper

    The framework compares sequencing combinations of editing, compression, and forgetting using two error types; the authors state compression hinders other interventions.

    The authors use a composability framework to examine test-time interventions applied sequentially to language models, rather than proposing another standalone editing, compression, or forgetting algorithm.

    • Problem: Deployed models need to update facts, reduce resources, or remove undesirable knowledge. These interventions are mostly studied separately, lacking a unified metric for interactions on the same model.
    • Method: Interventions are written as operators with hyperparameters, losses, and criteria. Order-free Error looks at the worse side of the two orders, Order Sensitivity looks at the difference between the two orders. Experiments combine fine-tuning, LoRA, MEMIT; Wanda, SparseGPT, GPTQ, AWQ; and GA, GD, RMU.
    • Main results: Main experiments on Llama-3 8B, with 417 different combinations in total. The authors state that compression hinders editing and forgetting, and the order of application changes success. Table 2 at 25% sparsity shows Edit Success Order Sensitivity of .24 for MEMIT with Wanda, and MMLU Order Sensitivity of .00 for the same combination.
    • Other numbers: Table 15 shows WMDP of 0.29 for RMU only, and 0.58 for no intervention. Table 10 shows Edit Success of 94.59% for Llama-3 8B Base with WANDA then MEMIT, and 70.11% for the reverse order. The authors state that GD and RMU can be combined with editing, while GA is unsuitable due to catastrophic forgetting.
    • Authors' conclusion: The authors state that existing compression is nearly universally used in deployment but can limit other interventions; MMLU cannot replace composability evaluation. They argue for new multi-objective interventions designed for composability, evaluated with multiple metrics and datasets.
Read originalICLR 2025