mlsanityData to 7 Oct 2026

On the Learning Dynamics of Attention Networks

arXiv 2307.13421 ↗First posted 25 Jul 2023cs.LG cs.AIcited by 2

Not on the map. Why?

Abstract (arXiv)

Attention models are typically learned by optimizing one of three standard loss functions that are variously called -- soft attention, hard attention, and latent variable marginal likelihood (LVML) attention. All three paradigms are motivated by the same goal of finding two models -- a `focus' model that `selects' the right textitsegment of the input and a `classification' model that processes the selected segment into the target label. However, they differ significantly in the way the selected segments are aggregated, resulting in distinct dynamics and final results. We observe a unique signature of models learned using these paradigms and explain this as a consequence of the evolution of the classification model under gradient descent when the focus model is fixed. We also analyze these paradigms in a simple setting and derive closed-form expressions for the parameter trajectory under gradient flow. With the soft attention loss, the focus model improves quickly at initialization and splutters later on. On the other hand, hard attention loss behaves in the opposite fashion. Based on our observations, we propose a simple hybrid approach that combines the advantages of the different loss functions and demonstrates it on a collection of semi-synthetic and real-world datasets

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 17 of its 21 references that are in the map. First posted on arXiv 25 Jul 2023.

Builds on

17 of 21 references.

References · 17

  1. 2017Attention Is All You Needcited by 59,932
  2. 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,530
  3. 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,421
  4. 2019Attention is not Explanationcited by 916
  5. 2019Attention is not not Explanationcited by 629
  6. 2013Generating Sequences With Recurrent Neural Networkscited by 549
  7. 2020HateXplain: A Benchmark Dataset for Explainable Hate Speech Detectioncited by 403
  8. 2014Recurrent Models of Visual Attentioncited by 344
  9. 2019TVQA+: Spatio-Temporal Grounding for Video Question Answeringcited by 153
  10. 2019Attention Interpretability Across NLP Taskscited by 71
  11. 2014End-to-end Continuous Speech Recognition using Attention-based Recurrent NN: First Resultscited by 68
  12. 2017Classical Structured Prediction Losses for Sequence to Sequence Learningcited by 55
5 more
  1. 2018Latent Alignment and Variational Attentioncited by 36
  2. 2019Exact Hard Monotonic Attention for Character-Level Transductioncited by 22
  3. 2018Hard Non-Monotonic Attention for Character-Level Transductioncited by 12
  4. 2020On the Dynamics of Training Attention Modelscited by 8
  5. 2022On the Interpretability of Attention Networkscited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.