Stochastic Parroting in Temporal Attention -- Regulating the Diagonal Sink
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: Today's paper: "Stochastic Parroting in Temporal Attention -- Regulating the Diagonal Sink".
Jane: The gist The authors provide a theoretical characterization of the Jacobian of Temporal Attention to show that temporal attention layers suffer from a diagonal attention sink,
Tom: First, who's behind it and why it matters.
Title and authors: Tom: So we’re looking at why these temporal attention layers suffer from this diagonal attention sink and what the authors propose to fix it in this paper. It’s about managing how information moves across time within a sequence.
Jane: The core idea here is that they theoretically characterize the Jacobian of temporal attention to show that it leads to stochastic parroting, which means the model starts repeating itself or losing distinct temporal patterns in a way that gets worse with more data points.
Lu: They derive the uniform expectation of the Jacobian norm over sequence length j and find that for off-diagonal terms, those non-local signal strengths decay as one/T, where T is the sequence length <ref:2602.10956#pg2>.
Meng: So they’re saying that the information between different time steps, the off-diagonal stuff, fades out over time. That sounds like a problem for capturing long-term dependencies if you don't handle it right.
Lalam: And the paper points out that while those off-diagonal terms decay nicely, the diagonal terms have a larger bound because they also include this query term's bound CQ/sqrt d k <ref:2602.10956#pg3>.
Tom: So there's a mismatch: the non-local information shrinks, but the direct self-attention on the same token gets a bigger bound because of that query part.
Jane: And to address this imbalance, they suggest three specific regularization methods to reduce that diagonal attention sink. These are a diagonal mask with entries of negative infinity and others zero, standard dropout applied only to the diagonal of the attention matrix, and adding a negative scalar penalty to the raw attention scores.
The paper's summary: Tom: The authors summarize by showing that these three regularization methods actually work in practice. They test them against models without residual connections and without any regularization at all, and they find that the diagonal mask gives results similar to the version without regularization <ref:2602.10956#pg3>.
Jane: It’s interesting because they found that standard dropout or adding a penalty actually show a noticeable improvement, around two point five percent better than the non-regularized versions in their experiments Table one.
Lu: The paper suggests that the diagonal mask suppresses the query path of the softmax attention, which results in attention emphasizing specific keys for the whole sequence, while dropout and penalty allow for a more nuanced control over that diagonal behavior <ref:2602.10956#pg3>.
Meng: So they’re suggesting that you don't have to do a full mask; applying just the diagonal entries being negative infinity is enough to mitigate this parroting effect, and dropout or penalty gives you more control over the specific keys attending to specific queries Table one <ref:2602.10956#pg1>.
Lalam: And they specifically found that for long horizons, like predicting thirty-six future steps, the diagonal penalty actually gave the best results in their evaluation <ref:2602.10956#pg3>.
The paper's improvements: Tom: So what are the actual suggested improvements from this paper? It’s not just about finding a problem; it’s about fixing it with architectural changes.
Jane: They suggest using a diagonal mask with negative infinity for the diagonal entries and zero for everything else, which they think is effective at mitigating that diagonal attention sink <ref:2602.10956#pg3>.
Lu: They also bring up the idea of residual connections, suggesting they should be used because they remain expressible even when the diagonal is completely removed, implying that the diagonal part provides relatively less important information <ref:2602.10956#pg3>.
Meng: If you're deploying this at scale, I’m interested in the residual connection idea because it means self-information stays stable regardless of sequence length, which is good for model consistency Table one <ref:2602.10956#pg1>.
Lalam: And they also tested a negative scalar penalty added to raw attention scores. They found that this method is superior to the mask or dropout for long-horizon forecasting, allowing the model to use those diagonal entries when it’s beneficial <ref:2602.10956#pg3>.
Conclusion: Tom: So wrapping up, they prove the existence of these diagonal attention sinks induced by the residual and the query weight matrix in temporal attention layers, and that this leads to stochastic parroting that intensifies with sequence length.
Jane: The main point is that while full diagonal masks suppress the query path of softmax attention, leading to strong emphasis on specific keys, using a diagonal penalty or dropout significantly improves performance over just using a full mask <ref:2602.10956#pg3>.
Lu: Overall, as sequence length T gets larger, the off-diagonal entries naturally shrink to O(one/T), but the diagonal term keeps its influence because of that query bound <ref:2602.10956#pg3>.
Meng: So for production, if you want the best results on long horizons, they recommend using that negative scalar penalty method because it allows you to capture more varied patterns Table one <ref:2602.10956#pg1>.
Lalam: I'm confident in this direction; the analysis shows how off-diagonal attention scores depend on sequence length, which gives us a clear path for making informed architectural adjustments to prevent over-squashing when mixing temporal and spatial processing <ref:2602.10956#pg1>.
Tom: So we’ve looked at the Stochastic Parroting in Temporal Attention -- Regulating the Diagonal Sink paper, showing that by regulating this sink, especially with penalties for long horizons, we can improve temporal attention performance even as sequences grow larger.
Victoria Hankemeier, Malte Schilling
University of Münster - Faculty of Mathematics and Computer Science
cs.LG
Submitted: 2026-02-11
Updated: 2026-03-06
Comments: Accepted at ESANN 2026, Code: https://github.com/vicky-hnk/spatio-temp-parroting
Journal ref: Proc. ESANN 2026, pp. 181-186
DOI: 10.14428/esann/2026.ES2026-150
Code: https://github.com/vicky-hnk/spatio-tempparroti
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 80/100
The gist: The gist The authors provide a theoretical characterization of the Jacobian of Temporal Attention to show that temporal attention layers suffer from a diagonal attention sink, which leads to
Key concepts
- Jacobian Sensitivity Bounds
- This is a mathematical tool used to measure how sensitive the output of a layer is to small changes in its input. The authors derived specific bounds for the Jacobian of temporal attention layers to quantify information flow and identify where information tends to degrade or collapse during processing.
- Diagonal Attention Sink
- This phenomenon occurs when the mathematical analysis shows that attention scores tend to concentrate heavily on the diagonal elements (where a token attends mostly to itself). This sink intensifies with longer sequences, causing the model to become overly reliant on specific tokens and leading to stochastic parroting.
- Stochastic Parroting
- This refers to a degradation where the attention mechanism exhibits random or repetitive behavior because of the attention sink. Instead of learning diverse relationships, the model tends to parrot or repeat information from specific, highly weighted tokens, which is detrimental for accurate forecasting.
Terminology
Summary
The gist The authors provide a theoretical characterization of the Jacobian of Temporal Attention to show that temporal attention layers suffer from a diagonal attention sink, which leads to stochastic parroting in TA and showing that this intensifies with increasing sequence length
Introduction
Spatio-temporal deep learning models aim to predict how systems evolve over time and across multiple locations. A common challenge in spatio-temporal forecasting is to exchange information effectively between both nearby and distant nodes with two well-known information degeneration issues: over-squashing, which is the insensitivity of a node’s features to information contained at distant nodes, and over-smoothing, where node representations become increasingly similar. Most spatio-temporal models either mix temporal and spatial processing at every layer, i.e. Time&Space (T&S), or do all temporal processing first and all spatial processing afterwards, i.e. Timethen-Space (TTS). Both T&S and TTS are affected by spatio-temporal oversquashing because their gradients still multiply across layers in the same way.
Previous Work on Over-squashing and Over-smoothing
Di Giovanni et al. laid the groundwork for subsequent research on oversquashing by introducing sensitivity bounds on the Jacobian, which measure how sensitive the final representation of a node v at layer L, h v(L), is to the initial representation of anoter node u, h u(0). Arroyo et al. further showed that oversmoothing is a representational collapse to a zero fixed point, driven by the same contractive Jacobians responsible for vanishing gradients. For GNNs this has been solved recently and in Temporal Convolutional Networks (TCNs) temporal causal convolutions loose focus on recent information, while giving disproportionate weight to inputs from the distant past, creating a “primacy bias”. A similar phenomenon can be seen in causal Transformers, which only use preceding context via unidirectional attention. In [7], the emergence of an ”attention sink” in the first token is empirically demonstrated for auto-regressive Large Language Transformers. Barbero et al. examine the Jacobian of auto-regressive decoders, showing that for a number of layers L → ∞ y n is only sensitive to the first token. In [9] the authors examine full attention and show that the residual of tokens shrink cubically per layer with a contraction factor proportional to √4β dq k, where β is the upper bound of the norm of weight matrices. As a consequence residual (skip) connections and appropriate choices of network dimensionalities are important to avoid rank collapse.
Deriving Sensitivity Bounds of Temporal Attention
The overall Jacobian without residual is thus: ∂h i/∂x j = α ijWVz> Value Path + X T m=1 [vm (X T k=1 α im(δmk − αik)z] Softmax Gradient · 1/√dk (δijk T WQz Query Path + δkjq T i W Kz Key Path] Score Gradient. The overall Jacobian is given by: ∂h i/∂x j = α ijWVz> Value Path + X T m=1 [vm (X T k=1 α im(δmk − αik)z] Softmax Gradient · 1/√dk (δijk T WQz Query Path + δkjq T i W Kz Key Path] Score Gradient. We derive a uniform expectation of the Jacobian norm over the sequence length j ∈ I for the Value Path, Key Path, and Query Path separately. The expected norm for off-diagonal terms (i ≠ j) is bounded by 1/T X T j=1 α ij kWV k = kWV k / T.
Analysis and Regularization of Diagonal Attention Sinks
The 1/T-term in the upper part of Eq. 8 shows that the non-local signal strength (i ≠ j) decays as the sequences are longer (O(1/T)). The lower part of Eq. 8 for the diagonal (i = j) has a larger bound since it additionally has the query term’s bound CQ/√dk. To reduce the diagonal attention sink, we evaluated three different regularization methods: a diagonal mask with diagonal entries −∞ and others zero, similar to the approach in SparseBert [12], standard dropout on the diagonal of the attention matrix, and a negative scalar penalty added to the raw attention scores.
Empirical Evaluation
Table 1 shows the results over four runs with different seeds for a) without residual and without regularization, b) with residual and without regularization, c) with residual and with diagonal mask, d) with residual and with diagonal dropout, and e) with residual and diagonal penalty. Using a diagonal mask (c) gives similar results as the variant without regularization (b), while dropout and penalty show a significant improvement of around 2.5 percent. In (d) and (e) we see clear temporal patterns with specific keys attending to specific queries.
Conclusion
We prove the existence of diagonal attention sinks, induced by the residual and the weight matrix of the query. While full diagonal masks suppress the Query Path of the softmax attention, resulting in attention emphasizing specific keys for the whole sequence, diagonal penalty and diagonal dropout significantly improve the performance of temporal attention layers. The larger T is, the smaller off-diagonal entries become. Overall, the diagonal penalty gives best results for longer horizons.
How it works
The authors derive sensitivity bounds on the Jacobian of temporal attention layers to analyze information degeneration. They show that TA layers can collapse temporal information, which leads to stochastic parroting in TA and showing that this intensifies with increasing sequence length. The derivation involves examining the influence of x j ∈ R dx for an input x i ∈ R dx on the hidden state h i ∈ R dv after one layer by deriving the Jacobian.
Key Findings and Regularization Effects
-
The expected norm for off-diagonal terms (i ≠ j) decays as the sequences are longer (O(1/T)).
-
The lower part of Eq. 8 for the diagonal (i = j) has a larger bound since it additionally has the query term’s bound CQ/√dk.
-
Regularization methods include a diagonal mask with diagonal entries −∞ and others zero, standard dropout on the diagonal of the attention matrix, and a negative scalar penalty added to the raw attention scores.
-
The experiments suggest that the partial control of the diagonal using dropout or penalty is superior to a full diagonal mask.
-
With a full diagonal mask (c) we see similar results as without regularization (b).
Evaluation on Long Horizon Forecasting
The evaluation extended to long-horizon forecasting, predicting 36 future steps (i.e., 3 hours) <ref:2602.
Improvements for AI systems
-
textbfProcessing temporal attention collapse via diagonal regularization: The improved system will mitigate
stochastic parroting
by applying adiagonal mask with diagonal entries −∞ and others zero,
which is suggested as effective in mitigating thediagonal attention sink.
This allows the model toallocate learning capacity towards the off-diagonal entries,
leading to more expressive attention patterns without sacrificing temporal stability, as shown in Table 1 and Figure 1(e). -
textbfIntegrating residual connections: The system should utilize residual connections because they
remain universally expressible even when the diagonal is completely removed,
which suggests thatthe diagonal provides the least important information.
This feature ensures thatself-information remains stable regardless of sequence length (O(1))
and significantly improves performance, as evidenced by the substantial error reduction when comparing models with and without residual connections. -
textbfEmploying diagonal penalties for long-horizon forecasting: For long-term predictions, the model should implement a
negative scalar penalty added to the raw attention scores.
This method is found to be superior to masking or dropout, as it allowsthe model to use the diagonal entries when beneficial,
which is crucial for capturingmore heterogeneous patterns
in longer sequences. -
textbfEnhanced spatio-temporal information exchange: By deriving sensitivity bounds, the system can theoretically understand how
off-diagonal attention scores depend on the sequence length,
enabling informed architectural adjustments that addressover-squashing
and prevent the degradation of distant node information when integrating temporal and spatial processing.
Sources
- On Vanishing Gradients, Over-Smoothing, and Over-Squashing in GNNs: Bridging Recurrent and Graph Learning
- Over-squashing in Spatiotemporal Graph Neural Networks
Related papers
- Polynomial-Augmented Neural Networks (PANNs) with Weak Orthogonality Constraints for Enhanced Function and PDE Approximation
- AIRL-S: Unifying Reinforcement Learning and Search-Based Test-Time Scaling via Adversarial Inverse Reinforcement Learning
- Transformers as Bayesian In-Context Experimenters: Smoothness-Adaptive Efficient ATE Estimation
- Convergence issues in Relational Concept Analysis based on AOC-posets
- Beliefs Beyond Posteriors: The Predictive Cost of ELBO Binding
- Understanding Diffusion Models via Ratio-Based Function Approximation with SignReLU Networks