Manuscript Offprint

arXiv:2608.28846

A rigor-matched audit of periodic-step layer skipping for efficient llm inference: conflayers versus swift, with a supplemental analysis of trained routing alternatives

Prateek Kumar Sikdar, Arpan Ghosh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Layer-skipping methods for efficient LLM inference decide, at some granularity, which transformer layers to execute for a given input. We present a rigor-matched, three-seed audit of two periodic-step, search-based methods that make this decision online, at inference time, and re-evaluate it every few generation steps: a confidence-gated early-exit baseline (ConfLayers) and genuine self-speculative decoding (SWIFT, Xia et al. 2024), together with vanilla autoregressive decoding, across two model scales (Qwen2.5-0.5B and Qwen2.5-1.5B, Yang et al. 2024) and two tasks (GSM8K reasoning, Cobbe et al. 2021; CNN/DailyMail summarization, Nallapati et al. 2016; See et al. 2017). SWIFT is the strongest method on accuracy in three of four cells; ConfLayers is dominated everywhere, with particularly large deficits on GSM8K at 1.5B. Once online-search overhead is correctly separated from pure inference cost — a decomposition we introduce and validate — SWIFT's true inference speed is faster than ConfLayers's in all four cells (5–21%), reversing the naive wall-clock ranking in three of them; ConfLayers's search overhead is small and stable (1–2% of cost) while SWIFT's is larger and considerably more variable seed-to-seed (up to 28.7%). We additionally examine two trained-routing methods, LayerRoute (Sikdar, 2026) (a per-sequence, input-conditioned hard gate) and LayerDrop (Fan et al., 2020) (a fixed, input-independent pruning pattern), as a supplemental analysis rather than a head-to-head comparison, since both operate at a fundamentally coarser decision granularity than the periodic-step methods above. Measuring both under a verified protocol — genuine per-input gating, a genuine full-model baseline, and genuine inference-time compute skipping — both trained-routing methods show modest, real speedups (1.08–1.33×) but accuracy well below the periodic-step methods, including a near-total collapse for LayerRoute on GSM8K at 1.5B (0.003 mean exact-match across three seeds). We release the full audit protocol as a template for rigor-matched efficiency comparisons.

1 INTRODUCTION

Layer-skipping methods for efficient LLM inference share a common shape — decide, for some unit of input, whether to execute a given transformer layer or bypass it — but differ sharply in when and at what granularity that decision is made. Confidence-gated early-exit methods threshold a per-token confidence signal that is itself tuned online (Schuster et al., 2022; 2021; Teerapittayanon et al., 2016); self-speculative decoding methods draft candidate continuations with a cheapened version of the same model, periodically re-evaluating the draft configuration, and verify drafts against the full model in a single batched pass (Leviathan et al., 2023; Chen et al., 2023; Xia et al., 2024). Both families make their skip decision online, re-checking it every few generation steps. A separate family, trained routing, instead learns a fixed policy offline — a gate, a router, or a pruning mask — so no online search is needed (Fan et al., 2020; Raposo et al., 2024; Elbayad et al., 2020); the policy can be as coarse as a single fixed pattern applied to every input, or as fine as a decision recomputed per sequence.

This granularity difference determines what a fair comparison even means: a method re-evaluating its configuration every 25–30 tokens is answering a different question than one committing to a single decision for an entire sequence, or one that never adapts to input at all. Our primary contribution is therefore a comparison restricted to methods sharing the same decision regime — ConfLayers and SWIFT, both periodic-step and search-based — audited under matched seeds, tasks, and scales, with a cost-accounting methodology that correctly separates the online search from the inference it accelerates. This confound is methodologically significant: once search overhead is excluded, the pure-inference speed ranking of the two methods reverses relative to their naive wall-clock ranking in three of four task/scale combinations we test.

We additionally examine two representative trained-routing methods, LayerRoute (Sikdar, 2026) and LayerDrop (Fan et al., 2020), as a supplemental analysis rather than folding them into the main comparison, since their decision granularity does not match ConfLayers's and SWIFT's: Layer-Route commits to one gate decision per sequence; LayerDrop commits to one fixed pattern that never varies with input. Treating either as a direct peer of a method that re-searches every 25 tokens would overstate what the comparison can claim. We measure both under a protocol verified to exercise their routing decisions genuinely — real per-input gating, a real full-model baseline, and real inference-time compute skipping — and report the resulting numbers plainly, including a result we did not expect going in.

Our contributions are:

  • A rigor-matched, 3-seed, 2-task × 2-scale comparison of two periodic-step, search-based layer-skipping methods (ConfLayers, SWIFT) against vanilla decoding, with a taxonomy of routing decision granularity motivating why this is the correct main comparison set (Section 2).
  • A search-overhead decomposition that separates each method's pure inference cost from its online-search cost, revealing that naive wall-clock comparisons had inverted the true inference-speed ranking of SWIFT and ConfLayers in three of four cells (Section 6.2.1).
  • A supplemental analysis of two trained-routing methods (LayerRoute, LayerDrop) at a different decision granularity, using a measurement protocol verified to exercise genuine per-input gating, a genuine full-model baseline, and genuine inference-time compute skipping throughout (Section 7).
  • A from-first-principles port of LayerRoute to TinyLlama-1.1B (Zhang et al., 2024) showing that its headline tool-call-versus-planning skip differential inverts in sign across architectures, reported as a genuine generalization limitation (Section 8).
  • A reusable, rigor-matched audit protocol, including the frozen-replay search-overhead decomposition, applicable to future efficiency comparisons.

References (31)