arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.01237cs.LGcs.AI
收藏

对状态空间模型与变换器在长上下文双人会话中计算与表征效率的基准测试

Benchmarking the Computational and Representational Efficiency of State Space Models against Transformers on Long-Context Dyadic Sessions

Western Illinois University(西部伊利诺伊大学);University of Texas at Dallas(德克萨斯大学达拉斯分校)

Abidemi Koledoye, Chinemerem Unachukwu, Gold Nwobu, Hasin Rana

AI总结:

本文通过双人会话测试案例,对比了状态空间模型与变换器在长上下文中的计算与表征效率,揭示了SSMs在特定条件下的优势。

摘要:

状态空间模型(SSMs)作为一种替代Transformer的有前景的选项,为长上下文序列建模提供了线性O(N)的计算复杂度,相较于Transformer的二次O(N²)扩展。本文提出了一个全面的基准研究,比较Mamba SSM与LLaMA Transformer在长上下文序列上的表现,使用双人治疗会话作为代表测试用例。我们从512到8192个标记评估两种架构的两个维度:(1)计算效率,测量内存使用和推理速度;(2)表征效率,分析隐藏状态动态和注意力模式。我们的发现为从事长上下文应用的从业者提供了可行的见解,确立了SSMs在何种条件下比Transformer具有优势。

英文摘要:

State Space Models (SSMs) have emerged as a promising alternative to Transformers for long-context sequence modeling, offering linear $O(N)$ computational complexity compared to the Transformer's quadratic $O(N^2)$ scaling. This paper presents a comprehensive benchmarking study comparing the Mamba SSM against the LLaMA Transformer on long-context sequences, using dyadic therapy sessions as a representative test case. We evaluate both architectures across two dimensions: (1) computational efficiency, where we measure memory usage and inference speed from 512 to 8,192 tokens, and (2) representational efficiency, where we analyze hidden state dynamics and attention patterns. Our findings provide actionable insights for practitioners working with long-context applications, establishing precise conditions under which SSMs offer advantages over Transformers.

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

↑