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

混合序列模型的表达性与效率权衡

Expressivity-Efficiency Tradeoffs for Hybrid Sequence Models

John Cooper, Ilias Diakonikolas, Mingchen Ma, Frederic Sala

AI总结:

本文研究了混合序列模型在表达性与效率之间的权衡,证明了非混合模型的限制,并展示了混合模型在解决选择性复制和联想回忆任务中的优势。

摘要:

混合序列模型——结合Transformer和状态空间模型层——旨在获得注意力的表达灵活性以及状态空间模型层的计算效率。尽管对混合模型的兴趣日益增长,但我们缺乏对在哪些设置以及通过何种机制它们优于其组成部分模型的基本理解。在本文中,我们研究了这个问题,专注于一个广泛的核心合成任务家族。对于这个任务家族,我们证明了非混合模型存在根本限制。具体来说,任何解决底层任务的Transformer或状态空间模型都需要大量的参数或大量的工作内存。另一方面,对于这个家族中的两个典型任务——即选择性复制和联想回忆——我们构建了小型尺寸和工作内存的混合模型,这些模型可以证明地解决这些任务,从而实现了两者的优势。我们的实验评估经验上验证了我们的理论发现。重要的是,超越我们理论分析的设置,我们实证地表明,学习而非构建的混合模型在参数数量多达6倍的情况下优于非混合模型。我们还展示了混合模型在长度泛化和分布外鲁棒性方面比非混合模型更强。

英文摘要:

Hybrid sequence models--combining Transformer and state-space model layers--seek to gain the expressive versatility of attention as well as the computational efficiency of state-space model layers. Despite burgeoning interest in hybrid models, we lack a basic understanding of the settings where--and underlying mechanisms through which--they offer benefits over their constituent models. In this paper, we study this question, focusing on a broad family of core synthetic tasks. For this family of tasks, we prove the existence of fundamental limitations for non-hybrid models. Specifically, any Transformer or state-space model that solves the underlying task requires either a large number of parameters or a large working memory. On the other hand, for two prototypical tasks within this family--namely selective copying and associative recall--we construct hybrid models of small size and working memory that provably solve these tasks, thus achieving the best of both worlds. Our experimental evaluation empirically validates our theoretical findings. Importantly, going beyond the settings in our theoretical analysis, we empirically show that learned--rather than constructed--hybrids outperform non-hybrid models with up to 6x as many parameters. We additionally demonstrate that hybrid models exhibit stronger length generalization and out-of-distribution robustness than non-hybrids.

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

↑