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

思维混合:学习聚合专家所想,而非仅其所言

Mixture of Thoughts: Learning to Aggregate What Experts Think, Not Just What They Say

University of Southern California(南加州大学);DEVCOM ARL Army Research Office(美国陆军作战能力发展司令部陆军研究实验室陆军研究办公室)

Jacob Fein-Ashley, Dhruv Parikh, Rajgopal Kannan, Viktor Prasanna

AI总结:

提出思维混合(MoT),通过轻量级路由器选择专家并在共享潜在空间进行交叉注意力,实现异构LLM的潜在级协作,在ID和OOD基准上分别超越现有方法+0.38%和+2.92%。

摘要:

开源大型语言模型(LLMs)日益按领域(如数学、代码、通用推理)专业化,这促使系统利用不同模型间的互补优势。先前的多LLM方法要么(i)将查询路由到一个或几个专家并独立生成,(ii)通过昂贵的多轮交互聚合每个模型的输出,或(iii)将权重融合到单一模型中——通常需要架构同质性。我们提出思维混合(Mixture of Thoughts, MoT),一种在全局路由方案下实现异构专家间潜在层面协作的简单方法。对于每个查询,一个轻量级路由器选择前K个专家并指定一个主要专家;均匀放置的交互层将隐藏状态投影到共享潜在空间,其中主要专家对其活跃(被选中的)同行执行交叉注意力。预训练专家保持冻结;仅路由器和轻量级交互层通过一种新颖的联合训练目标进行训练,该目标同时改进专家选择和专家间协作。在五个分布内(ID)和三个分布外(OOD)基准上,MoT分别超过当前基于路由和聚合的最先进方法Avengers达+0.38%和+2.92%。此外,MoT显著优于性能最佳的单一模型。它通过单次推理实现这一点,运行时间与路由基线相当,且没有迭代聚合的任何开销。MoT提供了一种简单的潜在空间机制来组合异构LLM,是迈向更广泛多LLM协作的实用一步。我们的代码公开于https://github.com/jacobfa/mot。

英文摘要:

Open-source Large Language Models (LLMs) increasingly specialize by domain (e.g., math, code, general reasoning), motivating systems that leverage complementary strengths across models. Prior multi-LLM approaches either (i) route a query to one or a few experts and generate independently, (ii) aggregate outputs from each model via costly multi-turn exchanges, or (iii) fuse weights into a single model-typically requiring architectural homogeneity. We introduce Mixture of Thoughts (MoT), a simple method for latent-level collaboration among heterogeneous experts under a global routing scheme. For each query, a lightweight router selects top-$K$ experts and designates a primary expert; uniformly placed interaction layers project hidden states into a shared latent space where the primary expert performs cross-attention over its active (selected) peers. Pre-trained experts remain frozen; only the router and the lightweight interaction layers are trained with a novel joint training objective that improves both the expert selection and inter-expert collaboration. Across five in-distribution (ID) and three out-of-distribution (OOD) benchmarks, MoT surpasses the current routing and aggregation-based state-of-the-art, Avengers, by $+0.38\%$ and $+2.92\%$, respectively. Further, MoT significantly outperforms the best-performing single model. It achieves this with single-pass inference, runtime comparable to routing baselines, and none of the overheads of iterative aggregation. MoT offers a simple latent-space mechanism for combining heterogeneous LLMs, a practical step toward broader multi-LLM collaboration. Our code is publicly available at https://github.com/jacobfa/mot.

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

↑