NeurIPS 2026Training-freePlug-and-playApache-2.0

Stop paying for the same tokens, frame after frame.

TeMPO is a frame-causal token compressor for video LLMs. It remembers the visual support already delivered to the language model — and spends your token budget only on fresh evidence. No retraining. No backbone changes. No extra budget.

★ Get it on GitHub ▶ Watch it think
1
line to integrate
0
training steps
5
video benchmarks wired in
2
backbones supported
Live walkthrough

Watch TeMPO think.

Pick a scenario. TeMPO sweeps the sampled frames once — compressing each one against its committed-support memory — then hands the language model a fraction of the tokens and answers the question.

Token budget

retention10%
tokens / frame0 / 729
delivered to LLM0

Committed-support memory

Compress
Prefill
Decode
TeMPO · 10% tokens
⌁ scripted walkthrough for illustration — run demo.py in the repo for real inference
The problem

Selector Collapse: compressors keep re-buying the same pixels.

Frame-local selectors reset their state every frame. Whatever the scoring rule — attention, diversity, temporal statistics — they keep retaining token supports that overlap with what earlier frames already committed to the LLM. The budget goes to evidence the model has already seen.

Frame-local selector

no memory
♻ reused 0 ✦ fresh 0

TeMPO

committed-support memory
♻ reused 0 ✦ fresh 0
frame 0 — same video, same budget, same salience
fresh pick reused pick salience covered before

⌁ conceptual simulation of the selection dynamics — measured support-overlap results are in the paper

The fix

A selector with a memory.

TeMPO turns frame-wise selection into a frame-causal decision process. Three pieces, all training-free, all at inference time.

01

Committed-support memory

The retained support of previous frames is kept as a compact, permutation-invariant set of metric features — a causal record of what the LLM has already received.

already explained ↓
02

Residual-energy selection

Each candidate is scored by the energy it still explains after projecting out committed and already-selected directions — novelty over noise, blended with query relevance.

03

Neighborhood fusion

Discarded tokens are folded into their nearest retained neighbors with similarity weights — local coverage is restored without adding a single token.

Architecture

One pass. Two stages. Zero retraining.

Compression runs between the projector and the language model: Stage 1 selects the committed support under the memory, Stage 2 refines it with parameter-free fusion — then writes the support back for the next frame.

tempo · frame-causal compression pipeline
TeMPO framework: committed-support selection and local refinement inside a multimodal LLM pipeline
Why TeMPO

Built like a product, not a patch.

⚡

Training-free

Drops in at inference. Weights, projector, and tokenizer stay untouched.

🧠

Frame-causal by design

Strictly online — no look-ahead, no second pass. Streaming-friendly.

🎛️

One knob that matters

RETAIN_RATIO sets the budget. Everything else has sensible defaults.

🧩

Budget-neutral fusion

Recovers local coverage from discarded tokens at zero extra token cost.

📦

Batteries included

Vendored LLaVA-NeXT + lmms-eval with five video benchmarks and one-command scripts.

🪪

Apache-2.0

Permissive license, readable reference implementation alongside the fast one.

Quick start

Up and running in a minute.

from llava.model.builder import load_pretrained_model
from tempo import tempo

tokenizer, model, processor, _ = load_pretrained_model(
    "lmms-lab/llava-onevision-qwen2-7b-ov", None, "llava_qwen",
    device_map="auto", multimodal=True,
)

model = tempo(model)   # ← visual tokens are now compressed at inference
# four video benchmarks, 10% token budget, one command
RETAIN_RATIO=0.10 bash scripts/eval_ov7b_tempo.sh

# LLaVA-Video backbone
RETAIN_RATIO=0.10 bash scripts/eval_llava_video_tempo.sh

# vanilla control under the identical harness: just unset WRAPPER
# single-video question answering
RETAIN_RATIO=0.10 python demo.py \
    --video kitchen.mp4 \
    --question "What happens after he opens the pot lid?"
Configuration

Four knobs. Sensible defaults.

All configuration is environment variables, read at inference time — nothing to subclass, nothing to rebuild.

variabledefaultwhat it does
WRAPPER—Method selector for lmms-eval runs: tempo (vectorized) or tempo_v1 (loop-form reference).
RETAIN_RATIO0.25Fraction of visual tokens retained per frame — the budget. 0.10 keeps 72 of 729 tokens.
TEXT_ALPHA0.15Weight of text-conditioned relevance in the joint selection score.
TEMPO_BASIS_CAP48Size of the committed-support memory — basis vectors carried across frames.
Citation

Cite TeMPO

@inproceedings{lai2026tempo, title = {TeMPO: Frame-Causal Token Compression for Video Reasoning}, author = {Lai, Yingxin and Xu, Bo and Pan, Yun-ze and Zhu, Zhiliang and Sun, Baigui and Liu, Yang}, booktitle = {Advances in Neural Information Processing Systems (NeurIPS)}, year = {2026} }
Copied ✓