Video In-context Learning

Wentao Zhang, Junliang Guo, Tianyu He, Li Zhao, Linli Xu +1 more
2/12/2026

No official code found. Best implementation: LargeWorldModel/LWM (7,427 stars, Apache-2.0, last commit 2024-10-19).

Abstract

People interact with the real-world largely dependent on visual signal, which are ubiquitous and illustrate detailed demonstrations. In this paper, we explore utilizing visual signals as a new interface for models to interact with the environment. Specifically, we choose videos as a representative visual signal. And by training autoregressive Transformers on video datasets in a self-supervised objective, we find that the model emerges a zero-shot capability to infer the semantics from a demonstration video, and imitate the semantics to an unseen scenario. This allows the models to perform unseen tasks by watching the demonstration video in an in-context manner, without further fine-tuning. To validate the imitation capacity, we design various evaluation metrics including both objective and subjective measures. The results show that our models can generate high-quality video clips that accurately align with the semantic guidance provided by the demonstration videos, and we also show that the imitation capacity follows the scaling law. Code and models have been open-sourced.

View on arXivView PDF

Code Implementations(1)

LargeWorldModel/LWMCommunity100%
Apache-2.0

Large World Model -- Modeling Text and Video with Millions Context

7,427559Shell, PythonFeb 8, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{zhang2026video,
  title  = {Video In-context Learning},
  author = {Wentao Zhang and Junliang Guo and Tianyu He and Li Zhao and Linli Xu and Jiang Bian},
  year   = {2026},
  eprint = {2407.07356},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2407.07356},
  journal = {ICLR 2024 2024}
}

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/2407.07356.svg)](https://codeofpaper.com/paper/2407.07356)

Discussion