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

深度记忆

Depth Memory

ELLIS Institute Tübingen(埃利斯研究所蒂宾根分所);Max Planck Institute for Intelligent Systems, Tübingen(马克斯·普朗克智能系统研究所(蒂宾根));Tübingen AI Center(蒂宾根人工智能中心);ETH Zürich(苏黎世联邦理工学院);Liquid AI(Liquid AI公司)

David González-Martínez, Philipp Nazari, T. Konstantin Rusch, Shiwei Liu

AI总结:

本研究提出深度记忆(DM)框架,进而构建线性深度记忆(LDM)架构,在4亿和15亿参数规模下,LDM在语言建模任务中取得最低困惑度,且零样本准确率具有竞争力。

摘要:

残差连接通过累加层输出在网络中传播信息。近期提出的替代方案,如流形约束超连接(mHC)和注意力残差(AttnRes),采用更具表达力的深度聚合机制,提升了大规模语言建模性能。本研究将跨深度的表示混合视为跨层存储与检索信息的问题,基于该视角提出统一框架深度记忆(Depth Memory, DM),该框架通过在网络中传递表示的流,描述了标准前置层归一化(PreLN)Transformer、mHC和AttnRes。例如,其中一种流可以是显式记忆流,被查询以丰富每一层的输入,其输出随后被写回记忆供后续层使用;对于AttnRes,该记忆流是不断增长的显式层表示缓存;对于mHC,它是扩展的残差流。基于此观点,我们提出线性深度记忆(Linear Depth Memory, LDM),将跨深度的信息检索表述为使用递归最小二乘求解的回归问题,所得架构在深度上传播三种流:标准残差流、线性关联记忆流和逆协方差流。为实现高吞吐量的训练与推理,我们提出LDM的硬件感知实现,其可降低峰值激活内存和内存流量。在4亿和15亿参数规模下,LDM在PreLN、mHC和AttnRes基线中始终取得最低困惑度,同时具备有竞争力的零样本准确率。

英文摘要:

Residual connections propagate information through a network by additively accumulating layer outputs. Recently proposed alternatives, such as Manifold-Constrained Hyper-Connections (mHC) and Attention Residuals (AttnRes), instead use more expressive depth aggregation mechanisms that improve language modeling performance at scale. In this work, we consider the mixing of representations over depth as a problem of storing and retrieving information across layers. Formalizing this perspective, we introduce Depth Memory (DM), a unified framework that describes the standard pre-layer-norm (PreLN) transformer, mHC, and AttnRes in terms of streams that carry representations through the network. One such stream, for example, could be an explicit memory stream that is queried to enrich the input to every layer, and whose output is subsequently written back into the memory for use by later layers. For AttnRes, this memory stream is a growing cache of explicit layer representations. For mHC, it is an expanded residual stream. Building on this view, we propose Linear Depth Memory (LDM), which formulates information retrieval across depth as a regression problem solved using recursive least squares. The resulting architecture propagates three streams across depth: the standard residual stream, a linear associative memory stream, and an inverse covariance stream. For high-throughput training and inference, we propose a hardware-aware implementation of LDM that reduces peak activation memory and memory traffic. LDM consistently achieves the lowest perplexities among PreLN, mHC and AttnRes baselines at the 400M and 1.5B parameter scales, alongside competitive zero-shot accuracy.

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

↑