Abstract
Deep learning based techniques achieve state-of-the-art results in a wide range of image reconstruction tasks like compressed sensing. These methods almost always have hyperparameters, such as the weight coefficients that balance the different terms in the optimized loss function. The typical approach is to train the model for a hyperparameter setting determined with some empirical or theoretical justification. Thus, at inference time, the model can only compute reconstructions corresponding to the pre-determined hyperparameter values. In this work, we present a hypernetwork-based approach, called HyperRecon, to train reconstruction models that are agnostic to hyperparameter settings. At inference time, HyperRecon can efficiently produce diverse reconstructions, which would each correspond to different hyperparameter values. In this framework, the user is empowered to select the most useful output(s) based on their own judgement. We demonstrate our method in compressed sensing, super-resolution and denoising tasks, using two large-scale and publicly-available MRI datasets.
Introduction
Image reconstruction—the process of turning raw, often under-sampled sensor data into viewable images—is a fundamentally ill-posed inverse problem. To solve it, modern deep learning models utilize loss functions that balance data consistency (fidelity to the raw sensor data) against regularization (prior knowledge about image properties, such as smoothness).
The relative weight assigned to these terms, denoted as $\lambda$, is a critical hyperparameter. Traditionally, a model is trained for a specific, fixed $\lambda$. This approach is rigid; if the resulting image is suboptimal for a specific clinical task (e.g., too blurry or too noisy), the model must be retrained with a different hyperparameter setting. This iterative process is computationally expensive and prevents interactive, human-in-the-loop exploration where clinicians might want to visualize different trade-offs in real-time.
The HyperRecon Framework
To address these limitations, the authors introduce HyperRecon, a framework that amortizes the hyperparameter search by training a single model to handle any $\lambda$ within a specified range.
As shown in the figure above, HyperRecon consists of two primary components:
- The Main Network ($M_\theta$): A standard U-Net architecture that performs the actual image reconstruction task.
- The Hypernetwork ($H_\phi$): A small fully-connected network that takes the hyperparameter $\lambda$ as input and dynamically generates the weights ($\theta$) for the U-Net.
Key Innovations
- Interactive Inference: At test time, a user can adjust a slider for $\lambda$. The hypernetwork instantly re-generates the U-Net weights, producing a new reconstruction in approximately 0.2 seconds. This allows for real-time exploration of the reconstruction space.
- Data-driven Hyperparameter Sampling (DHS): In unsupervised settings, many $\lambda$ values can lead to degenerate solutions (e.g., overly smoothed images). DHS is a training strategy that prioritizes sampling $\lambda$ values that maintain high data consistency, focusing the model's capacity on the most useful regions of the hyperparameter space.
- Matched Loss Scaling: To ensure the $\lambda$ range $[0, 1]$ is meaningful across different tasks, the authors propose a normalization method to balance disparate loss terms like Mean Absolute Error (MAE) and Structural Similarity Index (SSIM).
Experimental Setup
The framework was evaluated on two large-scale, publicly available MRI datasets: NYU fastMRI (Knee MRI) and ABIDE (Brain MRI). The study covered three common reconstruction tasks: Compressed Sensing MRI (CS-MRI), image denoising, and super-resolution.
Results and Discussion
HyperRecon demonstrates that it is possible to replace hundreds of individually tuned models with a single hypernetwork without sacrificing performance.
- Performance Parity: In supervised tasks, the performance curves of HyperRecon across the full range of $\lambda$ almost perfectly overlapped with the performance of individual baseline models trained on fixed $\lambda$ values. A single HyperRecon-L model (19M parameters) achieved results comparable to 361 separate baseline models, which would collectively require 53M parameters and 150x more training time.
- Clinical Utility: Standard metrics like Mean Squared Error (MSE) do not always align with clinical needs. In a brain segmentation task, the authors showed that the "optimal" $\lambda$ for reconstruction—the one leading to the highest Dice score—could be easily identified using HyperRecon's interactive output without any retraining.
- Visual Diversity: Qualitative results confirm that HyperRecon successfully captures the trade-off between noise suppression and feature preservation, empowering users to see different valid interpretations of the same underlying anatomy.
Conclusion and Future Work
HyperRecon provides a powerful tool for interactive image reconstruction, acknowledging that the "best" image is often subjective and task-dependent. While highly effective for 1-2 hyperparameters, future work will explore scaling to higher-dimensional hyperparameter spaces where the search landscape becomes exponentially more complex. Additionally, investigating hypernetworks that only generate weights for specific layers of the main network could further improve efficiency.
Summary updated