atlas

Research map / Architectures and efficiency / Attention and transformers

Don't Look Twice: Faster Video Transformers with Run-Length Tokenization

NeurIPS 2024 · Architectures and efficiency › Attention and transformers · approach: Transformer block and depth design · 7 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Run-Length Tokenization (RLT), which removes temporally repeated video patches before the transformer and adds a learnable run-length positional encoding, to speed up video transformer training and inference with little accuracy loss.

Problem

Video transformers are slow to train because uniform spatiotemporal patch tokenization yields huge token counts, many of which are redundant over time; existing pruning/merging/masking methods either add overhead, need padding, or are not content-aware.

Approach

Compare temporally consecutive raw patches (not embeddings) with an L1 threshold, drop static repeats before inference, and encode each surviving token's run length with a learnable length positional encoding; packs variable-length examples with block-diagonal attention so standard fast attention kernels still apply.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
replace standard tokenization with RLTViT-B · Kinetics-400accuracy: 80.1 -> 80.1No clear effect
replace standard tokenization with RLTViT-B · Kinetics-400FT time (8 GPU): 14.4h -> 10.2hHelped
replace standard tokenization with RLTViT-B · Something-Something-v2accuracy: 70.3 -> 70.2No clear effect
replace standard tokenization with RLTViT-L · Kinetics-400accuracy: 84.8 -> 84.7No clear effect
replace standard tokenization with RLTViT-L · Something-Something-v2accuracy: 74.3 -> 74.4No clear effect
replace standard tokenization with RLTViT-B · Kinetics-400 inferenceaccuracy: 80.5 -> 80.6No clear effect
replace standard tokenization with RLTViT-B · Kinetics-400 inferenceclips/s: 31.4 -> 52.6Helped
replace standard tokenization with RLTViT-L · Kinetics-400 inferenceaccuracy: 84.8 -> 84.6No clear effect
use RLT instead of standard tokenizationViT-L · Kinetics-400, 30 FPSFT time: 110h -> 52.3hHelped
increase the difference threshold above 0.1 (ablation)RLT · action recognitionaccuracyHurt
lower the difference threshold below 0.1 (ablation)RLT · action recognitionspeedupHurt
add length encoding (ablation)RLT · action recognitionaccuracyNo clear effect

Surprising findings

Limitations

Experimental setup

Datasets: Kinetics-400 Something-Something-v2 Breakfast COIN EPIC-Kitchens-100

Benchmarks: Kinetics-400 Something-Something-v2 EPIC-Kitchens-100 COIN Breakfast

Metrics: top-1 accuracy wall-clock fine-tuning time throughput (clips/s) GFLOPS token count reduction

Baselines: Token Merging (ToMe) random masking STA ViT baseline

Builds on: VideoMAE Token Merging Vision Transformer NaViT

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy