AVERT enables variable-depth LLM execution via token routing
Researchers have introduced AVERT, a method for dynamic layer skipping in LLMs that matches request budgets to reduce inference costs and latency.
Source: Grafy Research LabResearchers have developed a new method called AVERT that allows large language models (LLMs) to dynamically skip layers during inference to meet specific computational budgets. This approach enables a single model to serve various requests with different latency or cost requirements by routing individual tokens through varying depths of the transformer architecture.
How does AVERT manage variable execution depth?
According to the research paper by Zheng et al., AVERT (Average-Depth Variable Execution via Request-Local Token Routing) operates by assigning a continuous budget to each request. For instance, a budget of 0.6 instructs the model to execute approximately 60% of its layers on average for that specific request.
Unlike previous methods that might force every token in a request to skip the same number of layers, AVERT uses a router at each layer. This router examines the current state of a token alongside the specific budget assigned to the request to decide whether to execute the Transformer block or bypass it. If a token skips a block, it passes through a lightweight residual adapter to maintain representation quality, and the system avoids writing a key/value (K/V) entry for that layer, which helps optimize memory usage.
What are the efficiency benefits of this routing method?
One of the primary advantages of AVERT is its ability to handle "mixed-budget" batches. In traditional LLM serving, requests are often grouped into batches to maximize GPU utilization. However, if different requests require different levels of computation, separating them into different batches can lead to underfilled batches and wasted resources.
According to the authors, AVERT allows requests with different budgets to be processed in the same batch. Their experiments showed that mixing budgets can reduce the time per output token (TPOT) by between 4.3% and 21.2% compared to scenarios where batches are separated by budget to avoid underfilling. This efficiency gain is achieved because the model can process all tokens in a batch simultaneously, only grouping those that happen to execute a specific layer.
How does AVERT compare to existing layer-skipping techniques?
Existing techniques for reducing inference costs generally fall into three categories: budgeted conditional computation, shared layer skipping, and token-wise skipping. The authors note that some methods, such as BUDDY, fix the number of layers for every token in a request, while others, like GateSkip, select a fraction of tokens in a batch to execute at certain sublayers.
AVERT distinguishes itself by targeting the mean executed depth of a request rather than enforcing a rigid depth for every individual token. The researchers found that this request-average objective improves the overall quality of the generated text compared to attempting to force every single token to hit a specific depth. In testing across three LLaMA backbones and 13 different budgets, AVERT was either the best or tied for the best performer in 206 out of 234 comparisons across six quality metrics.
Can AVERT maintain model quality while skipping layers?
Maintaining accuracy while reducing computation is a significant challenge in conditional computation. To address this, AVERT utilizes a lightweight skip-path adapter. This component helps compensate for the changes in data representation that occur when a token bypasses a Transformer block, ensuring that the shared checkpoint remains effective across various budget levels.
The researchers also reported high precision in budget adherence. In their evaluations, the mean absolute error for the per-request budget was at most 1.15 percentage points, even in mixed-budget batches. This indicates that the routing mechanism is highly reliable at following the instructed computational constraints without significant deviation.
How can researchers explore these findings?
For researchers looking to dive deeper into the mathematical formulations or the specific ablation studies regarding K/V omission and routing stability, the full paper provides extensive data on how these architectural choices impact performance.
If you are interested in exploring how advanced architectural optimizations like these might eventually impact the speed and cost of AI tools, you can use Reader to upload and analyze the original research paper. This allows you to query specific sections of the text, such as the training objectives or the hardware setup used in the experiments, to gain a more granular understanding of the technical implementation.
Frequently asked questions
What is the primary goal of AVERT?
The primary goal of AVERT is to reduce the computational cost and latency of LLM inference by allowing tokens to skip layers. It achieves this by matching the average execution depth of a request to a user-defined continuous budget, ensuring efficient resource use without sacrificing significant output quality.
How does AVERT handle different budgets in a single batch?
AVERT handles different budgets by allowing tokens from different requests to move through the model at different speeds. At each layer, the router decides which tokens will execute the block and which will skip it. This allows the system to process mixed-budget requests together, improving GPU utilization and reducing the time per output token.
Does skipping layers affect the model's memory usage?
Yes, skipping layers can reduce memory overhead. When a token skips a Transformer block in the AVERT framework, it does not write a key/value (K/V) entry for that layer. This results in a more compact K/V cache, as later tokens in the sequence only need to attend to the history of tokens that actually executed those layers.
Source: Pengjie Zheng, Mengwei Xie, Huan Yang, Si Wu, Pengfei Hu, Feng Li (2026)
Source: Grafy Research Lab — Average-Depth Variable Execution via Request-Local Token Routing


