NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SwinSF: Image Reconstruction from Spatial-Temporal Spike Streams

Liangyan Jiang, Chuang Zhu, Yanxu Chen · DOI

Introduction

Traditional digital cameras often fail to capture high-speed motion accurately due to fixed exposure periods that lead to motion blur. Neuromorphic sensors, specifically spike cameras, offer a promising alternative. Unlike conventional sensors, each pixel in a spike camera operates independently, firing a binary "spike" whenever it accumulates a sufficient number of photons. This mechanism enables extremely high temporal resolution and high dynamic range, making it ideal for high-speed imaging.

However, the output of these sensors is a dense, asynchronous stream of binary data rather than a standard image. Reconstructing high-quality visual information from these "spike streams" is a significant challenge. Existing methods often rely on simple filters that cause blur or standard convolutional neural networks (CNNs) that struggle to capture the long-range temporal dependencies inherent in spike data. To address these issues, the Swin Spikeformer (SwinSF) architecture was developed to restore fine textures and motion details from raw spike streams.

The SwinSF Architecture

SwinSF is a deep-learning architecture designed to process spike streams through a specialized three-stage pipeline:

  1. Spike Feature Extraction: Initial features are extracted directly from the raw binary spike streams using standard convolutional layers.
  2. Spatial-Temporal Feature Extraction: This core stage utilizes Residual Swin Spikeformer Blocks (RSSB). Within these blocks, Spike Attention Blocks (SAB) execute two parallel mechanisms:
  3. Shifted Window Multi-head Self-Attention (SW-MSA): Adapted from the Swin Transformer, this handles spatial relationships within individual frames.
  4. Temporal Spike Attention (TSA): A novel mechanism designed specifically for spike data. It uses features from adjacent "left" and "right" frames as the Query and Key to attend to the "middle" frame (the Value). This allows the model to leverage information from neighboring time points to fill in details for the current frame.
  5. Final Reconstruction Module: This module fuses the spatial and temporal features to output the final high-quality image.

A critical component of this architecture is the scaling factor ($\beta$), which balances the spatial and temporal attention outputs. Empirical testing found that $\beta = 0.1$ provides the optimal weighting to handle the unique noise-to-signal ratio of spike cameras.

Benchmarking and Datasets

The performance of SwinSF was evaluated using three primary datasets:

  • spike-REDS: A synthetic dataset (250 × 400 resolution) derived from the REDS video dataset.
  • PKU-Spike-HighSpeed: A real-world dataset used to assess the model's robustness against actual sensor noise and hardware imperfections.
  • spike-X4K: A new benchmark created by the authors to reflect the capabilities of modern megapixel spike cameras (1000 × 1000 resolution). It consists of 1,200 high-resolution spike-stream/ground-truth pairs generated using the X4K1000fps video dataset and a high-fidelity simulator.

Key Results and Qualitative Analysis

SwinSF established new state-of-the-art benchmarks across all tested datasets. On the spike-REDS dataset, it achieved a PSNR of 39.34 dB, outperforming the previous leading method (WGSE) by 0.46 dB. On the high-resolution spike-X4K dataset, it reached 39.61 dB, a significant improvement over traditional methods like TFI (15.84 dB) and earlier deep learning models like SpikeFormer (36.84 dB).

Figure 1: High-quality reconstruction of text and fine edges using the SwinSF model.

Qualitatively, SwinSF demonstrates a superior ability to reconstruct text and fine edges on fast-moving objects. While traditional methods often produce "ghosting" or "ringing" artifacts, SwinSF maintains clarity in challenging areas, such as the text on a moving boat's hull.

Figure 5: Reconstruction using the traditional TFI method, showing significant blur and loss of detail compared to SwinSF.

Conclusion and Future Directions

SwinSF represents a major advancement in neuromorphic imaging by effectively combining spatial and temporal attention mechanisms tailored for spike data. The introduction of the TSA mechanism highlights that temporal context is essential for resolving details hidden by the sparsity of individual spikes.

Future work will focus on reducing the computational complexity of the Transformer-based architecture for real-time deployment on edge devices. Additionally, refining simulators to better match the specific noise characteristics of different hardware—such as dark current—will help bridge the gap between simulated training and real-world performance. The authors also suggest exploring "spike-aware" attention mechanisms that integrate the physics of integrate-and-fire sensors directly into the model weights.

Summary updated

BibTeX
@misc{jiang2024swinsf,
  author = {Liangyan Jiang and Chuang Zhu and Yanxu Chen},
  title = {{SwinSF: Image Reconstruction from Spatial-Temporal Spike Streams}},
  year = {2024},
  eprint = {2407.15708},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.15708},
}
Figure