EDCFlow: Exploring Temporally Dense Difference Maps for Event-based Optical Flow Estimation

Daikun Liu, Lei Cheng, Teng Wang, changyin Sun

TL;DR

EDCFlow is a lightweight event-based optical flow network that achieves high-resolution estimation by combining a low-resolution cost volume with high-resolution temporal feature differences. By avoiding the massive computational overhead of dense, high-resolution 4D cost volumes, it delivers state-of-the-art accuracy with a fraction of the computational cost, while preserving sharp motion boundaries.

What Problem Does This Paper Address?

Event cameras are bio-inspired sensors that output a stream of asynchronous spikes (events) when pixel brightness changes. Because they have microsecond-level temporal resolution and no motion blur, they are ideal for estimating optical flow in fast-moving or high-dynamic-range scenes.

Recent state-of-the-art methods adapt frame-based architectures like RAFT, which build 4D cost volumes to match pixels across time. However, event streams capture continuous motion, meaning these networks must either build computationally expensive multi-cost volumes to capture intermediate motions or sacrifice resolution to keep computations manageable. Building a 4D cost volume scales poorly ($O(T N^2 C)$ where $N$ is the number of pixels), creating a severe bottleneck for high-resolution flow refinement. EDCFlow addresses this scalability crisis by finding a smarter, cheaper way to encode dense temporal motion without relying entirely on massive cost volumes.

Methods

Figure 2. a. Overview of EDCFlow, including three main components: 1) Feature Extraction. Feature and context encoder extract features from input. 2) Motion Encoding. A correlation encoder and multi-scale temporal feature difference layer, along with an attention layer, are utilized to iteratively generate representative motion features. 3) Flow Updates. A GRU recurrently updates the flow by decoding the fused motion feature. b. Correlation Encoder. Search correlations at lower resolution, followed by upsampling and high-resolution correlation motion encoding. c. Multi-scale Difference Layer. Compute temporal multi-scale difference motion features at the higher resolution.

Instead of building a heavy, high-resolution cost volume, EDCFlow splits the labor into a hybrid architecture:

  1. Low-Resolution Global Matching: The network constructs a long-range 4D cost volume at a coarse $1/8$ resolution. This provides robust, noise-resistant global correspondence cues.
  2. High-Resolution Local Detail: To refine the flow at a sharper $1/4$ resolution, the authors introduce a Multi-scale Temporal Difference Layer. This layer warps consecutive event feature maps using the current flow estimate and computes the differences between adjacent frames.
  3. Spatio-Temporal Aggregation: These dense difference maps are processed using efficient depth-wise separable 3D convolutions (DW-3DConvs) across multiple temporal strides to capture both fast and slow motion patterns.
  4. Attention-Based Fusion: A channel attention mechanism adaptively merges the coarse correlation features with the fine-grained difference features, which are then fed into a GRU to iteratively update the optical flow prediction.

Because EDCFlow's refinement relies on feature differences rather than cost volumes, it can also act as a plug-and-play refinement module appended to other RAFT-like networks.

Datasets

The network was trained and evaluated on three prominent event-based datasets:

  • DSEC: A high-resolution, dense event dataset captured from driving scenarios, serving as the primary benchmark.
  • MVSEC: A real-world dataset with lower resolution and sparser events, used to test generalization across different sensor characteristics.
  • Blinkflow: A large-scale simulated event dataset, utilized specifically to evaluate the network's sim-to-real transfer capabilities.

Key Insights and Ideas

  • The Complementarity of Correlation and Difference: Cost volumes excel at global matching and are robust to noise, but they blur motion boundaries. Feature differences capture sharp structural details and boundaries at a low computational cost ($O(TNC)$) but are highly sensitive to noise. Fusing them yields the benefits of both.
Figure 1. Illustration of difference between correlation and differ- ence motion features. (a) Reference image of DSEC [11] dataset. (b) Corresponding event stream. (c) Correlation motion feature. (d) Difference motion feature.
  • Linear Motion Approximation: Within very short event time windows (e.g., 20 ms), motion can safely be assumed to be linear. This allows EDCFlow to approximate intermediate flows ($f_{0 \rightarrow i} = \frac{i}{g} f$) for feature warping without explicitly calculating them at every step, saving massive amounts of computation.
  • Multi-Scale Temporal Strides: Fast-moving objects cause large displacements over short durations, while slow movements require longer intervals to show significant changes. Sampling difference maps at multiple temporal strides allows the network to adapt to diverse velocity profiles simultaneously.

Key Results

  • Efficiency Boost: On the DSEC benchmark, EDCFlow achieves an End-Point Error (EPE) of 0.72—matching the accuracy of the high-resolution competitor IDNet-4—while requiring only 20% of the computations (247G vs. 1200G MACs) and running 68% faster (39ms vs. 120ms).
  • Plug-and-Play Refinement: When appended to existing models like E-RAFT and TMA as a $1/4$ resolution refinement stage, EDCFlow significantly reduces error rates (e.g., dropping TMA's EPE from 0.77 to 0.72) with minimal parameter overhead.
  • Sim-to-Real Generalization: When trained purely on the simulated Blinkflow dataset and evaluated on the real-world DSEC dataset, EDCFlow demonstrated the lowest performance degradation compared to other state-of-the-art models, proving its robustness to unseen domains.

Limitations and Future Work

Despite its strong performance, EDCFlow encounters higher estimation errors in spatial edge regions where events are sparse. In these areas, feature differences lack texture to track, and cost volumes suffer from matching ambiguities.

Additionally, the assumption of linear motion within short time windows can break down during complex, erratic trajectories. The authors suggest that future work should explore non-linear motion models and investigate event-image fusion techniques to combine the high temporal resolution of events with the rich texture details of standard camera frames.

Summary updated

BibTeX
@inproceedings{liu2025edcflow,
  author = {Daikun Liu and Lei Cheng and Teng Wang and changyin Sun},
  title = {{EDCFlow: Exploring Temporally Dense Difference Maps for Event-based Optical Flow Estimation}},
  booktitle = {IEEE/CVF Conference on Computer Vision \& Pattern Recognition},
  year = {2025},
  url = {https://openreview.net/forum?id=UzoJ5GVsYe},
}
Figure