arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2406.16168cs.LG
收藏

一种擅长复制任务的全MLP序列建模架构

An All-MLP Sequence Modeling Architecture That Excels at Copying

Arizona State University(亚利桑那州立大学);Colorado State University(科罗拉多州立大学)

Chenwei Cui, Zehao Yan, Gedeon Muhawenayo, Hannah Kerner

AI总结:

该研究提出全MLP架构CausalRN,通过指数激活(实现线性复杂度)与预激活归一化(类KV缓存内存池)两项创新,在复制任务上达到Transformer水平,为理解强上下文检索的本质提供了新视角。

摘要:

近期研究表明Transformer具备高效复制指数级长度字符串的能力,这一特性使其区别于其他架构。我们提出因果关系网络(Causal Relation Network,CausalRN)——一种全MLP序列建模架构,它在复制任务上的表现可与Transformer比肩。我们对关系网络(Relation Networks, RNs)进行扩展,实现了多项关键创新,以支持自回归序列建模同时保持计算可行性。我们发现经指数激活的RNs可简化为线性时间复杂度,且预激活归一化会催生一个不断增长的内存池,其作用类似于KV缓存。在消融实验中,我们证实指数激活与预激活归一化对于达到Transformer级别的复制性能均不可或缺。本研究发现为厘清强上下文检索能力的核心构成要素提供了新的洞见。

英文摘要:

Recent work demonstrated Transformers' ability to efficiently copy strings of exponential sizes, distinguishing them from other architectures. We present the Causal Relation Network (CausalRN), an all-MLP sequence modeling architecture that can match Transformers on the copying task. Extending Relation Networks (RNs), we implemented key innovations to support autoregressive sequence modeling while maintaining computational feasibility. We discovered that exponentially-activated RNs are reducible to linear time complexity, and pre-activation normalization induces an infinitely growing memory pool, similar to a KV cache. In ablation study, we found both exponential activation and pre-activation normalization are indispensable for Transformer-level copying. Our findings provide new insights into what actually constitutes strong in-context retrieval.

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

↑