EvFocus: Learning to Reconstruct Sharp Images from Out-of-Focus Event Streams

Lin Zhu, Xiantao Ma, Xiao Wang, Lizhi Wang, Hua HuangICML 2025

Event cameras, or neuromorphic sensors, are renowned for their high temporal resolution and immunity to motion blur, as they only record asynchronous changes in brightness. However, they remain highly susceptible to defocus blur—the optical blurring that occurs when a lens is not perfectly focused on a subject.

In traditional cameras, defocus blur simply makes pixels look fuzzy. In event cameras, it reduces spatial intensity gradients, meaning fewer events are triggered in the first place. This results in sparse, low-information data that breaks existing reconstruction algorithms (like E2VID), which generally assume the input event stream is sharp. The authors identify a "Defocus Averaging" effect where brightness changes across a blurred area cancel each other out, leading to a significant loss of signal.

EvFocus is the first deep learning framework specifically designed to reconstruct sharp, high-quality images from out-of-focus event camera data. By mathematically modeling how defocus blur "thins out" event streams and employing a novel two-branch architecture, it restores fine details in scenarios where traditional event-based reconstruction methods produce only blurry or artifact-heavy results.

Comparison of EvFocus against existing methods on defocused event streams.

Methods: The EvFocus Architecture

To handle the unique sparsity of defocused events, the authors propose an end-to-end architecture built with several core components:

The EvFocus architecture featuring a Temporal Feature Encoder, Blur-aware Two-branch Decoder, and Re-defocus Module.
  • Temporal Feature Encoder: Uses ConvLSTM layers to capture and preserve temporal dependencies. Because event data is asynchronous, the network needs a "memory" of past events to reconstruct a coherent frame.
  • Blur-aware Two-branch Decoder: Instead of a single path, the model splits into two: an alignment branch (to reconstruct the image structure) and a blur branch (to specifically model the defocus distribution). By separating these features, the model prevents blur information from interfering with the reconstruction of sharp edges.
  • Reconstruction and Re-defocus Module: Utilizing Transformer-based Multi-Head Channel Attention (MHCA), the model focuses on critical features across the image.
  • Self-Supervised Learning: To better "understand" the blur, the model takes its sharp reconstruction, passes it through a "re-defocus" module to recreate the original blurred state, and compares it to the input. This consistency check forces the network to learn the underlying physics of the blur.

Additionally, the team developed a first-of-its-kind event-based out-of-focus simulator (extending the ESIM renderer) to generate realistic training data with varying "Circles of Confusion" (CoC).

Key Insights

  • The Equivalence Theorem: The authors prove a mathematical relationship between motion speed and blur strength. High-speed motion can actually "counteract" the thinning effect of a small blur kernel, while slow motion makes a large blur kernel even more devastating to event density.
  • Defocus as a Sparsity Problem: The paper shifts the perspective of defocus from a "spatial smudge" to a "temporal signal loss." By recognizing that defocus makes events disappear, they justify the use of temporal encoders to "fill in the gaps."
  • Feature Decoupling: The success of the two-branch decoder suggests that "blur" shouldn't be treated as noise to be filtered, but as a specific signal that needs its own dedicated sub-network to be properly unraveled.

Key Results

EvFocus consistently outperformed state-of-the-art methods like E2VID, ET-Net, and SPADE-E2VID across all metrics:

  • Quantitative: On simulated data, EvFocus achieved a Mean SSIM of 0.468, significantly higher than the next best retrained model (ET-Net* at 0.396). It also showed the lowest perceptual loss (LPIPS).
  • Qualitative: In real-world tests across diverse scenes (e.g., "Pic," "Desk," "Toy"), EvFocus was the only model capable of restoring sharp text and high-contrast edges, while others produced "ghosting" or unrecognizable blobs.
  • Efficiency: Despite its complexity, the model maintains a manageable parameter count (~12.1M) and an inference time of ~24ms, making it competitive with mainstream event-based models.

Limitations and Future Work

  • 2D Constraint: The current simulator is restricted to 2D camera motion. Real-world 3D motion (zooming, tilting) introduces more complex blur patterns that the model hasn't fully explored.
  • Extreme Blur: While EvFocus is the best at high blur levels (kernel size > 7), reconstruction quality still degrades as the signal becomes extremely sparse.
  • Dynamic Focus: The paper focuses on static out-of-focus lenses. Future work could involve handling active autofocusing event streams, where the blur level changes dynamically over time.

Summary updated

BibTeX
@inproceedings{zhu2025evfocus,
  author = {Lin Zhu and Xiantao Ma and Xiao Wang and Lizhi Wang and Hua Huang},
  title = {{EvFocus: Learning to Reconstruct Sharp Images from Out-of-Focus Event Streams}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=cJCROTFMEM},
}
Figure