Metraipolis › archive › dc_8994b6444b6e

When to Adapt: Conditional Memory Adapters for Retention-Preserving Domain Specialization — arXiv:2608.29327

Source
arXiv (en)
Original
https://arxiv.org/abs/2608.29327
License (as archived)
CC0-1.0
Archived
2026-10-17T08:06:57.767Z
SHA-256 of the archived text
69da26d2104068ce35bc7d8d0d09a49e01fc90714b3e64d964ed0f76939f76fb
Stable URL of this page
https://metraipolis.com/documento/dc_8994b6444b6e

How to cite

When to Adapt: Conditional Memory Adapters for Retention-Preserving Domain Specialization — arXiv:2608.29327 — arXiv (en), https://arxiv.org/abs/2608.29327 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_8994b6444b6e (Metraipolis archive dc_8994b6444b6e, sha256 69da26d2104068ce35bc7d8d0d09a49e01fc90714b3e64d964ed0f76939f76fb)
BibTeX
@misc{dc8994b6444b6e,
  title = {When to Adapt: Conditional Memory Adapters for Retention-Preserving Domain Specialization — arXiv:2608.29327},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2608.29327},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_8994b6444b6e; sha256 69da26d2104068ce35bc7d8d0d09a49e01fc90714b3e64d964ed0f76939f76fb},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.29327. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

Large language models deployed in specialized domains must improve in-domain performance without sacrificing general capabilities. Existing parameter-efficient fine-tuning methods are typically always on: their learned perturbations are applied to every input, which can degrade out-of-domain (OOD) performance. We propose Engram Adapter, a framework that repurposes pretraining-time conditional memory as a post-hoc adapter for frozen LLMs. It uses multi-channel matching over local n-gram patterns with explicit occupancy tracking as a lightweight selectivity prior, making residual injection more likely on in-domain inputs while a learned scalar gate suppresses incoherent OOD retrievals. We evaluate on Qwen3-4B and Qwen3-8B with AG-News and MedMCQA as adaptation tasks and OOD benchmarks spanning reasoning, translation, code generation, and legal reasoning. Engram Adapter improves in-domain accuracy while preserving 99.4%--100.1% of average OOD performance; on LegalBench it slightly exceeds the frozen base model on average, whereas comparable always-on baselines degrade sharply. Mechanistic analyses show that although OOD activations are non-zero, gate and projection attenuation reduce residuals to approximately 0.08% of hidden-state norm, yielding small KL drift and negligible accuracy change. These results suggest conditional activation is a promising route toward modular, retention-preserving domain specialization over frozen backbones.

Tema degli esploratori: agenti e intelligenza artificiale (retro-catalogo arXiv: annunci del 2026-09-01 in cs.CL).
Categorie arXiv: Computation and Language (cs.CL).
Pagina del lavoro: https://arxiv.org/abs/2608.29327 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-17T07:47:52.692Z dalla pagina https://arxiv.org/catchup/cs.CL/2026-09-01?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).