Introduction
A decoder trained with an early-exit recipe can emit a next-token prediction from any prefix of its layers, through the final norm and the shared output head. Self-speculative decoding turns that into a draft: a prefix of layers proposes up to tokens one at a time, then the full -layer model verifies all of them in one parallel pass, keeps the longest prefix that matches its own greedy choice, and adds one token of its own. The output is exactly the full model's greedy decoding, so only the cost changes [1]. When the verifier reuses the prefix layers already computed for the drafts, a round that drafts tokens and accepts of them yields tokens for about layer evaluations, and the first metric of the task, eTPL, is the ratio of the totals. Plain decoding has eTPL . The second metric, measured speedup, is wall-clock throughput relative to plain decoding, so it also pays for everything the controller itself does.
The question is how to choose , and the stopping moment, and it is hard for four reasons.
The right exit layer is not a constant. A fixed exit and draft length [1] need not suit another model depth or another kind of text. The literature therefore adapts the draft: by drafting with a part of the model itself [2], by on-the-fly self-speculation [3], by a context-aware dynamic exit layer [4], by bounded self-speculation with layer-wise confidence calibration [5], or by adaptive layer selection posed as a knapsack problem [6].
Shallow-layer confidence is not a probability of agreement. In the run's own diagnostics on one early-exit model (the agent's development measurements), the full-vocabulary softmax probability of the top token at a shallow layer was a poor guide to whether it would match the full model: where it lay between 0.40 and 0.60, the greedy match rate was 96.4%, and even below 0.40 it was 79.1%. The same notes record that accuracy at a given layer on prompt positions was far below its accuracy on generated positions (0.242 against 0.886 at one shallow layer), and that agreement had a sharp cliff between the very first layers and the next few. A controller that trusts raw confidence, or that seeds its statistics from the prompt, picks the wrong layer.
Stopping is a rate decision, not a threshold decision. Drafting one more token costs layers and pays off only if every earlier draft token was accepted and this one is too. Whether that is worth it depends on the rate the round is already achieving.
The controller runs in wall-clock time. A policy that wins on layer counts can lose on speed if its own computation, its per-token feedback round trips or its verification tree cost more than the layers they save.
Method
Our controller, CRD (calibrated replay drafting), replaces the starter's fixed exit and draft length (one fixed exit layer and one fixed number of speculations, with no state) with a stateful policy in a single file. The idea is one observation used three times: the verifier already returns, for every committed position, the top- logits of every layer, and a prefix draft that has matched the accepted path so far is exactly that shadow output. So the agreement of every layer with the full model is observed for free, and any prefix-drafting policy can be replayed on recent committed text without running the model again.
A margin score and calibrated per-layer agreement
For a layer with top- logits and log-partition , let be the full-vocabulary probability of the top token and its probability renormalised over the top- list. Our confidence score is a geometric blend
so a diffuse background mass lowers only a little while a concentrated runner-up lowers it a lot. The same function returns the renormalised probabilities of the alternatives , which the tree uses later.
def _sc_sib(tv, lse, beta=0.35):
tv = np.nan_to_num(np.asarray(tv, dtype=F32), nan=0.0, posinf=80.0, neginf=-80.0)
lse = np.nan_to_num(np.asarray(lse, dtype=F32), nan=0.0, posinf=80.0, neginf=-80.0)
z0 = tv[..., 0]
lpv = np.clip(z0 - lse, -30.0, 0.0)
if tv.shape[-1] >= 2:
mx = np.max(tv, axis=-1, keepdims=True)
lsek = mx[..., 0] + np.log(np.maximum(1e-12, np.sum(np.exp(np.clip(tv - mx, -30.0, 0.0)), axis=-1)))
s = np.clip(np.exp(beta * lpv + (1.0 - beta) * np.clip(z0 - lsek, -30.0, 0.0)), 1e-4, 0.9999)
tvs = tv[..., 1:]
ws = np.exp(np.clip(tvs - np.max(tvs, axis=-1, keepdims=True), -30.0, 0.0))
ps = ws / np.maximum(1e-12, np.sum(ws, axis=-1, keepdims=True))
else:
s = np.clip(np.exp(lpv), 1e-4, 0.9999)
ps = np.zeros(tv.shape[:-1] + (0,), dtype=F32)
return s, psThe score is not used as a probability. Each layer keeps hit and total counts of "this layer's top token equals the full model's greedy token" in eight score bins, from the generated positions the verifier commits, plus a small prompt-prefill term, plus a fast-decaying local rate. From the counts we form a layer base rate , where and are the layer's total hits and observations and is a depth prior, and a prior hit rate in score bin with centre of worth 2.5 pseudo-observations. The smoothed rates are then made non-decreasing in the score by pool-adjacent-violators isotonic regression. Once the layer has some local data, they are also shifted in logit space by its recent local rate (smoothed toward with 1.5 pseudo-observations), with the shift clipped to and weighted :
The result is interpolated to a 64-point lookup table so that evaluating in the hot loop is a table read. Two choices in the update fit the diagnostics above. The prompt-prefill counts are weighted by the square of the full model's own confidence score at each position (floor , and the last position, which predicts the first generated token, weighted a further times), scaled so that their total weight is for a prompt of scored positions, replaced at every new prompt, and decayed by at every later update of positions. The generation counts, by contrast, carry over from prompt to prompt, and are decayed (by ) only once more than 320 positions have been seen in the run.
def _rcal(st):
L = st["L"]
if L <= 1: return
M = L - 1
gh, gt, ph, pt, lh, lt = st["gh"], st["gt"], st["ph"], st["pt"], st["lh"], st["lt"]
qt = np.empty((M, _NB), dtype=F32)
for l in range(M):
th, tt = float(gh[l].sum() + ph[l].sum()), float(gt[l].sum() + pt[l].sum())
dp = 0.15 + 0.70 * (((l + 1) / float(L)) ** 1.6)
bs = (th + 1.2 * dp) / (tt + 1.2)
pr = np.clip(bs * (0.42 + 0.76 * _CENTERS), 0.01, 0.992)
w = gt[l] + pt[l] + 2.5
iso = _pava((gh[l] + ph[l] + 2.5 * pr) / w, w)
if lt[l] >= 1.5 and tt >= 4.0:
lr = float((lh[l] + 1.5 * bs) / (lt[l] + 1.5))
sh = float(np.clip(_lgt(lr) - _lgt(bs), -0.85, 0.85))
iso = np.clip(1.0 / (1.0 + np.exp(-np.clip(_lgt(iso) + 0.60 * sh, -18.0, 18.0))), 0.005, 0.998).astype(F32)
qt[l] = iso
st["qt"] = qt
st["qt64"] = (qt[:, _I0] * _W0[None, :] + qt[:, _I1] * _W1[None, :]).astype(F32)
st["sr"] = np.clip((st["sh"] + 1.0) / (st["sm"] + 2.8), 0.05, 0.92).astype(F32)
st["cr"] = float(np.clip((st["ch"] + 1.1) / (st["ct"] + 5.0), 0.05, 0.55))Choosing the mode and the exit layer by replay
The controller has four drafting modes, all built from prefix exits of the model's own layers: a
fixed-exit chain whose draft length adapts (fchain); a chain that decides after each token whether
to continue (ctree, which also verifies a tree, see below); a stopping chain that decides at the exit
layer whether the next token is drafted at all (sstep); and a multi-exit cascade of up to three exit layers with an
on-device confidence test (mchain). The final controller never uses sublayer masks and never calls
the online probe operation.
For each candidate exit layer and each mode, the controller replays the policy on the last at most 96 committed positions. Each replayed position carries the calibrated bin, whether the layer matched, and the run length of consecutive matches starting there. For the chain mode with draft length , a round starting at position drafts tokens and accepts , so
and the best is the arg-max of this replayed ratio over the candidate layers that pass a minimum replayed match rate (before 12 positions have been replayed, an analytic estimate from the calibrated rates is used instead). The other modes are replayed the same way, using the calibrated survival probability for the stopping modes and, for the cascade, a bitmask recording at which of eight temperatures the layer's tempered top probability would have cleared .
Within a mode we maximise eTPL alone. Only across modes do we convert layers into a wall-clock proxy:
where the overhead, in layer equivalents, is a hand-set per-round and per-draft-step cost for each mode (for the chain mode per round and per drafted token, where is a factor from the vocabulary size inferred from the token ids seen). This keeps a wall-clock penalty from distorting which layer a mode picks, which the agent's notes record as a failure of an earlier version.
def _mscore(mode, et, nt, nr, nd_tot, L, vmax=65536, hel=False, el_s=0.0):
if et <= 0.0 or nt <= 0.0: return 0.0
if hel and el_s > 1e-6:
return float(np.sqrt(et * ((nt / el_s) / max(1.0, float(L)))))
slay = nt / max(1e-9, et)
vf = float(np.clip(float(vmax) / 65536.0, 0.60, 2.00))
if mode == "fchain":
ov = nr * 0.70 + nd_tot * (0.16 * vf)
elif mode == "mchain":
ov = nr * 1.05 + nd_tot * (0.42 * vf)
elif mode == "sstep":
ov = nr * 2.40 + nd_tot * (0.72 * vf)
else:
ov = nr * (4.2 + (2.4 if L <= 20 else 0.6)) + nd_tot * (0.68 * vf)
return float(np.sqrt(et * (nt / max(1e-9, slay + ov))))Simulation, snapshots and the fall-back to plain decoding
Replay is exact only along the accepted path, so it is not the last word. In calibrate the controller
uses its limited number of simulate calls as follows. It first simulates a default mode (the tree
chain if trees are allowed), replays all four modes on the statistics that simulation produced, and
keeps a snapshot of the calibration state. If either the simulated eTPL exceeds times plain
decoding's, or some replayed mode exceeds times, it simulates up to four modes in order of
their replayed score (reusing the first simulation for the default mode when fewer than five
simulations are allowed). Before each of these simulations the snapshot is restored, so that the
statistics of a mode that was merely being tried do not contaminate the calibration, and the snapshot
is restored again at the end. When the interface offers a timing profile and the simulation reports its elapsed time, the simulated score is
instead of the proxy above; with the profile, if the chosen mode is the tree chain it is also
simulated with two alternative tree settings (a budget, a sibling threshold and an overhead). The mode with the best simulated score is chosen. If the simulated eTPL of that mode is below
times plain decoding's, drafting is switched off for the run and the controller decodes one token per
round, which costs plain decoding's layer count per token.
if et1 > ar_et * 1.022 or mcf > ar_et * 1.065:
cands_m = [m for m in ("ctree", "mchain", "fchain", "sstep") if m in cf]
cands_m.sort(key=lambda m: cf[m][1], reverse=True)
sc_l = []
if msims < 5 and m0 in cf:
sc_l.append((esc(m0, r1, hel)[0], et1, m0))
cands_m = [m for m in cands_m if m != m0]
st["and"] = False
for mn in cands_m[:4]:
if not ok_s(): break
lsnap(snp)
st["fm"] = mn
st["rho"] = max(ar_et, float(cf[mn][0]))
_sel_plan(st, force=True)
sc, et = esc(mn, rsim(), hel)
sc_l.append((sc, et, mn))
st["and"] = True
lsnap(snp)
if sc_l:
sc_l.sort(key=lambda x: (x[0], x[1]), reverse=True)
bsc, bet, bm = sc_l[0]
st["fm"] = "none" if bet < ar_et * 1.022 else bm
st["rho"] = max(ar_et, float(cf.get(bm, (bet,))[0]))Stopping by the achieved rate
After drafting tokens at exit , with survival , the marginal value of one more draft token is its chance of being accepted times a bounded continuation factor , and its marginal cost is its layers plus a small overhead . We continue exactly when the marginal value per layer exceeds a slightly discounted estimate of the tokens per layer the run is already achieving,
which has the form of a renewal-reward stopping rule for maximising tokens per layer over rounds: stop where the marginal rate falls to the average rate. (The stopping chain that decides at the exit layer uses and the same comparison without the tree term; in the tree chain the left side also includes the chance that a sibling rescues a miss.) The factor is clipped to and is larger when the layer's high-confidence bin is reliable. The rate estimate is initialised to , updated after each verification by , and blended with the replayed eTPL whenever the plan is re-selected, . A drafted token that is in the set of end-of-sequence markers learned during simulation (the last token of a simulated prompt that ended before its length limit, at most four) ends the draft.
def step(feat, state):
if state["is"]: state["snd"] += 1.0
tt = int(feat["top_id"][0, 0])
s0 = _sc1(feat["top_val"], feat["lse"])
li = int(np.clip(int(state["ce"]) - 1, 0, max(0, state["L"] - 2)))
q0 = float(state["qt64"][li, int(np.clip(s0 * 63.99, 0, 63))])
state["rly"].append(li)
if tt in state["eos"]:
state["rsurv"] = 0.0
return False
sp = state["rsurv"]
sn = sp * q0
state["rsurv"] = sn
ut = bool(state["mt"] >= 2)
vn = sn * _bg(state, li, ut) + (sp * (1.0 - q0) * float(state["sr"][li]) * state["cr"] * 0.5 if ut else 0.0)
return bool(vn > max(1.0 / float(state["L"]), 0.92 * state["rho"]) * (li + 1 + state["sov"]))Verification trees from calibrated siblings
When the tree mode is chosen, the draft's own top-1 tokens form a spine, and a budget of nodes by default (at most the allowed tree size) is spent on siblings. At spine depth the controller computes the chance that the spine reached , the chance that it then missed, the layer's measured rate at which the target nevertheless lies among the other top- tokens, and the renormalised probability of the -th alternative, and gives that alternative the weight
A sibling is kept if . Under each of the first three alternatives whose weight is at least times that threshold it can also attach children at the next depth (the draft's top three tokens there), with weight , where is the child's own probability and is an online estimate (clipped to ) of how often the continuation after a sibling is accepted, and one further grandchild under the top-1 child. The spine has priority, and the highest-weight remaining nodes are kept up to the budget. The motivation recorded in the agent's notes was a measurement that, after a miss at the top token where the target was the second or third candidate, the target's next token still matched the draft's next top-1 token 25.9% of the time, and another that full-model verification time was almost flat in the number of verified nodes (within about 3% from 1 to 256).
cr = float(state["cr"])
for d in range(n):
pu, usd = (-1 if d == 0 else spu[d - 1]), {int(ti[d, 0])}
rem = float(rch[d] * (1.0 - qv[d]) * srv[d])
if rem < tau or k < 2: continue
for r in range(1, k):
tr = int(ti[d, r])
if tr in usd: continue
ws = rem * float(ps[d, r - 1])
if ws < tau: continue
usd.add(tr); su = uid
nds.append((ws, d + 1, su, pu, tr, 1)); uid += 1
if d + 1 < n and r <= 3 and ws >= 1.8 * tau:
uc = set()
for c in range(min(3, k)):
tc = int(ti[d + 1, c])
if tc in uc: continue
qc = qv[d + 1] if c == 0 else ((1.0 - qv[d + 1]) * srv[d + 1] * float(ps[d + 1, c - 1]))
wc = ws * cr * float(qc) * 0.99
if tau <= wc < ws:
uc.add(tc); cu = uid
nds.append((wc, d + 2, cu, su, tc, 2)); uid += 1
if c == 0 and d + 2 < n:
w3 = wc * cr * float(qv[d + 2]) * 0.99
if tau <= w3 < wc:
nds.append((w3, d + 3, uid, cu, int(ti[d + 2, 0]), 2)); uid += 1
if len(nds) > bud:
nds.sort(key=lambda x: (x[0], -x[1], -x[2]), reverse=True)
nds = nds[:bud]
nds.sort(key=lambda x: (x[1], x[2]))Online adaptation
After each verification the controller ingests the committed positions' shadow outputs, updates , and re-selects its mode and exit from the replay buffer: after every round while at most 48 positions have been ingested in the run, at the second round of each prompt, then every 14 rounds, and at once when two consecutive rounds have accepted no draft token. In the chain mode the draft length is also nudged up to four above, or down to three below, its calibrated value according to whether recent rounds accepted everything or nothing, and after two rounds with no accepted token it falls to one. The file does not read a setting label. Its dependence on model size is through ratios of the layer count (for example the initial exit near and the spacing of cascade exits) and two branches on absolute layer counts: one in the tree chain's overhead constant at 20 layers, and one that subsamples the candidate exit layers when there are more than 36 of them.
Results
| Method | ① | ② | ③ | ④ | ||||
|---|---|---|---|---|---|---|---|---|
| Tokens per layer loaded ↑ | Measured speed-up ↑ | Tokens per layer loaded ↑ | Measured speed-up ↑ | Tokens per layer loaded ↑ | Measured speed-up ↑ | Tokens per layer loaded ↑ | Measured speed-up ↑ | |
| Gemini 4 Carbon | 0.171 | 1.569 | 0.126 | 1.319 | 0.116 | 2.202 | 0.101 | 2.521 |
| LayerSkip | 0.143 | 1.685 | 0.111 | 1.413 | 0.089 | 2.145 | 0.077 | 1.939 |
| Liu et al. | 0.158 | 1.914 | 0.118 | 1.567 | 0.087 | 2.183 | 0.080 | 2.097 |
| Draft & Verify | 0.139 | 1.621 | 0.092 | 1.231 | 0.088 | 2.176 | 0.051 | 1.375 |
| DEL | 0.170 | 1.916 | 0.129 | 1.711 | 0.104 | 2.485 | 0.091 | 2.247 |
| SWIFT | 0.097 | 1.252 | 0.085 | 1.275 | 0.048 | 1.360 | 0.048 | 1.408 |
| Random exit layer | 0.086 | 1.181 | 0.075 | 1.094 | 0.047 | 1.347 | 0.042 | 1.264 |
| SpecBound | 0.131 | 1.217 | 0.097 | 1.086 | 0.109 | 1.962 | 0.085 | 1.711 |
- ① LayerSkip Llama-3.2-1B · CNN/DailyMail 1-shot
- ② LayerSkip Llama-3.2-1B · XSUM 0-shot
- ③ LayerSkip Llama-3-8B · CNN/DailyMail 1-shot
- ④ LayerSkip Llama-3-8B · XSUM 0-shot
eTPL. CRD has the highest eTPL of any published baseline on three settings. On 1B/CNNDM it reaches 0.171 against 0.170 for the strongest baseline there, DEL dynamic exit layer [4]; that is a very small margin and we would not call it a win. On 8B/CNNDM it reaches 0.116 against 0.109 (SpecBound [5]), and on 8B/XSum 0.101 against 0.091 (DEL dynamic exit layer [4]). On 1B/XSum it reaches 0.126 and is behind DEL dynamic exit layer [4], which has 0.129; it is ahead of every other baseline there.
Measured speedup. Here the picture is weaker. On 8B/XSum CRD reaches 2.521 against 2.247 (DEL dynamic exit layer [4]), the best of the table. On 1B/CNNDM, 1B/XSum and 8B/CNNDM it is behind the strongest baseline: 1.569 against 1.916 (DEL dynamic exit layer [4]) on 1B/CNNDM, 1.319 against 1.711 (DEL dynamic exit layer [4]) on 1B/XSum, and 2.202 against 2.485 (DEL dynamic exit layer [4]) on 8B/CNNDM. On 1B/CNNDM and 1B/XSum it is also below the fixed-exit baseline, whose speedups are 1.685 and 1.413, although its eTPL is higher than that baseline's (0.143 and 0.111). A policy that saves layers but loses wall-clock time is what a per-round controller cost, a per-token feedback round trip or a verification tree would produce, and the agent's notes diagnosed exactly that for earlier versions of its controller; we have no measurement that says which of these costs, if any, is responsible for the gap on the submitted file.
How we got here
- Reading and a local harness. We began by reading the starter, the interface checker and the published baselines, and by downloading public early-exit checkpoints. Before designing anything we built a local harness that drives the real interface checker over its pipes, runs a full decoder, checks the output against plain greedy decoding (a mismatch is rejected only if the full model's top-logit gap at that position exceeds a small tolerance, which the run raised from 0.05 to 0.35), and measures both metrics, so that every variant could be timed against the baselines.
- Diagnostics before design. The first measurements on the baselines and on layer-by-layer agreement gave the findings quoted in the Introduction (prompt positions mislead the layer choice; agreement has a sharp cliff in depth; full-vocabulary softmax under-states shallow-layer reliability) and two more: after a miss at the top token where the target was the second or third candidate, the target's next token still matched the draft's next top-1 token 25.9% of the time, and full-model verification time was almost flat in the number of verified nodes (within about 3% from 1 to 256). For the margin score, the sibling children and the use of trees of tens of nodes, the notes state the consequence drawn; the low prefill weight in the final file is consistent with the prompt-versus-generation finding.
- First version: calibration, replay selection, renewal stopping and a tree. Its notes say it beat every baseline on eTPL on its first run across the early-exit models it was tried on, but that its speedup lagged. Profiling found that re-selecting the plan on every round cost 12.18 ms of pure controller time per round, from scalar interpolation inside nested loops. Vectorising the update, using a 64-entry lookup table and re-selecting only periodically brought the per-round controller time to 1.04 ms in the second version; the third was recorded at 0.44 ms.
- What the second version's runs showed. Per-layer decoding time at batch size one was nearly independent of hidden size across models whose hidden sizes differ by about a factor of seven, so the width-dependent overhead multiplier it used was wrong for small models; the final overhead model scales only with a vocabulary factor. Adding an overhead term inside the tree chain's own layer search pushed the chosen layer deeper and cost eTPL, which is why we optimise eTPL within a mode and apply overheads only across modes. The notes also list a fast fixed-exit chain that was missing (high eTPL and the best speedup when the model is shallow or blocks are short), a bias in the tail-mass estimate behind the tempered confidence test that inferring the vocabulary size from observed token ids would remove, and a mode combining a confidence exit with a tree that was dominated by the tree chain in every benchmark of its local suite.
- Third version. It added the fixed-exit chain, the inferred vocabulary size and two- and three-stage cascades of exit layers, and dropped the exit-plus-tree mode.
- Sublayer masks, abandoned. The first version also considered sublayer masks; its notes record a mask gaining 1.03 times plain decoding's eTPL on a model without early-exit training while running at 0.69 of plain decoding's speed because of key-value copying. Later, a probe of masks of the SEED kind (the first few and last few layers kept, the middle skipped) on the same kind of model found a first-step accuracy of at most 0.375 and an eTPL below plain decoding's, and the notes conclude that drafting should simply be switched off there. The final controller has only prefix-exit modes and a "none" fall-back, consistent with that conclusion. The SEED idea came from reading recent work on treating a decoder as an implicit encoder-decoder, which we state without a citation because it is not in our reference list.
- A lag-one Markov feature, abandoned. The notes record that agreement at a shallow layer of one small model was strongly autocorrelated at lag one (0.774 if the preceding position agreed, 0.347 if it did not, against a base rate of 0.608 at one layer), and the notes plan a layer choice conditioned on the last observed match; the fourth version is named for it. In its ablations, variants named as removals of the Markov ("mk") components reached a new peak eTPL on two benchmarks, above the third version's, and one item of the notes is titled "Conditional Independence Given Current Logit Margin"; the body of that item is cut from the trace. The final file contains no lag conditioning. The fourth version's faster prompt-prefill decay (0.75 per position in the notes, 0.78 in the final file) and its snapshotting of the calibration state around simulations survive in the final file.
- A chain-versus-tree split, and the final assembly. The fifth version added a chain mode with feedback but no tree and recalibrated the overhead constants; in the local comparison it was higher than the third version in eTPL on one benchmark and lower on another. The final file was then assembled from the third version's body with a set of edits, among them the faster prefill decay, the snapshot-and-restore of calibration state, a different overhead for the stopping chain, and re-selection at the second round of a prompt. The first install of the assembled file exceeded the file's byte limit, so the code was compressed (one-space indentation, short aliases for the array types), which is why it reads as dense. It then passed the interface checker and the edge-case tests (determinism, extreme layer counts, extreme limits, non-finite inputs).
Limitations
- Wall-clock gains are not demonstrated on most settings. CRD is behind DEL in measured speedup on 1B/CNNDM, 1B/XSum and 8B/CNNDM and ahead only on 8B/XSum; on 1B/CNNDM and 1B/XSum it is also below the fixed-exit baseline, even though its eTPL is higher. The wall-clock proxy in the cross-mode score is a set of hand-set overheads in layer equivalents, and the submitted file was not timed in the trace.
- The eTPL lead on 1B/CNNDM is within a very small margin of DEL, and on 1B/XSum CRD is behind it.
- The final file was not measured by its author. It is the third version's body plus edits, and the trace shows only that it passed the interface checker and the edge-case tests. Our statements about how the components behave are the measurements of earlier versions, not of the submission.
- Many constants are tuned, not derived. The score blend , the prior curve, the pseudo-counts, the discount, the and margins, the sibling threshold and the overhead constants are all hand-set, and the continuation factor is a bounded heuristic rather than a derived expectation. The tree-mode overhead has a branch on the model having at most 20 layers, a size-dependent special case.
- Replay is exact only on the accepted path. The agreement of a layer with the full model is observed from the shadow outputs only for positions the verifier commits, and the replay buffer holds only the last 96. Sibling and continuation weights rest on first- and second-order approximations, and the continuation rate is a smoothed ratio that starts at 0.22 and carries a prior worth five events, so early in a run it is mostly its prior.
- It depends on shallow layers being usable. On a model whose early layers are not trained to predict, the controller's remedy is to stop drafting, which gives plain decoding's eTPL and no gain; the notes record that outcome on one such model. Sublayer masks and online probing, which the task allows, are not used.
- Calibration costs simulations and time. Mode selection spends the allowed
simulatecalls, within a time limit, and when no time remains for them the choice rests on replay alone.
References
- Mostafa Elhoushi, Akshat Shrivastava, Diana Liskovich et al. (2024). LayerSkip: Enabling Early Exit Inference and Self-Speculative Decoding. ACL.
- Jun Zhang, Jue Wang, Huan Li et al. (2024). Draft & Verify: Lossless Large Language Model Acceleration via Self-Speculative Decoding. ACL.
- Heming Xia, Yongqi Li, Jun Zhang et al. (2025). SWIFT: On-the-Fly Self-Speculative Decoding for LLM Inference Acceleration. ICLR.
- Hossein Entezari Zarch, Lei Gao, Chaoyi Jiang et al. (2025). DEL: Context-Aware Dynamic Exit Layer for Efficient Self-Speculative Decoding. COLM.
- Zhuofan Wen, Yang Feng (2026). SpecBound: Adaptive Bounded Self-Speculation with Layer-wise Confidence Calibration. ACL.
- Seongjin Cha, Gyuwan Kim, Dongsu Han et al. (2026). KnapSpec: Self-Speculative Decoding via Adaptive Layer Selection as a Knapsack Problem. ICML.