arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.36994cs.LG
收藏

CaLLM:通过非参数适配器路由实现大语言模型的持续适配

CaLLM: Continual Adaptation of LLMs via Non-Parametric Adapter Routing

Eindhoven University of Technology(埃因霍温理工大学)

Bilge Celik, Anna Vettoruzzo, Joaquin Vanschoren

AI总结:

CaLLM框架结合度量元学习与轻量级适配器的模块化参数隔离,通过原型路由实现LLM持续适配,在多基准上优于传统方法,缓解灾难性遗忘且计算复杂度恒定。

摘要:

大语言模型(LLMs)对不断演变的任务分布进行持续适配,同时缓解灾难性遗忘仍是一个未解决的问题。现有策略往往难以扩展,或缺乏零样本任务到专家分配的稳健机制。我们提出CaLLM这一框架,通过将基于度量的元学习与轻量级适配器实现的模块化参数隔离相结合,解决了这些矛盾。首先,CaLLM将每个输入批次投影到任务不可知的嵌入空间,以找到其最近的原型;随后将该批次路由到专门针对该数据分布的特定适配器。该公式带来了:(i)设计层面可控的跨任务干扰;(ii)与任务数量无关的恒定计算复杂度;(iii)通过原型扩展无缝整合新分布;(iv)与场景无关性,因为局部路由决策为在线和离线设置提供了统一方法。我们的实验表明,该路由机制能发现语义连贯的任务分组,同时促进相似任务间的建设性干扰,并将开销降至最低。在多样化且细粒度的持续学习基准上,CaLLM始终优于传统隔离和重放方法,确立了基于原型的模块化路由作为大语言模型终身适配的原则性且可扩展的方法。

英文摘要:

Continual adaptation of large language models (LLMs) to evolving task distributions while mitigating catastrophic forgetting remains an open problem. Existing strategies often struggle to scale or lack a robust mechanism for zero-shot task-to-expert assignment. We introduce CaLLM, a framework that resolves these tensions by combining metric-based meta-learning with modular parameter isolation via lightweight adapters. First, CaLLM projects each input batch into a task-agnostic embedding space to find its nearest prototype. It then routes the batch to the specific adapter specialized for that data distribution. This formulation provides (i)~controllable cross-task interference by design, (ii)~constant computational complexity regardless of task count, (iii)~seamless integration of novel distributions through prototype expansion, and (iv)~regime agnosticism as the local routing decision enables a unified approach to both online and offline settings. Our experiments demonstrate that this routing mechanism discovers semantically coherent task groupings while facilitating constructive interference between similar tasks, and keeping overhead at a minimum. Across diverse and fine-grained continual learning benchmarks, CaLLM consistently outperforms traditional isolation and replay methods, establishing prototype-based modular routing as a principled and scalable approach to lifelong adaptation of LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑