Saved in:
Bibliographic Details
Main Authors: He, Tao, Huang, Guang, Yang, Yu, Xu, Tianshi, Zhao, Sicheng, Ding, Guiguang, Wang, Pengyang, Tian, Feng
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2506.14158
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918061329612800
author He, Tao
Huang, Guang
Yang, Yu
Xu, Tianshi
Zhao, Sicheng
Ding, Guiguang
Wang, Pengyang
Tian, Feng
author_facet He, Tao
Huang, Guang
Yang, Yu
Xu, Tianshi
Zhao, Sicheng
Ding, Guiguang
Wang, Pengyang
Tian, Feng
contents Large language models (LLMs) exhibit remarkable reasoning capabilities across diverse downstream tasks. However, their autoregressive nature leads to substantial inference latency, posing challenges for real-time applications. Speculative sampling mitigates this issue by introducing a drafting phase followed by a parallel validation phase, enabling faster token generation and verification. Existing approaches, however, overlook the inherent coherence in text generation, limiting their efficiency. To address this gap, we propose a Speculative Sampling with Syntactic and Semantic Coherence (S$^4$C) framework, which extends speculative sampling by leveraging multi-head drafting for rapid token generation and a continuous verification tree for efficient candidate validation and feature reuse. Experimental results demonstrate that S$^4$C surpasses baseline methods across mainstream tasks, offering enhanced efficiency, parallelism, and the ability to generate more valid tokens with fewer computational resources. On Spec-bench benchmarks, S$^4$C achieves an acceleration ratio of 2.26x-2.60x, outperforming state-of-the-art methods.
format Preprint
id arxiv_https___arxiv_org_abs_2506_14158
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle S$^4$C: Speculative Sampling with Syntactic and Semantic Coherence for Efficient Inference of Large Language Models
He, Tao
Huang, Guang
Yang, Yu
Xu, Tianshi
Zhao, Sicheng
Ding, Guiguang
Wang, Pengyang
Tian, Feng
Computation and Language
Artificial Intelligence
Large language models (LLMs) exhibit remarkable reasoning capabilities across diverse downstream tasks. However, their autoregressive nature leads to substantial inference latency, posing challenges for real-time applications. Speculative sampling mitigates this issue by introducing a drafting phase followed by a parallel validation phase, enabling faster token generation and verification. Existing approaches, however, overlook the inherent coherence in text generation, limiting their efficiency. To address this gap, we propose a Speculative Sampling with Syntactic and Semantic Coherence (S$^4$C) framework, which extends speculative sampling by leveraging multi-head drafting for rapid token generation and a continuous verification tree for efficient candidate validation and feature reuse. Experimental results demonstrate that S$^4$C surpasses baseline methods across mainstream tasks, offering enhanced efficiency, parallelism, and the ability to generate more valid tokens with fewer computational resources. On Spec-bench benchmarks, S$^4$C achieves an acceleration ratio of 2.26x-2.60x, outperforming state-of-the-art methods.
title S$^4$C: Speculative Sampling with Syntactic and Semantic Coherence for Efficient Inference of Large Language Models
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2506.14158