Abstract
NeuFlow is a highly efficient optical flow architecture designed specifically for resource-constrained edge devices like robots and drones. By utilizing a "global-to-local" scheme that combines low-resolution transformer-based matching with lightweight CNN refinement, it achieves a 10x–80x speedup over state-of-the-art methods while maintaining comparable accuracy, finally enabling real-time 30 FPS performance on hardware as modest as a Jetson Orin Nano.
Introduction
Optical flow—the task of estimating the motion of pixels between two consecutive camera frames—is a cornerstone of robotic navigation, SLAM (Simultaneous Localization and Mapping), and obstacle avoidance.
The field currently faces a "speed-accuracy" chasm. High-accuracy models like RAFT and FlowFormer utilize iterative refinement or heavy Transformers, making them too slow for real-time robotic applications. Conversely, older lightweight models are fast but struggle with large displacements and ambiguities such as occlusions or textureless surfaces. NeuFlow bridges this gap, providing the accuracy needed for complex tasks without massive computational overhead.
Methods
The authors propose a global-to-local architecture that breaks the estimation into two distinct phases:
- Shallow CNN Backbone: NeuFlow uses a simple CNN to extract multi-scale features (from 1/1 down to 1/16 resolution).
- Global Matching (1/16 Scale): To handle large displacements efficiently, global matching is performed at a very low resolution (1/16). It uses Transformers (cross-attention and self-attention) to find correspondences across the entire image. The low resolution keeps the quadratic cost of attention manageable.
- Local Refinement (1/8 Scale): The coarse flow is upsampled to 1/8 resolution. The model then performs "warping" and computes a local correlation within a small 7x7 window, followed by refinement via lightweight CNN layers.
- Convex Upsampling: A convex upsampling module projects the 1/8 resolution flow back to the full image resolution.
Key Results
NeuFlow demonstrates a significant leap in efficiency without sacrificing substantial accuracy. Unlike models like RAFT, which require multiple iterations to converge, NeuFlow is a feed-forward pipeline, ensuring predictable execution times for robotic control loops.
- Speed and Efficiency: On an Nvidia RTX 2080, NeuFlow runs at approximately 77 FPS (0.013s per frame). In comparison, RAFT (12 iterations) runs at ~7 FPS and FlowFormer at ~1 FPS.
- Edge Performance: On the Jetson Orin Nano, NeuFlow achieves ~30 FPS for full-resolution flow, making it viable for real-time robotic control.
- Accuracy: On the Sintel "Clean" benchmark, NeuFlow achieved an End Point Error (EPE) of 1.66, remaining competitive with RAFT’s 1.54 despite being over 10 times faster.
Conclusion
NeuFlow represents a breakthrough in efficient optical flow, particularly for robotics. By pushing heavy Transformer operations to lower scales and utilizing a feed-forward pipeline, it achieves predictable, real-time performance on edge hardware. While it sacrifices a small margin of peak accuracy compared to heavy models like FlowFormer, its efficiency enables applications previously impossible for high-accuracy flow estimation. Future work includes further optimization via TensorRT and exploring even lighter backbones.
Summary updated