Understanding Self-attention Mechanism via Dynamical System Perspective
Not on the map. Why?
Abstract (arXiv)
The self-attention mechanism (SAM) is widely used in various fields of artificial intelligence and has successfully boosted the performance of different models. However, current explanations of this mechanism are mainly based on intuitions and experiences, while there still lacks direct modeling for how the SAM helps performance. To mitigate this issue, in this paper, based on the dynamical system perspective of the residual neural network, we first show that the intrinsic stiffness phenomenon (SP) in the high-precision solution of ordinary differential equations (ODEs) also widely exists in high-performance neural networks (NN). Thus the ability of NN to measure SP at the feature level is necessary to obtain high performance and is an important factor in the difficulty of training NN. Similar to the adaptive step-size method which is effective in solving stiff ODEs, we show that the SAM is also a stiffness-aware step size adaptor that can enhance the model's representational ability to measure intrinsic SP by refining the estimation of stiffness information and generating adaptive attention values, which provides a new understanding about why and how the SAM can benefit the model performance. This novel perspective can also explain the lottery ticket hypothesis in SAM, design new quantitative metrics of representational ability, and inspire a new theoretic-inspired approach, StepNet. Extensive experiments on several popular benchmarks demonstrate that StepNet can extract fine-grained stiffness information and measure SP accurately, leading to significant improvements in various visual tasks.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 45 of its 80 references that are in the map. First posted on arXiv 19 Aug 2023.
Builds on
45 of 80 references.
References · 45
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2017Squeeze-and-Excitation Networkscited by 4,763
- 2018Neural Ordinary Differential Equationscited by 3,733
- 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
- 2018CBAM: Convolutional Block Attention Modulecited by 2,463
- 2016Matching Networks for One Shot Learningcited by 2,246
- 2018DARTS: Differentiable Architecture Searchcited by 1,782
- 2021MLP-Mixer: An all-MLP Architecture for Visioncited by 1,441
- 2018Image Super-Resolution Using Very Deep Residual Channel Attention Networkscited by 1,256
- 2016Pruning Filters for Efficient ConvNetscited by 1,129
33 more
- 2021CrossViT: Cross-Attention Multi-Scale Vision Transformer for Image Classificationcited by 806
- 2020A Survey on Visual Transformercited by 653
- 2019ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networkscited by 572
- 2021MetaFormer Is Actually What You Need for Visioncited by 523
- 2020UNet 3+: A Full-Scale Connected UNet for Medical Image Segmentationcited by 331
- 2020Single Image Super-Resolution via a Holistic Attention Networkcited by 265
- 2021Attention Mechanisms in Computer Vision: A Surveycited by 232
- 2016Network Trimming: A Data-Driven Neuron Pruning Approach towards Efficient Deep Architecturescited by 220
- 2017Beyond Finite Layer Neural Networks: Bridging Deep Architectures and Numerical Differential Equationscited by 203
- 2020FcaNet: Frequency Channel Attention Networkscited by 177
- 2018BAM: Bottleneck Attention Modulecited by 171
- 2019Symplectic Recurrent Neural Networkscited by 148
- 2021Visformer: The Vision-friendly Transformercited by 137
- 2021Towards Robust Vision Transformercited by 137
- 2019Global Sparse Momentum SGD for Pruning Very Deep Neural Networkscited by 70
- 2020Knowledge-Guided Multi-Label Few-Shot Learning for General Image Recognitioncited by 69
- 2019SRM : A Style-based Recalibration Module for Convolutional Neural Networkscited by 65
- 2017Multi-level Residual Networks from Dynamical Systems Viewcited by 59
- 2021A Dynamical System Perspective for Lipschitz Neural Networkscited by 59
- 2020Cross-Domain Facial Expression Recognition: A Unified Evaluation Benchmark and Adversarial Graph Learningcited by 46
- 2020Continuous-in-Depth Neural Networkscited by 40
- 2019DIANet: Dense-and-Implicit Attention Networkcited by 37
- 2019Spatial Group-wise Enhance: Improving Semantic Feature Learning in Convolutional Networkscited by 33
- 2020Convolution-Weight-Distribution Assumption: Rethinking the Criteria of Channel Pruningcited by 29
- 2019Instance Enhancement Batch Normalization: an Adaptive Regulator of Batch Noisecited by 28
- 2018Convolutional Neural Networks combined with Runge-Kutta Methodscited by 18
- 2022Efficient Image Super-Resolution using Vast-Receptive-Field Attentioncited by 16
- 2021Blending Pruning Criteria for Convolutional Neural Networkscited by 13
- 2021Recurrence along Depth: Deep Convolutional Neural Networks with Recurrent Layer Aggregationcited by 13
- 2020Efficient Attention Network: Accelerate Attention by Searching Where to Plugcited by 9
- 2022The Lottery Ticket Hypothesis for Self-attention in Convolutional Neural Networkcited by 7
- 2022A Generic Shared Attention Mechanism for Various Backbone Neural Networkscited by 5
- 2022Switchable Self-attention Modulecited by 4
Built on by
Citing papers per year: 2024: 5; 2025: 3; 2026: 1.
9 papers.
- 2024CurveFormer++: 3D Lane Detection by Curve Propagation with Temporal Curve Queries and Attentioncited by 10
- 2024Mirror Gradient: Towards Robust Multimodal Recommender Systems via Exploring Flat Local Minimacited by 6
- 2024Semi-Supervised Object Detection: A Survey on Progress from CNN to Transformercited by 4
- 2024Emotion-Aware Embedding Fusion in LLMs (Flan-T5, LLAMA 2, DeepSeek-R1, and ChatGPT 4) for Intelligent Response Generationcited by 2
- 2024Deep spatial context: when attention-based models meet spatial regressioncited by 1
- 2025H-FEX: A Symbolic Learning Method for Hamiltonian Systemscited by 1
- 2025Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problemscited by 1
- 2025Load Forecasting on A Highly Sparse Electrical Load Dataset Using Gaussian Interpolationcited by 0
- 2026Noise Stability of Transformer Modelscited by 0
- 2026Noise Stability of Transformer Models9 Feb 2026
- 2025Hierarchical Self-Attention: Generalizing Neural Attention Mechanics to Multi-Scale Problems18 Sep 2025
- 2025Load Forecasting on A Highly Sparse Electrical Load Dataset Using Gaussian Interpolation12 Aug 2025
- 2025H-FEX: A Symbolic Learning Method for Hamiltonian Systems25 Jun 2025
- 2024Emotion-Aware Embedding Fusion in LLMs (Flan-T5, LLAMA 2, DeepSeek-R1, and ChatGPT 4) for Intelligent Response Generation2 Oct 2024
- 2024Semi-Supervised Object Detection: A Survey on Progress from CNN to Transformer11 Jul 2024
- 2024Mirror Gradient: Towards Robust Multimodal Recommender Systems via Exploring Flat Local Minima17 Feb 2024
- 2024CurveFormer++: 3D Lane Detection by Curve Propagation with Temporal Curve Queries and Attention9 Feb 2024
- 2024Deep spatial context: when attention-based models meet spatial regression18 Jan 2024