Continuous Parametric Optical Flow

Jianqin Luo, Zhexiong Wan, yuxin mao, Bo Li, Yuchao Dai

TL;DR

This paper introduces "continuous parametric optical flow," shifting from traditional discrete frame-to-frame motion estimation to a continuous trajectory model. By combining cubic B-splines for explicit trajectory modeling with Neural ODEs for continuous feature representation, the method achieves dense, long-term pixel tracking over arbitrary time intervals. This approach successfully outperforms existing flow-based and point-tracking baselines by providing smooth, continuous motion data.

The Motion Estimation Divide

Historically, motion estimation in video has been split into two distinct camps. On one side, optical flow methods (like RAFT) provide dense correspondences (tracking every pixel) but are typically discrete and short-term, usually calculating motion just between two consecutive frames. On the other side, recent point tracking methods (like PIPs or TAP-Net) can track points over long-term sequences, but they are usually sparse. Tracking every single pixel with these point-tracking models is computationally prohibitive.

Comparison of motion estimation paradigms

Furthermore, both traditional approaches only predict where a point is at specific, discrete frame timestamps. They lack the inter-frame information needed to describe a truly continuous motion trajectory. This paper bridges this gap, proposing a method that is simultaneously dense, long-term, and temporally continuous, allowing us to query a pixel's location at any arbitrary sub-frame timestamp.

Methods: Modeling Continuous Motion

The authors tackle the limitations of discrete tracking by moving away from predicting raw displacement vectors. Instead, they predict parameters for continuous curves.

  • Parametric Curves (B-Splines): Instead of outputting a sequence of discrete $x, y$ coordinates, the network predicts a set of control points for a cubic B-spline for each pixel. This explicitly forces the predicted trajectory to be a smooth, continuous curve over time.
  • Implicit Continuity Enhancement (ODE-ConvGRU): To accurately place these control points, the model needs to understand motion even between sampled frames. The authors use a Neural Ordinary Differential Equation (NODE) combined with a ConvGRU. This module takes features from a few sampled frames and integrates them over time, creating a continuous latent feature space that can be queried at any arbitrary "target" time.
  • Iterative Lookup and Update: Borrowing from the success of RAFT, the model builds multi-time correlation pyramids using the continuous features generated by the ODE. It then iteratively refines the B-spline control points by looking up local matching patches across these temporal correlations.

Datasets and Evaluation

To train and evaluate this novel approach, the researchers utilized both synthetic and real-world datasets:

  • Kubric (Synthetic): Because no existing dataset provides dense, continuous ground-truth trajectories, the authors generated a new large-scale synthetic dataset using the Kubric simulator. It features two subsets: Query-Stride (used for training and sparse validation) and Query-First (used for dense evaluation).
  • TAP-Vid (Real-world): For real-world benchmarking, they evaluated the model on the standard TAP-Vid-DAVIS and TAP-Vid-Kinetics datasets, which feature sparse point annotations over long video clips.

Key Insights and Results

The proposed model (ODE-6spline) consistently outperformed both RAFT (adapted for multi-frame via interpolation) and PIPs across various timescales.

The "Best of Both Worlds" Architecture

Explicit curves (B-splines) prevent the abrupt, physically unrealistic jumps often seen in frame-by-frame predictions. Meanwhile, implicit continuous features (Neural ODEs) provide the rich spatio-temporal context needed to accurately fit those curves. By predicting a 3D tensor of control points for the whole image at once, this parametric approach makes dense, long-term tracking highly feasible and scalable compared to point-tracking methods.

Blind Estimation

Because the model learns a continuous mathematical function for motion, it can accurately predict where a pixel is during "blind" times—frames that were intentionally skipped or unsampled during the input phase.

Performance Metrics

  • Real-world Accuracy: On the TAP-Vid-DAVIS dataset (24 frames), the model achieved an Average Displacement Error (ADE_All) of 16.91, beating RAFT (20.25) and PIPs (17.98).
  • Trajectory Smoothness: The model yielded significantly smoother and more robust trajectories. Measured by Temporally Averaged Root-Mean-Square Error (TRMSE) on Vid-DAVIS (24f), the model scored 15.76, compared to RAFT's 18.95 and PIPs' 17.38.
  • Long-range Stability: The model maintained its performance edge even when scaling up to 250 frames on the Vid-Kinetics dataset, proving the robustness of the B-spline + ODE approach for long-term drift reduction.

Limitations and Future Work

The authors acknowledge that parametric models have inherent limitations. The explicit smoothing constraints of a B-spline mean the model might struggle to capture highly complex, erratic, or abrupt motions (e.g., a ball bouncing sharply off a wall). Additionally, they noted slight "trembles" in the middle of long-range predictions on real-world scenes. Future work will likely focus on relaxing these parametric constraints or improving the ODE's ability to model high-frequency, non-linear motion changes across unseen inter-frame moments.

Summary updated

BibTeX
@inproceedings{luo2023continuous,
  author = {Jianqin Luo and Zhexiong Wan and yuxin mao and Bo Li and Yuchao Dai},
  title = {{Continuous Parametric Optical Flow}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=ZZgfS1DbmO},
}
Figure