Support-Scenario Attention Pruning
Implementation & benchmark of arXiv:2607.02754 — Possibilistic collapse and extremality of simplicial distributions
Source paper: Possibilistic collapse and extremality of simplicial distributions arXiv:2607.02754 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Turn attention weights into a Boolean support scenario and prune edges using local-surjectivity constraints rather than independently thresholding each row. Preserve at least one compatible continuation for every local window, then favor a strongly connected support graph so pruning removes redundant mixtures while maintaining a globally coherent sparse attention pattern.
Formulas
Mathematical statement
For each attention context c, let F(c) be the finite set of key assignments or admissible attention edges with positive probability. The possibilistic collapse replaces a probability p by its support, kappa(p)(e)=1 if p(e) != 0 and 0 otherwise. The paper defines q <= p through support inclusion and proves that this order is preserved by collapse: q <= p iff kappa(q) <= kappa(p). A subscenario G <= F is valid when it is non-trivial (all local fibers are nonempty) and locally surjective under restriction maps. Strong connectivity is defined by a zigzag of contexts whose restriction maps are isomorphisms. The extremality result says that if the retained support scenario is strongly connected and has no proper nontrivial subscenario, then the corresponding consistent distribution is a vertex. For attention, c is a local window or query group, F(c) contains retained query-key edges, and restriction deletes queries or keys when moving to an overlapping subwindow. The transferable mechanism is therefore a combinatorial mask certificate, not a claim that ordinary unconstrained attention is automatically a simplicial distribution.
Implementation notes
Modify the attention mask after computing scaled dot-product logits QK^T/sqrt(d), before softmax. Partition a sequence into overlapping windows, for example windows [i,i+w) and [i+s,i+s+w), and treat each query row or query block as a context c. Define p_c(j)=softmax(logits_c)_j and an initial support F(c)={j:p_c(j)>epsilon}; use epsilon between 1e-3 and 1e-2. Construct restriction maps by deleting queries outside an overlap and keys outside the corresponding local key set. Apply a greedy support-cleaning loop: remove the lowest-weight edge (c,j) if its removal leaves every context nonempty, every overlap child with at least one parent continuation, and no query with zero admissible keys. Next, build a graph over overlapping windows; mark a link bijective when the surviving restricted supports have equal cardinality and the restriction is one-to-one and onto. Keep the largest strongly connected component, or add penalties instead of hard removal during the first training phase. Pseudocode: logits -> dense softmax -> threshold -> validity-preserving edge deletions -> sparse softmax over the mask -> FlashAttention-style block dispatch. The mathematical checks are exact on the finite mask; epsilon selection, component tradeoffs, and whether to retain one or several components are empirical. First test a 6-layer, 8-head Transformer on ListOps or WikiText-2 with sequence length 512, comparing dense attention and local top-k attention at equal quality targets. Measure attention FLOPs, peak memory, retained edges, perplexity, and whether the structured mask reaches 2x fewer edges without the validation loss increase seen from independent thresholding.
Verification
Stage 1 · Toy mechanism gate: Failed ✗
Stage 2 · Mechanism transferred to benchmark: Not tested
Stage 2 · Practical benchmark result: Not run
Methodology: Toy-system gate first; the benchmark stage runs only after a pass. How verification works
Stage 1 — Mechanism check agent confidence 9/10
Built a finite-support attention pruning MVP with possibilistic-collapse verification, overlap continuation repair, greedy validity-preserving deletion, and connectivity diagnostics. The support-order equivalence passed 5,000 randomized checks, and the repaired structured mask had zero continuation violations and one connected component in all 10 seeds. However, it retained only 12 edges versus 54.4 for independent thresholding and had much worse attention-output MSE (0.629 versus 0.0176), so the claimed sparse-quality benefit was not observed.
- Agent confidence
- 9/10
- Baseline
- Independent epsilon=0.08 thresholding: 54.4 +/- 6.7 edges, 0.1 continuation violations, output MSE 0.0176 +/- 0.0086, 2.8 +/- 0.4 window components.
- Idea
- Structured repair plus greedy cleaning: 12.0 +/- 0.0 edges, 0 continuation violations, output MSE 0.6288 +/- 0.0907, exactly 1.0 window component.
Limitations: This was a tiny synthetic NumPy attention experiment, not a trained Transformer or ListOps/WikiText evaluation. It measured attention-output approximation rather than perplexity, wall-clock speed, GPU memory, or real sparse-kernel acceleration; the toy restriction and continuation definitions are simplified analogues of the paper's simplicial maps.
How to run: python3 support_pruning.py
Verdict computed by deterministic test code from paired-seed statistics — not by the language model.
Artifacts
- report.md 1.5 KB View
- results.json 2.9 KB View Raw
- support_pruning.py 5.6 KB View Raw