PAN-SD preprint reports 12.24× standard decoding throughput on Ukrainian UA-GEC with Qwen3-8B at batch size one
The grammar-correction method drafts from the source text for the target model to check. The reported gain shrank as more documents were processed at once.
Adam Mickiewicz University researchers Ryszard Staruch and Filip Graliński report that their PAN-SD method produced 12.24 times as many output tokens per second as standard autoregressive decoding with the same fine-tuned Qwen3-8B model on the Ukrainian UA-GEC grammar-correction dataset at batch size one. They describe the method in arXiv 2612.01605v1, a preprint that has not been peer-reviewed. The preprint cites no independent replication of that result.
The researchers ran the tests in vLLM 0.24.0 on a single NVIDIA A100 GPU. For the 12.24× result, PAN-SD required a match of at least one token and could propose up to 30 tokens at a time. Using the same settings at batch size 128, the authors measured 1.99 times the baseline throughput.
PAN-SD, short for Position-Aware N-gram Speculative Decoding, finds the longest span in the prompt that matches the end of the correction generated so far. If several matches are equally long, PAN-SD counts the tokens generated so far to estimate its position in the source text, starting after the instructions.
It drafts from the match whose continuation starts closest to that estimate. If two continuations are equally close, it uses the earlier match. The target model checks the proposed tokens together.
The authors also tested fine-tuned Gemma4-12B and document datasets in German and English. They saw the largest gains where the models made the fewest edits. Edits interrupt stretches of draft text that the model could otherwise accept, the authors report. They caution that gains may differ on other accelerators or inference frameworks.
The authors released the benchmark code and linked to the fine-tuned model weights. The repository includes the Ukrainian and German evaluation text and provides essay IDs and a script to rebuild the English split from the original data.
More news

Subquadratic opens self-serve API access to Savant

Ai2 releases DR-Tulu2-4B and introduces DR-Anything

NVIDIA announces a robotics variant of Alpamayo 2 Edge
