Reconstruct Anything Model a lightweight general model for computational imaging

Matthieu Terris, Samuel Hurault, Maxime Song, Julián Tachella

TL;DR

The Reconstruct Anything Model (RAM) is a lightweight, non-iterative neural network designed to solve a vast array of computational imaging inverse problems—from MRI and CT scans to deblurring and low-photon imaging—using a single set of weights. By embedding the physics of the imaging process directly into its architecture via "Krylov subspace modules," RAM achieves state-of-the-art performance while being orders of magnitude faster than traditional iterative or diffusion-based methods.

The Challenge of Inverse Problems

In computational imaging, the goal is often to recover a high-quality image ($x$) from noisy, incomplete measurements ($y$). This is known as an "inverse problem," defined by the physics of the camera or sensor (the forward operator, $A$).

Currently, researchers typically choose between two suboptimal paths:

  1. Iterative Methods (e.g., Plug-and-Play or Diffusion): These use a pre-trained denoiser and slowly "step" toward a solution. While highly flexible, they are painfully slow and computationally expensive.
  2. Unrolled Architectures: These neural networks are designed to mimic optimization algorithms. They are fast but usually "one-trick ponies"—trained for a specific task (e.g., just MRI) and requiring massive datasets to retrain for every new problem.

The authors identify a critical gap: the need for a foundation model for imaging. Such a model would be a single, lightweight architecture that understands underlying acquisition physics and can generalize across different sensors, noise levels, and image types without needing to be rebuilt from scratch.

Methods: Embedding Physics into the Network

RAM builds on a U-Net-style backbone but introduces three clever architectural modifications to make it "physics-aware":

RAM Architecture
  • Proximal Estimation Module: Instead of feeding raw measurements directly into the network, RAM uses a learnable "proximal step." This acts as a middle ground between a simple back-projection (which is blurry) and a pseudo-inverse (which is extremely sensitive to noise), providing a cleaner starting point in the image domain.
  • Krylov Subspace Modules (KSM): This is the core innovation. At every scale of the network, feature maps are passed through a KSM that performs power iterations of the measurement operator ($A^\top A$). This allows the network to "reason" about the acquisition physics at multiple resolutions.
  • Multiscale Operator Conditioning: Inspired by multigrid methods, RAM defines the physics operator on coarser grids as it moves deeper into the network. This is mathematically sound because many inverse problems are more stable (less "ill-posed") at lower resolutions.

Crucially, RAM is trained in a multitask fashion: a single model learns to handle grayscale, color, and complex-valued data (like MRI) simultaneously. It also handles a hybrid Poisson-Gaussian noise model, making it robust to real-world sensor data.

Datasets and Training

The model was trained and evaluated on a diverse suite of datasets to ensure broad applicability:

  • LSDIR: Nearly 85,000 high-quality natural images for deblurring, inpainting, and super-resolution.
  • LIDC-IDRI: Over 244,000 chest CT slices.
  • fastMRI: A massive dataset of brain MRI scans.
  • Out-of-Distribution (OOD) Tests: To prove its adaptability, the authors tested RAM on satellite imagery (Sentinel-2), microscopy (Topaz-EM), and low-photon data (LinoSPAD).

Key Insights and Results

RAM treats physics as a first-class citizen. Most "general" models treat the measurement operator $A$ as just another input. RAM embeds the operations of $A$ into the layers themselves. This allows the model to solve problems it has never seen before (zero-shot) simply by being told what the new $A$ is.

RAM Reconstruction Results
  • Speed and Efficiency: Using only 36 million parameters, RAM produces a reconstruction in a single forward pass. It is 3.7x faster than unrolled counterparts (like uDPIR) and a staggering 120x faster than diffusion-based methods (like DDRM).
  • State-of-the-Art Performance: In many tasks, RAM matches or beats specialized models. For example, in MRI reconstruction, it outperformed all baselines, including those specifically trained only for MRI.
  • Zero-Shot Versatility: Despite being trained on linear problems, RAM was successfully applied to non-linear problems like Phase Retrieval and Blind Deblurring (where the blur kernel is unknown), showing remarkable robustness.
  • Few-Shot Adaptation via Self-Supervision: If RAM encounters a totally new type of image or sensor, it doesn't need ground-truth "clean" images to adapt. For OOD tasks like Cryo-EM, fine-tuning RAM on just one to ten images using only noisy measurements (via techniques like Equivariant Imaging or SURE) led to results that surpassed traditional Plug-and-Play methods.

Limitations and Future Work

While RAM is a powerful "reconstructor," it is optimized for low-distortion (Mean Squared Error). This means it prioritizes mathematical accuracy over the "hallucinated" high-frequency textures that generative diffusion models are famous for.

Future work could involve integrating RAM into generative sampling frameworks to combine its physical accuracy with the high perceptual quality of diffusion models. Additionally, researchers aim to reduce the initial "heavy lift" of training the foundation model, which currently requires significant GPU resources to cover so many tasks simultaneously.

Overall, RAM represents a major shift toward "foundation models" in the physical sciences, suggesting that we don't need a new neural network for every new camera—we just need one that knows how to listen to the physics.

Summary updated

BibTeX
@inproceedings{terris2026reconstruct,
  author = {Matthieu Terris and Samuel Hurault and Maxime Song and Julián Tachella},
  title = {{Reconstruct Anything Model a lightweight general model for computational imaging}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Ks9zNS6OsU},
}
Figure