Papers › Composing Parameter-Efficient Modules with Arithmetic Operations

Composing Parameter-Efficient Modules with Arithmetic Operations

26 Jun 2023arXiv:2306.14870archive 2025-07-28

Jinghan Zhang, Shiqi Chen, Junteng Liu, Junxian He

As an efficient alternative to conventional full finetuning, parameter-efficient finetuning (PEFT) is becoming the prevailing method to adapt pretrained language models. In PEFT, a lightweight module is learned on each dataset while the underlying pretrained language model remains unchanged, resulting in multiple compact modules representing diverse skills when applied to various domains and tasks. In this paper, we propose to compose these parameter-efficient modules through linear arithmetic operations in the weight space, thereby integrating different module capabilities. Specifically, we first define addition and negation operators for the module, and then further compose these two basic operators to perform flexible arithmetic. Our approach requires \emph{no additional training} and enables highly flexible module composition. We apply different arithmetic operations to compose the parameter-efficient modules for (1) distribution generalization, (2) multi-tasking, (3) unlearning, and (4) domain transfer. Additionally, we extend our approach to detoxify Alpaca-LoRA, the latest instruction-tuned large language model based on LLaMA. Empirical results demonstrate that our approach produces new and effective parameter-efficient modules that significantly outperform existing ones across all settings.

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="2306.14870")

Code

Syntology Ran 1 of 10 code samples harvested from 2 repositories linked to this paper; 9 have no recorded run. Of those that ran: 1 ran · honoured contract.

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

hkust-nlp/pem_composition officialmentioned in papermentioned on GitHubjax report
sjtu-lit/pem_composition officialmentioned in papermentioned on GitHubjaxApache-2.0 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

10 samples harvested; 1 ran; 1 honoured the contract we drafted; 9 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.

1ran · honoured contract
9unverified

Licence: 4 of the 10 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

adjust_length_to_model sjtu-lit/pem_composition/exps/composition_for_unlearning/gpt2_scale.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 440751480098ee7d · report
adapter_negation sjtu-lit/pem_composition/exps/composition_for_unlearning/gpt2_scale.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 950ec6a2194fb76d · report
adjust_tensors_for_parallel hkust-nlp/pem_composition/src/transformers/adapters/composition.py official repository unverified Apache-2.0 (permissive) · b3615647974036c4 · report
adjust_tensors_for_parallel sjtu-lit/pem_composition/src/transformers/adapters/composition.py official repository unverified Apache-2.0 (permissive) · f8ef77acae8f9f42 · report
compute_pairwise_coefficient_sets sjtu-lit/pem_composition/merge.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 2c77d7dc5a31d431 · report
find_incomplete_sentence sjtu-lit/pem_composition/AlpacaLoRAcomposition/detoxify_api.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · ba7e81c71b1fb5f1 · report
load_input_text sjtu-lit/pem_composition/exps/composition_for_unlearning/run_prediction.py official repository unverified Apache-2.0 (permissive) · 0ca28293fa42b301 · report
load_input_text sjtu-lit/pem_composition/AlpacaLoRAcomposition/detoxify_api.py official repository unverified Apache-2.0 recorded; this copy not marked cleared · pointer only · 42dd792cf7755f82 · report
parse_composition hkust-nlp/pem_composition/src/transformers/adapters/composition.py official repository unverified Apache-2.0 (permissive) · fd2a1edfdefc5de3 · report
parse_heads_from_composition hkust-nlp/pem_composition/src/transformers/adapters/composition.py official repository unverified Apache-2.0 (permissive) · ae8bbe37a1f80e76 · report

Tasks

Language ModelingLanguage ModellingLarge Language ModelNegation

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