A rigor-matched audit of periodic-step layer skipping for efficient llm inference: conflayers versus swift, with a supplemental analysis of trained routing alternatives
Organizations: Accenture
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 Qwen2.5-0.5B and Qwen2.5-1.5B (Yang et al. 2024) on GSM8K (Cobbe et al. 2021) and CNN/DailyMail (Nallapati et al. 2016; See et al. 2017). SWIFT is strongest on accuracy in three of four cells, while ConfLayers is dominated everywhere, with particularly large deficits on GSM8K at 1.5B. Separating online-search overhead from pure inference cost, we find that SWIFT's true inference speed is faster than ConfLayers's in all four cells (5-21%), reversing the naive wall-clock ranking in three; ConfLayers's search overhead is small and stable (1-2% of cost), whereas SWIFT's is larger and more variable across seeds (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 because both operate at a coarser decision granularity. Under a verified protocol with genuine per-input gating, a genuine full-model baseline, and genuine inference-time compute skipping, both show modest real speedups (1.08-1.33x) but accuracy well below the periodic-step methods, including near-total LayerRoute collapse 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.
Figures & tables
| Method | Training | Decision unit | Re-evaluation cadence |
|---|---|---|---|
| ConfLayers | None (online search) | Per token | Every 30 steps |
| SWIFT | None (online search) | Per token | Every 25 steps |
| LayerRoute | Trained (LoRA + gate) | Per sequence | Once, input-conditioned |
| LayerDrop | Trained (structured dropout) | N/A | Never (fixed, input-independent) |
| Task | Scale | Vanilla | ConfLayers | SWIFT |
| GSM8K | 0.5B | 0.180 [0.14–0.26] | 0.147 [0.13–0.18] | 0.303 [0.27–0.36] |
| 1.5B | 0.413 [0.38–0.46] | 0.077 [0.05–0.10] | 0.307 [0.29–0.33] | |
| CNN/DM | 0.5B | 0.169 [0.167–0.174] | 0.178 [0.175–0.184] | 0.190 [0.185–0.196] |
| 1.5B | 0.204 [0.193–0.213] | 0.215 [0.204–0.222] | 0.219 [0.205–0.230] |
| Task/Scale | Method | Pure inference (ms) | Search overhead | Wall-clock total (ms) |
|---|---|---|---|---|
| GSM8K/0.5B | ConfLayers | 9194 | 2.2% | 10338.5 |
| SWIFT | 8771 | 15.1% | 11564.5 | |
| GSM8K/1.5B | ConfLayers | 12366 | 1.3% | 12485.4 |
| SWIFT | 9913 | 12.4% | 11628.8 | |
| CNN-DM/0.5B | ConfLayers | 10889 | 1.2% | 10231.4 |
| SWIFT | 8610 | 8.7% | 10598.2 |
| Task | Scale | LayerRoute acc. | LayerRoute speedup | LayerDrop acc. | LayerDrop speedup |
|---|---|---|---|---|---|
| GSM8K | 0.5B | 0.137 [0.11–0.16] | 1.08 | 0.010 [0.00–0.02] | 1.30 |
| 1.5B | 0.003 [0.00–0.01] | 1.32 | 0.060 [0.05–0.07] | 1.25 | |
| CNN/DM | 0.5B | 0.102 [0.099–0.107] | 1.33 | 0.091 [0.085–0.097] | 1.29 |
| 1.5B | 0.150 [0.139–0.165] | 1.09 | 0.134 [0.131–0.136] | 1.25 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Scale | Seed | Vanilla | ConfLayers | SWIFT |
|---|---|---|---|---|
| 0.5B | 2024 | 0.26 | 0.13 | 0.36 |
| 42 | 0.14 | 0.18 | 0.28 | |
| 123 | 0.14 | 0.13 | 0.27 | |
| 1.5B | 2024 | 0.40 | 0.05 | 0.29 |
| 42 | 0.46 | 0.08 | 0.33 | |
| 123 | 0.38 | 0.10 | 0.30 |
| Scale | Seed | Vanilla | ConfLayers | SWIFT |
|---|---|---|---|---|
| 0.5B | 2024 | 0.167 | 0.175 | 0.190 |
| 42 | 0.174 | 0.184 | 0.196 | |
| 123 | 0.167 | 0.178 | 0.185 | |
| 1.5B | 2024 | 0.193 | 0.204 | 0.205 |
| 42 | 0.206 | 0.218 | 0.223 | |
| 123 | 0.213 | 0.222 | 0.230 |
| Scale | Seed | LayerRoute | LayerDrop |
|---|---|---|---|
| 0.5B | 2024 | 0.14 | 0.00 |
| 42 | 0.16 | 0.02 | |
| 123 | 0.11 | 0.01 | |
| 1.5B | 2024 | 0.00 | 0.07 |
| 42 | 0.01 | 0.05 | |
| 123 | 0.00 | 0.06 |
| Scale | Seed | LayerRoute | LayerDrop |
|---|---|---|---|
| 0.5B | 2024 | 0.100 | 0.085 |
| 42 | 0.099 | 0.092 | |
| 123 | 0.107 | 0.097 | |
| 1.5B | 2024 | 0.146 | 0.136 |
| 42 | 0.139 | 0.131 | |
| 123 | 0.165 | 0.134 |