cs.CVNov 18, 2026

Mapping the Design Space of Feature Sampling for Optical Flow

Authors: Liping Zhang

Organizations: Ningxia Institute of Science and Technology Development Strategy and Information

Abstract

The computation of correlation features is crucial for optical flow estimation. Existing methods (e.g., RAFT) perform fixed-radius lookups on a cost volume, yielding a set of correlation features for each position; alternatively, WAFT performs single-point feature indexing, yielding one correlation feature vector per position. None of them designs a suitable correlation feature sampling scheme for each position according to regional characteristics. Our insight is that not every position requires the same sampling scheme. Applying an identical sampling scheme to every position is either redundant or insufficient and ignores the specific characteristics of the corresponding region. This paper rethinks the design of feature sampling and investigates the following question: should the support of feature sampling---i.e., the extent and directions over which evidence is aggregated---be learned separately for each query position? To study this question, we propose SAGE (Sampling with Anisotropic Gaussian Expectation). This method replaces single-point sampling with a per-pixel anisotropic Gaussian expectation on a fixed candidate grid centered on the current optical flow estimate. A positive-definite precision matrix controls the scale, anisotropy, and orientation of the sampling support, with single-point sampling included as its limiting case. Consequently, the sampling support becomes an explicit and analyzable design variable and provides a principled way to analyze how directional feature aggregation affects correspondence learning. Extensive experiments show that SAGE, while adding only 1.5% multiply-accumulate operations (MACs), effectively improves zero-shot cross-dataset generalization. When trained only on FlyingChairs and FlyingThings, SAGE reduces the end-point error (EPE) by 24.2% and 16.4% on Sintel clean and final, and reduces KITTI F1-epe and F1-all by 7.2% and 11.6%.

Figures & tables

Explore similar work

Nov 9, 2026

Dense Flow from Adaptive Correspondence

Optical flow requires reliable matching from sufficient visual context and precise motion at every pixel. Existing methods such as WAFT match and estimate flow on the same coarse grids, then recover dense flow through learned upsampling, without explicitly linking visual support for matching to dense flow reconstruction. Our key insight is that dense pixel-level flow does not require equally dense matching. We decouple correspondence scale from flow resolution by adapting the size and shape of spatial supports to image structure for reliable matching, while reusing these supports for precise dense flow reconstruction. We realize this in Flow from Adaptive Token Estimation (FATE), whose token supports expand within coherent regions and contract near motion boundaries. Shared pixel-to-token associations pool features for matching and reconstruct pixel flow from token motions. Flow supervision jointly trains pixel grouping, token matching, and flow estimation without grouping labels, allowing FATE to anticipate which pixels are likely to move together from appearance alone. Trained on FlyingChairs/FlyingThings3D, FATE achieves the highest zero-shot accuracy on Sintel Final and KITTI, a critical setting given scarce real-world flow labels. For visible pixels, FATE improves accuracy within coherent regions, and more near motion boundaries. Its largest gains occur where direct matches are unavailable: Occluded or out-of-frame pixels account for roughly 10% of valid pixels but 50% of WAFT's total error. Experiments show that adaptive correspondence through pixel-to-token grouping enables reliable matching and precise pixel-level flow, improving generalization to unseen real scenes.
Nov 21, 2026

Learning Optical Flow with Task-Oriented Feature Adaptation

Learning-based optical flow estimation approaches generally rely on both inter-frame correspondence evidence and intra-frame contextual guidance, yet features from general-purpose image encoders may not fully support these roles. Strongly activated but weakly discriminative channels can outweigh more informative ones when computing inter-frame feature similarity, while context feature affinities can be low within motion-coherent regions yet high across motion boundaries. To address these mismatches, this study proposes TO-Flow, a task-oriented feature adaptation framework that aligns matching and context features with their respective requirements through dedicated channel modulation and spatial reorganization approaches. An affinity-based soft partition distinguishes motion-region interiors from boundary-adjacent regions to guide both processes. Channel modulation uses simulated flow refinement to assess whether each channel assigns higher similarity to estimated correspondences than to nearby competing candidates. The resulting similarity differences are aggregated within each region type and averaged across iterations to derive channel weights that emphasize informative channels and suppress ambiguous ones. Spatial reorganization combines affinity-guided feature attraction and repulsion from coarse to fine to simultaneously improve consistency within motion-coherent regions and distinctiveness across motion boundaries, with feature resampling mitigating boundary blurring during cross-scale fusion. Extensive experiments on the MPI Sintel, KITTI 2015, Spring, and LayeredFlow datasets demonstrate the effectiveness and general applicability of TO-Flow across diverse iterative refinement architectures as well as supervised and unsupervised training paradigms. The source code will be publicly available at https://mias.group/TO-Flow upon publication.
Mar 30, 2026

FlowIt: Global Matching via Hierarchical Transformers and Optimal Transport for Optical Flow

We present FlowIt, a novel architecture for optical flow estimation that combines global matching with confidence and occlusion-guided refinement. At its core, FlowIt leverages a hierarchical transformer architecture that captures extensive global context, enabling the model to effectively model long-range correspondences. To overcome the limitations of localized matching, we formulate the flow initialization as an optimal transport problem. This formulation yields a highly robust initial flow field, alongside explicitly derived occlusion and confidence maps. These cues are then seamlessly integrated into a guided refinement stage, where the network actively propagates reliable motion estimates from high-confidence regions into ambiguous, low-confidence areas. Extensive experiments across the Sintel, KITTI, Spring, and LayeredFlow datasets validate the effectiveness of our approach. FlowIt achieves state-of-the-art results on the competitive Sintel benchmark and establishes new state-of-the-art cross-dataset zero-shot generalization performance on Sintel, Spring, and LayeredFlow, while also delivering competitive performance on both the KITTI benchmark and KITTI zero-shot generalization settings.