Spool: Low-Latency Streaming Inference for Hybrid Vision-Language Models

Rui Ning, Om Chabra, Hari BalakrishnanarXiv 2026

TL;DR

Spool is a training-free framework that enables low-latency streaming inference for hybrid Vision-Language Models (VLMs) by efficiently maintaining a sliding window of video frames. By treating recurrent state updates as associative affine transformations and using a segment tree for $O(\log W)$ reconstruction, it reduces tail latency by $6.6\times$ and improves online accuracy by avoiding the "recomputation spikes" that plague standard sliding window implementations.

What Problem Does This Paper Address?

In applications like robotics or visual accessibility, a Vision-Language Model (VLM) needs to process a continuous stream of video and answer questions in real-time. To stay within memory and compute limits, these systems use a sliding window: they keep the last $N$ frames and evict the oldest ones as new ones arrive.

Modern "hybrid" VLMs (like Qwen3.5-VL or Nemotron) are popular for this because they combine the best of two worlds:

  1. Attention layers for precise retrieval of past information.
  2. Linear recurrent layers (e.g., Mamba or Gated DeltaNet) for efficient, fixed-size state summaries of long sequences.

However, maintaining a sliding window in these hybrid models is surprisingly expensive. While attention layers can simply drop old "Key-Value" (KV) entries, recurrent layers "bake" every past frame into a single, shared state. When the oldest frame in the window expires, its influence persists in that state. To truly remove it, standard engines have to re-run the entire remaining window through the model from scratch.

Figure 3: The massive latency spike caused by full window rebuilding compared to a normal frame append.

As shown in Figure 3, this "window rebuild" can be nearly $30\times$ slower than a normal frame update, leading to massive latency spikes that make real-time interaction impossible.

Methods

Spool introduces three key mechanisms to handle window maintenance without replaying frames through the heavy model backbone:

1. Recurrent State Reconstruction

The authors observe that recurrent updates in layers like Gated DeltaNet (GDN) are affine transformations ($s_t = A_t s_{t-1} + b_t$). Crucially, these transformations are associative. Instead of caching the states themselves (which contain information from all previous frames), Spool caches the transformations ($A, B$) for each frame. When a frame expires, Spool uses a segment tree to compose the transformations of the remaining frames in $O(\log W)$ time, effectively "rebuilding" the state without re-running the neural network.

Figure 4: Using a segment tree to hierarchically compose cached transformations for efficient state recovery.

2. KV Tail Filling

In the attention cache, evicting the first few frames leaves "holes" in memory pages. Compacting these pages usually requires expensive memory copies. Spool avoids this by simply moving the newest KV entries into the vacated slots of the oldest entries. This keeps the cache dense with minimal data movement.

3. RoPE Rebasing

Attention layers use Rotary Position Embeddings (RoPE) to track token order. In a long-running stream, position indices would eventually exceed the model's precomputed tables. Spool periodically "rebases" the cache by shifting all position indices backward and applying a corrective rotation to the cached keys, ensuring the model always sees relative positions within its valid range.

Datasets

The authors evaluated Spool across six hybrid VLMs (ranging from 0.8B to 122B parameters) using four challenging video reasoning benchmarks:

  • StreamingBench: General streaming video understanding (multiple-choice).
  • PhoStream: Open-ended QA for long mobile video streams.
  • FastBench: High-dynamic scenes requiring dense temporal sampling.
  • Beyond3D: Spatiotemporal reasoning in egocentric (first-person) videos.

Key Insights and Ideas

  • Associativity is the "Aha!" Moment: By recognizing that recurrent updates can be treated as a non-commutative monoid, the authors turned a sequential $O(W)$ problem into a parallelizable $O(\log W)$ tree problem.
  • Layerwise vs. Full-Network Exactness: While Spool's state reconstruction is mathematically exact within a single layer, it is an approximation for the whole network (because earlier layers' outputs for frame $T$ might have been influenced by frame $T-100$ which is now gone). However, the paper proves this "residual influence" is negligible for accuracy.
  • Training-Free is Practical: Many streaming solutions require fine-tuning the model to handle windowing. Spool works out-of-the-box on pretrained checkpoints, making it immediately useful for the latest open-source models.

Key Results

  • Latency: Spool achieved the lowest p95 Time-To-First-Token (TTFT) in all 20 model-benchmark tests. It reduced tail latency by a geometric mean of $6.6\times$ (and up to $35.7\times$) compared to optimized vLLM baselines.
  • Responsiveness: In online serving, Spool kept p95 latency under 1 second in 16 out of 20 tests, whereas baselines only managed this in 3 tests.
  • Accuracy: Because Spool is faster, it drops fewer questions under heavy streaming loads. This led to an average 2.3 percentage point improvement in online accuracy, with gains as high as 18.4 points on the Beyond3D benchmark.
  • Memory Efficiency: The segment tree and caching add a modest overhead (about 18% for a 9B model), but the KV tail filling helps reclaim up to 1.8 GiB of peak memory.

Limitations and Future Work

  • Residual Influence: As noted, Spool doesn't perfectly match a full recomputation of the entire window because of inter-layer dependencies. While the error is bounded and doesn't accumulate, extremely sensitive tasks might notice the difference.
  • Memory Overhead: Caching the $A$ and $B$ matrices for every frame consumes extra GPU memory. While the authors use bfloat16 and residual representations to minimize this, it might still be a bottleneck for memory-constrained edge devices.
  • Future Directions: The authors suggest exploring how Spool could be combined with KV cache compression (like H2O or SnapKV) to further reduce the memory footprint of the attention component in hybrid models.

Summary updated

BibTeX
@misc{ning2026spool,
  author = {Rui Ning and Om Chabra and Hari Balakrishnan},
  title = {{Spool: Low-Latency Streaming Inference for Hybrid Vision-Language Models}},
  year = {2026},
  eprint = {2611.23228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.23228},
}
Figure