← 研踪 PaperTrailarXiv:2612.01605 · v1
Prompt-Based Speculative Decoding for Grammatical Error Correction
首次提交 2026-12-01 19:48
版本更新 2026-12-01 19:48
雷达观测 2026-12-02 23:11
摘要
Speculative decoding accelerates LLM inference by drafting tokens that the target model verifies in parallel, making the output exactly the same as with standard decoding. Grammatical error correction (GEC) is a natural fit -- the output largely reuses spans of the input, so drafts can be taken from the prompt itself. Prior work on prompt-based speculation for GEC, most notably aggressive decoding (AD), targets seq2seq models evaluated only at batch size 1. We present the first systematic study of prompt-based speculative decoding for GEC with decoder-only LLMs under batched serving, covering aggressive decoding and n-gram drafting across English, German and Ukrainian document-level datasets and batch sizes up to 128. Prompt-based drafting reaches a 12.24x speedup at batch size 1, whereas a draft-model baseline is slower than autoregressive decoding in 53 of 60 configurations. We further introduce PAN-SD, a position-aware variant of n-gram drafting that breaks ties among equally long matches by alignment with the source rather than earliest occurrence. It improves the acceptance rate in all configurations and throughput in most, at no additional cost. We release our code, data and models.
作者备注:17 pages, 1 figure, 15 tables. Code: https://github.com/richardxoldman/gec-speculative-decoding
观测到的版本
相邻记录可能跳过中间版本;首次发现 v2 及以上也会标为版本更新。
v1 · 2026-12-01 19:48 · 最新观测版本
Prompt-Based Speculative Decoding for Grammatical Error Correction
Speculative decoding accelerates LLM inference by drafting tokens that the target model verifies in parallel, making the output exactly the same as with standard decoding. Grammatical error correction (GEC) is a natural fit -- the output largely reuses spans of the input, so drafts can be taken from the prompt itself. Prior work on prompt-based speculation for GEC, most notably aggressive decoding (AD), targets seq2seq models evaluated only at batch size 1. We present the first systematic study of prompt-based speculative decoding for GEC with decoder-only LLMs under batched serving, covering aggressive decoding and n-gram drafting across English, German and Ukrainian document-level datasets and batch sizes up to 128. Prompt-based drafting reaches a 12.24x speedup at batch size 1, whereas a draft-model baseline is slower than autoregressive decoding in 53 of 60 configurations. We further introduce PAN-SD, a position-aware variant of n-gram drafting that breaks ties among equally long matches by alignment with the source rather than earliest occurrence. It improves the acceptance rate in all configurations and throughput in most, at no additional cost. We release our code, data and models.
查看此版本解读 →查看此版本原文 ↗