DeepInverse: A Python package for solving imaging inverse problems with deep learning

Julián Tachella, Matthieu Terris, Samuel Hurault, Andrew Wang, Dongdong Chen, Minh‐Hai Nguyen, Myung Kyu Song, Thomas Davies, Leo Davy, Jonathan Dong, Paul Escande, Johannes Hertrich, Zhiyuan Hu, T.i Liaudat, Nils Laurent, Brett Levac, Mathurin Massias, Thomas Moreau, Thibaut Modrzyk, Brayan Monroy, Sebastian Neumayer, Jérémy Scanvic, Florian Sarron, Victor Sechaud, Georg Schramm, Romain Vo, Pierre WeissarXiv 2025 · DOI

Abstract

DeepInverse is an open-source PyTorch-based library for solving imaging inverse problems. The library covers all crucial steps in image reconstruction from the efficient implementation of forward operators (e.g., optics, MRI, tomography), to the definition and resolution of variational problems and the design and training of advanced neural network architectures. In this paper, we describe the main functionality of the library and discuss the main design choices.

Introduction

In the world of computational imaging, "inverse problems"—reconstructing a clean image $x$ from noisy, incomplete, or indirect measurements $y$—are everywhere, from medical MRIs to astronomical photography. Historically, researchers faced a fragmented landscape: traditional methods relied on handcrafted optimization, while modern deep learning approaches were often built from scratch, making them difficult to generalize or reproduce.

DeepInverse (deepinv) addresses this by providing a standardized, modular pipeline that handles everything from the physical acquisition model to the final neural network evaluation. It bridges the gap between classical physics-based imaging and modern deep learning within a unified PyTorch framework.

The DeepInverse pipeline: from the physical acquisition process ($y \approx A(x)$) to reconstruction ($\hat{x}$) and the underlying Trainer components.

Methods and Framework

The library is built on three main pillars:

  1. Forward Operators (physics): These modules represent the acquisition process $y = A(x) + \epsilon$. DeepInverse implements these as differentiable, "matrix-free" operators, allowing them to scale to massive image sizes. This enables "blind" inverse problems where system parameters are learned alongside the image.
  2. Reconstruction Methods: The library categorizes solvers into several families, including optimization-based (PnP, Unfolded), sampling-based (Diffusion, MCMC), and non-iterative (UNets, GANs) approaches.
  3. Training & Losses: A high-level Trainer class manages boilerplate tasks and supports self-supervised learning (e.g., SURE, Equivariant Imaging), which is vital when ground-truth clean images are unavailable.
Summary of the different method families supported by DeepInverse and their key characteristics.

DeepInverse also provides a common interface to popular imaging benchmarks across natural (Div2K), medical (fastMRI, CT), and specialized domains (satellite, microscopy).

Key Insights

  • Operator Algebra: The library allows treating physical processes as mathematical objects that can be summed, concatenated, or stacked with simple syntax.
  • Physics-Aware Advantage: By integrating the forward model directly into the network architecture (via PnP or Unfolding), models become more data-efficient and robust than pure "black-box" translations.
  • Hardware-Algorithm Co-Design: Because operators are parameterized, researchers can optimize hardware (e.g., MRI masks) and reconstruction algorithms simultaneously.

Results and Impact

As a comprehensive software framework, DeepInverse (v0.3.0) unifies a vast array of previously disparate methods. It covers tasks from simple denoising to complex Tomography and Phase Retrieval. By providing a common framework and standardized evaluation metrics (PSNR, SSIM, LPIPS), the library aims to improve reproducibility and accelerate research in the field.

Limitations and Future Work

DeepInverse is a dynamic project. Current areas for growth include adding more specific or non-linear physics models (e.g., complex scattering) and improving the scalability of computationally expensive iterative methods like Diffusion sampling for real-time applications.

Summary updated

Abstract

DeepInverse is an open-source PyTorch-based library for solving imaging inverse problems. The library covers all crucial steps in image reconstruction from the efficient implementation of forward operators (e.g., optics, MRI, tomography), to the definition and resolution of variational problems and the design and training of advanced neural network architectures. In this paper, we describe the main functionality of the library and discuss the main design choices.
BibTeX
@misc{tachella2025deepinverse,
  author = {Julián Tachella and Matthieu Terris and Samuel Hurault and Andrew Wang and Dongdong Chen and Minh‐Hai Nguyen and Myung Kyu Song and Thomas Davies and Leo Davy and Jonathan Dong and Paul Escande and Johannes Hertrich and Zhiyuan Hu and T.I Liaudat and Nils Laurent and Brett Levac and Mathurin Massias and Thomas Moreau and Thibaut Modrzyk and Brayan Monroy and Sebastian Neumayer and Jérémy Scanvic and Florian Sarron and Victor Sechaud and Georg Schramm and Romain Vo and Pierre Weiss},
  title = {{DeepInverse: A Python package for solving imaging inverse problems with deep learning}},
  year = {2025},
  eprint = {2505.20160},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.20160},
  howpublished = {arXiv},
}
Figure