Manuscript Offprint

arXiv:2608.29819

PhasorNet: Learning Structure from Frequency for Real-Time Stereo Matching

Md Raqib Khan, Santosh Kumar Vipparthi, Subrahmanyam Murala

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Md Raqib Khan1^{1}, Santosh Kumar Vipparthi2^{2}, and Subrahmanyam Murala1^{1}

1^{1} CVPR Lab, Trinity College Dublin, The University of Dublin, Dublin, Ireland

2^{2} CVPR Lab, Indian Institute of Technology Ropar, Rupnagar, Punjab, India

khanmd@tcd.ie

Abstract. Accurate stereo matching remains challenging in ill-posed regions such as fine structures, reflective, or transparent objects, where appearance cues are often ambiguous or unreliable. To tackle this, we propose PhasorNet, a lightweight yet powerful framework that boosts geometric discrimination via frequency-domain cues. At its core, the Phase-Augmented Transformer (PAT) injects Fourier-derived phase information into the attention mechanism, yielding photometrically robust, structure-preserving features that prioritize structural consistency in difficult areas. Additionally, we develop a Geometry-Context Fusion Refinement Module (GCFRM) that combines a full-resolution convolutional stream with a lightweight attention-based stream (leveraging WQA and CDGA blocks) to efficiently preserve fine details and object boundaries without excessive overhead. Training is further enhanced by a multi-scale Edge-guided High-Error Region (EHR) loss that adaptively focuses optimization on high-error and edge regions, guiding hierarchical cost volume refinement. With only 5.3M parameters, PhasorNet achieves state-of-the-art performance on the challenging ETH3D benchmark while exhibiting excellent cross-domain generalization on KITTI, delivering an efficient and practical solution for accurate real-time stereo matching.

1 Introduction

Accurate stereo depth estimation is fundamental for 3D perception in autonomous driving, robotics, and augmented reality. This task requires establishing precise pixel-wise correspondences between rectified image pairs to recover scene geometry. Despite significant advances, contemporary learning-based methods face three interconnected challenges: learning geometrically informative features, efficiently processing matching costs, and refining disparities while preserving fine details under practical computational constraints. The foundation of any stereo system lies in its feature representation. While deep learning has largely replaced handcrafted features with learned representations, conventional backbones whether CNN-based (ResNet [8]), Transformer-based (ViT [4]) are typically optimized for semantic recognition rather than geometric matching. Consequently, extracted features may be semantically rich but geometrically ambiguous, especially on challenging surfaces such as transparent glass, textureless

Khan et al.

Figure

Fig. 1: Accuracy-efficiency trade-offs of state-of-the-art stereo matching methods trained on the Scene Flow dataset. Left: D1 error versus model size (number of parameters). Right: Memory consumption versus inference time. PhasorNet is highlighted, illustrating a favorable balance between accuracy and computational efficiency.

Figure

Fig. 2: Example Illustrating challenges in stereo matching. Non-Lambertian and reflective regions (e.g., vehicle glass) and fine structural details lead to photometric inconsistencies and weak texture, causing recent methods such as Selective-IGEV and MonSter to produce degraded or smoothed disparities. This motivates the need for structure-aware feature representations that emphasize geometric consistency over appearance similarity.

walls, or reflective materials [27, 37]. As illustrated in Fig. 2, transparent surfaces severely disrupt appearance-based matching, motivating the need for features that capture invariant structural contours.

To address this, we introduce the Phase-Augmented Transformer (PAT), whose core is a Phase-Augmented Cross-Attention (PAC) module (defined in Sec. 3.2). Unlike intensity-based features, which are sensitive to transparency, reflections, and low texture, PAT leverages phase-aware attention to capture high-frequency structural cues in the Fourier domain. The phase of the Fourier transform, when isolated via magnitude normalisation, is largely insensitive to intensity variations and preserves the dominant geometric structure of the signal [19]. Furthermore, the relationship between phases across views directly encodes spatial displacements, a property widely exploited in frequency-domain registration [6, 12]. This makes phase information inherently suited for robust matching in ill-posed regions. For feature extraction, the global nature of the Fourier transform is ideal: it captures large-scale geometric consistency (e.g., building edges, car silhouettes) in a manner robust to local intensity variations.

Once features are extracted, conventional approaches construct a 3D cost volume processed by expensive 3D convolutions [1, 23], incurring high memory and computation. Recent methods reduce cost via adaptive 2D aggregation [34] or iterative refinement [14, 15], but often sacrifice edge precision or speed. Departing from this paradigm, we eliminate 3D convolutions entirely and process the cost volume at multiple scales using only 2D operations. To guide learning, we propose a novel Edge-guided and High-Error Region (EHR) Loss that supervises predicted disparity maps at multiple scales, emphasizing object boundaries and hard regions without heavy post-processing.

The final stage refines the initial disparity estimate. While iterative methods like RAFT - Stereo [15] achieve high accuracy, they rely on multiple recurrent updates, increasing latency and often over-smoothing object boundaries. To address this, we introduce a Geometry-Context Fusion Refinement Module (GCFRM) that combines a full-resolution convolutional stream (preserving spatial details) with a lightweight attention-based stream that captures global context. The attention stream integrates Wavelet-Based Query Attention (WQA) and Cross-Dimensional Gated Attention (CDGA). Unlike the Fourier transform used in PAT for global phase cues, the discrete wavelet transform (DWT) in WQA provides localised multi-scale frequency decomposition, which is essential for sharp boundary preservation during refinement. Thus, the two transforms are deliberately chosen for complementary roles: FFT for global structural cues robust to photometric variations, and DWT for local edge enhancement, this design is validated by ablations.

Our main contributions are:

– PhasorNet, a compact end-to-end stereo network (5.3M parameters) that balances accuracy, efficiency, and detail preservation.

– A Phase-Augmented Transformer encoder that injects Fourier phase information into attention, significantly improving robustness on transparent, reflective, and low-texture surfaces.

– A Geometry-Context Fusion Refinement Module that combines a full-resolution convolutional stream with lightweight attention (WQA and CDGA) to preserve fine details and boundaries.

– The EHR Loss, a multi-scale supervision strategy that emphasizes edges and high-error regions to guide hierarchical cost volume refinement.

Extensive experiments on Scene Flow, KITTI 2012/2015, and ETH3D demonstrate that PhasorNet achieves a compelling accuracy-efficiency trade-off, making it well-suited for real-world, low-resource deployment.

References (38)

  • Pyramid stereo matching network
  • Mochastereo: Motif channel attention network for stereo matching
  • Monster: Marry monodepth to stereo unleashes power (opens arXiv in a new tab)
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Efficient belief propagation for early vision
  • Extension of phase correlation to subpixel registration (opens the publisher in a new tab)
  • Are we ready for autonomous driving? the kitti vision benchmark suite
  • Deep residual learning for image recognition
  • Defomstereo: Depth foundation model based stereo matching
  • End-to-end learning of geometry and context for deep stereo regression
  • Segment-based stereo matching using belief propagation and a self-adapting dissimilarity measure
  • The phase correlation image alignment method
  • Omni-dimensional dynamic convolution (opens arXiv in a new tab)
  • Practical stereo matching via cascaded recurrent network with adaptive correlation
  • Raft-stereo: Multilevel recurrent field transforms for stereo matching
  • Decoupled Weight Decay Regularization
  • A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation
  • Object scene flow for autonomous vehicles
  • The importance of phase in signals
  • Pytorch: An imperative style, high-performance deep learning library
  • A multi-view stereo benchmark with high-resolution images and multi-camera videos
  • Mobilestereonet: Towards lightweight deep networks for stereo matching
  • Cfnet: Cascade and fused cost volume for robust stereo matching
  • Cyclical learning rates for training neural networks
  • Efficientnet: Rethinking model scaling for convolutional neural networks
  • Hitnet: Hierarchical iterative tile refinement network for real-time stereo matching
  • Anti-oversmoothing in deep vision transformers via the fourier domain analysis: From theory to practice
  • Selective-stereo: Adaptive frequency information selection for stereo matching
  • Croco v2: Improved cross-view completion pre-training for stereo matching and optical flow
  • Banet: Bilateral aggregation network for mobile stereo matching
  • Iterative geometry encoding volume for stereo matching
  • Igev++: Iterative multi-range geometry encoding volumes for stereo matching
  • Accurate and efficient stereo matching via attention concatenation volume
  • Aanet: Adaptive aggregation network for efficient stereo matching
  • Depth anything v2
  • Restormer: Efficient transformer for high-resolution image restoration
  • High-frequency stereo matching network
  • Eai-stereo: Error aware iterative network for stereo matching