NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Structured-Sparse Attention for Entity Tracking with Subquadratic Sequence Complexity

Hangyue Zhao, Paul Caillon, Erwan Fagnou, Alexandre AllauzenarXiv 2026

TL;DR

This paper introduces a blockwise evaluation scheme for resolvent-style attention that slashes the computational cost of entity tracking from quadratic to subquadratic complexity ($O(n^{4/3}d)$). By keeping local block-diagonal interactions exact and routing long-range interactions through a compressed system, the method matches the accuracy of dense attention layers while delivering up to a $2.4\times$ wall-clock speedup over standard Transformers.

What Problem Does This Paper Address?

Entity tracking—the ability to maintain and update the latent states of entities and their attributes over long texts—is a core requirement for document understanding, dialogue systems, and long-context question answering. While standard Transformers can handle this, their self-attention mechanism scales quadratically ($O(n^2)$) with sequence length, making long contexts incredibly expensive.

Recent specialized operators like ChaCAL compress deep Transformer stacks into fewer layers by calculating "multi-hop" state updates in a single layer using matrix inverses. However, computing these dense matrix inverses is still too slow for practical scaling. The authors observe a key regularity: in entity tracking, learned attention maps are naturally structured and sparse. Most of the attention "mass" concentrates within local, block-diagonal neighborhoods around state-carrying tokens, leaving only a light residue of cross-block interactions. This paper exploits that structure to make multi-hop attention computationally efficient.

Methods

The authors propose Blockwise Efficient Attention (Block-ChaCAL), which splits the causal attention matrix $A$ into two distinct paths:

  1. The Local (Exact) Branch: The sequence is partitioned into $k$ contiguous blocks of size $m$. The resolvent operator is applied exactly to each isolated $m \times m$ diagonal tile. Because the matrix is lower-triangular (causal), this can be solved efficiently via forward substitution in $O(nmd)$ time.
  2. The Residual (Reduced) Branch: Cross-block interactions (the off-diagonal elements) are down-sampled into a much smaller $k \times k$ system (where $k = n/m$). The resolvent operator is computed on this compressed space, and the result is up-sampled back to the original resolution. This branch scales as $O((n/m)^2d)$.

By balancing the block size ($m^* = \Theta(n^{2/3})$), the total sequence complexity drops to a subquadratic $O(n^{4/3}d)$.

Figure 1: Blockwise evaluation of resolvent attention. Split the causal attention matrix A ∈Rn×n into k = n//m contiguous m × m tiles. Local branch: apply Sγ(A) = (1 −γ)A(I −γA)−1 exactly on the block diagonal. Residual branch: compress off-block interactions to a k × k system (down-sample), apply the same operator, then lift back (up-sample). The final output is the sum of both branches.

Datasets

The method was evaluated across a diverse suite of tracking and language tasks:

  • Toy (Chains): A synthetic benchmark isolating long-range, multi-hop dependencies.
  • BOXES: A natural-language entity tracking dataset where models must track the contents of containers through a long sequence of "MOVE" operations.
  • Language Modeling: Evaluated via fine-tuning on OpenWebText and training from scratch on WikiText-103.
  • Code Reasoning (Copilot): A dataset testing variable binding and tracking across scopes and call chains.
  • SCROLLS: A long-context encoder-decoder benchmark (including GovReport, NarrativeQA, and ContractNLI).

Key Insights and Ideas

  • Local vs. Residual Division of Labor: Ablation studies reveal that the local branch does the heavy lifting, capturing the core tracking signals. However, the compressed residual branch is vital; without it, the model suffers from scattered sequence-level errors. Together, they achieve near-perfect exact-match scores.
  • Pruning Destroys Inverses: While standard attention matrices can be aggressively pruned (top-$k$) at test time with minimal loss, doing so before computing a matrix inverse completely breaks long-range information flow. Low-weight attention values act as critical "bridges" for multi-hop routing.
  • The Head-Property Capacity Limit: The authors discovered a hard representation ceiling: a single attention head can effectively track only one property at a time. If the number of evolving properties ($p$) outstrips the number of attention heads ($h$), performance collapses due to signal interference.

Key Results

  • Pareto Frontier Efficiency: On the BOXES benchmark, Block-ChaCAL matched the accuracy of a dense 5-layer Transformer while running $2.4\times$ faster, cutting latency from 4.35 seconds to 1.78 seconds.
  • Wall-Clock Speedups: Compared to the dense single-layer ChaCAL operator, the blockwise approach reduced wall-clock evaluation time by 12% to 29% while maintaining identical exact-match accuracy.
  • Favorable Inductive Bias: When trained from scratch on WikiText-103, Block-ChaCAL actually outperformed dense attention, achieving a lower perplexity (15.18 vs. 16.46), proving that its structural sparsity is a beneficial constraint for language modeling.
Results on BOXES benchmark showing accuracy, exact match (EM), and time across different models.

Limitations and Future Work

  • Diffuse Attention Failure: The subquadratic speedup relies entirely on block-structured sparsity. For tasks with highly diffuse, global dependencies (e.g., multi-document aggregation), the efficiency gains will degrade.
  • Pretraining Mismatch: Swapping this operator into pretrained encoder-decoder models like BART (for the SCROLLS benchmark) caused performance drops. The tightly coupled nature of pretrained representations means this operator is less "plug-and-play" for encoder-decoder architectures without a dedicated pretraining phase.
  • Lack of Custom Kernels: The current implementation relies on standard framework operations. Developing a dedicated, hardware-optimized CUDA kernel (similar to FlashAttention) is a necessary next step to realize the method's full theoretical speedups on modern GPUs.

Summary updated

BibTeX
@misc{zhao2026structured,
  author = {Hangyue Zhao and Paul Caillon and Erwan Fagnou and Alexandre Allauzen},
  title = {{Structured-Sparse Attention for Entity Tracking with Subquadratic Sequence Complexity}},
  year = {2026},
  eprint = {2605.22476},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.22476},
}
Figure