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

通过混合LoRAs改进递归变换器

Improving Recursive Transformers with Mixture of LoRAs

NLPIE Research, UK(NLPIE研究机构,英国);University of Zurich, Switzerland(瑞士苏黎世大学);Department of Engineering Science, University of Oxford, UK(牛津大学工程科学系)

Mohammadmahdi Nouriborji, Morteza Rohanian, Omid Rohanian

AI总结:

通过混合LoRAs改进递归变换器,实现轻量条件计算机制,提升模型表达能力与效率。

摘要:

递归变换器中的参数共享减少了模型大小但会降低层间表达能力。我们提出混合LoRAs(MoL),一种轻量的条件计算机制,它在共享的前馈网络(FFN)内部插入低秩适应(LoRA)专家。MoL能够在不解除主干参数的情况下,对共享FFN进行基于token的权重空间调节,不同于先前方法添加固定或外部附加的适配器。我们预训练了一个现代化的递归架构,ModernALBERT,整合了旋转嵌入、GeGLU、FlashAttention和基于蒸馏的初始化。在GLUE、SQuAD-v2和BEIR上,ModernALBERT(50M-120M)在紧凑模型中实现了最先进的性能,并超越了更大完全参数化的基线。我们还提出了一种专家合并程序,将MoL压缩成一个适配器进行推理,同时保持准确性,从而实现高效的部署。我们的结果表明,条件权重空间调节有效恢复了递归变换器中在激进参数共享下失去的表达能力。

英文摘要:

Parameter sharing in recursive transformers reduces model size but collapses layer-wise expressivity. We propose Mixture of LoRAs (MoL), a lightweight conditional-computation mechanism that inserts Low-Rank Adaptation (LoRA) experts inside a shared feed-forward network (FFN). MoL enables token-conditional weight-space modulation of the shared FFN without untying backbone parameters, unlike prior approaches that add fixed or externally attached adapters. We pretrain a modernised recursive architecture, ModernALBERT, integrating rotary embeddings, GeGLU, FlashAttention, and a distillation-based initialisation. Across GLUE, SQuAD-v2, and BEIR, ModernALBERT (50M--120M) achieves state-of-the-art performance among compact models and surpasses larger fully parameterised baselines. We also propose an expert-merging procedure that compresses MoL into a single adapter at inference while preserving accuracy, enabling efficient deployment. Our results show that conditional weight-space modulation effectively restores the expressivity lost under aggressive parameter sharing in recursive transformers.

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

↑