Papers › Continual Sequence Generation with Adaptive Compositional Modules

Continual Sequence Generation with Adaptive Compositional Modules

20 Mar 2022ACL 2022 5arXiv:2203.10652archive 2025-07-28

Yanzhe Zhang, Xuezhi Wang, Diyi Yang

Continual learning is essential for real-world deployment when there is a need to quickly adapt the model to new tasks without forgetting knowledge of old tasks. Existing work on continual sequence generation either always reuses existing parameters to learn new tasks, which is vulnerable to catastrophic forgetting on dissimilar tasks, or blindly adds new parameters for every new task, which could prevent knowledge sharing between similar tasks. To get the best of both worlds, in this work, we propose continual sequence generation with adaptive compositional modules to adaptively add modules in transformer architectures and compose both old and new modules for new tasks. We also incorporate pseudo experience replay to facilitate knowledge transfer in those shared modules. Experiment results on various sequences of generation tasks show that our framework can adaptively add modules or reuse modules based on task similarity, outperforming state-of-the-art baselines in terms of both performance and parameter efficiency. We make our code public at https://github.com/GT-SALT/Adaptive-Compositional-Modules.

PaperPDFConference PDFCodeCode 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="2203.10652")

Code

Syntology Ran 1 of 15 code samples harvested from 1 repository linked to this paper; 14 have no recorded run. Of those that ran: 1 ran with no contract checked.

By repository: official repository: 15 samples from 1 repository, 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.

GT-SALT/Adaptive-Compositional-Modules officialmentioned in papermentioned on GitHubjaxMIT 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

15 samples harvested; 1 ran; 0 honoured the contract we drafted; 14 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
14unverified

Licence: 0 of the 15 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 GT-SALT/Adaptive-Compositional-Modules. “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.

to_python_float GT-SALT/Adaptive-Compositional-Modules/loss_scaler.py official repository ran MIT (permissive) · 6b5d363ab4dbf012 · report
BN_convert_float GT-SALT/Adaptive-Compositional-Modules/fp16util.py official repository unverified MIT (permissive) · e7014fd797aa4e75 · report
conversion_helper GT-SALT/Adaptive-Compositional-Modules/fp16.py official repository unverified MIT (permissive) · f887d5ffcbc6ad3b · report
convert_network GT-SALT/Adaptive-Compositional-Modules/fp16util.py official repository unverified MIT (permissive) · 6063f8fe87afb580 · report
convert_pytorch_state_dict_to_flax GT-SALT/Adaptive-Compositional-Modules/mytransformers/modeling_flax_pytorch_utils.py official repository unverified MIT (permissive) · b5729b6f3daf1fe2 · report
convert_tf_weight_name_to_pt_weight_name GT-SALT/Adaptive-Compositional-Modules/mytransformers/modeling_tf_pytorch_utils.py official repository unverified MIT (permissive) · 5f5d99a0dee8c2b1 · report
fp16_to_fp32 GT-SALT/Adaptive-Compositional-Modules/fp16.py official repository unverified MIT (permissive) · 38034aa1d784464d · report
fp32_to_fp16 GT-SALT/Adaptive-Compositional-Modules/fp16.py official repository unverified MIT (permissive) · ea22baceb9a219a1 · report
get_percentile_min_max GT-SALT/Adaptive-Compositional-Modules/mytransformers/models/ibert/quant_modules.py official repository unverified MIT (permissive) · 613d2566737ae9ec · report
lcs GT-SALT/Adaptive-Compositional-Modules/metrics.py official repository unverified MIT (permissive) · 0f21a55b40b92463 · report
lcsstr GT-SALT/Adaptive-Compositional-Modules/metrics.py official repository unverified MIT (permissive) · 989078983378be2e · report
linear_quantize GT-SALT/Adaptive-Compositional-Modules/mytransformers/models/ibert/quant_modules.py official repository unverified MIT (permissive) · b21b359520c9e1fd · report
network_to_half GT-SALT/Adaptive-Compositional-Modules/fp16util.py official repository unverified MIT (permissive) · 9919cae853c6180f · report
normalize_text GT-SALT/Adaptive-Compositional-Modules/metrics.py official repository unverified MIT (permissive) · b971ea3b818d09b7 · report
symmetric_linear_quantization_params GT-SALT/Adaptive-Compositional-Modules/mytransformers/models/ibert/quant_modules.py official repository unverified MIT (permissive) · fca1d8b44670f871 · report

Tasks

Continual LearningTransfer Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Experience Replay

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