FourierNets enable the design of highly non-local optical encoders for computational imaging

Diptodip Deb, Zhenfei Jiao, Ruth R Sims, Alex Bo-Yuan Chen, Michael Broxton, Misha Ahrens, Kaspar Podgorski, Srinivas C Turaga

TL;DR

End-to-end optimization of computational cameras usually struggles with highly non-local optics, such as those required for 3D snapshot microscopy. This paper introduces FourierNets—a neural network architecture leveraging global Fourier-domain convolutions—and a massive multi-GPU differentiable simulator to successfully co-design highly non-local optical encoders and their computational decoders.

The Challenge of Non-Local Optics

In computational imaging, the physical hardware (the "optical encoder") and the software reconstruction algorithm (the "computational decoder") are increasingly optimized together end-to-end (E2E). However, this has historically only worked well for local optical encoders—systems where a point in the scene maps to a small, localized region on the camera sensor (like standard lenses).

More advanced applications, like 3D snapshot microscopy, compress an entire 3D volume into a single 2D image. This requires a highly non-local optical encoder (like a diffuser or phase mask) that scatters light from a single point across the entire sensor.

Optimizing these non-local systems E2E faces two massive roadblocks:

  1. Computational Expense: Simulating the physics of highly non-local optics requires calculating massive Point Spread Functions (PSFs), which easily overwhelms standard GPU memory.
  2. Locality Bias in Deep Learning: Standard image reconstruction networks (like U-Nets) rely on small convolutional kernels. They have an inherent "locality bias" that makes them terrible at decoding information that has been globally scrambled across an image.

Methods: FourierNets and Differentiable Simulation

To overcome these bottlenecks, the authors introduce a novel architecture and a highly scalable simulation framework.

End-to-end pipeline and FourierNet architecture
  • FourierNets: Instead of using deep networks with dozens of small-kernel convolutional layers, the authors designed a shallow, 3-layer network. The magic happens in the first layer: a global convolution where the kernel size is equal to the entire input image. To make this computationally feasible, the convolution is performed in the Fourier domain, reducing the time complexity from $\mathcal{O}(N^2)$ to $\mathcal{O}(N \log N)$.
  • Large-Scale Differentiable Optical Simulation: They built a multi-GPU, wave-optics simulator of a programmable microscope using a Spatial Light Modulator (SLM). This allows them to backpropagate gradients through the simulated physics to optimize the SLM's phase mask (which has over $10^6$ free parameters).
  • Two-Stage Training: To stabilize training, they first jointly optimize the physical phase mask and a lightweight 2D FourierNet. Once the physical optics are locked in, they train a heavier 3D reconstruction network to decode the final volumes.

Datasets

The authors evaluated their approach on two distinct tasks:

  1. DiffuserCam Lensless Mirflickr Dataset (Existing): A real-world dataset of 24,000 pairs of 2D natural images displayed on a monitor and captured through a lensless DiffuserCam.
  2. Larval Zebrafish Snapshot Microscopy Dataset (New): High-resolution 3D confocal volumes of transgenic larval zebrafish brains expressing calcium indicators. This dataset was used to simulate 3D snapshot microscopy and test Region of Interest (ROI)-specific optical optimization.

Key Insights and Results

  • Global context is non-negotiable for non-local optics: U-Nets fail to make use of the entire camera sensor when decoding non-local images because their small kernels can't easily integrate information from opposite sides of the image. FourierNets solve this instantly with a single global pass.
  • Speed: The Fourier convolution implementation achieved a ~500x speedup over standard PyTorch large-kernel convolutions (5.92 ms vs 2860 ms on a TITAN X).
  • 2D Lensless Photography: FourierNets visually and quantitatively outperformed the previous state-of-the-art (Le-ADMM-U and U-Net) on the DiffuserCam dataset, achieving a PSNR of 24.8 (vs 22.1) while running faster.
  • 3D Snapshot Microscopy: In simulation, the FourierNet3D decoder achieved a PSNR of 34.89, crushing the U-Net3D baseline (30.16).
3D snapshot microscopy reconstruction comparisons
  • AI designs better optics than humans: When optimizing the phase mask for 3D microscopy, the network learned to create "pencil-like" optical elements. Unlike human-designed microlens arrays, the AI's design uses different, overlapping regions of the pupil to project high-resolution views of the volume, suggesting a highly light-efficient, novel optical mechanism.
  • One size does not fit all: Optimizing the physical optics for a specific Region of Interest (e.g., a specific shape/size of a brain cutout) yields significantly better reconstructions than a generalized optical encoder. Programmable microscopes make this hardware swapping trivial.
  • Unprecedented Scale: The multi-GPU simulator successfully optimized PSFs with 170× to 7372× more unique voxels than previous deep learning PSF optimization attempts.

Limitations and Future Work

While the 2D DiffuserCam results use real experimental data, the 3D snapshot microscopy reconstructions are entirely simulated. The authors demonstrated a hardware proof-of-concept showing that the optimized phase masks can be physically generated on an SLM, but full E2E experimental validation on a physical microscope is left for future work. Additionally, training these models requires serious hardware; the largest experiments required 8 Quadro RTX 8000 GPUs and long optimization periods, posing a barrier to entry for smaller labs.

Summary updated

BibTeX
@inproceedings{deb2022fouriernets,
  author = {Diptodip Deb and Zhenfei Jiao and Ruth R Sims and Alex Bo-Yuan Chen and Michael Broxton and Misha Ahrens and Kaspar Podgorski and Srinivas C Turaga},
  title = {{FourierNets enable the design of highly non-local optical encoders for computational imaging}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=Kx1VCs1treH},
}
Figure