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

C3PO:面向测试时专家重混合的关键层、核心专家、协同路径优化

C3PO: Critical-Layer, Core-Expert, Collaborative Pathway Optimization for Test-Time Expert Re-Mixing

Johns Hopkins University(约翰斯·霍普金斯大学);University of Maryland(马里兰大学)

Zhongyang Li, Ziyue Li, Tianyi Zhou

AI总结:

C3PO针对MoE大语言模型专家路径次优问题,提出基于成功邻居替代目标的关键层核心专家协同路径优化方法,在六个基准上提升精度7-15%,并使1-3B激活参数的MoE模型超越7-9B参数模型。

摘要:

混合专家(MoE)大语言模型(LLMs)存在严重次优的专家路径问题——我们的研究表明,从预训练中学习到的朴素专家选择留下了令人惊讶的10-20%的精度提升空间。受这一观察启发,我们提出了一类新的测试时优化方法,用于对每个测试样本在不同层中的专家进行联合重加权或“重混合”。由于测试样本的真实标签未知,我们提出优化一个由参考样本集中该样本的“成功邻居”定义的替代目标。我们引入了三种基于模式寻找、核回归以及相似参考样本/任务平均损失的替代目标和算法。为降低优化整条路径的成本,我们仅将算法应用于关键层中核心专家的混合权重,从而在保持相似性能的同时显著节省计算量。由此得到“关键层、核心专家、协同路径优化(C3PO)”。我们将C3PO应用于两个最新的MoE LLMs,并在六个广泛使用的基准上进行了检验。C3PO持续将基础模型的精度提升7-15%,并以较大幅度优于广泛使用的测试时学习基线,例如上下文学习和提示/前缀微调。此外,C3PO使具有1-3B激活参数的MoE LLMs能够超越7-9B参数的LLMs,从而增强了MoE在效率上的优势。我们全面的消融研究进一步为在MoE上实现测试时改进提供了新的见解。

英文摘要:

Mixture-of-Experts (MoE) Large Language Models (LLMs) suffer from severely sub-optimal expert pathways-our study reveals that naive expert selection learned from pretraining leaves a surprising 10-20% accuracy gap for improvement. Motivated by this observation, we develop a novel class of test-time optimization methods to re-weight or "re-mixing" the experts in different layers jointly for each test sample. Since the test sample's ground truth is unknown, we propose to optimize a surrogate objective defined by the sample's "successful neighbors" from a reference set of samples. We introduce three surrogates and algorithms based on mode-finding, kernel regression, and the average loss of similar reference samples/tasks. To reduce the cost of optimizing whole pathways, we apply our algorithms merely to the core experts' mixing weights in critical layers, which enjoy similar performance but save significant computation. This leads to "Critical-Layer, Core-Expert, Collaborative Pathway Optimization (C3PO)". We apply C3PO to two recent MoE LLMs and examine it on six widely-used benchmarks. It consistently improves the base model by 7-15% in accuracy and outperforms widely used test-time learning baselines, e.g., in-context learning and prompt/prefix tuning, by a large margin. Moreover, C3PO enables MoE LLMs with 1-3B active parameters to outperform LLMs of 7-9B parameters, hence improving MoE's advantages on efficiency. Our thorough ablation study further sheds novel insights on achieving test-time improvement on MoE.

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

↑