Falcon: Faster and Parallel Inference of Large Language Models through Enhanced Semi-Autoregressive Drafting and Custom-Designed Decoding Tree

Xiangxiang Gao, Weisheng Xie, Yiwei Xiang, Feng Ji

Introduction

Large Language Model (LLM) inference is primarily constrained by memory bandwidth rather than raw computational power. Standard Autoregressive (AR) decoding generates tokens sequentially, necessitating a full model load from memory for every single token. Speculative decoding addresses this by employing a smaller "drafter" model to predict multiple future tokens, which are then verified in parallel by the larger "target" model.

However, existing drafting methods face a significant trade-off. AR drafters (e.g., Eagle) are accurate but slow due to sequential generation. Conversely, Semi-Autoregressive (SAR) drafters (e.g., Medusa) are fast because they predict blocks of tokens in parallel, but they often suffer from lower accuracy because they fail to capture the dependencies between tokens within a predicted block. Falcon bridges this gap, achieving SAR speed with AR-level accuracy.

Methodology

Falcon introduces two primary innovations to the speculative decoding pipeline: a novel training strategy and an optimized decoding structure.

Enhanced Semi-Autoregressive Drafting

The Falcon drafter is a lightweight hybrid architecture equivalent to just two Transformer layers. It utilizes LSTM layers to maintain long-term context and a "Relaxed Causal Mask" in its self-attention layer. This mask allows tokens within the same drafted block to "see" each other during the prediction process, facilitating better coherence in parallel drafting.

Figure 1: Overview of the Falcon framework, showing the interaction between the Target LLM and the Enhanced Semi-Autoregressive Drafting module.

Coupled Sequential Glancing Distillation (CSGD)

To improve drafter accuracy, Falcon employs Coupled Sequential Glancing Distillation (CSGD). In standard SAR training, blocks are predicted independently. CSGD introduces a "glancing" mechanism where continuous sequences of the drafter's predicted tokens are replaced with ground-truth tokens from the target LLM during training. This forces the drafter to learn the inter-dependencies between tokens within a block, aligning the SAR loss function more closely with the traditional AR objective.

Custom-Designed Decoding Tree

Falcon utilizes a decoding tree specifically optimized for SAR drafting. While an AR drafter typically adds one token per node, Falcon’s drafter can generate $k$ tokens per node in a single forward pass. This allows the system to propose a massive number of candidate tokens, organized into a complex tree, for the target LLM to verify simultaneously in a single parallel step.

Experimental Setup

The Falcon drafter was trained on the ShareGPT dataset (approximately 68,000 dialogue iterations). Evaluation was conducted across three diverse benchmarks:

  • MT-Bench: Multi-turn dialogue and general instruction following.
  • HumanEval: Code generation tasks.
  • GSM8K: Mathematical reasoning.

The framework was tested using the Vicuna (7B, 13B) and LLaMA2-Chat (7B, 13B) model series.

Results and Discussion

Falcon demonstrates state-of-the-art performance across all tested models and benchmarks. It achieves a lossless wall-time speedup of 2.91x to 3.51x compared to vanilla AR decoding, significantly outperforming previous methods like Eagle and Medusa.

Figure 4: Speedup performance of Falcon compared to other speculative decoding baselines (Eagle, Medusa, Lookahead, and Vanilla) across different model architectures.

Key performance metrics include:

  • Acceptance Rate: The rate at which the target LLM accepts drafted tokens reached 74% to 80%, a 3-5% improvement over Eagle and nearly 18% over Medusa.
  • Efficiency: The drafter is extremely lightweight and can be trained in less than two days on a single H800 server, making it highly practical for real-world deployment.

Conclusion

Falcon successfully combines the speed of semi-autoregressive drafting with high prediction accuracy through its novel CSGD training and custom tree structures. Future work will explore dynamic tree modification—adjusting the tree shape in real-time based on model confidence—and further optimizing drafter architectures for extreme resource constraints.

Summary updated

BibTeX
@inproceedings{gao2025falcon,
  author = {Xiangxiang Gao and Weisheng Xie and Yiwei Xiang and Feng Ji},
  title = {{Falcon: Faster and Parallel Inference of Large Language Models through Enhanced Semi-Autoregressive Drafting and Custom-Designed Decoding Tree}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i22.34566},
}
Figure