NeuFlow-V2: Push High-Efficiency Optical Flow To the Limit

Zhiyong Zhang, Aniket Gupta, Huaizu Jiang, Hanumant Singh

TL;DR

This paper introduces NeuFlow-V2, a novel optical flow estimation method that significantly boosts efficiency without sacrificing accuracy, making it ideal for real-time applications on edge devices. By employing a lightweight backbone and an efficient iterative refinement module, NeuFlow-V2 achieves state-of-the-art performance with substantial speedups compared to existing methods.

What Problem Does This Paper Address?

Estimating optical flow, which describes the motion of pixels between consecutive frames in a video, is crucial for many real-world robotic applications like autonomous driving and drone navigation. However, there's a persistent trade-off between accuracy and computational efficiency. High-accuracy methods are often too slow for real-time deployment on resource-constrained edge devices, while faster methods tend to generalize poorly to diverse real-world scenarios. Existing learning-based methods often struggle to balance these competing demands, with many high-accuracy approaches requiring significant processing power and fast methods faltering in their ability to adapt to unseen environments or handle large displacements.

Methods

NeuFlow-V2 builds upon the previous NeuFlow-V1 architecture but introduces key improvements to enhance both efficiency and accuracy. The core innovations are:

  • Lightweight Backbone: Instead of relying on heavy, standard backbones like ResNet, NeuFlow-V2 uses a simple CNN-based backbone. This backbone efficiently extracts multi-scale features from input images. Notably, it avoids using full-scale image features during extraction, which the authors found leads to overfitting on training data and poor generalization to real-world datasets.
  • Efficient Iterative Refinement Module: This module refines optical flow predictions iteratively. Unlike previous methods that might use computationally expensive modules like LSTMs or GRUs, NeuFlow-V2 employs a simpler recurrent design using only CNN layers. This design, combined with a "HardTanh" activation function for the hidden state update (to mitigate gradient issues), achieves high accuracy with minimal computational overhead.
  • Cross-Attention and Global Matching: The architecture incorporates cross-attention to exchange information between the two input images, enhancing feature distinctiveness. Global matching is then used to find corresponding features globally, which helps in handling large pixel displacements. These operations are performed at a lower resolution (1/16 scale) to reduce computational burden.
  • Multi-Scale Feature/Context Merge: To ensure that features at different scales contain both local and global information, a merge block is used to combine features from the 1/16 scale (global) with those from the 1/8 scale (local).

Datasets

  • Training: The primary training dataset used is the FlyingThings dataset.
  • Evaluation: The model is evaluated on two standard datasets for optical flow:
  • Sintel: Used to assess generalization capabilities.
  • KITTI: A real-world dataset also used to evaluate generalization.

The authors followed the same procedure and data augmentation settings as the RAFT paper for training and evaluation.

Key Insights and Ideas

  • Full-scale features can hurt generalization: The paper demonstrates that using full-scale image features in the backbone can lead to overfitting on synthetic training data (like FlyingThings), resulting in poor performance on real-world datasets like KITTI. This highlights the importance of careful feature extraction for robust optical flow.
  • Simplicity in refinement is key for efficiency: By replacing complex RNN modules (GRU/LSTM) with a simpler CNN-based recurrent design in the refinement stage, NeuFlow-V2 achieves significant speedups without compromising accuracy. This suggests that intricate gating mechanisms might not always be necessary for effective iterative refinement.
  • HardTanh for stable gradients: The use of HardTanh for updating the hidden state in the refinement module is a clever way to manage gradient flow and prevent vanishing/exploding gradients, especially when hidden states approach saturation limits.
  • Iterative refinement benefits from scale-specific tuning: The paper shows that while Sintel accuracy converges quickly with few 1/16-scale refinement iterations, KITTI benefits from more iterations at the 1/8-scale. This suggests that different refinement strategies might be optimal for different datasets or scenarios.

Key Results

  • Significant Speedups: NeuFlow-V2 achieves substantial speedups, ranging from 10x to 70x compared to state-of-the-art methods. It can run at over 20 FPS on a 512x384 resolution image on a Jetson Orin Nano.
  • Competitive Accuracy: NeuFlow-V2 achieves comparable accuracy to state-of-the-art methods on both synthetic (Sintel) and real-world (KITTI) datasets.
  • Outperforms NeuFlow-V1: NeuFlow-V2 significantly outperforms its predecessor, NeuFlow-V1, in accuracy, especially on the real-world KITTI dataset, while maintaining real-time speeds.
  • Efficiency on Edge Devices: The method is demonstrated to be highly efficient on edge computing platforms like the Jetson Orin Nano.

Limitations and Future Work

  • Limitations:
    • The paper notes that removing cross-attention or global matching leads to a drop in accuracy, indicating their importance.
  • Overfitting can occur if refinement is applied solely at the 1/8 scale without 1/16 scale refinement.
  • Future Work:
    • The authors plan to further optimize memory efficiency and reduce parameter counts.
  • The goal is to enhance the model's adaptability and scalability for broader applications.

Summary updated

BibTeX
@inproceedings{zhang2025neuflow,
  author = {Zhiyong Zhang and Aniket Gupta and Huaizu Jiang and Hanumant Singh},
  title = {{NeuFlow-V2: Push High-Efficiency Optical Flow To the Limit}},
  booktitle = {IEEE/RSJ International Conference on Intelligent Robots and Systems},
  year = {2025},
  doi = {10.1109/iros60139.2025.11247683},
}
Figure