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
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.
Attention Sinks and Outliers in Attention Residuals
Department of Computer Science, Northwestern University(西北大学计算机科学系);Department of Computer Science and Engineering, University of Michigan(密歇根大学计算机科学与工程系);Department of Statistics and Data Science, University of California Los Angeles(加州大学洛杉矶分校统计与数据科学系);Department of Electrical and Computer Engineering, University of California San Diego(加州圣地亚哥大学电气与计算机工程系);Department of Computer Science, Rutgers University-New Brunswick(新泽西州立大学鲁特学院计算机科学系);Department of Computer Science and Engineering, Texas A&M University(德克萨斯农工大学计算机科学与工程系);Department of Computer Science, Columbia University(哥伦比亚大学计算机科学系)
Depth Enables Long-Term Memory for Recurrent Neural Networks
Faculty of Computer Science and Engineering The Hebrew University of Jerusalem(计算机科学与工程学院 希伯来大学耶路撒冷分校);The Hebrew University of Jerusalem(希伯来大学耶路撒冷分校);Faculty of Computer Science and Engineering(计算机科学与工程学院)