[Paper Review] Evolving Attention with Residual Convolutions
This paper proposes Evolving Attention (EA-Transformer), a novel mechanism that improves transformer models by evolving attention maps across layers using residual connections and 2D convolutional modules. By treating attention maps as multi-channel feature maps and refining them through convolutional evolution, the method achieves consistent accuracy gains across vision and NLP tasks, with state-of-the-art performance on ImageNet, GLUE, and IWSLT benchmarks.
Transformer is a ubiquitous model for natural language processing and has attracted wide attentions in computer vision. The attention maps are indispensable for a transformer model to encode the dependencies among input tokens. However, they are learned independently in each layer and sometimes fail to capture precise patterns. In this paper, we propose a novel and generic mechanism based on evolving attention to improve the performance of transformers. On one hand, the attention maps in different layers share common knowledge, thus the ones in preceding layers can instruct the attention in succeeding layers through residual connections. On the other hand, low-level and high-level attentions vary in the level of abstraction, so we adopt convolutional layers to model the evolutionary process of attention maps. The proposed evolving attention mechanism achieves significant performance improvement over various state-of-the-art models for multiple tasks, including image classification, natural language understanding and machine translation.
Motivation & Objective
- Address the limitation of vanilla transformers, where attention maps are learned independently per layer and often fail to capture precise, evolving dependencies.
- Improve attention map quality by introducing an inductive bias that models the evolution of attention patterns across layers.
- Enhance model interpretability and performance by sharing knowledge across layers through residual connections and convolutional feature evolution.
- Develop a generic, plug-in mechanism applicable to various attention-based architectures, including Vision Transformers, BERT, and ResNets with attention.
- Demonstrate that evolving attention maps leads to sharper, more faithful attention patterns that better reflect structural and semantic dependencies in input data.
Proposed method
- Treat the multi-head attention maps from each transformer block as a multi-channel feature map (H × W × C), where C is the number of attention heads.
- Feed these attention maps into a 2D convolutional module that learns to evolve them into refined attention maps for the next block.
- Use residual connections between the original attention maps and the evolved maps to preserve and propagate inter-token dependency knowledge.
- Chain multiple convolutional modules across blocks to form a progressive evolutionary process, mimicking hierarchical abstraction in deep networks.
- Integrate the evolving attention module as a plug-in into existing transformer and self-attention architectures, such as BERT, Vision Transformers, and AA-ResNet.
- Train the entire model end-to-end, with the convolutional heads learning to refine attention patterns based on both local context and global structural priors.
Experimental results
Research questions
- RQ1Can attention maps be systematically improved across transformer layers by modeling their evolution rather than learning them in isolation?
- RQ2Does introducing a convolutional inductive bias to attention maps enhance their precision and structural fidelity?
- RQ3To what extent does residual connection between attention maps improve knowledge transfer and performance across layers?
- RQ4Can the evolving attention mechanism generalize across different architectures and tasks in computer vision and natural language processing?
- RQ5Does the improved attention quality lead to better model interpretability and faithfulness in prediction rationales?
Key findings
- Evolving Attention consistently improves top-1 accuracy on ImageNet classification, achieving 31.93% accuracy with EA-AA-ResNet-34, a 0.5% gain over AA-ResNet-34.
- On the GLUE benchmark, EA-BERT boosts BERT-Base performance by 2.4 points, RoBERTa-Large by 0.8 points, and T5-Base by 1.1 points.
- In the ERASER interpretability benchmark, EA-BERT produces more comprehensive (↑0.013) and less sufficient (↓0.01) rationales than vanilla BERT, indicating improved faithfulness.
- Attention map classification accuracy on ImageNet improves significantly with EA-AA-ResNet-34, with 16th, 17th, and 18th layer maps achieving higher accuracy than AA-ResNet-34, indicating better structural fidelity.
- The learning curve on IWSLT’14 De-En shows EA-Transformer-Lite converges faster and achieves lower training loss and higher BLEU score than vanilla Transformer-Lite, despite 3% more FLOPs per iteration.
- Visualizations confirm a clear evolutionary trend: attention maps become sharper and more object-specific across layers in EA-Transformer, while vanilla transformers produce vague, broad patterns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.