arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.10062cs.LGcs.CL
收藏

OMoE:通过正交微调实现低秩适配混合的多样化

OMoE: Diversifying Mixture of Low-Rank Adaptation by Orthogonal Finetuning

Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);The Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences(复杂系统认知与决策智能重点实验室);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

Jinyuan Feng, Zhiqiang Pu, Tianyi Hu, Dongmin Li, Xiaolin Ai, Huimu Wang

AI总结:

本文针对混合专家 LoRA 中专家表示坍缩、缺乏多样性的问题,提出正交混合专家 OMoE,通过 Gram-Schmidt 过程在 Stiefel 流形上正交训练专家,以更少专家实现稳定高效的性能提升。

摘要:

为低秩适配(LoRA)构建混合专家(MoE)架构,因其模块化设计和卓越性能,正成为参数高效微调(PEFT)中的一个潜在方向。然而,单纯堆叠专家数量并不能保证显著提升。本文首先进行定性分析,指出在普通 MoE 中专家会坍缩为相似表示,从而限制了模块化设计的容量和计算效率。进一步地,我们的分析揭示,以往 MoE 变体的性能可能受限于专家之间缺乏多样性。基于这些发现,我们提出正交混合专家(OMoE),一种资源高效的 MoE 变体,以正交方式训练专家以促进多样性。在 OMoE 中,利用 Gram-Schmidt 过程强制专家的表示位于 Stiefel 流形内。通过将正交约束直接应用于架构,OMoE 保持学习目标不变,且不损害最优性。我们的方法简单,并缓解了内存瓶颈,因为与普通 MoE 模型相比,它所需的专家数量极少。在多个常识推理基准上的实验表明,与最先进方法相比,OMoE 能够在显著减少所需专家数量的同时,持续实现稳定且高效的性能提升。

英文摘要:

Building mixture-of-experts (MoE) architecture for Low-rank adaptation (LoRA) is emerging as a potential direction in parameter-efficient fine-tuning (PEFT) for its modular design and remarkable performance. However, simply stacking the number of experts cannot guarantee significant improvement. In this work, we first conduct qualitative analysis to indicate that experts collapse to similar representations in vanilla MoE, limiting the capacity of modular design and computational efficiency. Ulteriorly, Our analysis reveals that the performance of previous MoE variants maybe limited by a lack of diversity among experts. Motivated by these findings, we propose Orthogonal Mixture-of-Experts (OMoE), a resource-efficient MoE variant that trains experts in an orthogonal manner to promote diversity. In OMoE, a Gram-Schmidt process is leveraged to enforce that the experts' representations lie within the Stiefel manifold. By applying orthogonal constraints directly to the architecture, OMoE keeps the learning objective unchanged, without compromising optimality. Our method is simple and alleviates memory bottlenecks, as it incurs minimal experts compared to vanilla MoE models. Experiments on diverse commonsense reasoning benchmarks demonstrate that OMoE can consistently achieve stable and efficient performance improvement when compared with the state-of-the-art methods while significantly reducing the number of required experts.

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

↑