mlsanityData to 14 Oct 2026

Win-Win: Training High-Resolution Vision Transformers from Two Windows

arXiv 2310.00632 ↗First posted 1 Oct 2023cs.CVcited by 12

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
  4. 2023Segment Anythingcited by 8,234
  5. 2023DINOv2: Learning Robust Visual Features without Supervisioncited by 7,974
  6. 2021Masked Autoencoders Are Scalable Vision Learnerscited by 7,403
  7. 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
  8. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
  9. 2020Training data-efficient image transformers & distillation through attentioncited by 4,586
  10. 2022A ConvNet for the 2020scited by 3,579
  11. 2020RAFT: Recurrent All-Pairs Field Transforms for Optical Flowcited by 2,415
  12. 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
38 more
  1. 2021Vision Transformers for Dense Predictioncited by 1,803
  2. 2020Rethinking Attention with Performerscited by 1,601
  3. 2020Linformer: Self-Attention with Linear Complexitycited by 1,474
  4. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,369
  5. 2017Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semanticscited by 1,358
  6. 2022VideoMAE: Masked Autoencoders are Data-Efficient Learners for Self-Supervised Video Pre-Trainingcited by 1,322
  7. 2018BDD100K: A Diverse Driving Dataset for Heterogeneous Multitask Learningcited by 1,288
  8. 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
  9. 2021SimMIM: A Simple Framework for Masked Image Modelingcited by 1,153
  10. 2021Tokens-to-Token ViT: Training Vision Transformers from Scratch on ImageNetcited by 1,101
  11. 2015FlowNet: Learning Optical Flow with Convolutional Networkscited by 1,059
  12. 2022Token Merging: Your ViT But Fastercited by 1,021
  13. 2021CvT: Introducing Convolutions to Vision Transformerscited by 947
  14. 2021Multiscale Vision Transformerscited by 897
  15. 2015A Large Dataset to Train Convolutional Networks for Disparity, Optical Flow, and Scene Flow Estimationcited by 881
  16. 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 864
  17. 2022Exploring Plain Vision Transformer Backbones for Object Detectioncited by 724
  18. 2018CCNet: Criss-Cross Attention for Semantic Segmentationcited by 718
  19. 2023Scaling Vision Transformers to 22 Billion Parameterscited by 694
  20. 2021Perceiver IO: A General Architecture for Structured Inputs & Outputscited by 629
  21. 2021Twins: Revisiting the Design of Spatial Attention in Vision Transformerscited by 565
  22. 2022GroupViT: Semantic Segmentation Emerges from Text Supervisioncited by 531
  23. 2021MViTv2: Improved Multiscale Vision Transformers for Classification and Detectioncited by 519
  24. 2020TartanAir: A Dataset to Push the Limits of Visual SLAMcited by 506
  25. 2022Masked Autoencoders As Spatiotemporal Learnerscited by 429
  26. 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 362
  27. 2022Scaling Vision Transformers to Gigapixel Images via Hierarchical Self-Supervised Learningcited by 359
  28. 2021XCiT: Cross-Covariance Image Transformerscited by 338
  29. 2022MultiMAE: Multi-modal Multi-task Masked Autoencoderscited by 291
  30. 2022FlowFormer: A Transformer Architecture for Optical Flowcited by 275
  31. 2022Unifying Flow, Stereo and Depth Estimationcited by 275
  32. 2023Patch n' Pack: NaViT, a Vision Transformer for any Aspect Ratio and Resolutioncited by 229
  33. 2021Scaling Local Self-Attention for Parameter Efficient Visual Backbonescited by 220
  34. 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
  35. 2020Revisiting Stereo Depth Estimation From a Sequence-to-Sequence Perspective with Transformerscited by 190
  36. 2023Spring: A High-Resolution High-Detail Dataset and Benchmark for Scene Flow, Optical Flow and Stereocited by 172
  37. 2022CroCo v2: Improved Cross-view Completion Pre-training for Stereo Matching and Optical Flowcited by 166
  38. 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

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 2; 2025: 5; 2026: 5.

12 papers.