Mixture of Parrots:专家模型对记忆能力的提升大于推理能力
Mixture of Parrots: Experts improve memorization more than reasoning
AI总结:
本文研究了Mixture-of-Experts与稠密transformers的性能权衡,发现增加专家数量能持续提升记忆能力并有效解决知识密集型任务,但推理能力会饱和且无法像加宽稠密模型那样解决特定图问题。
摘要:
Mixture-of-Experts (MoE) 架构能够在极小的计算开销下显著增加模型参数的总数。然而,MoE 与标准稠密 transformers 之间存在怎样的性能权衡(如果有的话)尚不明确。在本文中,我们表明,随着专家数量的增加(同时固定活跃参数的数量),记忆性能持续提升,而推理能力则趋于饱和。我们首先分析了 MoE 在推理方面的理论局限性。我们证明,存在某些特定宽度的任意数量专家都无法解决的图问题;然而,同样的任务可以由一个宽度稍大的稠密模型轻松解决。另一方面,我们发现在内存密集型任务上,MoE 能够有效地利用少量活跃参数和大量专家来记忆数据。我们在合成图问题和内存密集型闭卷检索任务上实证验证了这些发现。最后,我们预训练了一系列 MoE 和稠密 transformers,并在数学和自然语言领域常用的基准上对它们进行了评估。我们发现,增加专家数量有助于解决知识密集型任务,但未能为推理任务带来同样的收益。
英文摘要:
The Mixture-of-Experts (MoE) architecture enables a significant increase in the total number of model parameters with minimal computational overhead. However, it is not clear what performance tradeoffs, if any, exist between MoEs and standard dense transformers. In this paper, we show that as we increase the number of experts (while fixing the number of active parameters), the memorization performance consistently increases while the reasoning capabilities saturate. We begin by analyzing the theoretical limitations of MoEs at reasoning. We prove that there exist graph problems that cannot be solved by any number of experts of a certain width; however, the same task can be easily solved by a dense model with a slightly larger width. On the other hand, we find that on memory-intensive tasks, MoEs can effectively leverage a small number of active parameters with a large number of experts to memorize the data. We empirically validate these findings on synthetic graph problems and memory-intensive closed book retrieval tasks. Lastly, we pre-train a series of MoEs and dense transformers and evaluate them on commonly used benchmarks in math and natural language. We find that increasing the number of experts helps solve knowledge-intensive tasks, but fails to yield the same benefits for reasoning tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。