In one serving stack, some requests want a full-quality answer and others just want a cheap one. The usual fixes are keeping two model variants or splitting requests into separate batches by budget - and split batches often run half-empty while GPUs idle. A paper from Shandong University and Qingdao University offers another path: keep one model, and make the compute budget a per-request parameter. Paper: https://arxiv.org/abs/2611.27738

The budget becomes a request parameter

The method is called AVERT. Each request carries a continuous budget between 0.4 and 1.0; a budget of 0.6 means its routed tokens execute 60% of layers on average. During decoding, at each routed layer a small router reads the current token state plus the request budget and decides whether that token executes the full Transformer block (attention plus FFN) or skips it. Skipped tokens pass through a width-256 skip compensation adapter (SCA) and write no K/V entry - later tokens see a shorter history at that layer, saving both cache and attention work. The first two decode positions always execute all layers; routing starts at the third.

The key design decision is that the objective targets the request average depth, not each token depth: in a 60%-budget response, one token may run 2 layers and another 31, as long as the average lands on target. The paper also observes that tokens in higher quartiles of next-token prediction entropy execute more layers on their own - the allocation inside a budget is learned, not scripted.

One checkpoint, 13 budgets in the same batch

Training freezes the backbone and trains only the routers, SCA, and LoRA adapters. On 51,564 Alpaca examples, 90% of micro-batches draw each request budget uniformly from 0.4 to 1.0, and 10% assign one endpoint to the whole batch; the budget-loss weight rises from 0 to 10 over the first epoch. The result is a single checkpoint that serves 13 budgets (0.40 to 1.00, step 0.05) inside the same batch.

The baselines show why that matters. D-LLM trains a separate checkpoint per target budget - the 13-point sweep means 13 training runs. GateSkip derives thresholds from the batch-wide live-token distribution: on LLaMA-3.1-8B at a 0.4 budget, its execution fraction swings from 1.000 at batch size 1 to 0.289 at batch size 32, with quality falling from 3.01 to 1.02. AVERT routes per request and does not drift with batch size. In the paper comparison table, it is the only one of nine methods marked as explicitly supporting mixed-budget batches.

Quality: near-full at high budgets, ahead at low ones, math breaks first

Across three backbones (LLaMA-2-7B, LLaMA-3.1-8B, LLaMA-3.2-1B), six metrics, and 13 budgets - 234 comparisons - AVERT is best or tied in 206; at the aggressive 0.4 target it takes 16 of 18. On LLaMA-3.1-8B at full budget it scores 3.65 Prometheus-2 versus 3.66 for the Vanilla reference; at 0.4 it scores 2.02 against 1.62 for D-LLM, 1.48 for the reimplemented BUDDY, and 1.01 for AdaSkip in the same table. On LLaMA-2-7B it is 2.38 versus 1.51.

The cold water: GSM8K flexible-extraction accuracy on the 8B model drops from 0.425 at full budget to 0.020 at 0.4, and the limitations section admits clear accuracy loss at aggressive budgets, with math reasoning hit hardest. Budget tracking itself is tight: the largest average error is 0.97 percentage points in single-budget batches, 1.15 in mixed batches, and 0.90 on five off-grid targets; in the 60%-budget experiment with 480 responses, 95.83% of requests land within 2 points. Ablations hold up: without SCA, quality at 0.4 falls from 2.02 to 1.41; with the budget penalty set to zero, execution snaps back above 99.6% - unpenalized, the model simply refuses to save compute.

Systems: mixed batching saves idle time

The payoff appears under skewed load. With 128 requests split across budgets 1.0, 0.8, 0.6, and 0.4, budget-separated scheduling leaves batches underfilled, while mixed scheduling still forms four full batches; across three backbones, decode time per output token falls 4.3% to 21.2% and total wall-clock falls 4.1% to 20.9%. On the 8B model with mostly low-budget requests, total time including prefill drops from 60.60 to 52.15 seconds. The standing cost: routers plus SCA add 125.91M parameters, about 240 MiB, and at a 0.5 budget on the 8B model, of 3.3529 ms per output token, routing accounts for 0.4363 ms.

Standing on prior work

Token-adaptive layer execution is not new here: Mixture-of-Depths sets a per-layer token capacity (https://arxiv.org/abs/2404.02258) and SkipDecode decreases depth with sequence position (https://arxiv.org/abs/2307.02628), both from independent teams. The increment is moving the control target to the request-average depth and conditioning routing on the budget so one checkpoint can mix budgets - a serving-perspective engineering contribution, not the invention of layer skipping.

One metric note: asked for two synonyms, BUDDY repeats enraged and still earns ROUGE-L 0.900 - lexical-overlap metrics reward parroting at low budgets, which is why the paper uses Prometheus-2 as its primary metric.

The limitations are listed by the authors themselves: the budget is fixed at request start and cannot change mid-generation; prefill stays at full depth; beyond LLaMA there is only a reduced Qwen2.5-3B check at three budgets. For serving teams the signal is concrete: a compute budget can be dispatched per request like a rate limit, without maintaining a zoo of depth variants. The real question is who decides which users are only worth 0.4.