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

本地专家混合:通过模型合并实现基本无额外开销的测试时训练

Local Mixtures of Experts: Essentially Free Test-Time Training via Model Merging

ETH Zürich(苏黎世联邦理工学院)

Ryo Bertolissi, Jonas Hübotter, Ido Hakimi, Andreas Krause

AI总结:

针对现有MoE模型专家数量受限、测试时训练(TTT)计算成本高的问题,提出测试时模型合并(TTMM)方法,可扩展专家规模且几乎无测试时开销,在1B参数模型上速度比TTT快100倍以上,性能接近TTT。

摘要:

专家混合(MoE)模型是在不增加推理成本的前提下提升模型容量的一种极具前景的方法,也是众多当前最优语言模型的核心组件。然而,由于训练与推理成本过高,现有MoE模型通常仅使用少量专家。我们提出测试时模型合并(TTMM)方法,将MoE范式的专家规模扩展一个数量级,并通过模型合并几乎完全避免测试时开销。我们证明TTMM是测试时训练(TTT)的一种近似,后者会针对每个预测任务(即提示)微调一个专家模型。近期研究表明TTT能显著提升语言模型性能,但计算成本高昂。我们发现,TTMM的性能随专家数量增加而提升,且逐渐接近TTT的性能。此外,在1B参数的基础模型上,TTMM通过在训练阶段分摊TTT的成本,测试时速度比TTT快100倍以上。因此,TTMM为扩展测试时训练提供了一种极具前景的高性价比方案。

英文摘要:

Mixture of expert (MoE) models are a promising approach to increasing model capacity without increasing inference cost, and are core components of many state-of-the-art language models. However, current MoE models typically use only few experts due to prohibitive training and inference cost. We propose Test-Time Model Merging (TTMM) which scales the MoE paradigm to an order of magnitude more experts and uses model merging to avoid almost any test-time overhead. We show that TTMM is an approximation of test-time training (TTT), which fine-tunes an expert model for each prediction task, i.e., prompt. TTT has recently been shown to significantly improve language models, but is computationally expensive. We find that performance of TTMM improves with more experts and approaches the performance of TTT. Moreover, we find that with a 1B parameter base model, TTMM is more than 100x faster than TTT at test-time by amortizing the cost of TTT at train-time. Thus, TTMM offers a promising cost-effective approach to scale test-time training.

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

↑