MatchAttention: Embedding Explicit Matching Constraints into Attention for Efficient Stereo Matching
Not on the map. Why?
Abstract (arXiv)
Standard attention mechanisms are not well suited to stereo matching. Global attention scales quadratically and provides no explicit matching constraint, while local attention is efficient but loses long-range correspondences. We propose MatchAttention, an attention mechanism that embeds an explicit matching constraint into attention by treating the relative position between a query and its matched key as a learnable component of attention sampling. Centering a small contiguous sampling window on this learnable relative position enforces the matching constraint and supports long-range correspondence at strictly linear attention complexity. A differentiable contiguous attention sampling (CAS) operator enables sub-pixel accuracy, and cascaded MatchAttention blocks iteratively refine the relative positions through residual connections. We instantiate MatchAttention as a hierarchical coarse-to-fine stereo network with two variants. MatchAttentionXL targets accuracy and MatchAttentionRT targets real-time edge inference. MatchAttentionXL achieves state-of-the-art accuracy on Middlebury V3 and top results across KITTI 2012/2015 and ETH3D. MatchAttentionRT runs at 9.3 ms on RTX 4060 Ti and 79.1 ms on Jetson Orin NX 16 GB at 1024 x 512, making it the first stereo model to deliver real-time edge inference without sacrificing zero-shot generalization. The code is available at https://github.com/TingmanYan/MatchAttention.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 73 of its 96 references that are in the map. First posted on arXiv 16 Oct 2025.
Builds on
73 of 96 references.
References · 73
- 2017Attention Is All You Needcited by 60,361
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2024The Llama 3 Herd of Modelscited by 14,715
- 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
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,703
- 2014Neural Machine Translation by Jointly Learning to Align and Translatecited by 4,548
- 2016Gaussian Error Linear Units (GELUs)cited by 3,502
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,422
- 2020Longformer: The Long-Document Transformercited by 3,413
- 2020RAFT: Recurrent All-Pairs Field Transforms for Optical Flowcited by 2,415
38 more
- 2020Big Bird: Transformers for Longer Sequencescited by 1,684
- 2023DUSt3R: Geometric 3D Vision Made Easycited by 1,567
- 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,423
- 2024Depth Anything V2cited by 1,422
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,228
- 2022BEVFormer: Learning Bird's-Eye-View Representation from Multi-Camera Images via Spatiotemporal Transformerscited by 1,218
- 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
- 2015FlowNet: Learning Optical Flow with Convolutional Networkscited by 1,059
- 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,026
- 2017PWC-Net: CNNs for Optical Flow Using Pyramid, Warping, and Cost Volumecited by 968
- 2015A Large Dataset to Train Convolutional Networks for Disparity, Optical Flow, and Scene Flow Estimationcited by 881
- 2018Pyramid Stereo Matching Networkcited by 489
- 2021Conditional Positional Encodings for Vision Transformerscited by 406
- 2017End-to-End Learning of Geometry and Context for Deep Stereo Regressioncited by 360
- 2020Virtual KITTI 2cited by 353
- 2021RAFT-Stereo: Multilevel Recurrent Field Transforms for Stereo Matchingcited by 353
- 2021GMFlow: Learning Optical Flow via Global Matchingcited by 327
- 2022FlowFormer: A Transformer Architecture for Optical Flowcited by 275
- 2022Unifying Flow, Stereo and Depth Estimationcited by 275
- 2022Neighborhood Attention Transformercited by 239
- 2021Learning to Estimate Hidden Motions with Global Motion Aggregationcited by 224
- 2022Practical Stereo Matching via Cascaded Recurrent Network with Adaptive Correlationcited by 197
- 2020Revisiting Stereo Depth Estimation From a Sequence-to-Sequence Perspective with Transformerscited by 190
- 2023Iterative Geometry Encoding Volume for Stereo Matchingcited by 190
- 2024SEA-RAFT: Simple, Efficient, Accurate RAFT for Optical Flowcited by 174
- 2025FoundationStereo: Zero-Shot Stereo Matchingcited by 173
- 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
- 2021CFNet: Cascade and Fused Cost Volume for Robust Stereo Matchingcited by 154
- 2022MetaFormer Baselines for Visioncited by 132
- 2020HITNet: Hierarchical Iterative Tile Refinement Network for Real-time Stereo Matchingcited by 120
- 2019Domain-invariant Stereo Matching Networkscited by 109
- 2024Selective-Stereo: Adaptive Frequency Information Selection for Stereo Matchingcited by 99
- 2022CRAFT: Cross-Attentional Flow Transformer for Robust Optical Flowcited by 82
- 2022Global Matching with Overlapping Attention for Optical Flow Estimationcited by 64
- 2023TransNeXt: Robust Foveal Visual Perception for Vision Transformerscited by 61
- 2024IGEV++: Iterative Multi-range Geometry Encoding Volumes for Stereo Matchingcited by 59
- 2022SKFlow: Learning Optical Flow with Super Kernelscited by 56
50 most cited of 73 All 73 (JSON)
Built on by
Not cited yet.