无需可训练路由模块,用嵌入分布自动选择适配器,实现高效持续学习。
Latent-LoRA: Compact Latent-Space Adapters with Gradient-Free Routing for Continual Learning

- 基于冻结模型嵌入的聚类分布,无梯度地实现任务无关路由。
- 通过SVD约束参数在主子空间,每任务参数量减少90%以上。
- 无需重放、无额外可训练参数,适合资源受限场景的持续学习。
大型语言模型虽能良好泛化至单个任务,但缺乏顺序学习机制,易产生灾难性遗忘。现有基于LoRA的持续学习方法为每个任务分配独立低秩适配器,但要么需推理时提供任务身份,要么无差别求和所有适配器,导致无关分支干扰输出。近期门控方法可路由输入至正确适配器,但引入了需防护遗忘的可训练参数。本文观察到,冻结的LLM嵌入层中池化后的标记嵌入已能随学习序列分离任务分布。在这些嵌入上拟合高斯混合模型(无需梯度训练),即可在测试时实现无需任务标识的适配器选择。在适配器端,通过SVD将各任务参数限制于预训练权重的主子空间,实现紧凑的潜在空间参数化。在此子空间内,正交正则化直接控制任务间干扰。所提出的系统Latent-LoRA无需重放、无可训练路由组件,且每任务参数量显著减少。在五个模型规模及两个主流持续学习基准上的实验表明,其性能达当前最优,几乎零遗忘。
原文摘要 · Abstract (English)
Large language models generalize well to individual tasks but lack an inherent mechanism for learning them sequentially, leading to catastrophic forgetting. To mitigate this, LoRA-based continual learning methods allocate a separate low-rank adapter per task, yet existing approaches either require task identity at inference or sum all adapters indiscriminately, letting irrelevant branches distort the output. Recent gating-based solutions route inputs to the correct adapter but introduce trainable parameters that themselves need protection against forgetting. In this work, we observe that pooled token embeddings from a frozen LLM embedding layer already separate task distributions throughout the learning sequence. A Gaussian mixture model fitted on these embeddings, without any gradient-based training, is sufficient for task-agnostic adapter selection at test time. This eliminates the need for a learned gating module. On the adapter side, constraining each task's parameters to the principal subspace of the pretrained weights via SVD yields a compact latent-space parameterization. Within this subspace, orthogonal regularization directly controls inter-task interference. The resulting system, Latent-LoRA, is replay-free, requires no trainable routing component, and uses substantially fewer parameters per task. Experiments across five model scales and two established continual learning benchmarks show state-of-the-art performance with near-zero forgetting.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。