Papers › Composable Interventions for Language Models

Composable Interventions for Language Models

9 Jul 2024arXiv:2407.06483archive 2025-07-28

Arinbjorn Kolbeinsson, Kyle O'Brien, Tianjin Huang, ShangHua Gao, Shiwei Liu, Jonathan Richard Schwarz, Anurag Vaidya, Faisal Mahmood, Marinka Zitnik, Tianlong Chen, Thomas Hartvigsen

Test-time interventions for language models can enhance factual accuracy, mitigate harmful outputs, and improve model efficiency without costly retraining. But despite a flood of new methods, different types of interventions are largely developing independently. In practice, multiple interventions must be applied sequentially to the same model, yet we lack standardized ways to study how interventions interact. We fill this gap by introducing composable interventions, a framework to study the effects of using multiple interventions on the same language models, featuring new metrics and a unified codebase. Using our framework, we conduct extensive experiments and compose popular methods from three emerging intervention categories -- Knowledge Editing, Model Compression, and Machine Unlearning. Our results from 310 different compositions uncover meaningful interactions: compression hinders editing and unlearning, composing interventions hinges on their order of application, and popular general-purpose metrics are inadequate for assessing composability. Taken together, our findings showcase clear gaps in composability, suggesting a need for new multi-objective interventions. All of our code is public: https://github.com/hartvigsen-group/composable-interventions.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2407.06483")

Code

Syntology Ran 7 of 17 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 17 samples from 1 repository, 7 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

hartvigsen-group/composable-interventions officialmentioned in paperpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 7 ran; 0 honoured the contract we drafted; 10 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

2ran · our draft was wrong
1ran · fixture could not drive it
4ran
10unverified

Licence: 17 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from hartvigsen-group/composable-interventions. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

binary_log_probs hartvigsen-group/composable-interventions/easyeditor/trainer/losses.py official repository ran · our draft was wrong no licence file found · pointer only · 27659a9c234ffb11 · report
generate_fingerprint hartvigsen-group/composable-interventions/run_edit.py official repository ran no licence file found · pointer only · ae77bcc993ab559a · report
get_wikitext2 hartvigsen-group/composable-interventions/sparsellm/lib/data.py official repository ran no licence file found · pointer only · dee8be97b2cf4692 · report
hierarchical_subsequence hartvigsen-group/composable-interventions/easyeditor/util/nethook.py official repository ran no licence file found · pointer only · 920b394e7ad80c53 · report
masked_mean hartvigsen-group/composable-interventions/easyeditor/trainer/losses.py official repository ran · fixture could not drive it no licence file found · pointer only · e078eeed20f03838 · report
recursive_copy hartvigsen-group/composable-interventions/easyeditor/util/nethook.py official repository ran · our draft was wrong no licence file found · pointer only · 70f6ab8bde55420e · report
subsequence hartvigsen-group/composable-interventions/easyeditor/util/nethook.py official repository ran no licence file found · pointer only · 440ff98c2b1ae1aa · report
get_args hartvigsen-group/composable-interventions/main_quantize.py official repository unverified no licence file found · pointer only · 48bcc4bf8834c89a · report
get_c4 hartvigsen-group/composable-interventions/sparsellm/lib/data.py official repository unverified no licence file found · pointer only · 823f33725cd8f75d · report
get_c4 hartvigsen-group/composable-interventions/sparsellm/lib/datautils.py official repository unverified no licence file found · pointer only · 1ebe223f71f863bc · report
get_ga_data hartvigsen-group/composable-interventions/ga_utils.py official repository unverified no licence file found · pointer only · e9098552690ff1e9 · report
get_loaders hartvigsen-group/composable-interventions/sparsellm/lib/data.py official repository unverified no licence file found · pointer only · d280312c1c709fbb · report
get_model hartvigsen-group/composable-interventions/easyeditor/trainer/models.py official repository unverified no licence file found · pointer only · d2e4c1979dd70b9a · report
get_ptb hartvigsen-group/composable-interventions/sparsellm/lib/datautils.py official repository unverified no licence file found · pointer only · 3a6ac4325dad94a4 · report
get_tokenizer hartvigsen-group/composable-interventions/easyeditor/trainer/models.py official repository unverified no licence file found · pointer only · 2defe42cf1a7f301 · report
get_wikitext2 hartvigsen-group/composable-interventions/sparsellm/lib/datautils.py official repository unverified no licence file found · pointer only · ce2dbbe16d039626 · report
kl_loc_loss hartvigsen-group/composable-interventions/easyeditor/trainer/losses.py official repository unverified no licence file found · pointer only · bcc592aa5c1e2bb3 · report

Tasks

Machine UnlearningModel Compressionknowledge editing

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections