FlyLoRA:通过隐式秩级专家混合提升任务解耦与参数效率
FlyLoRA: Boosting Task Decoupling and Parameter Efficiency via Implicit Rank-Wise Mixture-of-Experts
AI总结:
FlyLoRA受果蝇嗅觉回路启发,通过隐式秩级专家混合和随机投影路由器,在消除显式路由器的同时缓解任务间干扰,提升多任务LoRA微调的性能与参数效率。
摘要:
低秩适配(LoRA)是一种广泛使用的基座模型参数高效微调方法,但它存在参数干扰问题,导致性能次优。尽管基于专家混合(MoE)的LoRA变体在单任务指令微调中显示出缓解任务内相关性的潜力,但它们引入了额外的路由器参数,并且在多任务模型合并中仍然无效,因为此时会出现任务间干扰。受果蝇嗅觉回路启发,我们提出了FlyLoRA,一种基于隐式MoE的LoRA变体,它引入了:(1)上投影矩阵中的秩级专家激活,以及(2)一个隐式路由器,该路由器统一了专家路由和下投影,其中冻结的稀疏随机投影矩阵取代了传统的密集可训练版本。这种设计通过消除显式路由器的需求,解决了任务内去相关与计算效率之间的权衡,同时由于随机矩阵的正交性,固有地缓解了任务间干扰。在四个领域(通用知识理解、科学问答、数学推理和代码生成)的大量实验表明,与现有方法相比,性能持续提升。除了经验上的提升,FlyLoRA还凸显了生物结构如何激发AI技术的创新。代码可在https://github.com/gfyddha/FlyLoRA获取。
英文摘要:
Low-Rank Adaptation (LoRA) is a widely used parameter-efficient fine-tuning method for foundation models, but it suffers from parameter interference, resulting in suboptimal performance. Although Mixture-of-Experts (MoE)-based LoRA variants show promise in mitigating intra-task correlations in single-task instruction tuning, they introduce additional router parameters and remain ineffective in multi-task model merging where inter-task interference arises. Inspired by the fly olfactory circuit, we propose FlyLoRA, an implicit MoE-based LoRA variant that introduces: (1) rank-wise expert activation in the up-projection matrix, and (2) an implicit router that unifies expert routing and down-projection, where a frozen sparse random projection matrix replaces the traditional dense trainable version. This design resolves the trade-off between intra-task decorrelation and computational efficiency by eliminating the need for an explicit router, while inherently mitigating inter-task interference due to the orthogonality property of random matrices. Extensive experiments across four domains -- general knowledge understanding, scientific question answering, mathematical reasoning, and code generation -- demonstrate consistent performance improvements over existing methods. Beyond empirical gains, FlyLoRA highlights how biological structures can inspire innovations in AI technologies. Code is available at https://github.com/gfyddha/FlyLoRA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。