Sparse attention cuts the cost of long context by skipping tokens, but it inherits a subtle failure: as the sequence grows, normalization mass disperses, so retrieving a handful of relevant facts from hundreds of thousands of distractors degrades. The model still computes attention — it just computes the wrong distribution.
Topology Hub Optimal Transport (THOT) attacks that directly. Instead of the dense \(L \times L\) attention matrix, it builds a linear-size graph over local windows plus \(K\) shared hubs, balanced by Sinkhorn scaling. The hubs act as a small set of global mixing points: a query anywhere in the sequence can reach distant context without touching every token.
Four ingredients make it work. Bounded-support capacity gating via simplex sparsemax (\(O(L \log L)\)) or a sorting-free token-local thresholded ReLU (\(O(L)\)) drives excess distractor mass to zero — the whole point, since dilution is excess mass. A three-sweep \(1+2\) annealed row-closed Sinkhorn schedule damps the bipartite residuals that plain Sinkhorn leaves behind. An exact rank-\((D+2R+1)\) One-Reference-Tile adjoint runs in batched split-factor Triton kernels (BF16 tensor cores, FP32 potentials). And a chunked exclusive-prefix causal variant provides verified zero future leakage.
The numbers are striking. On an NVIDIA L4, sparsemax THOT trained at \(L=128\) reaches 97.40% zero-shot recall of fixed bindings at \(L=262{,}144\) under pure task loss, and 98.83% at \(\alpha=0.05\) — matched by the \(O(L)\) thresholded ReLU variant. The control matters: with softmax gating the same hub OT collapses to 3.52%. In operator microbenchmarks the kernel runs forward+VJP in 100.1 ms at $H=8, D=64, L=262K (2.2× faster with 4.0× smaller compiler temporaries than latent softmax), and 1.34 ms vs. 4.37 ms for cuDNN FlashAttention at \(L=4{,}096\). Zero-shot WikiText-103 multi-needle retrieval: 100.00% (128/128) against 0.78% for short-trained RoPE FlashAttention.
Caveats: multi-layer LM runs still use the unfused path, compact 4-layer WikiText-4K runs show only modest causal and masked-LM gains, and the 262K number comes from a model trained at \(L=128\) extrapolated far beyond its training length.
Source: arXiv:2611.27951 — Topology Hub Optimal Transport: Eliminating Long Context Dilution at Flash Speed