AutoAssumption | Searching for ML systems algorithms one assumption at a time

Review date 2026-11-16 UTC · Author Zhongzhu Zhou
Paper reviewed AutoAssumption: Searching over Assumptions Discovers ML-Systems Algorithms
Paper authors Igor Sadalski, Minghao Guo, Benjamin Jones, and Wojciech Matusik
arXiv 2611.14844v1 · Version date 2026-11-10 UTC

When I look at the history of LLM inference, many consequential changes start as a change to something an earlier design took for granted. A target forward pass can verify multiple tentative tokens. Attention keys can be stored in independently managed pages. A pruning mask can allocate zeros across an entire projection matrix. AutoAssumption asks whether an agent can use that sort of choice as the explicit unit of a search. It groups choices extracted from prior designs, edits one choice in a parent, re-derives the affected statements, checks the resulting proof in Lean, and measures the candidate in the parent’s protocol [1, §§1–2].

The paper’s 89 proof graphs span 44 KV eviction designs, 26 speculative decoding designs, and 19 pruning designs. Appendix F counts composites, alternative settings and standard baselines among those graphs. The optimization experiments start from a smaller set of 26 published parents, split 11, seven and eight across eviction, pruning and decoding respectively. This distinction matters when interpreting coverage. The offline representation covers several dozen designs, while the experiment in which each parent has an improved candidate concerns the selected 26 and their search metrics.

Figure 1. Shared assumptions connect offline formalization to empirical search (paper Fig. 1).

Figure 1. Source [1, Fig. 1]. Formalization feeds the assumption pool. The candidate’s proof and its benchmark score answer different questions.

Three descendants make the workflow concrete. RestoreKV GM changes how evidence from query heads sharing a KV head is aggregated. Pruner-Zero LG changes the scope of weight comparisons from each output row to each projection matrix. SVIP LK adds a prompt lookup continuation when the entropy rule stops neural drafting. Group averaging and matrix-wide selection improve the chosen quality scores under the reported protocols. Lookup improves some latency regimes and loses at batch size 32. I treat the variants as experiments with localized interventions in the parent algorithm. The evidence for the search procedure itself comes from the separate comparison to OpenEvolve and AIDE, which is a single eviction search setting.

2. Prerequisites for reading the proof graphs

A contract names the property

Write a contract as a predicate on inputs and outputs. For exact sampling, the output is a probability law over generated sequences. A proof can establish equality to the target’s law for every allowed prefix. For pruning, the output includes a mask of a specified size, so cardinality is an appropriate contract. Perplexity depends on the model and the text distribution, and is measured after pruning. For KV eviction, I would ask whether the method returns a set of in-budget logical entries before asking how much memory a serving system actually allocates. The physical allocator may round, retain masked entries, or require temporary workspace. These are three different observables.

Lean accepts formal statements and proof terms. Once the formal inputs and semantics are fixed, the checker enforces the derivation. Introducing a probability law as an assumption exposes a dependency the reader can inspect. A benchmark adds information the derivation does not have, such as whether a mean of query-head scores improves retrieval for a particular model. Keeping empirical objectives visible also helps avoid a specification so permissive that any algorithm satisfies it, for example, a cache contract that allows a full cache under every requested ratio.

Dependency direction and proof repair

I orient an edge from a premise toward a statement that cites it. For vertices representing assumptions, definitions, lemmas and a final claim, let U(v)U(v) be immediate users of vv. Changing aa requires rechecking the reachable users. Begin with I0={a}I_0=\{a\} and extend the set by one dependency hop at each round.

It+1=It ∪ ⁣⋃v∈ItU(v),I(a)=⋃t≥0It.(1)I_{t+1}=I_t\ \cup\!\bigcup_{v\in I_t} U(v), \qquad I(a)=\bigcup_{t\ge 0}I_t. \tag{1}

The recurrence stops when the set ceases to grow. In a finite directed acyclic graph, a worklist marks each affected vertex once and reads each outgoing edge from a marked vertex once. Then a topological traversal exposes premises before conclusions. In the source paper the document treatment also includes mentions in ranges and summary entries. A semantic dependency can be missing from an informal graph if two definitions silently share a convention. A premise can also acquire a new downstream user after an edit. Both are reasons to re-check the resulting whole contract.

Figure 2. The exactness and cost claims have different dependencies (paper Fig. 3).

Figure 2. Source [1, Fig. 3 and App. H]. The fixed-length and acceptance model in the cost branch determines a geometric count. The one-position exactness argument has its own assumptions on sampling and verification.

Imagine a graph with shared vocabulary, conditional probability laws and fixed block length as starting nodes. The local accept-or-resample lemma consumes the first two. The geometric token-count theorem consumes the third plus a model of prefix acceptance. Replacing fixed length with an adaptive stopping rule preserves a reusable local identity. The full decoder still needs a block-level argument about how the random stop is chosen, which law generated each proposed token, and what token is emitted at the boundary. Tracing dependencies saves effort because it identifies the proof work that remains.

Two ratios that change the engineering answer

An eviction ratio such as 32x expresses original logical entries divided by retained logical entries. On a 4,096-token context it corresponds to 128 equivalent positions per layer and KV head on average. A globally ranked mask can place that capacity unevenly. Pruning sparsity is the zeroed fraction of weights in the specified comparison unit. At 50% unstructured sparsity one can choose any half of the matrix. A kernel requiring two zeros in every four contiguous weights has a much smaller admissible set. A quality comparison at equal sparsity therefore answers a different question from a speed comparison at equal hardware constraints.

3. From a paper collection to a mutation

The harness first defines a shared problem for a field from a benchmark and a screened set of prior algorithms. A human filters for relevance and reproducibility. A model proposes a contract, and the team tests whether a sample of algorithms can be formalized under it. Appendix A.2 separates this preparation from mutation. In speculative decoding the shared interface identifies the draft and target models and what comes out of a verification step. A contract formulated exclusively around a fixed draft count would impede comparison with adaptive decoders. A contract that says only that the decoder emits tokens would admit arbitrary outcomes.

The next stage has two agent roles in the paper. One produces a mathematical description with explicit problem, assumptions, definitions and theorems. The other formalizes it in Lean. Across algorithms the authors group assumptions by the design question they answer. In eviction, different algorithms answer where the storage budget is shared, which attention samples inform the score, and how to aggregate head evidence. The resulting catalog can carry a design choice from one family across to another without requiring the entire donor algorithm.

Algorithm 1. Construct and evaluate one child

1. Choose a parent design and read its contract and assumption graph.
2. Propose one changed premise and record the predicted effect.
3. Identify direct users and descendants of that premise.
4. Derive new definitions and re-prove the affected claims.
5. When the family has a dial, check its parent-recovering setting.
6. Seek an input that distinguishes the child and screen for duplicates.
7. Require the resulting formal statements to pass Lean.
8. Run the candidate on the parent's benchmark protocol.
9. Record the result and use it to guide the next candidate.

This is a reading-level summary of §2.2 and Appendices A.2 and D.3. The parent-recovering setting gives a reference within the new family. For a scoring policy, setting λ=0\lambda=0 could recover a max reducer and setting λ=1\lambda=1 could select a mean. A useful comparison fixes the replay queries and budget for both. Separating candidates by behavior is stronger than comparing labels. A changed score is still behaviorally redundant in an eviction policy if it induces the same selected mask on every input. A test input where rankings actually swap supplies a witness.

The approach favors small, attributable changes and lets an agent borrow meaningful alternatives. Whole-program search can uncover interactions in one step, for instance, replacing scoring together with the capacity allocation that depends on it. If two individually inferior edits together improve the design, a greedy chain over one premise can miss the pair. A bounded beam over accepted graphs is a plausible alternative. It retains intermediate designs with distinct tradeoffs at the cost of additional state and evaluator calls. An ablation would have to hold the proposal and evaluation budgets constant to isolate that policy change.

4. Worked example. Exact speculative sampling

One verified position

Let p(x)p(x) be the target law and q(x)q(x) the proposal law over the common finite vocabulary at a fixed prefix. Draw a candidate XX from qq and an independent uniform coin. For a token with q(x)>0q(x)>0, accept with probability a(x)=min⁡{1,p(x)/q(x)}a(x)=\min\{1,p(x)/q(x)\}. The mass entering through acceptance is

Pr⁡(X=x,accept)=q(x)a(x)=min⁡{p(x),q(x)}.(2)\Pr(X=x,\mathrm{accept})=q(x)a(x)=\min\{p(x),q(x)\}. \tag{2}

If q(x)=0q(x)=0, acceptance contributes zero. For p(x)≥q(x)>0p(x)\geq q(x)>0, every proposed xx is accepted, giving mass q(x)q(x). For p(x)<q(x)p(x)<q(x) the coin suppresses the surplus down to p(x)p(x). Summing the accepted mass gives β\beta. With (z)+=max⁡(z,0)(z)_+=\max(z,0), the uncovered mass sums to ZZ.

β=∑xmin⁡{p(x),q(x)},Z=∑x(p(x)−q(x))+=1−β,1−β=12∑x∣p(x)−q(x)∣.(3)\begin{aligned} \beta &= \sum_x \min\{p(x),q(x)\},\\ Z &= \sum_x (p(x)-q(x))_+ = 1-\beta,\\ 1-\beta &= \tfrac12 \sum_x |p(x)-q(x)|. \end{aligned} \tag{3}

The second line follows by subtracting the minimum from pp at every token. The third follows because the positive and negative components of p−qp-q have equal total mass. On rejection we sample from pres(x)=(p(x)−q(x))+/Zp_{\mathrm{res}}(x)=(p(x)-q(x))_+/Z when Z>0Z>0. This gives the one-position theorem in Appendix H.

Pr⁡(emit x)=min⁡{p(x),q(x)}+(1−β)pres(x)=min⁡{p(x),q(x)}+(p(x)−q(x))+=p(x).(4)\begin{aligned} \Pr(\mathrm{emit}\ x) &= \min\{p(x),q(x)\} + (1-\beta)p_{\mathrm{res}}(x)\\ &= \min\{p(x),q(x)\}+(p(x)-q(x))_+ = p(x). \end{aligned} \tag{4}

When β=1\beta=1, the rejection branch has probability zero and p=qp=q. For a two-token example take p=(0.6,0.4)p=(0.6,0.4) and q=(0.9,0.1)q=(0.9,0.1). Acceptance contributes (0.6,0.1)(0.6,0.1), and the rejection branch samples the second token with probability one. Sampling from pp after rejection would give (0.78,0.22)(0.78,0.22). The residual is the correction that pays back probability mass exactly where the proposal was deficient.

Figure 3. Accepted mass plus residual mass matches the target.

Figure 3. Original numerical example of [1, App. H.2–H.3]. Token B receives 0.30 from the residual branch, filling the gap beneath its 0.40 target probability.

From one position to a stream

In a block with draft x1:γx_{1:\gamma}, the verifier needs the target distribution at every successive prefix ux<iu x_{<i}, plus the distribution after the whole block. Position ii is reached if all preceding candidates were accepted. Given their identities and their independent verification coins, the new proposal still has the specified conditional law q(⋅∣ux<i)q(\cdot\mid u x_{<i}). On that event the one-position argument applies to the next emitted token. Upon the first rejection the suffix depends on a prefix that will no longer be emitted, so the step stops and restarts from the corrected prefix. If every draft passes, the target supplies the bonus token. On either path, conditioning on the already-emitted token prefix and summing over hidden block boundaries gives

Pr⁡(Y1:L=y1:L∣u)=∏t=1Lp(yt∣u y<t).(5)\Pr(Y_{1:L}=y_{1:L}\mid u) =\prod_{t=1}^{L}p(y_t\mid u\,y_{<t}). \tag{5}

At temperature zero this reduces to matching the target’s deterministic choice with consistent tie-breaking. With sampling it is equality in distribution, so two runs need not produce the same string. The derivation assumes correct conditional logits and proposal laws. A different top-k normalization, floating-point ties, or an inconsistent cache position can alter the distributions the math refers to.

Let NN denote the number of leading drafts accepted and EiE_i the event that position ii was proposed and the first ii proposals were accepted. Ignoring EOS and final budget truncation, N+1N+1 equals one plus the sum of the indicators of these tail events. Taking expectations gives

E[N+1]=1+∑i=1γmax⁡Pr⁡(Ei).(6)\mathbb E[N+1]=1+\sum_{i=1}^{\gamma_{\max}}\Pr(E_i). \tag{6}

For a fixed γ\gamma and prefix survival Pr⁡(Ei)=αi\Pr(E_i)=\alpha^i, this becomes (1−αγ+1)/(1−α)(1-\alpha^{\gamma+1})/(1-\alpha) for α<1\alpha<1 and γ+1\gamma+1 at α=1\alpha=1. For γ=4,α=0.7\gamma=4,\alpha=0.7, the expected output is 2.77312.7731 tokens per target call. If measured conditional survivals are 0.9,0.8,0.5,0.20.9,0.8,0.5,0.2, the four tails instead are 0.9,0.72,0.36,0.0720.9,0.72,0.36,0.072, giving 3.0523.052. Multiplying per-position marginal acceptance rates without checking the conditioning can misprice the long tail. The paper’s worked proof explicitly calls out the idealized count theorem and the cap branch [1, App. H.4–H.5].

5. RestoreKV GM. Decide whose evidence counts

Replay scores and the order of aggregation

During prefill the model writes the cache for the supplied context. RestoreKV then replays that context in chunks (2,048 tokens in Appendix C.1) on top of the cache. The score is computed after the ordinary attention sublayer. It recomputes attention for replay queries against a restricted key set made of early sinks, the target context chunk and the causally visible replay positions. The physical contents used for this scoring softmax and those read by ordinary attention can differ. For query head gg in KV group hh, layer ll, and replay position tt, write

ahgl(t,i)=exp⁡((Qhgtl)⊤khil/d)∑j∈Ktexp⁡((Qhgtl)⊤khjl/d),mhgl(i)=max⁡tahgl(t,i).(7)\begin{aligned} a^l_{hg}(t,i) &= \frac{\exp((Q^l_{hgt})^\top k^l_{hi}/\sqrt d)} {\displaystyle\sum_{j\in\mathcal K_t} \exp((Q^l_{hgt})^\top k^l_{hj}/\sqrt d)},\\ m^l_{hg}(i)&=\max_t a^l_{hg}(t,i). \end{aligned} \tag{7}

The candidate retains the maximum over time for each query head. It changes the subsequent reduction across the GG query heads that share this KV entry, so the two reductions act on different axes. The parent score is Smax⁡=max⁡gmgS_{\max}=\max_g m_g and GM uses Smean=G−1∑gmgS_{\mathrm{mean}}=G^{-1}\sum_g m_g. The maximum favors any specialist head. The mean promotes entries useful to several heads, including head peaks that occur at different times.

Figure 4. Max and mean can reverse the order of two cache entries.

Figure 4. Original scoring example. Max keeps A under a one-entry budget, while mean keeps B. It illustrates the change in [1, App. C.1].

With G=4G=4 and peak scores (0.9,0.02,0.02,0.02)(0.9,0.02,0.02,0.02) for A, the max is 0.90.9 and the mean 0.240.24. B with (0.32,0.32,0.32,0.32)(0.32,0.32,0.32,0.32) has both statistics at 0.320.32. For the family Sλ=(1−λ)Smax⁡+λSmeanS_\lambda=(1-\lambda)S_{\max}+\lambda S_{\mathrm{mean}}, A has 0.9−0.66λ0.9-0.66\lambda and B has 0.320.32, so the ranking switches at λ=29/33≃0.879\lambda=29/33\simeq0.879. This is a reduction and separation example for a possible parameterization. The paper evaluates the endpoints. A percentile or weighted mean could retain some specialist behavior. Such a choice would need a protocol to estimate which heads carry useful signals without learning to the search split.

The order matters even with an average. At two replay times, suppose the two heads give scores (1,0)(1,0) and (0,1)(0,1) for one entry. The average of the two temporal maxima is 11, while the maximum over time of the head average is 1/21/2. Generally for all tt, each ag(t)a_g(t) is below its own maximum; averaging and then maximizing yields the inequality

max⁡t1G∑gag(t) ≤ 1G∑gmax⁡tag(t).(8)\max_t \frac1G\sum_g a_g(t) \ \le\ \frac1G\sum_g\max_t a_g(t). \tag{8}

The right side rewards evidence spread across the replay. This is helpful when heads take turns passing the same relevant information. It also favors an entry whose head peaks arise in unrelated replay segments. A rare key essential to one head’s retrieval step can be lost under mean pooling even if common tokens dominate the aggregate.

Algorithm 2. RestoreKV GM from prefill to the retained set

1. Prefill context and store all original keys and values.
2. For zero eviction fraction, return the original cache.
3. Replay each context chunk and retain the replay's query activations.
4. Score chunk keys with the restricted, causal softmax.
5. Take a temporal max per query head, then a mean per KV group.
6. Drop replay KV before the next chunk.
7. Run the restore pass with the adapter and append restore pairs.
8. Boost early sinks and rank original pairs jointly by score.
9. Translate the count into per-layer masks and apply them.

The eight learned restore embeddings are processed on the full cache using the restore LoRA adapter, then the adapter is switched off. Those new pairs consume some of the retention budget. If nn is the number of original positions, LL layers each have HH KV heads, and rr is the requested eviction fraction, Appendix C.1 ranks and masks

Rmask=⌊LHn min⁡{1,r+nE/n}⌋(9)R_{\mathrm{mask}}=\left\lfloor LHn\,\min\{1,r+n_E/n\}\right\rfloor \tag{9}

original pairs. Before saturation, LH(n+nE)−RmaskLH(n+n_E)-R_{\mathrm{mask}} equals the ideal LHn(1−r)LHn(1-r) plus a rounding remainder in [0,1)[0,1). For n=4,096n=4{,}096, nE=8n_E=8 and a 32x target, 128 equivalent positions fit per layer and head. Eight are allocated to restore, leaving 120 original positions on average. Near saturation the restore entries alone can exceed the nominal residual budget. Promoting sinks above the other entries only ensures their survival when capacity remains for them. The paper’s evaluated context lengths and ratios should be read together with these constraints. There is a separate r=0r=0 bypass, so an arbitrarily small positive eviction fraction still introduces the restore pass.

Logical capacity is meaningful even when the paper’s algorithm sketches the result as a mask. A system trying to turn that mask into fewer resident bytes would need to profile retained allocations, scoring workspace and restore state independently. The paper reports identical peak allocated memory for the two reducers in its profiling setting. Their matching peak is consistent with the change being a reduction over the same replay evidence.

6. Pruner-Zero LG. Relax the per-row quota

Let WijW_{ij} be a weight from output row ii and input column jj. Pruner-Zero and LG use elementwise gradient statistics of the dense model from ngn_g windows. With per-window gradients gw,ijg_{w,ij}, scaling αg=100\alpha_g=100, and a matrix-wide min-max normalization, the score in Appendix C.2 is

Gij=∑w=1ng(αggw,ij)2,G~ij=Gij−Gmin⁡Gmax⁡−Gmin⁡,Sij=∣Wij∣2G~ij.(10)\begin{aligned} G_{ij} &= \sqrt{\sum_{w=1}^{n_g}(\alpha_g g_{w,ij})^2},\\ \widetilde G_{ij}&=\frac{G_{ij}-G_{\min}}{G_{\max}-G_{\min}},\\ S_{ij}&=|W_{ij}|^2\widetilde G_{ij}. \end{aligned} \tag{10}

The square magnifies weight-magnitude differences. Summing squared gradients over windows avoids cancellation between signs. In exact arithmetic with a nonzero denominator, a common positive gradient multiplier cancels in the min-max ratio. Appendix C.2 rounds the accumulated norm to fp16 before score arithmetic, so the multiplier can affect underflow, overflow and ties. The displayed normalization also needs a convention for Gmax⁡=Gmin⁡G_{\max}=G_{\min}, a degenerate case for which the sketch supplies no denominator treatment.

The parent selects ⌊sC⌋\lfloor sC\rfloor of the lowest scores in each of RR rows. LG selects the ⌊sRC⌋\lfloor sRC\rfloor lowest across that specific projection. Despite the name, it does not move weights between attention and MLP projections or across layers. To isolate the mathematical gain of changing selection scope, first assume compatible exact quotas, sCsC integer. Removing a high-scored entry while retaining a lower-scored one cannot minimize the total removed score. Exchange the two. Each such swap weakly decreases the objective, yielding the required prefix of the global sort.

min⁡P⊆[R]×[C], ∣P∣=sRC∑(i,j)∈PSij ≤ min⁡∣P∩({i}×[C])∣=sC1≤i≤R∑(i,j)∈PSij.(11)\min_{\mathcal P\subseteq [R]\times[C],\ |\mathcal P|=sRC} \sum_{(i,j)\in\mathcal P} S_{ij} \ \le\ \min_{\substack{|\mathcal P\cap(\{i\}\times[C])|=sC\\1\le i\le R}} \sum_{(i,j)\in\mathcal P} S_{ij}. \tag{11}

This is a guarantee for the separable score under the stated equal budget. If rounding reduces the parent’s total removals, comparing summed scores without matching cardinality confounds the result. The difference ⌊sRC⌋−R⌊sC⌋\lfloor sRC\rfloor-R\lfloor sC\rfloor can reach R−1R-1. The theorem also leaves loss interactions unmodeled. With a twice differentiable loss L\mathcal L and deletion perturbation δ\delta near the original weights, the local expansion contains g⊤δ+12δ⊤Hδg^\top\delta+\frac12\delta^\top H\delta. The score in (10) uses neither the signed first-order effect of the entire deletion nor off-diagonal Hessian terms. Correlated deletions can therefore look inexpensive to the score and still cause large output error.

Figure 5. The same number of zeros can fall in different rows.

Figure 5. Original score matrices at 50% sparsity. The row-constrained selection removes score mass 19. Matrix-wide selection removes 10 and concentrates all four zeros in one row.

Algorithm 3. Pruner-Zero LG at a fixed sparsity

1. Compute dense-model gradients on the gradient windows.
2. Accumulate each element's scaled gradient norm.
3. For each decoder linear projection, normalize its gradient norms.
4. Multiply normalized norms by squared weight magnitudes.
5. For unstructured sparsity, globally select the lowest scores
   within this matrix, breaking ties in row-major order.
6. For N:M, instead select N scores per contiguous M-weight group.
7. Set the selected weights to zero and propagate calibration inputs
   through the pruned layer to the next layer.

The calibration forward pass in Appendix C.2 propagates inputs, though the score itself reads no activations. The dense-model gradient windows come from WikiText-2 train, and the test evidence is on the separate test split of that corpus. A harder transfer test would obtain gradients from another distribution and measure the difference in selection allocations, perplexity and downstream quality. Row floors or structured constraints are practical alternative policies if output channels must preserve capacity or the serving kernel only accelerates supported patterns. Each changes the set in (11). The example at Figure 5 removes an entire row, the exact behavior a minimum per-row density rule would prevent.

7. SVIP LK. Keep the target verifier fixed

SVIP stops its neural draft when its entropy test fires. Appendix C.3 computes entropy from untempered, untruncated drafter logits even when the actual proposal uses temperature and top-k. With constant cH=0.15c_H=0.15 and threshold h=0.3h=0.3, the condition cHH>h\sqrt{c_H H}>h is equivalent to H>h2/cH=0.6H>h^2/c_H=0.6 nats. In the sketch the step proposes the current neural token, checks budget and EOS, then considers lookup. A low-confidence neural proposal may still become the last accepted neural token. The lookup suffix can only contribute if the verifier reaches it.

Algorithm 4. Append a lookup proposal at the draft boundary

1. Start a normal SVIP draft, bounded by the remaining output budget.
2. After each proposal, stop at draft cap or EOS.
3. When the entropy test fires, find the earliest matching occurrence
   for the longest available recent suffix, up to three tokens.
4. Append the token IDs that followed that occurrence,
   limited by remaining draft space, lookup cap and the first EOS.
5. Verify the entire block in one target call.
6. Keep the accepted prefix, then use residual or bonus sampling
   with the same target rule; for greedy decoding, use target argmax.
7. Trim the caches to the committed prefix and stop at EOS or the cap.

The lookup can return partial words because it works with token IDs. Appendix C.3 searches the draft-extended prefix for a sufficiently early prior occurrence and available successor span, uses up to ten lookup tokens and sets that cap to zero to recover SVIP. If one knows the next proposal is deterministic given information available before its verification, the per-position draft law is a point mass at ℓ\ell. The acceptance probability for ℓ\ell is p(ℓ)p(\ell) and the rejection branch redistributes the remaining mass over the other tokens. Thus deterministic lookup is inside the algebra of (2)–(4) under correct conditioning. Pooled lookup behavior that depends on future verifier outcomes would need a new argument. Appendix H’s worked theorem concerns a fixed-length idealized loop and explicitly excludes arbitrary stopping rules and the measured cap branch.

The alternative is to stop drafting immediately, as SVIP does, or reserve extra draft capacity for more neural calls. Define C0C_0 as the original round cost, CextraC_{\mathrm{extra}} as the incremental lookup, verify and cache work, and Y0Y_0 and ΔY\Delta Y as expected baseline and extra emitted tokens. In a stationary illustration, compare per-token times. The lookup helps when

C0+CextraY0+ΔY<C0Y0⟺ΔYY0>CextraC0.(12)\frac{C_0+C_{\mathrm{extra}}}{Y_0+\Delta Y} <\frac{C_0}{Y_0} \quad\Longleftrightarrow\quad \frac{\Delta Y}{Y_0}>\frac{C_{\mathrm{extra}}}{C_0}. \tag{12}

This calculation assumes positive denominators and comparable populations of rounds. For Y0=2Y_0=2, C0=4C_0=4 ms and Cextra=0.4C_{\mathrm{extra}}=0.4 ms, more than 0.20.2 extra committed tokens per round are needed. A copied continuation of length ten contributes little when the neural prefix frequently fails or the copied suffix diverges on its first token. High batch sizes increase the cost of wasted verify positions and can change both sides. Batching may pay for more padding even when only some sequences use lookup.

8. Experiments and what the numbers establish

KV eviction quality

The primary RULER-4K table aggregates thirteen synthetic tasks and six compression factors, 2,4,8,16,32,642,4,8,16,32,64, across Llama-3.1-8B-Instruct and Qwen3-8B. The full 6,500 questions contain the 200 questions used in selection (Appendix A.1). Table 5 reports a 12-cell mean of 75.74 for RestoreKV GM, 74.15 for KVGrad, and 73.01 for RestoreKV. Those are improvements of 1.59 points against the strongest reported mean comparator and 2.73 against the parent. Averaging the cells weights each model and ratio equally. A service running mostly at 4x would care far more about matched performance in that one column.

Figure 6. Mean aggregation gives its largest gains in the higher compression cells.

Figure 6. Redrawn from [1, App. B, Tables 5–6]. On Llama at 32x the change moves 52.8 to 64.8. At 64x KVGrad retains a small lead over GM on that model.

From 2x through 8x, the variants cluster near the parent, with differences in Table 6 of at most 0.1 points in the displayed cells. At 32x, Llama gains 12.0 points and Qwen gains 10.5 points over their respective parent scores. Qwen at 32x is still 0.9 below KVGrad. At 64x, Table 5 gives Llama 25.2 for GM and 26.0 for KVGrad. The appendix also reports some stronger cells from baselines evaluated on a 300-question subset. Those are further reason to treat the claim as a high average in a particular comparison and to inspect the operating point before using a rank.

RULER at 8K and 16K on Llama and LongBench test a shift from the selection protocol. The paper reports gains of +3.1 and +3.3 points on the longer RULER tests and +1.5 on LongBench (Table 3). The displayed LongBench means 37.8 and 39.2 differ by 1.4 after rounding. Averaging the six rounded cells in Table 7 gives 37.8 and about 39.25, consistent with a reported gain around 1.5 using unrounded scores. LongBench also averages over different task types. A mean gain leaves open whether specialized retrieval tasks lose when evidence from one query head is diluted.

Prefill cost and the break-even generation length

Paper Table 8 profiles TTFT for fixed prompts at batch size one on an H100. At 64K tokens, GM and RestoreKV both report 33.0 s, compared with 5.94 s without eviction and 814.3 s for KVGrad. At 4K the reported means are 2.52 s and 1.81 s for GM and parent, with substantial dispersion. The paper reports a pooled TTFT ratio of 1.03 and p=0.69p=0.69 versus RestoreKV. This is a failure to resolve a difference under that timing comparison. A service seeking equivalence within a predetermined tolerance would need a confidence interval and an equivalence margin.

Figure 7. Replay and scoring can dominate TTFT.

Figure 7. Redrawn from [1, Table 8], log scale, means across the reported passes. GM has the same 64K mean as its parent and a much larger first-token cost than no eviction.

Comparing against a no-eviction service that fits the same context requires a different calculation. If compression adds Δt\Delta t to TTFT and saves δ\delta in mean time for each subsequent token, a constant-cost approximation breaks even after m>Δt/δm>\Delta t/\delta subsequent tokens. Using 33.0−5.94=27.0633.0-5.94=27.06 s from Table 8 and a hypothetical 20 ms/token saving gives a threshold above 1,353 subsequent tokens. That saving has not been measured here. With repeated questions on a reused, already-compressed cache the amortization can improve. Under heavy memory pressure, the full-cache baseline may be infeasible, in which case the target is a constrained comparison at matched capacity.

Pruning quality, use of calibration data, and serving value

Table 9 reports WikiText-2 test perplexity on four LLaMA checkpoints at 50% unstructured sparsity. On LLaMA-7B the dense model is 5.68, parent 6.89 and LG 6.78. The paper’s normalized ratios are about 1.213 and 1.195. The absolute improvement is 0.11 perplexity, while the reduction in excess over dense using the rounded numbers is 0.11/(6.89−5.68)=9.1%0.11/(6.89-5.68)=9.1\%. These descriptions use different denominators. In log-loss units, if perplexity is the exponential of mean negative log likelihood, changing 6.89 to 6.78 changes the mean by ln⁡(6.78/6.89)≃−0.0161\ln(6.78/6.89)\simeq-0.0161 nats per token.

Figure 8. Pruner-Zero LG's WikiText-2 gap to the parent grows with sparsity.

Figure 8. Redrawn from [1, Tables 9–10]. The figure includes the dense reference and directly comparable LLaMA-7B runs at 10–50% unstructured sparsity.

LG has the lowest perplexity among the tested pruning entries across the four checkpoints at 50% and ties its parent at the displayed precision at 10% on 7B. The zero-shot comparison tests a different quantity. Appendix Table 11 gives mean accuracy 55.3 for LG and 55.0 for its parent, while RIA has 56.1 and the dense model 60.4. The seven task means hide wins and losses, so 0.3 mean points are weak evidence of broad quality improvement. The 48 s versus 53 s processing time is pruning time on LLaMA-7B. Unstructured zeros yield an inference speedup only if the weight layout and kernels exploit that pattern, and the preprocessing cost includes a dense gradient pass.

Speculative decoding. Different denominators for speed

Figure 7G reports SVIP LK at 1.46x relative to autoregressive decoding at T=0T=0, versus 1.37x for SVIP. If both use a common autoregressive reference, the implied latency reduction is 1−1.37/1.46≃6.2%1-1.37/1.46\simeq6.2\%. At T=1T=1, 1.31x versus 1.30x corresponds to about 0.76%0.76\%. These are recomputations from rounded ratios. They answer different questions from the pooled 2.3% time-per-token reduction over batch sizes through 16 in Figure 7I. At batch size 32 that profile reports LK 11.7% slower than its parent with a 90% interval of 10.6–12.7%. An average accepted-token count leaves out the additional verifier and cache work needed to realize it.

ChangeReported comparisonBoundary of comparison
RestoreKV GM75.74 vs 74.15 and 73.01RULER mean of 12 model-ratio cells
Pruner-Zero LG6.78 vs 6.89LLaMA-7B WikiText-2 PPL, 50% sparsity
SVIP LK1.46x vs 1.37xGreedy, batch 1, relative to autoregressive
AutoAssumption79.3 vs 79.7 OpenEvolveRunning best after ten evaluated designs

Table values are from [1, Fig. 7 and Tables 5, 9, 12]. An operational reading of SVIP LK would instrument the probability of reaching the lookup region, the empirical acceptance tail within it, time spent matching n-grams, and added target query positions. Logging those jointly by batch size and prompt class would tell an operator when the threshold in (12) is crossed. The paper provides evidence of the sign change in aggregate. It does not report an online router that exploits the threshold.

Harness comparison

OpenEvolve and AIDE start from RestoreKV under the reported common evaluator, model and parent. Appendix E describes a budget of up to ten GPU-scored algorithms or 25 model calls, with a CPU precheck and 12 GPU evaluation cells for each scored design. Fable starting from scratch gives a useful weaker initialization reference. It has less prior design information than the seeded methods. After two designs, the running means are 70.7 AutoAssumption, 76.1 OpenEvolve and 75.4 AIDE. They end at 79.3, 79.7 and 78.5. AutoAssumption improves 8.6 points from its second evaluation, while OpenEvolve and AIDE improve 3.6 and 3.1.

Figure 9. A late gain closes much of the early search gap.

Figure 9. Redrawn from [1, Table 12]. The count is GPU-evaluated designs; the curve shows a mean running best across three repeats. Shading for the two highlighted series is the observed min-to-max range.

The search comparison reports a narrower spread across three repeats for the assumption search. Its final range is 78.8–80.1, compared with 78.8–81.3 for OpenEvolve and 73.8–80.9 for AIDE. Appendix G.3 says that AutoAssumption repeats largely replay the same moves and explicitly cautions that this can understate variation across independent searches. The score gap at ten trials is small, and the observed ranges overlap. It supports competitiveness under this limited budget. Extrapolating the late slope beyond ten evaluations assumes the supply of productive assumption changes continues.

What the mutation study measures

Appendix I.2 constructs 14 single-bug mutations across five eviction parents and five controls, using a fixed parent specification. The paper reports that every mutant failed its proof check and every control passed. Across 56 mutant evaluations, 26 match or exceed the parent’s score on 200 RULER-4K questions. The proportion is 26/56≃46.4%26/56\simeq46.4\% of evaluations, with more than one evaluation per mutant across settings. Some mutants improve accuracy by consuming extra memory. A pure quality evaluator can prefer that bug. Others change a small number of entries and are hard to distinguish from the noise of a small task sample. The result is most actionable when the original contract explicitly encodes the budget, initialization and mandatory sink behavior. A separate hidden test that checks the same invariants would strengthen a code-level competitor and help measure the incremental value of proof.

9. Limitations and conditions for interpreting the experiments

The paper names human specification review, fields with empirical success criteria, and noncanonical assumption decompositions as limitations [1, §6]. Each is consequential for the result. The contract starts from algorithms that run on the available benchmark. Some published designs will need a broader interface or a different evaluator to be represented fairly. The underlying automated discovery cost includes screening prior work, moving designs into a common protocol and formalizing each parent. Repeated use can amortize part of that investment. The one-parent search comparison leaves its magnitude unmeasured. For a single isolated optimization I would count that cost before crediting the same model-call budget.

Appendix G also describes different uncertainty units. Eviction primarily resamples questions within tasks, reported over 10,000 bootstrap draws, and some cross-cell summaries use independent-cell aggregation. Reusing the same questions can correlate cell effects. The pruning bootstrap samples WikiText-2 windows within one nominal calibration run, so it leaves out different calibration samples, gradient draws and model checkpoints. Spec-Bench’s three repeated runs at a fixed seed measure timing variation, while the batch-profile interval comes from paired question resampling. A narrow interval for one source of randomness leaves uncertainty over the others.

There is a broader distinction between measuring a descendant and attributing improvement to the harness. Section 4 chooses the best candidate per parent after several trials. Appendix Table 13 shows that 16 of RestoreKV’s 36 variants beat its measured search score, while Pruner-Zero has two improvements among ten variants. A best-of-nn statistic is likely to improve even when many single candidates do not. If noisy candidate scores share mean μ\mu and have independent symmetric errors, taking a maximum gives positive expected optimism for n>1n>1 whenever those errors vary. The distributions are neither independent nor identical here, but the selection effect still motivates a fresh score for frozen winners. The full RULER cohort includes the search subset. The longer RULER settings and LongBench shifts give complementary evidence.

10. Critical analysis

Make the hard contract measurable at the service boundary

The most persuasive demonstration in Appendix I pairs every candidate with a fixed invariant. The central question for real serving is whether the invariant is the one the owner cares about. A formal bound on live KV pairs with a mask describes the mathematical cache, while an allocator consumes bytes in pages and can temporarily allocate scoring state. I would state two separate constraints before a run. The first is a maximum logical retained count, with sinks and restore pairs charged to it. The second is a measured peak bytes and TTFT budget in a named serving regime. Apply both to baseline and child and log rejected variants. A memory-overrun mutant then gets a clear reason for exclusion whether or not Lean was used. The remaining value of the proof is that a universal property covers input classes the finite evaluator may never generate.

A counterexample clarifies what belongs in the specification. Consider two proof-equivalent masks that retain exactly 128 entries on average. One packs the surviving entries contiguously. The other retains one entry from each of 128 different 16-entry pages. With a page-granular allocator and no compaction, the latter can hold 128×16128\times16 slots for the 128 survivors. The proof of logical cardinality applies to both. The observed memory can differ by up to 16x in this example. A budget guarantee on physical pages must include the mapping, and a practical compaction step introduces migration cost. This matters particularly at the aggressive ratios where the paper sees the largest quality gain.

Factor the search comparison before extending it to other domains

The reported comparison changes the proposal representation, available prior information and search strategy together. I would first build a two-by-two test of one-premise moves and proof gating. Let all arms see the same parent artifacts and assumption catalog, provide the same mandatory small-model contract tests, and fix a budget that includes failed proof repairs and proposals that never reach the GPU. Then vary whether the agent must express one assumption change and whether it must deliver a proof. Random draws from the same hand-written assumption alternatives are a useful baseline. The contrast between them and model-guided selection isolates whether the model is needed for ranking edits. Adding a separate beam experiment tests whether a localized mutation benefit depends on greedy acceptance.

The current paper motivates that experiment but cannot substitute for it. Its code-level baselines make an early jump, suggesting the space they can traverse has high-return multi-edit moves. If a problem has interactions between grouping and budgeting, any single edit may be counterproductive until the second follows. Measure the frequency of such interactions by choosing pairs of already screened amendments, comparing each edit alone and then jointly. Capture the score and practical cost at each point. On a common score scale the interaction contrast is

J=f(a,b)−f(a,0)−f(0,b)+f(0,0).(13)J=f(a,b)-f(a,0)-f(0,b)+f(0,0). \tag{13}

This follows by subtracting the change caused by bb in the untouched parent from the change caused by bb after aa is in place. Positive JJ means positive interaction on that scale. It does not ensure that either edit is individually attractive. For a score rising from 70 at the parent to 69 and 68 for singles and 75 jointly, J=8J=8 points and strict hill climbing rejects both first moves. A small factorial test on a locked validation set could quantify how often the one-premise policy would miss a pair that matters.

Test the stability of the assumption representation

Two formalizers can split the same design differently. One defines replay score as a single expression. Another writes separate assumptions about visible keys, reduction axes and budget. Their Lean proofs can conclude the same contract, while the second induces many more one-step neighbors. To test stability I would ask independent formalizers to start from the same parent and contract, align their premise classes by behavioral probes, then report downstream-set size and overlap of generated variants. If the same resource budget repeatedly produces different quality winners across representations, the catalog is partly a prior supplied by the formalizer. Interpreting it that way allows comparisons to stronger manually designed parameter spaces.

A concise stress test would pit specialist retrieval against diffuse evidence for RestoreKV GM. Use long contexts with two matched classes. In one, the answer depends on an entry scored highly by just one query head. In the other, several heads attend to the relevant entry. Pre-register the subset choice and report the mask’s retention probability before scoring text outputs. Continuous mixtures of max and mean, with the parent-recovery endpoint held fixed, make it possible to test whether the chosen aggregate tracks the cause of failure. The paper provides a plausible ranking mechanism. It does not identify which heads were responsible for the actual RULER wins.

Require a distinct locked estimate after selection

The search uses a small question cohort. Comparing best-of-run curves under that cohort measures progress on the evaluator, and multiple graph decompositions encourage trying many locally valid variants. I would retain the 200-question set for proposals and reserve a disjoint question set for deciding which design to advance. A third locked set should be used once, after choosing a finalist. Report the frontier over accuracy, costs and memory on that locked set. When two methods tie under mild compression, show high-pressure cases at equal bytes. For SVIP LK, separate pure text with few repeated phrases from repetition-heavy workloads and include a batch-adaptive no-lookup policy. These are proposed tests, not outcomes.

11. Reading the experiments independently

Appendices A and C contain enough context to reconstruct the measurement questions even before any systems run. For RULER, collect the 12 equally weighted cells, preserve the question partition, and report both the average and the factor-specific profile. For pruning, record gradient-text and held-out text splits, the dense reference and the exact mask cardinality per projection. For speculative decoding, separate greedy sequence agreement, target-law exactness under stated assumptions, accepted tokens and wall-clock time, including GPU synchronization. Appendix G specifies which quantity the reported intervals estimate. A useful report includes both the initial screening setup and the larger or shifted evaluation for each result.

In this review I re-derived the overlap and residual identities, checked the grouping and cardinality examples, and recomputed ratios from the paper’s tables. Those hand calculations and the redrawn figures use the cited manuscript. They do not represent another run of a model, a GPU benchmark or a Lean proof.

12. Conclusion

AutoAssumption gives a practical representation for comparing the design choices made by ML systems algorithms. A changed premise identifies which definitions and theorems require attention and produces a concrete parent-child comparison on a common benchmark. The locality is especially clear for query-head reduction and projection-wide pruning. The exact-sampling example makes the boundary visible at the level of a proof: distributional correctness follows from the proposal and verification law, while speed depends on survival, batch shape and resource costs. At the reported search budget, gains from this representation accumulate late. Measuring independent runs across more contracts and accounting for preparation costs would establish when that investment pays off.

References

  1. Sadalski, I., Guo, M., Jones, B., and Matusik, W. (2026). AutoAssumption: Searching over Assumptions Discovers ML-Systems Algorithms. Full text and Appendices A–I. Version 1, 2026-11-10.
  2. Leviathan, Y., Kalman, M., and Matias, Y. (2023). Fast Inference from Transformers via Speculative Decoding. Source of the exact acceptance and residual construction discussed in [1, Appendix H].