arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.00530cs.CLcs.AI
收藏

Transformer 中的叠加:构建混合专家模型的新途径

Superposition in Transformers: A Novel Way of Building Mixture of Experts

Ayoub Ben Chaliah, Hela Dellagi

AI总结:

本文提出 Superposition in Transformers 架构,利用自动编码器、B 样条混合系数和自适应隐藏状态重建,在共享参数空间中叠加基础与微调模型,以缓解灾难性遗忘并支持推理时动态切换。

摘要:

灾难性遗忘仍是使大型语言模型(LLM)适应新任务或领域时的一项重大挑战。传统微调往往会覆盖已有知识,导致原始任务性能下降。我们提出 Superposition in Transformers,这是一种新颖架构,利用自动编码器在共享参数空间内叠加基础模型与微调模型的隐藏表示。通过使用基于 B 样条的混合系数,以及根据输入数据分布自适应重建隐藏状态的自动编码器,我们的方法有效缓解了灾难性遗忘,并实现了“模型内”叠加的新范式。该方法在保留原始模型能力的同时,允许添加紧凑的领域专门知识,并支持推理期间在不同模型状态之间动态切换。

英文摘要:

Catastrophic forgetting remains a major challenge when adapting large language models (LLMs) to new tasks or domains. Conventional fine-tuning often overwrites existing knowledge, causing performance degradation on original tasks. We introduce Superposition in Transformers, a novel architecture that leverages autoencoders to superimpose the hidden representations of a base model and a fine-tuned model within a shared parameter space. By using B-spline-based blending coefficients and autoencoders that adaptively reconstruct hidden states based on the input data distribution, our method effectively mitigates catastrophic forgetting and enables a new paradigm of "in-model" superposition. This approach preserves original model capabilities while allowing compact domain-specific expertise to be added, and it supports dynamic switching between model states during inference.

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

↑