Saved in:
Bibliographic Details
Main Authors: Hong, Yinrong, Tan, Zhiquan, Hu, Kai
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2510.26577
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910033984356352
author Hong, Yinrong
Tan, Zhiquan
Hu, Kai
author_facet Hong, Yinrong
Tan, Zhiquan
Hu, Kai
contents Large Language Models (LLMs) face significant inference latency challenges stemming from their autoregressive design and large size. To address this, speculative decoding emerges as a solution, enabling the simultaneous generation and validation of multiple tokens. While recent approaches like EAGLE-2 and EAGLE-3 improve speculative decoding using dynamic tree structures, they often neglect the impact of crucial system variables such as GPU devices and batch sizes. Therefore, we introduce a new dynamic tree decoding approach called CAST that takes into account inference costs, including factors such as GPU configurations and batch sizes, to dynamically refine the tree structure. Through comprehensive experimentation across six diverse tasks and utilizing six distinct LLMs, our methodology demonstrates remarkable results, achieving speeds up to 5.2 times faster than conventional decoding methods. Moreover, it generally outperforms existing state-of-the-art techniques from 5 % to 20%. The code is available at https://github.com/EAGLE-Research/sglang-eagle4.
format Preprint
id arxiv_https___arxiv_org_abs_2510_26577
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Inference-Cost-Aware Dynamic Tree Construction for Efficient Inference in Large Language Models
Hong, Yinrong
Tan, Zhiquan
Hu, Kai
Computation and Language
Machine Learning
Large Language Models (LLMs) face significant inference latency challenges stemming from their autoregressive design and large size. To address this, speculative decoding emerges as a solution, enabling the simultaneous generation and validation of multiple tokens. While recent approaches like EAGLE-2 and EAGLE-3 improve speculative decoding using dynamic tree structures, they often neglect the impact of crucial system variables such as GPU devices and batch sizes. Therefore, we introduce a new dynamic tree decoding approach called CAST that takes into account inference costs, including factors such as GPU configurations and batch sizes, to dynamically refine the tree structure. Through comprehensive experimentation across six diverse tasks and utilizing six distinct LLMs, our methodology demonstrates remarkable results, achieving speeds up to 5.2 times faster than conventional decoding methods. Moreover, it generally outperforms existing state-of-the-art techniques from 5 % to 20%. The code is available at https://github.com/EAGLE-Research/sglang-eagle4.
title Inference-Cost-Aware Dynamic Tree Construction for Efficient Inference in Large Language Models
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2510.26577