Pith. sign in

Dynamic layer selection in decoder-only transformers

1 Pith paper cite this work. Polarity classification is still indexing.

1 Pith paper citing it
abstract

The vast size of Large Language Models (LLMs) has prompted a search to optimize inference. One effective approach is dynamic inference, which adapts the architecture to the sample-at-hand to reduce the overall computational cost. We empirically examine two common dynamic inference methods for natural language generation (NLG): layer skipping and early exiting. We find that a pre-trained decoder-only model is significantly more robust to layer removal via layer skipping, as opposed to early exit. We demonstrate the difficulty of using hidden state information to adapt computation on a per-token basis for layer skipping. Finally, we show that dynamic computation allocation on a per-sequence basis holds promise for significant efficiency gains by constructing an oracle controller. Remarkably, we find that there exists an allocation which achieves equal performance to the full model using only 23.3% of its layers on average.

fields

cs.CL 1

years

2025 1

verdicts

CONDITIONAL 1

representative citing papers

CLaSp: In-Context Layer Skip for Self-Speculative Decoding

cs.CL · 2025-05-30 · conditional · novelty 6.0

A training-free, context-adaptive layer-skipping method for self-speculative decoding that reports roughly 1.1x to 1.8x speedups on LLaMA models while preserving output distribution.

citing papers explorer

Showing 1 of 1 citing paper.

  • CLaSp: In-Context Layer Skip for Self-Speculative Decoding cs.CL · 2025-05-30 · conditional · none · ref 17 · internal anchor

    A training-free, context-adaptive layer-skipping method for self-speculative decoding that reports roughly 1.1x to 1.8x speedups on LLaMA models while preserving output distribution.