DenseFormer: Enhancing Information Flow in Transformers via Depth Weighted Averaging
Not on the map. Why?
Abstract (arXiv)
The transformer architecture by Vaswani et al. (2017) is now ubiquitous across application domains, from natural language processing to speech processing and image understanding. We propose DenseFormer, a simple modification to the standard architecture that improves the perplexity of the model without increasing its size -- adding a few thousand parameters for large-scale models in the 100B parameters range. Our approach relies on an additional averaging step after each transformer block, which computes a weighted average of current and past representations -- we refer to this operation as Depth-Weighted-Average (DWA). The learned DWA weights exhibit coherent patterns of information flow, revealing the strong and structured reuse of activations from distant layers. Experiments demonstrate that DenseFormer is more data efficient, reaching the same perplexity of much deeper transformer models, and that for the same perplexity, these new models outperform transformer baselines in terms of memory efficiency and inference time.
Key facts. Cited by 48 papers in the map (data through 7 Oct 2026). Builds on 26 of its 37 references that are in the map. First posted on arXiv 4 Feb 2024.
Builds on
26 of 37 references.
References · 26
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2016Densely Connected Convolutional Networkscited by 6,691
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2021Switch Transformers: Scaling to Trillion Parameter Models with Simple and Efficient Sparsitycited by 3,014
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 1,979
14 more
- 2020GLU Variants Improve Transformercited by 1,724
- 2020Reformer: The Efficient Transformercited by 1,658
- 2023Encouraging Divergent Thinking in Large Language Models through Multi-Agent Debatecited by 995
- 2023The RefinedWeb Dataset for Falcon LLM: Outperforming Curated Corpora with Web Data, and Web Data Onlycited by 755
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2015Highway Networkscited by 257
- 2022Will we run out of data? Limits of LLM scaling based on human-generated datacited by 187
- 2014Convolutional Neural Networks at Constrained Time Costcited by 81
- 2023Large Language Models Suffer From Their Own Output: An Analysis of the Self-Consuming Training Loopcited by 75
- 2023The Impact of Depth on Compositional Generalization in Transformer Language Modelscited by 37
- 2023Simplifying Transformer Blockscited by 37
- 2023Not all layers are equally as important: Every Layer Counts BERTcited by 21
- 2022Depth-Wise Attention (DWAtt): A Layer Fusion Method for Data-Efficient Classificationcited by 9
Built on by
Citing papers per year: 2024: 4; 2025: 10; 2026: 34.
48 papers.
Sort:
By area:
- 2025mHC: Manifold-Constrained Hyper-Connectionscited by 76
- 2026Attention Residualscited by 57
- 2024Transformer Layers as Painterscited by 50
- 2024MambaMixer: Efficient Selective State Space Models with Dual Token and Channel Selectioncited by 40
- 2025MUDDFormer: Breaking Residual Bottlenecks in Transformers via Multiway Dynamic Dense Connectionscited by 27
- 2024GPT or BERT: why not both?cited by 26
- 2024Value Residual Learningcited by 25
- 2026Depth-Recurrent Attention Mixtures: Giving Latent Reasoning the Attention it Deservescited by 11
- 2026Hyperloop Transformerscited by 11
- 2025DeepCrossAttention: Supercharging Transformer Residual Connectionscited by 7
- 2025CR-Net: Scaling Parameter-Efficient Training with Cross-Layer Low-Rank Structurecited by 7
- 2026Deep Delta Learningcited by 7
36 more
- 2026Delta Attention Residualscited by 7
- 2025Vision Mamba in Remote Sensing: A Comprehensive Survey of Techniques, Applications and Outlookcited by 6
- 2025Training Foundation Models on a Full-Stack AMD Platform: Compute, Networking, and System Designcited by 5
- 2026Synergistic Intra- and Cross-Layer Regularization Losses for MoE Expert Specializationcited by 5
- 2025You Do Not Fully Utilize Transformer's Representation Capacitycited by 4
- 2025Auto-Compressing Networkscited by 4
- 2025Improving Model Representation and Reducing KV Cache via Skip Connections with First Value Headscited by 4
- 2025Reconstructing KV Caches with Cross-layer Fusion For Enhanced Transformerscited by 4
- 2026Mixture-of-Depths Attentioncited by 4
- 2026ZAYA1-8B Technical Reportcited by 4
- 2026go-mHC: Direct Parameterization of Manifold-Constrained Hyper-Connections via Generalized Orthostochastic Matricescited by 3
- 2026Depth-Attention: Cross-Layer Value Mixing for Language Modelscited by 3
- 2026xHC: Expanded Hyper-Connectionscited by 3
- 2026Fix the Structural Bottleneck: Context Compression via Explicit Information Transmissioncited by 2
- 2026Residual Stream Duality in Modern Transformer Architecturescited by 2
- 2026Rethinking Cross-Layer Information Routing in Diffusion Transformerscited by 2
- 2026ReactVLA: Fast and Lightweight Reactive Robot Manipulation via Improved Mean Flow Action Generationcited by 2
- 2026Multi-Head Attention Residualscited by 2
- 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimizationcited by 1
- 2026Improving LLM Final Representations with Inter-Layer Geometrycited by 1
- 2026Transformers with Selective Access to Early Representationscited by 1
- 2026Most Transformer Modifications Still Do Not Transfer at 1-3B: A 2020-2026 Update to Narang et al. (2021) with Downstream Evaluation and a Noise Floorcited by 1
- 2026Do Value Vectors in Deep Layers Need Context from the Residual Stream?cited by 1
- 2026Low-Rank Attention Residualscited by 1
- 2026LayerRoute: Action-Conditioned Mixture-of-Layers Routing for Vision-Language-Action Policiescited by 1
- 2026YOCO++: Enhancing YOCO with KV Residual Connections for Efficient LLM Inferencecited by 0
- 2026HAARES Half-Split Residual Basis Routing for Deep Transformerscited by 0
- 2026ZONOS2 Technical Reportcited by 0
- 2026Dual Attention Residualscited by 0
- 2026Dynamic Parameterization Is Not Dynamic Inferencecited by 0
- 2026Role-Decoupled Attention Residuals: Separating Matching and Content Retrieval Across Depthcited by 0
- 2026WhiteMatter: All-to-All Cross-Layer Connections via KV Source Mixingcited by 0
- 2026NCP-ArchPreview Technical Report: Moving towards Latent Space Language Models through Next Concept Predictioncited by 0
- 2026MoME: Mixture-of-Memory Embeddings for Context-Aware Sparse Lookupcited by 0
- 2026DepthBench: Measuring How Residual Connections Enable More Computational Depthcited by 0
- 2026T-Router: Learning Thalamic Routing for Reasoning with Parameter-Efficient Reinforcement Learningcited by 0
- 2026T-Router: Learning Thalamic Routing for Reasoning with Parameter-Efficient Reinforcement Learning30 Sep 2026
- 2026DepthBench: Measuring How Residual Connections Enable More Computational Depth26 Sep 2026
- 2026MoME: Mixture-of-Memory Embeddings for Context-Aware Sparse Lookup14 Sep 2026
- 2026NCP-ArchPreview Technical Report: Moving towards Latent Space Language Models through Next Concept Prediction9 Sep 2026
- 2026LayerRoute: Action-Conditioned Mixture-of-Layers Routing for Vision-Language-Action Policies5 Sep 2026
- 2026WhiteMatter: All-to-All Cross-Layer Connections via KV Source Mixing19 Aug 2026
- 2026Role-Decoupled Attention Residuals: Separating Matching and Content Retrieval Across Depth2 Aug 2026
- 2026Dynamic Parameterization Is Not Dynamic Inference28 Jul 2026
- 2026Multi-Head Attention Residuals22 Jul 2026
- 2026Dual Attention Residuals21 Jul 2026
- 2026xHC: Expanded Hyper-Connections16 Jul 2026
- 2026ZONOS2 Technical Report23 Jun 2026
36 more
- 2026Low-Rank Attention Residuals19 Jun 2026
- 2026ReactVLA: Fast and Lightweight Reactive Robot Manipulation via Improved Mean Flow Action Generation12 Jun 2026
- 2026HAARES Half-Split Residual Basis Routing for Deep Transformers4 Jun 2026
- 2026Depth-Attention: Cross-Layer Value Mixing for Language Models3 Jun 2026
- 2026Do Value Vectors in Deep Layers Need Context from the Residual Stream?1 Jun 2026
- 2026Most Transformer Modifications Still Do Not Transfer at 1-3B: A 2020-2026 Update to Narang et al. (2021) with Downstream Evaluation and a Noise Floor20 May 2026
- 2026Rethinking Cross-Layer Information Routing in Diffusion Transformers20 May 2026
- 2026Delta Attention Residuals13 May 2026
- 2026ZAYA1-8B Technical Report6 May 2026
- 2026Transformers with Selective Access to Early Representations5 May 2026
- 2026Hyperloop Transformers23 Apr 2026
- 2026YOCO++: Enhancing YOCO with KV Residual Connections for Efficient LLM Inference15 Apr 2026
- 2026go-mHC: Direct Parameterization of Manifold-Constrained Hyper-Connections via Generalized Orthostochastic Matrices2 Apr 2026
- 2026Improving LLM Final Representations with Inter-Layer Geometry24 Mar 2026
- 2026Residual Stream Duality in Modern Transformer Architectures17 Mar 2026
- 2026Mixture-of-Depths Attention16 Mar 2026
- 2026Attention Residuals16 Mar 2026
- 2026Synergistic Intra- and Cross-Layer Regularization Losses for MoE Expert Specialization15 Feb 2026
- 2026Fix the Structural Bottleneck: Context Compression via Explicit Information Transmission3 Feb 2026
- 2026GeoNorm: Unify Pre-Norm and Post-Norm with Geodesic Optimization29 Jan 2026
- 2026Depth-Recurrent Attention Mixtures: Giving Latent Reasoning the Attention it Deserves29 Jan 2026
- 2026Deep Delta Learning1 Jan 2026
- 2025mHC: Manifold-Constrained Hyper-Connections31 Dec 2025
- 2025Reconstructing KV Caches with Cross-layer Fusion For Enhanced Transformers3 Dec 2025
- 2025Training Foundation Models on a Full-Stack AMD Platform: Compute, Networking, and System Design21 Nov 2025
- 2025Improving Model Representation and Reducing KV Cache via Skip Connections with First Value Heads19 Oct 2025
- 2025CR-Net: Scaling Parameter-Efficient Training with Cross-Layer Low-Rank Structure23 Sep 2025
- 2025Auto-Compressing Networks11 Jun 2025
- 2025Vision Mamba in Remote Sensing: A Comprehensive Survey of Techniques, Applications and Outlook1 May 2025
- 2025MUDDFormer: Breaking Residual Bottlenecks in Transformers via Multiway Dynamic Dense Connections13 Feb 2025
- 2025You Do Not Fully Utilize Transformer's Representation Capacity13 Feb 2025
- 2025DeepCrossAttention: Supercharging Transformer Residual Connections10 Feb 2025
- 2024GPT or BERT: why not both?31 Oct 2024
- 2024Value Residual Learning23 Oct 2024
- 2024Transformer Layers as Painters12 Jul 2024
- 2024MambaMixer: Efficient Selective State Space Models with Dual Token and Channel Selection29 Mar 2024
- 2024Value Residual Learningcited by 25
- 2025Improving Model Representation and Reducing KV Cache via Skip Connections with First Value Headscited by 4
- 2025Reconstructing KV Caches with Cross-layer Fusion For Enhanced Transformerscited by 4
- 2026Depth-Attention: Cross-Layer Value Mixing for Language Modelscited by 3
- 2026YOCO++: Enhancing YOCO with KV Residual Connections for Efficient LLM Inferencecited by 0
- 2026Depth-Attention: Cross-Layer Value Mixing for Language Models3 Jun 2026
- 2026YOCO++: Enhancing YOCO with KV Residual Connections for Efficient LLM Inference15 Apr 2026
- 2025Reconstructing KV Caches with Cross-layer Fusion For Enhanced Transformers3 Dec 2025
- 2025Improving Model Representation and Reducing KV Cache via Skip Connections with First Value Heads19 Oct 2025
- 2024Value Residual Learning23 Oct 2024
- 2025Training Foundation Models on a Full-Stack AMD Platform: Compute, Networking, and System Designcited by 5
- 2026Synergistic Intra- and Cross-Layer Regularization Losses for MoE Expert Specializationcited by 5
- 2026xHC: Expanded Hyper-Connectionscited by 3
- 2026ZONOS2 Technical Reportcited by 0
- 2026MoME: Mixture-of-Memory Embeddings for Context-Aware Sparse Lookupcited by 0
- 2026MoME: Mixture-of-Memory Embeddings for Context-Aware Sparse Lookup14 Sep 2026
- 2026xHC: Expanded Hyper-Connections16 Jul 2026
- 2026ZONOS2 Technical Report23 Jun 2026
- 2026Synergistic Intra- and Cross-Layer Regularization Losses for MoE Expert Specialization15 Feb 2026
- 2025Training Foundation Models on a Full-Stack AMD Platform: Compute, Networking, and System Design21 Nov 2025
- 2026ZAYA1-8B Technical Reportcited by 4
- 2026ZAYA1-8B Technical Report6 May 2026
- 2025mHC: Manifold-Constrained Hyper-Connectionscited by 76
- 2026Attention Residualscited by 57
- 2024Transformer Layers as Painterscited by 50
- 2025MUDDFormer: Breaking Residual Bottlenecks in Transformers via Multiway Dynamic Dense Connectionscited by 27
- 2024GPT or BERT: why not both?cited by 26
- 2026Depth-Recurrent Attention Mixtures: Giving Latent Reasoning the Attention it Deservescited by 11
- 2026Hyperloop Transformerscited by 11
- 2025DeepCrossAttention: Supercharging Transformer Residual Connectionscited by 7
- 2025CR-Net: Scaling Parameter-Efficient Training with Cross-Layer Low-Rank Structurecited by 7
- 2026Deep Delta Learningcited by 7
- 2026Delta Attention Residualscited by 7
- 2025You Do Not Fully Utilize Transformer's Representation Capacitycited by 4
12 most cited of 31 All 31 (JSON)
- 2026T-Router: Learning Thalamic Routing for Reasoning with Parameter-Efficient Reinforcement Learning30 Sep 2026
- 2026DepthBench: Measuring How Residual Connections Enable More Computational Depth26 Sep 2026
- 2026NCP-ArchPreview Technical Report: Moving towards Latent Space Language Models through Next Concept Prediction9 Sep 2026
- 2026WhiteMatter: All-to-All Cross-Layer Connections via KV Source Mixing19 Aug 2026
- 2026Role-Decoupled Attention Residuals: Separating Matching and Content Retrieval Across Depth2 Aug 2026
- 2026Dynamic Parameterization Is Not Dynamic Inference28 Jul 2026
- 2026Multi-Head Attention Residuals22 Jul 2026
- 2026Dual Attention Residuals21 Jul 2026
- 2026Low-Rank Attention Residuals19 Jun 2026
- 2026HAARES Half-Split Residual Basis Routing for Deep Transformers4 Jun 2026
- 2026Do Value Vectors in Deep Layers Need Context from the Residual Stream?1 Jun 2026
- 2026Most Transformer Modifications Still Do Not Transfer at 1-3B: A 2020-2026 Update to Narang et al. (2021) with Downstream Evaluation and a Noise Floor20 May 2026
12 newest of 31 All 31 (JSON)