Temporal Feature Caching for Real-Time Video Models

34 concepts26 papers2 proposals

When processing video or continuous data streams, deep learning models face a fundamental tension between temporal context and computational cost. To understand an action, track an object, or navigate an environment, a model must look at the past. However, passing every single frame through a heavy convolutional or transformer backbone introduces massive computational redundancy. Consecutive frames share almost identical visual information; re-extracting features from scratch for every step is a waste of clock cycles.

Historically, models bypassed this by using sparse sampling or expensive alignment techniques like optical flow. A more elegant, modern solution has emerged: temporal feature caching. Instead of re-processing raw inputs or storing massive histories of raw data, models compute features once, store them in a structured memory cache, and directly reuse or update them across time.

The Core Intuition: Amortizing the Backbone Cost

Why does feature caching work so well? The key insight is that high-level latent representations are far more compact and informative than raw pixels. By saving these features in a buffer, a model can perform long-range temporal reasoning while keeping the per-frame computational cost nearly constant.

For instance, in video object detection, Wang et al. introduced a Long Range Memory (LRM) module that caches enhanced features from previous frames. Instead of re-running the backbone network on older reference frames, the model simply queries the cache. This allows the system to scale its temporal reach dramatically with only marginal increases in per-frame processing time.

Similarly, in real-time streaming perception, Zhang et al. utilize a dedicated feature buffer to bypass redundant backbone extractions, maintaining high frame rates even on hardware with limited processing power. By treating historical features as a reusable asset, the network decouples the depth of its temporal context from its immediate computational burden.

Mechanisms of Storage: Banks, Buffers, and Queues

Depending on the task's constraints, the architecture of the cache varies to optimize the trade-off between memory footprint and temporal depth:

  • Ring Buffers and Queues: For low-latency tracking or gesture recognition, models often use fixed-size queues. In robotic surgery tracking, Karaoglu et al. implement a temporal ring buffer to cache expensive correlation features. When a new frame arrives, the system only computes data for that specific frame and updates the buffer, achieving a massive speedup. For gesture classification, Zhao et al. use an external memory queue to bridge the gap between short sensor sequences and long-term motion context.
  • Feature Banks: For complex tasks like action localization, a wider window is necessary. Wu et al. employ a storage bank to maintain representations over a wide temporal window (such as a 60-second interval), capturing narrative-level context. Yu et al. similarly use a history feature bank to capture interactions that unfold over extended durations without processing long video sequences simultaneously.

Preventing Memory Explosion: Compression and Recursive Updates

If a video lasts for minutes or hours, an unconstrained cache will eventually exhaust system memory. Researchers solve this using two primary strategies: spatial compression and recursive aggregation.

To keep memory access efficient during real-time surgical phase recognition, Yang et al. store spatially compressed representations instead of raw embeddings, allowing the model to reference the entire history of an event without significant overhead.

Alternatively, the cache can be updated recursively so that its size remains strictly constant. Xu et al. demonstrate this in 3D object detection, using a recursive memory bank that updates historical features rather than maintaining a sliding window of raw data. This ensures constant computational complexity regardless of how many frames have passed.

In text and document streams, Lee utilizes recursive feature averaging to maintain a running history with minimal computational cost. For video object segmentation, Li et al. formulate memory read and write operations as fast matrix multiplications over a fixed-size global representation, avoiding the need to search through an ever-growing library of past frames.

The Streaming Transformer Paradigm: KV Caching for Vision

With the rise of vision transformers, feature caching has naturally evolved into Key-Value (KV) caching, mirroring the autoregressive techniques used in Large Language Models.

In 3D scene reconstruction, Zhuo et al. implement a causal transformer with a KV-caching mechanism, reducing the incremental cost of processing each new frame to a linear relationship with sequence length. For vision-language navigation, Zeng et al. store internal KV caches as an implicit memory representation, allowing embodied agents to reason over long trajectories without re-processing raw video frames.

To make large-scale robotic models viable for real-time deployment, Jang compresses past observations into a single context token at an intermediate layer alongside KV caching, drastically accelerating both training and inference speeds.

Direct Feature Reuse vs. Propagation

A final compelling aspect of this paradigm is the shift away from explicit feature propagation methods like optical flow or attention-based warping, which are themselves computationally heavy.

Zheng et al. demonstrate that high-level features from a keyframe can be directly reused in subsequent frames and fused with lightweight current-frame details, completely bypassing the need for optical flow while achieving speeds up to 80 FPS. Similarly, Gao et al. decompose videos into short, non-overlapping units where features are extracted once and shared across multiple overlapping candidate segments, eliminating redundant multi-scale computations.

By treating time not as a sequence of independent images, but as a continuous stream of evolving features, temporal feature caching allows modern neural networks to achieve the best of both worlds: the rich context of long-term history and the blistering speed required for real-time deployment.

Key Foundational Work

TURN TAP: Temporal Unit Regression Network for Temporal Action Proposals (2017) — contributed 2 concept elements to this direction.
Online Sentence Novelty Scoring for Topical Document Streams (2015) — contributed 1 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_temporal_feature_caching_recurrent_featu_cf991e5e,
  title = {temporal feature caching (recurrent feature caching)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/temporal-feature-caching-recurrent-feature-caching/rdr_cf991e5e582c44aab7723ca99873f44e},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_temporal_feature_caching_recurrent_featu_cf991e5e_v1,
  title = {temporal feature caching (recurrent feature caching)},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/temporal-feature-caching-recurrent-feature-caching/rdr_cf991e5e582c44aab7723ca99873f44e/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake