Beta-fragmented hierarchical attention
Implementation & benchmark of arXiv:2608.18320 — Asymptotics for Beta-Splitting Trees via Homogeneous Fragmentations and Meromorphic Potential Theory
Source paper: Asymptotics for Beta-Splitting Trees via Homogeneous Fragmentations and Meromorphic Potential Theory arXiv:2608.18320 ⓘ · analyzed Sep 1, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Build a binary hierarchy over tokens by recursively splitting each active block with a beta-splitting rule, then perform dense attention only inside small leaf blocks and communicate between leaves through learned summaries at internal nodes. The beta parameter controls how balanced the partition is, while the paper's maximum-depth asymptotic supplies a principled depth budget and a way to detect pathological trees.
Formulas
Mathematical statement
The paper represents the frequency of a tagged fragment as exp(-xi_t), where xi is a subordinator with Laplace exponent phi_beta(z) = integral from 0 to 1 of (1 - s^z) s^(beta+1) (1-s)^beta ds. Here beta > -2 is the splitting parameter, s is a retained fragment fraction, and phi_beta(1) is the value of this exponent at z = 1. For the maximum continuous height D_n^* of an n-leaf tree, the paper proves D_n^* / log(n) converges in probability to 2 / phi_beta(1), and states that phi_beta(1) D_n^* - 2 log(n) has a mixed Gumbel limit. In the neural adaptation, n is the token count, D_n^* is the maximum root-to-leaf routing depth, and the predicted depth is D_pred = 2 log(n) / phi_beta(1). Estimate phi_beta(1) by numerical quadrature of integral from 0 to 1 of (1-s) s^(beta+1) (1-s)^beta ds. Positive beta favors more balanced splits; beta near -1 gives the critical regime; beta closer to -2 produces more uneven partitions.
Implementation notes
(1) Integrate this at the attention-mask and routing level of a transformer. Given n token states, recursively partition every active token block until its size is at most a leaf capacity B. Add one learned summary vector to each internal node. Run ordinary multi-head self-attention within each leaf, then aggregate child summaries upward from leaves to the root, and finally broadcast parent summaries downward to update token states. The local attention cost is O(nB d), while tree communication costs roughly O(n d log n), instead of O(n^2 d), where d is hidden width. (2) Pseudocode: initialize a root block A containing all token indices; while size(A) > B, sample a split fraction s, set left_size = clip(round(s size(A)), 1, size(A)-1), create left and right child blocks, and attach summary u_A. Apply local attention to each leaf. For each level from leaves to root, compute u_A = Attention(u_A, concatenate(u_left,u_right)). For each level from root to leaves, update child token states using cross-attention to u_A. (3) Compute phi_beta(1) with adaptive quadrature and set a target maximum depth near 2 log(n) / phi_beta(1). Before training, sample many trees and measure the empirical 95th-percentile depth; reject, rebalance, or resample trees exceeding that limit. The mathematical quantities are phi_beta(1) and the logarithmic depth prediction; block size, summary dimension, and whether summaries use one or several vectors are empirical design choices. (4) First experiment: use a 6-layer transformer on ListOps or CIFAR-10 with 196 to 256 tokens. Compare full attention, a fixed balanced binary tree, uniform random recursive splits, and beta values -1, 0, 1, and 2. Match parameter counts and report validation accuracy, tokens per second, peak memory, attention FLOPs, maximum depth, and accuracy variance across sampled trees. A useful success criterion is at least 1.5x lower attention FLOPs and lower peak memory than full attention with no more than one percentage point accuracy loss; additionally test whether observed maximum depth scales linearly with log(n) and whether beta-controlled trees reduce depth variance.
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.