LeapLabTHU/ViTTT
소개
[CVPR 2026] [Best Paper Finalist] [Oral] Official repository of Vision Test-Time Training
기타 프로젝트측정된 스타 증가
- in 24h
- 0
- in 7 days
- +5
- in 15 days
- +8
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original$\text{ViT}^3$: Unlocking Test-Time Training in Vision
This repo contains the official PyTorch code and pre-trained models for Vision Test-Time Training ($\text{ViT}^3$).
$\text{ViT}^3$: Unlocking Test-Time Training in Vision
News
June 16, 2026: Code for generation is released.
June 05, 2026: Selected as a Best Paper Finalist (15 out of 16,092 submissions).
May 28, 2026: Code for detection and segmentation is released.
April 09, 2026: Selected as an oral.
February 21, 2026: Accepted to CVPR 2026. Final ratings: 6, 6, 5 (min: 1 Reject, max: 6 Accept).
Abstract
Test-Time Training (TTT) has recently emerged as a promising direction for efficient sequence modeling. TTT reformulates attention operation as an online learning problem, constructing a compact inner model from key-value pairs at test time. This reformulation opens a rich and flexible design space while achieving linear computational complexity. However, crafting a powerful visual TTT design remains challenging: fundamental choices for the inner module and inner training lack comprehensive understanding and practical guidelines. To bridge this critical gap, in this paper, we present a systematic empirical study of TTT designs for visual sequence modeling. From a series of experiments and analyses, we distill six practical insights that establish design principles for effective visual TTT and illuminate paths for future improvement. These findings culminate in the Vision Test-Time Training ($\text{ViT}^3$) model, a pure TTT architecture that achieves linear complexity and parallelizable computation. We evaluate $\text{ViT}^3$ across diverse visual tasks, including image classification, image generation, object detection, and semantic segmentation. Results show that $\text{ViT}^3$ consistently matches or outperforms advanced linear-complexity models (e.g., Mamba and linear attention variants) and effectively narrows the gap to highly optimized vision Transformers. We hope this study and the $\text{ViT}^3$ baseline can facilitate future work on visual TTT models.
Usage
We provide a minimal implementation of $\text{ViT}^3$ block in ttt_block.py, which can act as a plug-in module in various vision tasks.
- Example:
from ttt_block import TTT
block = TTT(dim=512, num_heads=16)
x = torch.rand(1, 256, 512)
x = block(x, h=16, w=16)
Results
Please go to the folders vittt, dittt, detection, and segmentation for specific documents.
Acknowledgements
This code is developed on the top of Swin Transformer, MILA, DiT and mmcv.
Citation
If you find this repo helpful, please consider citing us.
@inproceedings{han2025vit,
title={ViT$^3$: Unlocking Test-Time Training in Vision},
author={Han, Dongchen and Li, Yining and Li, Tianyu and Cao, Zixuan and Wang, Ziming and Song, Jun and Cheng, Yu and Zheng, Bo and Huang, Gao},
booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition},
year={2026}
}
Contact
If you have any questions, please feel free to contact the authors.
Dongchen Han: [email protected]
관련 프로젝트 살펴보기
불러오는 중…