--- title: 'DeepCrossAttention: Supercharging Transformer Residual Connections' openreview: j3JBfFnGYh abstract: Transformer networks have achieved remarkable success across diverse domains, leveraging a variety of architectural innovations, including residual connections. However, traditional residual connections, which simply sum the outputs of previous layers, can dilute crucial information. This work introduces DeepCrossAttention (DCA), an approach that enhances residual learning in transformers. DCA employs learnable, input-dependent weights to dynamically combine layer outputs, enabling the model to selectively focus on the most relevant information in any of the previous layers. Furthermore, DCA incorporates depth-wise cross-attention, allowing for richer interactions between layers at different depths. Our language modeling experiments show that DCA achieves improved perplexity for a given training time. Moreover, DCA obtains the same model quality up to 3x faster while adding a negligible number of parameters (e.g., 0.2%). Theoretical analysis confirms that DCA provides an improved trade-off between accuracy and model size when the ratio of collective layer ranks to the ambient dimension falls below a critical threshold. layout: inproceedings series: Proceedings of Machine Learning Research publisher: PMLR issn: 2640-3498 id: heddes25a month: 0 tex_title: "{D}eep{C}ross{A}ttention: Supercharging Transformer Residual Connections" firstpage: 22881 lastpage: 22903 page: 22881-22903 order: 22881 cycles: false bibtex_author: Heddes, Mike and Javanmard, Adel and Axiotis, Kyriakos and Fu, Gang and Bateni, Mohammadhossein and Mirrokni, Vahab author: - given: Mike family: Heddes - given: Adel family: Javanmard - given: Kyriakos family: Axiotis - given: Gang family: Fu - given: Mohammadhossein family: Bateni - given: Vahab family: Mirrokni date: 2025-10-06 address: container-title: Proceedings of the 42nd International Conference on Machine Learning volume: '267' genre: inproceedings issued: date-parts: - 2025 - 10 - 6 pdf: https://raw.githubusercontent.com/mlresearch/v267/main/assets/heddes25a/heddes25a.pdf extras: [] # Format based on Martin Fenner's citeproc: https://blog.front-matter.io/posts/citeproc-yaml-for-bibliographies/ ---