TokenTrim: Inference-Time Token Pruning for Autoregressive Long Video Generation

Ariel Shaulov, Eitan Shaar, Amit Edenzon, Lior Wolf
1/30/2026
cs.CVcs.AI

No official code found. Best implementation: arielshaulov/TokenTrim (15 stars, last commit 2026-02-08).

Abstract

Auto-regressive video generation enables long video synthesis by iteratively conditioning each new batch of frames on previously generated content. However, recent work has shown that such pipelines suffer from severe temporal drift, where errors accumulate and amplify over long horizons. We hypothesize that this drift does not primarily stem from insufficient model capacity, but rather from inference-time error propagation. Specifically, we contend that drift arises from the uncontrolled reuse of corrupted latent conditioning tokens during auto-regressive inference. To correct this accumulation of errors, we propose a simple, inference-time method that mitigates temporal drift by identifying and removing unstable latent tokens before they are reused for conditioning. For this purpose, we define unstable tokens as latent tokens whose representations deviate significantly from those of the previously generated batch, indicating potential corruption or semantic drift. By explicitly removing corrupted latent tokens from the auto-regressive context, rather than modifying entire spatial regions or model parameters, our method prevents unreliable latent information from influencing future generation steps. As a result, it significantly improves long-horizon temporal consistency without modifying the model architecture, training procedure, or leaving latent space.

View on arXivView PDF

Code Implementations(1)

Official implementation of the paper "TOKENTRIM: INFERENCE-TIME TOKEN PRUNING FOR AUTOREGRESSIVE LONG VIDEO GENERATION"

150Jan 30, 20268 months ago

Similar Papers

Cite this paper

@article{shaulov2026tokentrim,
  title  = {TokenTrim: Inference-Time Token Pruning for Autoregressive Long Video Generation},
  author = {Ariel Shaulov and Eitan Shaar and Amit Edenzon and Lior Wolf},
  year   = {2026},
  eprint = {2602.00268},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.00268v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.00268.svg)](https://codeofpaper.com/paper/2602.00268)

Discussion