HiViS: Hiding Visual Tokens from the Drafter for Speculative Decoding in Vision-Language Models

Zhinan Xie, Peisong Wang, Shuang Qiu, Jian Cheng

TL;DR

Extension of speculative decoding to Vision-Language Models (VLMs) is typically bottlenecked by the massive computational overhead and modality misalignment of visual tokens. HiViS bypasses this by completely hiding visual tokens from the lightweight drafter model, instead leveraging the large target VLM to inject visual semantics directly into the textual embeddings. This approach, paired with a step-dependent residual training scheme, yields up to a 3.15× inference speedup losslessly.

What Problem Does This Paper Address?

Speculative decoding is a popular technique to accelerate autoregressive large language model (LLM) inference. It uses a tiny, fast "drafter" model to generate a sequence of candidate tokens, which a large "target" model then verifies in parallel in a single forward pass.

While highly effective for text, applying this to Vision-Language Models (VLMs) introduces two major hurdles:

  1. The Computational Burden: Modern VLMs generate thousands of visual tokens (e.g., LLaVA-Next uses over 2,000 tokens for high-resolution images). Forcing a lightweight drafter to process these massive sequences completely destroys its speed advantage.
  2. The Capacity and Semantic Gap: Visual tokens are highly optimized for the large target model's internal representation space. A small drafter model lacks the capacity to handle complex cross-modal feature fusion, leading to poor draft quality and low token acceptance rates.

The authors ask a fundamental question: Can the drafter avoid directly processing visual tokens while still accessing vital visual semantics?

Figure 1. Input modalities for drafting.(a) Naive: feed both vi- sual and textual tokens directly to the drafter. (b) Extensions: Ad- ditional module pre-processing visual and textual tokens before drafting. (c) HiViS: removes visual tokens and uses a semantic fusion module to enrich textual tokens with visual information.

Methods

HiViS introduces a novel paradigm that completely removes visual tokens from the drafter's input sequence, matching its prefill length strictly to the textual tokens.

The framework relies on two key components:

  • Semantic Fusion via the Target VLM: During the initial prefill stage, the target VLM processes both visual and textual tokens. Because its deep layers naturally fuse cross-modal information, the authors extract the target VLM's final-layer text hidden states. These "visual-injected text embeddings" are then fed to the drafter, giving it full access to the visual context without ever seeing a raw visual token.
  • Time-Step-Aware Residual Aligned Training: Because the drafter operates independently during the drafting phase without real-time feedback from the target VLM, semantic errors can accumulate over multiple steps. To stabilize this, HiViS introduces step-dependent bias-correction residuals ($r^i$) that are linearly added to the embeddings at each drafting step, progressively adjusting the representations.

The training process is split into two stages: Stage 1 builds foundational single-step predictive capabilities, while Stage 2 simulates multi-step tree drafting using a dynamic top-K filtering strategy with early stopping to filter out consistently mispredicted hard tokens.

Datasets

For training, the authors utilized a balanced mixture of:

  • ShareGPT: 68,000 text-only dialogues.
  • LLaVA-Mix665k: 68,000 multimodal samples (filtered to exclude answers shorter than five words).

For evaluation, HiViS was tested across eight standard VQA and vision-reasoning benchmarks: ChartQA, VQAv2, ScienceQA, TextVQA, MME, MM-Vet, SEED-Bench, and GQA.

Key Insights and Ideas

  • Visual tokens are indispensable, but only to the target model: Layer-wise analysis reveals that the target VLM's deep decoder layers progressively absorb visual information into the text representations. By the final layers, the magnitudes across modalities balance out, meaning the text tokens already carry the necessary visual cues.
  • Less is more for the drafter: Surprisingly, providing the drafter with only visual-injected text tokens yields a higher average acceptance length (3.28) than providing it with the full sequence of raw visual and text tokens (3.04). Eliminating raw visual tokens removes distracting, unaligned noise that a small model cannot parse effectively.
Figure 3. Visualization of vision attention across layers and to- kens. (a) Mean attention from post-visual tokens to visual tokens across layers. The gray plane separates the instruction region from the generated text. (b) Attention variation curves obtained over layers. (c) Attention variation curves obtained over tokens.

Key Results

HiViS was evaluated against leading speculative decoding baselines (EAGLE-2, MSD, ViSpec, Dream) across multiple architectures including LLaVA-1.5, LLaVA-Next, and Qwen2.5-VL.

  • Speedup Ratios: Under greedy sampling ($T=0$), HiViS achieved a 3.15× speedup on Qwen2.5-VL-7B for TextVQA, consistently outperforming all baselines.
  • Acceptance Length: The average acceptance length ($\tau$) saw significant improvements across the board, demonstrating tighter semantic alignment between the visual-hidden drafter and the target VLM.
  • Robustness: Even when tested under different draft tree depths (6 to 10), the residual-based training allowed acceptance lengths to scale positively with depth, proving that the bias-correction mechanism successfully prevents semantic drift.

Limitations and Future Work

While HiViS significantly optimizes the drafting phase, it still requires the target VLM to run its full multimodal prefill phase to generate the initial fused text embeddings. Furthermore, during training, the authors capped the simulated draft length at $N=4$, meaning that for exceptionally long drafting sequences at inference time, the final residual ($r^3$) must be reused iteratively, which could potentially limit alignment over very long generation horizons. Future work could explore dynamically scaling these residuals for longer generation tasks.

Summary updated

BibTeX
@inproceedings{xie2026hivis,
  author = {Zhinan Xie and Peisong Wang and Shuang Qiu and Jian Cheng},
  title = {{HiViS: Hiding Visual Tokens from the Drafter for Speculative Decoding in Vision-Language Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=zJdYjhSuiG},
}
Figure