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

Diptodip Deb, Zhenfei Jiao, Ruth Sims, Alex Chen, Michael Broxton, Misha B. Ahrens, Kaspar Podgorski, Srinivas C. Turaga · DOI

Abstract

Differentiable simulations of optical systems can be combined with deep learning-based reconstruction networks to enable high performance computational imaging via end-to-end (E2E) optimization of both the optical encoder and the deep decoder. This has enabled imaging applications such as 3D localization microscopy, depth estimation, and lensless photography via the optimization of local optical encoders. More challenging computational imaging applications, such as 3D snapshot microscopy which compresses 3D volumes into single 2D images, require a highly non-local optical encoder. We show that existing deep network decoders have a locality bias which prevents the optimization of such highly non-local optical encoders. We address this with a decoder based on a shallow neural network architecture using global kernel Fourier convolutional neural networks (FourierNets). We show that FourierNets surpass existing deep network based decoders at reconstructing photographs captured by the highly non-local DiffuserCam optical encoder. Further, we show that FourierNets enable E2E optimization of highly non-local optical encoders for 3D snapshot microscopy. By combining FourierNets with a large-scale multi-GPU differentiable optical simulation, we are able to optimize non-local optical encoders 170$\times$ to 7372$\times$ larger than prior state of the art, and demonstrate the potential for ROI-type specific optical encoding with a programmable microscope.

Introduction

In the field of computational imaging, researchers aim to design systems where an optical encoder (such as a specialized lens or phase mask) and a computational decoder (a reconstruction algorithm) are optimized jointly. This end-to-end (E2E) optimization has proven successful for "local" imaging tasks like depth estimation. However, it remains a significant challenge for "non-local" tasks like 3D snapshot microscopy, where information from a 3D volume is compressed into a single 2D image, spreading data from individual points across the entire sensor.

Two primary bottlenecks hinder progress in this area: the "locality bias" of standard deep learning architectures, such as UNets, which rely on small convolutional kernels, and the immense computational cost of simulating high-resolution, non-local optical systems. This paper introduces FourierNets to address these challenges, enabling the design of massive, non-local optical encoders.

Methods: FourierNets and Differentiable Simulation

The core innovation is FourierNets, a shallow neural network architecture that replaces standard local convolutions with global kernel Fourier convolutions. While typical CNNs look at small pixel neighborhoods, FourierNets utilize kernels as large as the entire input image. By performing these operations in the Fourier domain, the network achieves global context with $O(N \log N)$ efficiency, avoiding the prohibitive $O(N^2)$ cost of spatial global kernels.

Overview of 3D snapshot microscopy and the FourierNet architecture.

To optimize these networks alongside physical hardware, the team developed a large-scale, multi-GPU differentiable simulation of a "4f" optical system. This model incorporates a programmable phase mask with over a million parameters. Using backpropagation, the system can iteratively refine the physical phase mask to achieve optimal optical encoding. A planewise parallelization strategy was employed to manage the massive memory requirements of high-resolution 3D volumes across multiple GPUs.

Results

The researchers evaluated FourierNets on two distinct datasets: the DiffuserCam lensless camera dataset and a new dataset of high-resolution 3D confocal volumes of larval zebrafish brains.

Reconstruction Performance and Scaling

On the DiffuserCam benchmark, FourierNets outperformed existing methods, including UNets and ADMM-based reconstructions, in both image quality (PSNR) and processing speed. The Fourier convolution implementation provided a 500$\times$ speedup over standard PyTorch convolutions for large kernel sizes. Most notably, the framework enabled the optimization of optical encoders that are 170$\times$ to 7,372$\times$ larger in terms of unique voxels than previous state-of-the-art designs.

Biological Utility

The system's ability to handle non-local information was demonstrated through the reconstruction of 3D zebrafish brain volumes from simulated snapshots. As shown in Figure 3, FourierNets successfully resolved individual neurons that were blurred or entirely invisible when using standard UNet decoders. This capability is crucial for biological research, where capturing neural activity across a whole brain in 3D and in real-time is a high priority.

Reconstruction of 3D zebrafish brain volumes comparing FourierNet with standard UNet-based approaches.

Discussion and Future Work

This work demonstrates that for non-local optics, shallow networks with global kernels can outperform deep networks with local kernels. The efficiency of the FourierNet framework also allows for Region of Interest (ROI)-specific optical design, where a microscope can be tailored to maximize resolution for a specific biological structure.

Despite these advances, several limitations remain. Most results were obtained in simulation, and transitioning to physical hardware involves managing real-world noise and misalignments. Additionally, the computational resources required for training are significant, and the specificity of ROI-optimized masks may limit their performance on different sample types. Future work will focus on improving generalization and hardware integration.

Summary updated

BibTeX
@inproceedings{deb2022fouriernets,
  author = {Diptodip Deb and Zhenfei Jiao and Ruth Sims and Alex Chen and Michael Broxton and Misha B. 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