Sightline: Long-Window Speculative Decoding for Fast SVG Generation

Yanchao Li, Ben Gao, Jiaqing Xie, Yusu Zhang, Beilun Wang, Yanbo Wang, Xiaohua Xu, Nanqing Dong, Tianfan Fu, Zhongyu HuangarXiv 2026 · arXiv

TL;DR

Sightline is a novel speculative decoding framework that achieves up to a 13.8x speedup in Scalable Vector Graphics (SVG) generation. By recognizing that SVG code is significantly more predictable over long sequences than natural language, the authors employ a massive 32-token verification window and a wide draft tree to drastically reduce the number of expensive target model passes.

What Problem Does This Paper Address?

Generating high-quality vector graphics is computationally expensive. Current state-of-the-art models (like OmniSVG) generate SVG code token-by-token, requiring a full forward pass of a large transformer for every single coordinate or path command. For a complex graphic with thousands of tokens, this process is painfully slow.

Speculative decoding is a common remedy where a tiny, "cheap" drafter model guesses the next few tokens, and the large "target" model verifies them all at once. However, existing speculative decoders were designed for natural language (NL). In NL, drafter accuracy drops off quickly, so verification windows are typically kept short (around 16 tokens).

The authors discovered that for SVGs, these short windows are a bottleneck. Drafters stay accurate much further into a block of SVG code than they do with text, meaning standard decoders are "leaving speed on the table" by stopping verification too early.

Methods

The researchers introduce Sightline, which optimizes speculative decoding specifically for the structural properties of vector graphics.

  1. Long-Window Verification: Unlike text-based decoders that cap verification at ~16 tokens, Sightline uses a window of 32 tokens. This matches the "horizon" over which their drafter remains highly accurate.
  2. Wide Draft Trees: To fill this long window effectively, Sightline uses a draft tree (based on the DDTree architecture) that explores multiple potential token paths simultaneously. This increases the chance that the target model will find a long, valid sequence to accept in a single pass.
  3. Loop Control: SVG models frequently get stuck in repetitive "loops" (e.g., drawing the same path segment forever). Sightline includes a lossless loop control mechanism that detects these cycles, bans the repeating token to force an exit, and stops the output if the loop persists.
  4. Render-Based Selection: Instead of just picking the most likely sequence (which often leads to loops), Sightline generates multiple candidates in parallel and uses a vision-language model (like CLIP or DINOv2) to select the one that looks most like the prompt.
Figure 2. One round of Sightline. OmniSVG-8B text-to-SVG, first round on an MMSVG prompt. The accepted path takes the second candidate at positions 11 and 15, where a chain of first candidates stops. It then runs past the end of a window of 16 (Appendix B).

Datasets

The authors evaluated Sightline across a diverse set of benchmarks:

  • MMSVG & MMSVG-2M: Standard benchmarks for SVG generation from text and images.
  • SArena: A newer, more rigorous benchmark for SVG generation quality.
  • Model Families: They tested on OmniSVG (4B and 8B) and InternSVG-8B, as well as models emitting Lottie JSON and compressed SVG tokens.

Key Insights and Ideas

  • SVG is "Flatter" than Language: In natural language, a single word choice can radically change the meaning of the rest of the sentence. In SVG, path commands (like M or L) are highly predictable even if the specific coordinates vary. Sightline exploits this structural stability.
  • Clumped Misses: Drafter errors in SVG aren't random; they tend to happen in clusters (usually around complex coordinates). Between these clusters are long runs of perfect predictability.
  • The "Horizon" Advantage: As shown in Figure 3d, drafter accuracy for vector graphics stays above 95% even 15 tokens into a block, whereas natural language accuracy plummets to the 70s. This justifies the "Long-Window" approach.
Comparison of accuracy vs. offset for vector graphics vs. natural language.

Key Results

  • Massive Speedups: Sightline achieved mean speedups of 4.25x to 13.83x over the original autoregressive models.
  • Outperforming Baselines: It consistently beat eight other state-of-the-art speculative decoders (including EAGLE-3 and DARTree) by factors of 1.13x to 1.48x.
  • Efficiency in Quality: By saving time on decoding, Sightline allows for "best-of-8" sampling (rendering 8 versions and picking the best) in less time than it takes a standard model to generate a single "official" sample.
Figure 1. Speedups of nine lossless decoders over the original model. Each petal averages one model–task pair over its six bench- marks under one decoding. Each band runs from the center to a decoder’s speedup, so the outermost color is the fastest. Numbers give our mean speedups, and Figure 4 gives all 60 settings.

Limitations and Future Work

  • Drafter Training: Sightline requires training a specific "draft head" for each target model, which adds an upfront engineering cost.
  • Hardware Constraints: The benefits of a 32-token window depend on the GPU's ability to process that many tokens in a single parallel verification pass without hitting memory or compute bottlenecks.
  • Future Directions: The authors suggest that future work could explore adaptive window lengths that shrink when the model is uncertain and expand during highly predictable structural segments.

For more details, the code and data are available at github.com/LiZaiyuan0619/Sightline.

Summary updated

Abstract

Scalable Vector Graphics (SVG) generation models write a graphic as code with one forward pass per token, so drawing is slow. Speculative decoding speeds them up losslessly, and block drafters guess many tokens per pass. On SVG, many of their rounds accept the whole draft and end only at the verification window. We find that their misses are rare and clumped, and that they stay accurate far deeper into a block than on natural language. A run-length identity and three propositions show that a longer window pays once the candidates are wide, up to the drafter's horizon. We propose Sightline, which pairs a window as long as the drafter's horizon with a draft tree wide enough to fill it. Experiments cover text-to-SVG and image-to-SVG with three models on six benchmarks from MMSVG, MMSVG-2M and SArena. In every setting, Sightline is the fastest of the compared lossless decoders. On SArena, it stays the fastest when every decoder shares one loop control. It also leads in almost every setting of six models from four other families, which write SVG code, compressed SVG tokens or Lottie JSON. Analyses trace the lead to rounds that shorter windows cut off, both in loop-free content and in loops. Speculative decoding also saves time for choosing samples by rendering, which beats choosing by likelihood. These results suggest that speculative decoding on vector graphics should verify as far as the drafter sees. Code and data are available at https://github.com/LiZaiyuan0619/Sightline.
BibTeX
@misc{li2026sightline,
  author = {Yanchao Li and Ben Gao and Jiaqing Xie and Yusu Zhang and Beilun Wang and Yanbo Wang and Xiaohua Xu and Nanqing Dong and Tianfan Fu and Zhongyu Huang},
  title = {{Sightline: Long-Window Speculative Decoding for Fast SVG Generation}},
  year = {2026},
  eprint = {2611.23807},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.23807},
}
Figure