Win-Win: Training High-Resolution Vision Transformers from Two Windows
Not on the map. Why?
Abstract (arXiv)
Transformers have become the standard in state-of-the-art vision architectures, achieving impressive performance on both image-level and dense pixelwise tasks. However, training vision transformers for high-resolution pixelwise tasks has a prohibitive cost. Typical solutions boil down to hierarchical architectures, fast and approximate attention, or training on low-resolution crops. This latter solution does not constrain architectural choices, but it leads to a clear performance drop when testing at resolutions significantly higher than that used for training, thus requiring ad-hoc and slow post-processing schemes. In this paper, we propose a novel strategy for efficient training and inference of high-resolution vision transformers. The key principle is to mask out most of the high-resolution inputs during training, keeping only N random windows. This allows the model to learn local interactions between tokens inside each window, and global interactions between tokens from different windows. As a result, the model can directly process the high-resolution input at test time without any special trick. We show that this strategy is effective when using relative positional embedding such as rotary embeddings. It is 4 times faster to train than a full-resolution network, and it is straightforward to use at test time compared to existing approaches. We apply this strategy to three dense prediction tasks with high-resolution data. First, we show on the task of semantic segmentation that a simple setting with 2 windows performs best, hence the name of our method: Win-Win. Second, we confirm this result on the task of monocular depth prediction. Third, we further extend it to the binocular task of optical flow, reaching state-of-the-art performance on the Spring benchmark that contains Full-HD images with an order of magnitude faster inference than the best competitor.
Key facts. Cited by 12 papers in the map (data through 14 Oct 2026). Builds on 67 of its 74 references that are in the map. First posted on arXiv 1 Oct 2023.
Builds on
67 of 74 references.
References · 67
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2023Segment Anythingcited by 8,234
- 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
- 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
- 2022A ConvNet for the 2020scited by 3,579
- 2020RAFT: Recurrent All-Pairs Field Transforms for Optical Flowcited by 2,415
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
38 more
- 2021Vision Transformers for Dense Predictioncited by 1,803
- 2020Rethinking Attention with Performerscited by 1,601
- 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
- 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
- 2017Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semanticscited by 1,358
- 2022VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Trainingcited by 1,322
- 2018BDD100K: A Diverse Driving Dataset for Heterogeneous Multitask Learningcited by 1,288
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
- 2021SimMIM: A Simple Framework for Masked Image Modelingcited by 1,153
- 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
- 2015FlowNet: Learning Optical Flow with Convolutional Networkscited by 1,059
- 2022Token Merging: Your ViT But Fastercited by 1,021
- 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
- 2021Multiscale Vision Transformerscited by 897
- 2015A Large Dataset to Train Convolutional Networks for Disparity, Optical Flow, and Scene Flow Estimationcited by 881
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
- 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 724
- 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 718
- 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
- 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 629
- 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
- 2022GroupViT: Semantic Segmentation Emerges from Text Supervisioncited by 531
- 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 519
- 2020TartanAir: A Dataset to Push the Limits of Visual SLAMcited by 506
- 2022Masked Autoencoders As Spatiotemporal Learnerscited by 429
- 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 362
- 2022Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learningcited by 359
- 2021XCiT: Cross-Covariance Image Transformerscited by 338
- 2022MultiMAE: Multi-modal Multi-task Masked Autoencoderscited by 291
- 2022FlowFormer: A Transformer Architecture for Optical Flowcited by 275
- 2022Unifying Flow, Stereo and Depth Estimationcited by 275
- 2023Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolutioncited by 229
- 2021Scaling Local Self-Attention for Parameter Efficient Visual Backbonescited by 220
- 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
- 2020Revisiting Stereo Depth Estimation From a Sequence-to-Sequence Perspective with Transformerscited by 190
- 2023Spring: A High-Resolution High-Detail Dataset and Benchmark for Scene Flow, Optical Flow and Stereocited by 172
- 2022CroCo v2: Improved Cross-view Completion Pre-training for Stereo Matching and Optical Flowcited by 166
- 2022CroCo: Self-Supervised Pre-training for 3D Vision Tasks by Cross-View Completioncited by 160
50 most cited of 67 All 67 (JSON)
Built on by
Citing papers per year: 2024: 2; 2025: 5; 2026: 5.
12 papers.
- 2024SEA-RAFT: Simple, Efficient, Accurate RAFT for Optical Flowcited by 174
- 2025Pow3R: Empowering Unconstrained 3D Reconstruction with Camera and Scene Priorscited by 72
- 2025WAFT: Warping-Alone Field Transforms for Optical Flowcited by 34
- 2025FlowSeek: Optical Flow Made Easier with Depth Foundation Models and Motion Basescited by 10
- 2025Thicker and Quicker: A Jumbo Token for Fast Plain Vision Transformerscited by 4
- 2025Tile-Based ViT Inference with Visual-Cluster Priors for Zero-Shot Multi-Species Plant Identificationcited by 2
- 2024HRSAM: Efficient Interactive Segmentation in High-Resolution Imagescited by 1
- 2026Do VLMs Need Vision Transformers? Evaluating State Space Models as Vision Encoderscited by 0
- 2026FlowIt: Global Matching via Hierarchical Transformers and Optimal Transport for Optical Flowcited by 0
- 2026ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformerscited by 0
- 2026HRDiT: Training-Free High-Resolution Image Generation with Off-the-Shelf Diffusion Transformer Modelscited by 0
- 2026FreeFlow: A Bias-free Hierarchical Transformer for Optical Flow Estimationcited by 0
- 2026FreeFlow: A Bias-free Hierarchical Transformer for Optical Flow Estimation10 Sep 2026
- 2026HRDiT: Training-Free High-Resolution Image Generation with Off-the-Shelf Diffusion Transformer Models7 Aug 2026
- 2026ELSA: Exact Linear-Scan Attention for Fast and Memory-Light Vision Transformers26 Apr 2026
- 2026FlowIt: Global Matching via Hierarchical Transformers and Optimal Transport for Optical Flow30 Mar 2026
- 2026Do VLMs Need Vision Transformers? Evaluating State Space Models as Vision Encoders19 Mar 2026
- 2025FlowSeek: Optical Flow Made Easier with Depth Foundation Models and Motion Bases5 Sep 2025
- 2025Tile-Based ViT Inference with Visual-Cluster Priors for Zero-Shot Multi-Species Plant Identification8 Jul 2025
- 2025WAFT: Warping-Alone Field Transforms for Optical Flow26 Jun 2025
- 2025Pow3R: Empowering Unconstrained 3D Reconstruction with Camera and Scene Priors21 Mar 2025
- 2025Thicker and Quicker: A Jumbo Token for Fast Plain Vision Transformers20 Feb 2025
- 2024HRSAM: Efficient Interactive Segmentation in High-Resolution Images2 Jul 2024
- 2024SEA-RAFT: Simple, Efficient, Accurate RAFT for Optical Flow23 May 2024