Unverified 2026

Polylogarithmic Heavy-Tail Attention

Implementation & benchmark of arXiv:2608.00399 — The Heavy-tailed Frog Model

Usefulness6/10
Difficulty5/10
Novelty6/10

Source paper: The Heavy-tailed Frog Model arXiv:2608.00399 ⓘ · analyzed Aug 31, 2026

AI-generated research hypothesis, automatically tested. Not peer-reviewed.

Idea description

Replace dense attention or strictly local windows with a refreshed sparse communication graph whose edge lengths follow a truncated power law. For sequence positions or image patches at distance $r$, sample edges with probability proportional to $(1+r)^{-(d+\alpha)}$; in the regime $0<\alpha<d$, repeated layers should spread information across the sequence much faster than a local window while using only $O(nk)$ edges per layer. The main test is whether this preserves long-range accuracy at substantially lower attention FLOPs and whether the predicted transition near $\alpha=d$ appears empirically.

Formulas

$$Q(x,y)\asymp |x-y|^{-(d+\alpha)},\qquad \alpha>0.$$
$$\mathcal A(k):=\{x:\mathrm{AT}(o,x)<k\}.$$
$$\max_{\|x\|\le L}\mathrm{AT}(o,x)=(\log L)^{\Delta+o(1)},\qquad \Delta^{-1}:=\log_2\left(\frac{2d}{d+\alpha}\right),\quad 0<\alpha<d.$$
$$p_{ij}=\frac{(1+\|u_i-u_j\|_\infty)^{-(d+\alpha)}}{\sum_{r\neq i}(1+\|u_i-u_r\|_\infty)^{-(d+\alpha)}}\,\mathbf 1\{j\neq i\},\qquad j\in\{1,\ldots,n\}.$$

Mathematical statement

The paper assumes a symmetric translation-invariant jump kernel $Q(x,y)\asymp |x-y|^{-(d+\alpha)}$, where $x,y\in\mathbb Z^d$, $d$ is the spatial dimension, $\alpha>0$ is the tail exponent, and $a\asymp b$ means that their ratio is bounded above and below by positive constants independent of $x,y$. In the frog cascade, an active particle activates particles encountered by its random walk; $\mathrm{AT}(o,x)$ is the first activation time of vertex $x$ from the planted origin $o$, and $\mathcal A(k)=\{x:\mathrm{AT}(o,x)<k\}$ is the activated set by time $k$. For $0<\alpha<d$, the paper gives the high-probability spreading scale $\max_{\|x\|\le L}\mathrm{AT}(o,x)=(\log L)^{\Delta+o(1)}$ with $\Delta^{-1}=\log_2(2d/(d+\alpha))$. The construction to transfer is a random multiscale graph: each token sends a bounded number $k$ of messages per layer, and an edge from position $x$ to $y$ is sampled with probability $p(x,y)\propto (1+\|x-y\|)^{-(d+\alpha)}$ after truncation to the valid token range. The mathematical prediction is that $\alpha<d$ gives superlocal, polylogarithmic communication depth, while $\alpha>d$ behaves more like local propagation and should require depth proportional to the target radius.

Implementation notes

1. Integration point: modify the attention connectivity pattern before computing $QK^T$. Given token coordinates $u_i\in\mathbb Z^d$ (sequence positions use $d=1$; image patches use $d=2$), do not form all pairwise logits. For each query token $i$, sample $k$ distinct keys $j$ from the normalized truncated kernel $p_{ij}$ above, then compute ordinary scaled dot-product attention only on those keys. Add a deterministic local window of radius $w$ so nearby interactions are always retained. Refresh the random long-range edges every training batch or every few layers; share edges across heads if memory is important. 2. Pseudocode: for layer in layers: for i in tokens: J_local=neighbors(i,w); J_long=sample_without_replacement(p[i,:],k); J=union(J_local,J_long); logits=(q[i] @ K[J].T)/sqrt(head_dim); a=softmax(logits); out[i]=a @ V[J]. The exponent is sampled using inverse-CDF or alias sampling; estimate normalization by precomputing distance-shell counts for regular grids, or by rejection sampling for irregular graphs. 3. The paper supplies the kernel and phase prediction; the neural implementation must empirically estimate effective receptive-field growth by measuring the fraction of tokens reachable from a seed after $t$ layers. Compare $\alpha\in\{0.5,1,1.5,2,3\}$, with the crossover expected around $\alpha=d$. 4. First experiment: train 6-layer small Transformers on WikiText-2 with sequence length 1024, comparing dense attention, a local-window baseline with equal $k+w$, and heavy-tail sparse attention at equal FLOPs and parameter count. Also test synthetic copy and induction tasks requiring dependencies at distances 128, 256, and 512. Success means lower validation perplexity than local attention at equal compute, or matching dense perplexity with at least 4x fewer attention score evaluations; additionally verify that reachable-token count grows substantially faster with depth for $\alpha<d$.

Verification

This idea has not been verified yet.

Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.

Artifacts

Artifacts unavailable.