This paper tackles a fundamental bottleneck in event-based vision: the "gradient bias" that occurs when bridging the gap between asynchronous event spikes and traditional frame-based processing.
TL;DR
The authors introduce Functional Backpropagation (FBP), a novel framework providing unbiased gradient estimation for discontinuous event binning functions. By lifting binning operations into a functional space and applying integration by parts, FBP synthesizes "weak derivatives" that allow gradients to flow accurately back to raw event data. This significantly improves performance in downstream tasks like optical flow and SLAM.
The Challenge of Event Binning
Overview of the event binning pipeline and the resulting gradient bias. Unbiased Gradient Estimation for Event Binning via Functional Backpropagation, page 2
Event cameras are revolutionary sensors that capture per-pixel brightness changes (events) with microsecond latency. However, most computer vision algorithms are designed for dense, synchronous frames. To utilize these standard algorithms, researchers typically "bin" events into frames—essentially creating a 2D histogram of events over a time window.
The critical flaw in this approach is that binning is inherently discontinuous. If an event's spatial coordinates shift slightly, it might jump from one pixel bin to an adjacent one, causing a sharp, non-differentiable jump in the output. In deep learning, such discontinuities are "gradient killers." Standard backpropagation either registers a gradient of zero (inside a bin) or an undefined "Dirac delta" (at the edge of a bin).
To circumvent this, prior works often rely on "surrogate gradients" (heuristics) or "smooth binning." While these techniques allow networks to train, they introduce bias—the calculated gradient does not point in the steepest direction of the true loss surface. This misalignment leads to slow convergence and suboptimal accuracy.
Functional Backpropagation (FBP)
Functional Backpropagation (FBP) leverages integration by parts to synthesize weak derivatives. Unbiased Gradient Estimation for Event Binning via Functional Backpropagation, page 2
To address this gradient bias, the authors propose Functional Backpropagation (FBP). Instead of attempting to compute the derivative at a single, discontinuous point, FBP treats the entire binning operation as a functional (a function of a function). The method breaks down into four key steps:
- Lifting to Functional Space: The binning process is modeled as a continuous operation that is subsequently sampled, rather than a purely discrete operation.
- Integration by Parts: This is the mathematical core of the approach. By applying the integration by parts formula, the derivative is shifted from the discontinuous binning function onto a smooth "cotangent function" (representing the gradient of the loss with respect to the binned frame).
- Cotangent Reconstruction: Standard backpropagation only provides discrete "cotangent vectors." FBP reconstructs a continuous "cotangent function" from these discrete samples using a reconstruction kernel.
- Synthesizing Weak Derivatives: By combining the reconstructed smooth function with the derivative of the binning kernel, FBP synthesizes a "weak derivative."
Crucially, this method does not alter the forward pass. Standard, highly efficient binning can still be used to create frames. FBP only modifies the backward pass to ensure gradients are unbiased and match "long-range finite differences"—effectively looking further ahead to see how moving an event would genuinely impact the loss.
Key Insights
- Solving the "Dirac Comb" Problem: The paper formalizes that a standard backward pass through a binning function is mathematically equivalent to modulating a "Dirac comb" with a cotangent vector. FBP replaces this spiky, uninformative gradient with a smooth, reconstructed version.
- Provable Unbiasedness: Unlike heuristic surrogate gradients (e.g., the Straight-Through Estimator), FBP is provably unbiased. It correctly approximates how the loss changes over a meaningful distance rather than an infinitesimal point.
- Decoupling Forward and Backward Passes: A major advantage of FBP is that the forward binning kernel and the backward reconstruction kernel do not have to be identical. Practitioners can use a simple, fast "rect" (box) kernel in the forward pass while employing a "linear" or "cubic" kernel in the backward pass to yield superior gradients.
Experimental Results
The authors validated FBP across several standard benchmarks, including the Event Camera Dataset (ECD) and the large-scale DSEC dataset. The improvements were consistent across both simple optimization and complex deep learning tasks:
- Egomotion Estimation: FBP achieved a 3.2% lower RMS error and 1.57× faster convergence compared to standard methods.
- Optical Flow: When integrated into the state-of-the-art MotionPriorCMax network, FBP reduced the End Point Error (EPE) by 9.4%.
- SLAM: In the CMax-SLAM framework, FBP achieved a 5.1% lower RMS trajectory error, demonstrating that better gradients lead to more stable long-term tracking.
Limitations and Future Directions
While highly effective, FBP introduces some computational overhead. The synthesized gradient is more complex to compute, with the Jacobian-Vector Product (JVP) taking roughly 2× longer than standard backpropagation. However, the authors argue this is a worthwhile trade-off given the significantly faster convergence rates (requiring fewer overall iterations).
Additionally, the choice of the reconstruction kernel affects performance. While a linear kernel works well for most tasks, highly non-linear loss functions might necessitate higher-order kernels (like Cubic or Lanczos). Future work may explore extending this "functional" approach to other discontinuous operations in neuromorphic computing, such as the firing thresholds of spiking neurons.
Source Code: https://github.com/chjz1024/EventFBP
Summary updated