FlowIt: Global Matching via Hierarchical Transformers and Optimal Transport for Optical Flow
Authors: Sadra Safadoust, Fabio Tosi, Matteo Poggi, Fatma Güney
Organizations: Department of Computer Engineering and KUIS AI Center, Koç University, Istanbul, Turkey · Department of Computer Science and Engineering (DISI), University of Bologna, Italy
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.
Figures & tables
Figure 2: Architecture Overview. FlowIt extracts multi-scale features from images using a CNN encoder followed by a Feature Pyramid Network (FPN). These features are processed with one or more Multi-Resolution Transformer (MRT) blocks. A 4D correlation volume is constructed using the 41 resolution features, and optimal transport is applied to produce a 4D probability map. Initial flow, occlusion, and confidence maps are derived using the probability map. These predictions are refined through three refinement iterations to obtain the final outputs.
Figure 3: Correlation and probability visualizations for a single pixel. (a) and (b) show the correlation values in the pixel’s neighborhood for SEA-RAFT and FlowIt, respectively. (c) shows the corresponding probability map obtained by applying optimal transport to FlowIt’s correlation volume.
Method
Sintel (test)
KITTI (test)
Clean ↓
Final ↓
Fl-all ↓
Non-Occ ↓
Fl-bg ↓
Fl-fg ↓
(A)
MemFlow [ 11 ]
1.05
1.91
4.10
2.56
3.67
6.27
StreamFlow [ 67 ]
1.04
1.87
4.24
-
-
-
ARFlow [ 37 ]
0.96
1.79
2.85
1.91
2.48
4.69
VideoFlow [ 58 ]
0.99
1.65
3.65
-
-
-
MEM-FOF [ 3 ]
0.93
1.89
2.94
1.97
2.60
4.66
Table 1: Results on Sintel [ 7 ] and KITTI [ 14 ] benchmarks. FlowIt (XL) ranks first on both Clean and Final splits of Sintel. On KITTI, it establishes a new state-of-the-art on non-occluded pixels, while remaining competitive with top-performing methods on other metrics.
Figure 4: Qualitative Results on KITTI [ 14 ] Test Set. Visualizations and error metrics are obtained directly from the official evaluation server. For WAFT, we report results using the DAv2-a2 variant, which achieves the best performance among WAFT models on the KITTI benchmark.
Method
Sintel (train)
KITTI (train)
Clean ↓
Final ↓
Fl-epe ↓
Fl-all ↓
PWC-Net [ 64 ]
2.55
3.93
10.4
33.7
FlowNet2 [ 22 ]
2.02
3.14
10.1
30.4
RAFT [ 69 ]
1.43
2.71
5.04
17.4
GMA [ 27 ]
1.30
2.74
4.69
17.1
SKFlow [ 66 ]
1.22
2.46
4.27
15.5
Table 2: Zero-Shot Generalization on Sintel (train) and KITTI (train).
Figure 5: Qualitative Results on Sintel [ 7 ] Training Set. From left to right: first frame, flow by WAFT-DAv2-a1 and FlowIt (XL), ground-truth flow. The top four rows are from the clean split, and the bottom four rows are from the final split.
Table 3: Generalization on Spring and LayeredFlow.
Experiment
Configuration
EPE ↓
3px ↓
#GMACS
latency (ms)
Model Size
(S)
0.617
2.295
344
99
(M)
0.595
2.209
764
120
(L)
0.499
1.635
1412
146
(XL)
0.447
1.328
3092
216
Transformer Architecture
GMFlow
0.652
2.457
397
155
MRT
0.617
2.295
344
99
Table 4: Ablation study on FlyingChairs validation set. We ablate model size , tranformer architecture , flow initialization using optimal transport , conditioning refinement on confidence and occlusion maps , number of refinement steps , axis-wise refinement , and loss function . Configurations used in our final model are underlined. Latencies are measured on an NVIDIA L40S GPU.
Figure 6: Qualitative Results of Zero-Shot Generalization on LayeredFlow [ 75 ] . From top to bottom: first frame, flow by SEA-RAFT (L) [ 73 ] , WAFT-DAv2-a1 [ 72 ] , FlowSeek (L) [ 53 ] , and FlowIt (XL).
Figure S1: Qualitative Results of Zero-Shot Generalization on KITTI [ 14 ] Training Set. From top to bottom: first frame, flow by SEA-RAFT (L) [ 73 ] , FlowSeek (L) [ 53 ] , WAFT-Twins-a2 [ 72 ] , and FlowIt (XL).
Figure S2: Qualitative Results on Sintel (clean) [ 7 ] Test Set. From top to bottom: first frame, flow predicted by SEA-RAFT (L) [ 73 ] , WAFT-DINOv3-a2 [ 72 ] , and FlowIt (XL), followed by the corresponding error maps. Results are obtained directly from the official Sintel evaluation server.
Figure S3: Qualitative Results on Sintel (final) [ 7 ] Test Set. From top to bottom: first frame, flow predicted by SEA-RAFT (L) [ 73 ] , WAFT-DINOv3-a2 [ 72 ] , and FlowIt (XL), followed by the corresponding error maps. Results are obtained directly from the official Sintel evaluation server.
Figure S4: Qualitative Results of Zero-Shot Generalization on Spring [ 45 ] Training Set. From top to bottom: first frame, flow by SEA-RAFT (L) [ 73 ] , WAFT-DAv2-a1 [ 72 ] , FlowSeek (L) [ 53 ] , FlowIt (XL), and ground-truth.
Extra data
Method
Sintel (test)
KITTI (test)
Clean ↓
Final ↓
Fl-all ↓
Non-Occ ↓
Fl-bg ↓
Fl-fg ↓
Multi-frame
SplatFlow [ 70 ]
1.12
2.07
4.61
2.96
4.26
6.34
MemFlow [ 11 ]
1.05
1.91
4.10
2.56
3.67
6.27
StreamFlow [ 67 ]
1.04
1.87
4.24
-
-
-
ARFlow [ 37 ]
0.96
1.79
2.85
1.91
2.48
4.69
VideoFlow [ 58 ]
0.99
1.65
3.65
-
-
-
Table S1: Results on Sintel [ 7 ] and KITTI [ 14 ] benchmarks – impact of extra data. On the left-most column, we report extra data used at inference in general (i.e., multi-frame) or for training 2-frame methods (e.g., TartanAir). The top-three scores achieved by 2-frame methods trained with and without external data are highlighted separately.
AI Center, Lomonosov MSU, Moscow, Russia · Lomonosov Moscow State University, Moscow, Russia · MSU Institute for Artificial Intelligence, Moscow, Russia