SplatFlow: Learning Multi-frame Optical Flow via Splatting

Bo Wang, Yifan Zhang, Jian Li, Yang Yu, Zhenping Sun, Li Liu, Dewen Hu

TL;DR

SplatFlow is a novel multi-frame optical flow framework that tackles the "occlusion problem" by using differentiable splatting to align motion features across frames. By injecting high-quality motion priors from previous frames into current estimations, it achieves state-of-the-art accuracy on Sintel and KITTI benchmarks, including a massive 19.4% error reduction on Sintel Clean.

What Problem Does This Paper Address?

Optical Flow Estimation (OFE) aims to calculate pixel-wise motion between video frames. While deep learning has revolutionized this field, most models rely on just two consecutive frames. This creates a fundamental "occlusion problem": if a pixel is visible in Frame A but hidden in Frame B, the model has no visual correspondence to calculate its motion.

Multi-frame methods (MOFE) can theoretically solve this by looking at the "history" of motion, but they face three major hurdles:

  1. Architecture Mismatch: Most MOFE methods were designed for older "pyramid" backbones and don't play well with modern, high-performing iterative backbones like RAFT or GMA.
  2. Computational Cost: Aligning features often requires calculating "backward flow," which doubles the processing time.
  3. Differentiability: Traditional "forward warping" (moving pixels to where they will be) is often non-differentiable, meaning the neural network can't effectively learn from it during training.

Methods

SplatFlow introduces three key innovations to bridge these gaps:

  • Splatting-based Motion Feature Alignment: Instead of backward warping (asking "where did this pixel come from?"), SplatFlow uses forward warping (asking "where is this pixel going?"). They implement this via splatting, where a feature at a sub-pixel position is distributed to its four nearest integer pixel neighbors using bilinear weights. Crucially, this implementation is fully differentiable, allowing for end-to-end training.
  • Motion Feature Encoding: The model jointly encodes the correlation features and the optical flow from the previous frame into a "motion feature" ($M_{t-1}$). This captures a rich representation of how things were moving just a moment ago.
  • Final-to-All Embedding: To keep the model efficient, SplatFlow takes the final (and most accurate) aligned motion feature from the previous frame and injects it into every iteration of the current frame's estimation process. This provides a stable, high-quality "motion prior" without the need to re-calculate alignments at every step.

Datasets

The authors evaluated SplatFlow on the industry-standard benchmarks:

  • FlyingChairs & FlyingThings3D: Used for initial large-scale synthetic pre-training.
  • Sintel (Clean and Final passes): A challenging synthetic dataset with complex motions and effects.
  • KITTI 2015: A real-world dataset focused on autonomous driving scenarios.
  • HD1K: A diverse real-world dataset used for fine-tuning.

Because SplatFlow is a multi-frame model, the authors adapted these datasets to provide sequences of at least three frames for training and evaluation.

Key Insights and Ideas

  • Forward is Better for Occlusions: The authors argue that backward warping is inherently flawed for occlusions because it tries to sample features from regions in the previous frame that might not exist (newly appeared areas). SplatFlow's forward-splatting naturally "pushes" motion information into the current frame's coordinate system, filling in the gaps where visual matches are missing.
  • Temporal Context > Spatial Context: In their ablation studies, the authors found that providing temporal motion history was often more effective at resolving occlusions than "Global Motion Aggregation" (GMA), which only looks at spatial relationships within the current frame.
  • Efficiency via Iterative Reuse: By reusing the final result of the previous frame as a constant input for the current frame's iterations, they achieved a "best of both worlds" scenario: the accuracy of a multi-frame model with the speed of a two-frame model.

Key Results

SplatFlow achieved impressive quantitative gains:

  • Sintel Benchmark: At the time of submission, it ranked #1. It achieved an End-Point Error (EPE) of 1.12 on Sintel Clean and 2.07 on Sintel Final, representing 19.4% and 16.2% error reductions, respectively, over the previous best methods.
  • KITTI 2015: It outperformed all published "pure" optical flow methods (those not using additional data like stereo or depth).
  • Occlusion Handling: On the "Things" validation set, SplatFlow reduced errors in occluded regions by ~48% compared to the RAFT baseline.
  • Speed: Despite the extra temporal processing, SplatFlow maintains high inference speeds (e.g., 22.49 FPS on Sintel using a TITAN RTX), which is significantly faster than previous multi-frame fusion approaches.

Limitations and Future Work

  • Generalization to Extreme Blur: The authors noted that SplatFlow struggled with the "Ambush 4" sequence in Sintel. This sequence features extreme motion blur and massive displacements that were not well-represented in the synthetic training data (FlyingThings3D).
  • Temporal Window Size: While the 3-frame model performed best, the authors found that adding even more frames (4 or 5) sometimes decreased performance on Sintel due to error accumulation from historical frames.
  • Future Directions: The authors suggest that better data augmentation (specifically simulating motion blur) and more sophisticated ways to filter out "erroneous" history could further improve the model's robustness.

Summary updated

BibTeX
@article{wang2024splatflow,
  author = {Bo Wang and Yifan Zhang and Jian Li and Yang Yu and Zhenping Sun and Li Liu and Dewen Hu},
  title = {{SplatFlow: Learning Multi-frame Optical Flow via Splatting}},
  journal = {Int. J. Comput. Vis.},
  year = {2024},
  doi = {10.1007/s11263-024-01993-0},
}
Figure