xT: Nested Tokenization for Larger Context in Large Images

Ritwik Gupta, Shufan Li, Tyler Lixuan Zhu, Jitendra Malik, Trevor Darrell +1 more
2/12/2026

No official code found. Best implementation: bair-climate-initiative/xT (62 stars, BSD-3-Clause, last commit 2024-03-22).

Abstract

Modern computer vision pipelines handle large images in one of two sub-optimal ways: down-sampling or cropping. These two methods incur significant losses in the amount of information and context present in an image. There are many downstream applications in which global context matters as much as high frequency details, such as in real-world satellite imagery; in such cases researchers have to make the uncomfortable choice of which information to discard. We introduce xT, a simple framework for vision transformers which effectively aggregates global context with local details and can model large images end-to-end on contemporary GPUs. We select a set of benchmark datasets across classic vision tasks which accurately reflect a vision model's ability to understand truly large images and incorporate fine details over large scales and assess our method's improvement on them. xT is a streaming, two-stage architecture that adapts existing vision backbones and long sequence language models to effectively model large images without quadratic memory growth. We are able to increase accuracy by up to 8.6% on challenging classification tasks and $F_1$ score by 11.6 on context-dependent segmentation on images as large as 29,000 x 29,000 pixels.

View on arXivView PDF

Code Implementations(1)

BSD-3-Clause
626Shell, PythonFeb 28, 20242 years agoBSD-3-Clause

Similar Papers

Cite this paper

@article{gupta2026nested,
  title  = {xT: Nested Tokenization for Larger Context in Large Images},
  author = {Ritwik Gupta and Shufan Li and Tyler Lixuan Zhu and Jitendra Malik and Trevor Darrell and K. Mangalam},
  year   = {2026},
  eprint = {2403.01915},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2403.01915},
  journal = {ICML 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/2403.01915.svg)](https://codeofpaper.com/paper/2403.01915)

Discussion