Premise-Anchored Sparse Attention for Deep Reasoning, Measured Against Contamination-Controlled Twins

Language models that read long inputs cheaply often use sparse attention: the context is cut into blocks, each block is summarized by averaging its tokens, and each query reads only the few blocks whose summaries look most relevant. In multi-step reasoning over a long, distractor-heavy context, the premise needed at each step is often one short clause inside a block of filler. Averaging buries that clause, so the model fails to select its block. Because each step depends on the previous one, these retrieval misses compound with reasoning depth. We propose to give each block a second summary that pools only at learned premise boundaries, blended with the ordinary average through a learned gate. We then test whether this flattens the accuracy-versus-depth curve on reasoning tasks that are generated fresh, so the model cannot have memorized them.

The second half of the idea concerns measurement. Any change that makes a model rely less on surface statistics is expected to cost some accuracy on standard benchmarks, a "robustness tax." Standard benchmarks, however, are partly memorized from pretraining data. Part of any measured tax may therefore be lost memorization rather than lost skill. We build twins for standard benchmark items: regenerated copies with the same logical structure and fresh fictional entities. With twins, the tax splits into a real part (the drop on twins) and an apparent part (the extra drop on originals). This lets us say honestly whether the architectural fix, and competing data-side fixes, actually trade in-distribution skill for depth robustness.

Core Claim

The claim is that a substantial share of multi-hop decay in sparse-attention models is a retrieval failure caused by mean-pooled block summaries, and that it can be measured directly as per-hop premise-block recall: the fraction of hops at which the block holding the needed premise is among those selected. A hybrid block summary that adds a learned premise-anchor branch to the global average should raise premise-block recall at every hop. It should reduce accuracy loss at depth and under reversed premise order, and on contamination-controlled twins it should cost little or no in-distribution accuracy. The last point is the key to the design. We keep the global branch rather than replacing it, so the model can still use the valid statistical priors that pure debiasing methods throw away.

The architectural starting point is Punctuation-aware Hybrid Trainable Sparse Attention (PHSA). PHSA fuses a global average-pooled branch with a branch pooling only punctuation tokens, using a learnable gate before top-$k$ block selection, and trains the model to stay stable when only one or two blocks are read. PHSA was built to prevent semantic blurring in long contexts. It was not evaluated on reasoning depth. Its own authors also note that not all punctuation marks are informative and that some add routing noise. We differ in three ways. Anchors are learned rather than fixed to punctuation. The evaluation target is multi-hop depth decay rather than general long-context modeling. And we instrument block selection so that retrieval misses can be separated from reasoning misses. The file reports no numerical PHSA results (no reported result found on Lacuna for PHSA accuracy), so we reimplement it as a baseline rather than quoting it.

Why This Gap, and What Constrains It

Three lines of evidence motivate the proposal. RuleBERT formalizes multiplicative error compounding: 90% per-step success falls to 53% over six steps. How Is LLM Reasoning Distracted by Irrelevant Context? shows that distractors worsen this along a power-law trend. DyVal generates reasoning problems from directed acyclic graphs and shows that depth hurts far more than breadth. It reports a 23% arithmetic drop for GPT-3.5-Turbo from level D1 to D4, and a 13.6% drop for GPT-4 on reachability when the premise order is reversed. If per-step failure were partly a retrieval miss, all three patterns would follow, and all three would be worse under sparse attention with blurred summaries. No paper in the file tests this.

Existing remedies act outside the attention mechanism. TEABREAC pretrains on 525,000 synthetic contexts with enforced step dependencies and reports a 20-point F1 gain for T5-Large on questions of five or more steps. DTKG routes questions to external knowledge-graph branches, and about 15% of its failures come from an early retrieval error cascading down the chain. ActivationReasoning maps sparse-autoencoder features to propositions and steers them with a symbolic solver. It holds above 93% on PrOntoQA at one, three and five hops with Llama-3 8B, where the base model sits near 50%, but it depends on hand-specified rules and never measures clean-benchmark cost. Our method is a trainable change inside attention that needs neither rules nor an external graph. It is also only claimed to matter when the context is long enough that attention must be sparse.

The robustness literature constrains the design. Don't Take the Easy Way Out shows that product-of-experts debiasing gains on challenge sets but loses in-domain accuracy. The same pattern appears for domain-generalization methods on TableShift, where in-distribution accuracy predicts out-of-distribution accuracy with $\rho = 0.81$. MAP recovers in-distribution accuracy by giving variant, distribution-specific features their own adapter layers, raising the harmonic mean on ColoredMNIST from 22.9% to 60.6%. We borrow MAP's lesson rather than its machinery: keep a path for the features that are useful in-distribution. The global branch plays that role. The ablation that replaces the global branch with the anchor branch alone tests whether keeping it is what avoids the tax.

The contamination literature supplies the twin method. PRONTOQA-OOD (Saparov et al.) swaps real entities for fictional ones such as "wumpuses" to block factual recall. DyVal shows that models such as phi-1.5 and WizardMath-13B, strong on static benchmarks, score near zero on fresh graph-generated tasks. We apply the fictionalization trick to standard benchmark items one-for-one, which gives a paired measurement rather than a new benchmark.

Research Program

The model change works as follows. For block $b$, the global summary $M_o(b)$ is the mean of its keys. The anchor summary is

$$M_a(b) = \sum_{i \in b} \frac{s_i}{\sum_{j \in b} s_j}\, k_i,$$

where $k_i$ is the key of token $i$ and $s_i \in [0,1]$ is an anchor score from a small per-token scorer. The scorer is initialized from a punctuation mask, so it starts exactly at PHSA, and is trained with an L1 sparsity penalty so that only a few tokens per block act as anchors. The block summary used for top-$k$ selection is $\lambda M_o(b) + (1-\lambda) M_a(b)$, with $\lambda$ learned per head.

We retrofit this into an open model of roughly 1B to 8B parameters by continued training. We use PHSA's extreme-sparsity training schedule on a general long-context corpus mixed with synthetic multi-hop data. Three variants receive the same token budget: mean-only sparse, PHSA with fixed punctuation, and learned anchors.

Instrumentation is the other half. Every synthetic task comes with its proof graph, so we know which premise each hop needs and which block holds it. We log premise-block recall per hop and split each wrong answer into a retrieval miss (the needed block was never selected at that hop) or a reasoning miss (the block was selected but the answer was still wrong). Nothing in the file measures this decomposition. It is what makes the mechanism falsifiable.

Twins are built for FOLIO's HybLogic track, which uses 24 syllogism templates filled with real entities (FOLIO). For each item we refill the same template with fictional entities and check the gold label with FOLIO's first-order logic annotations. For HotpotQA and MuSiQue we build twins by consistent entity renaming inside the supporting paragraphs, and keep only items whose answer survives renaming. For any model we report accuracy on originals and on twins. The real tax of an intervention is its drop on twins. The apparent tax is its drop on originals minus its drop on twins.

Baselines

The naive reference point is the same base model with dense full attention and no extra training, plus a copy given the identical continued-training data with ordinary attention. Dense attention sees every token, so no block pooling can blur a premise. Dense attention is therefore the accuracy ceiling our method must approach at a lower compute cost, not a target to beat outright. We succeed if learned anchors close at least half of the depth-5 gap between mean-pooled sparse attention and dense attention at the same number of blocks read.

The strongest architectural competitor is PHSA as published: fixed punctuation anchors, a learned gate, and the same extreme-sparsity schedule. It is the strongest because it already targets semantic dilution in block summaries, and our method differs from it only in how anchors are chosen. It gets the same base model, data, token budget and hyperparameter sweep size. Learned anchors beat it if they give higher premise-block recall and accuracy at depths 4–5 on PRONTOQA-OOD and on DyVal levels D3–D4, with confidence intervals from at least three seeds that do not overlap.

The strongest data-side competitor is TEABREAC-style training, whose reported +20 F1 at five or more steps for T5-Large is the most direct depth-robustness number in the file. We build a matched synthetic hard-context set of the same size in tokens as our synthetic mixture and train the mean-pooled sparse model on it. For debiasing competitors we run Curriculum Debiasing, which reports an 8.0% out-of-distribution gain over standard adapters on MNLI/HANS without in-distribution loss, and the product-of-experts method of Clark et al. For the latter, a "bias-only" model sees only the question and a shuffled context. These serve as the reference for how large a tax conventional robustness training pays when measured on twins.

For absolute context on FOLIO, the file reports 64.2% for 8-shot GPT-4, 65.9% for fine-tuned Flan-T5-Large, and 78.1% for Logic-LM (FOLIO). For PrOntoQA depth, it reports above 93% at five hops for ActivationReasoning with Llama-3 8B. We rerun ActivationReasoning on our long-context, distractor-padded PrOntoQA variant, because its reported number is on short contexts.

Three ablations isolate the key ingredients: anchor-only pooling with no global branch, which tests whether keeping the global path is what avoids the tax; a random anchor scorer with matched sparsity; and a gate frozen at $\lambda = 0.5$.

Why not just…?

Why not just read more blocks or use dense attention? Reading more blocks is the honest competitor, since it raises premise-block recall by brute force. We therefore plot accuracy against blocks read, and hence attention compute, for every variant. The claim is only that learned anchors dominate this curve. If mean-pooled sparse attention at $2k$ blocks matches learned anchors at $k$ blocks, the anchor branch buys nothing that the extra compute would not, and we will report that.

Why not just train on hard synthetic contexts like TEABREAC, with no architecture change? This is a real threat. TEABREAC's gains at depth are large, and hard-context training could teach the ordinary model to put premises where averaging does not hide them. The matched-data comparison settles it. If TEABREAC-style data alone produces the same premise-block recall gains, the architectural claim fails. If the two are additive, which the retrieval-miss decomposition would predict when the data mainly fixes reasoning misses, both are worth using.

Why not just use chain-of-thought prompting or larger models? The file's evidence argues against expecting scale to fix depth: Llama-70B degrades as hops increase on PrOntoQA according to ActivationReasoning, and PaLM 540B is outperformed by smaller instruction-tuned models on PRONTOQA-OOD. Chain-of-thought still requires each written step to attend back to the right premise, so under sparse attention it inherits the same retrieval problem. We run every variant with and without chain-of-thought and report premise-block recall in both settings.

Why not just detect contamination by n-gram overlap instead of building twins? Overlap detection flags verbatim leakage but misses paraphrased or template-level memorization. Template-level memorization is exactly what FOLIO's HybLogic templates invite, and token-level surprise studies such as Studying and improving reasoning in humans and machines find near-zero perplexity on classic puzzles. Twins measure the effect we care about, the score gap, rather than a proxy for its cause. We also report overlap statistics so readers can see how well the proxy agrees.

Proposed Experiments and Decisive Checks

The main depth experiment uses PRONTOQA-OOD at depths 1 to 5 and DyVal's seven tasks at levels D1 to D4. Contexts are padded to 16k–32k tokens with controlled distractors in the style of the distractor-benchmark paper. The metrics are accuracy and per-hop premise-block recall, the latter plotted against depth. The order experiment reruns DyVal reachability and deduction with topological, reversed and random premise order. Anchors carry no order information, so the anchor branch should shrink the reversal drop only to the extent that the drop comes from retrieval misses. The retrieval/reasoning split tests this directly. Transfer to natural text uses FOLIO, HotpotQA and MuSiQue in long-context settings, each paired with its twin set.

The first decisive check is mechanistic. If learned anchors raise accuracy at depth without raising premise-block recall, the retrieval-miss explanation is wrong, and we will report the gain as unexplained rather than attribute it to pooling. The second concerns the tax. Across all interventions, including Curriculum Debiasing and product-of-experts, we test whether a meaningful share of the drop on originals disappears on twins. That result would show that much of the tax reported in this literature is lost memorization, which matters beyond this architecture. The third is the global-branch ablation. If anchor-only pooling matches the hybrid on twins, the MAP-inspired argument for keeping a global path is unnecessary here. Finally, inspecting learned anchor scores on FOLIO and MuSiQue shows whether the scorer finds clause and premise boundaries or collapses back onto punctuation. Collapse would mean PHSA's fixed anchors were already nearly optimal.