Abstract
This paper introduces a novel generative encoder (GE) model for generative imaging and image processing with applications in compressed sensing, denoising, inpainting, deblurring, and super-resolution. The GE model consists of a pre-training phase and a solving phase. In the pre-training phase, we separately train a generative adversarial network (GAN) to capture the data distribution and an auto-encoder (AE) to compress images following that distribution. In the solving phase, we recover a target image $x^*$ from noisy or compressed measurements $m$ by solving an optimization problem in the latent space: $z^*=\underset{z}{\mathrm{argmin}} \|\mathcal{EN}(\mathcal{G}(z))-m\|_2^2+\lambda\|z\|_2^2$. The final image is reconstructed as $\hat{x}:=\mathcal{G}(z^*)$. This approach unifies the generative power of GANs with the stability of AEs, outperforming several state-of-the-art algorithms in numerical experiments.
Introduction
In deep learning-based image processing, a persistent trade-off exists between reconstruction stability and visual detail. Autoencoders (AEs) are highly stable but often produce blurry results due to pixel-wise loss functions like Mean Squared Error. Conversely, Generative Adversarial Networks (GANs) produce sharp, realistic details but are notoriously unstable when solving inverse problems, often leading to "hallucinations" or structural failures. This paper addresses this gap by introducing the Generative Encoder (GE), a framework that decouples generative capacity from structural stability.
Methods
The GE model operates in two distinct stages to avoid the competing objectives often found in end-to-end unified networks.
Phase 1: Pre-training (Separation of Concerns)
Instead of a single complex loop, the GAN and AE are trained independently. A GAN (specifically BEGAN) learns the underlying data distribution. Simultaneously, a convolutional AE is trained to compress images. To ensure compatibility, the AE is trained on a mixture of real images and synthetic images from the GAN's generator ($\mathcal{G}$). This "cross-pollination" ensures the encoder ($\mathcal{EN}$) is finely tuned to the specific visual manifold the generator can produce.
Phase 2: Solving (Latent Optimization)
When presented with a corrupted or compressed measurement $m$, the model performs an optimization in the compressed latent space. It searches for a latent vector $z$ that, when passed through the generator and then the encoder, minimizes the distance to the measurement $m$. This process is illustrated in Figure 1.
By optimizing in the compressed domain rather than raw pixel space, the encoder acts as a stabilizing anchor, filtering out the unrealistic artifacts typically associated with GAN-based reconstruction.
Key Results
The GE model was evaluated using the CelebA dataset at resolutions of $64 \times 64$ and $128 \times 128$. It was benchmarked against traditional sparse recovery (Lasso) and GAN-only baselines (GA).
Compressed Sensing and Stability
In compressed sensing tasks, GE demonstrated superior performance and stability. For $64 \times 64$ images with only 128 measurements, GE achieved a 40% reduction in Mean Squared Error (MSE) compared to GAN-only methods. While Lasso failed at high compression levels, GE maintained high fidelity. As shown in Figure 2, GE (specifically the GE1 variant) produces reconstructions that are significantly closer to the original images than competing methods.
Versatility Across Inverse Problems
Beyond compressed sensing, the GE framework proved effective for several other tasks without architectural changes:
- Blind Denoising: Outperformed the standard BM3D algorithm under heavy noise conditions.
- Blind Deblurring: Successfully recovered sharp images without prior knowledge of the Point Spread Function.
- Inpainting: Seamlessly filled in large missing blocks and removed text overlays from facial images.
Conclusion
The Generative Encoder provides a robust framework for image processing by leveraging the strengths of GANs and AEs through decoupled training and latent-space optimization. Experimental results indicate that the model is highly stable and capable of extreme compression (up to $\rho \approx 0.0013$). Future work will explore replacing standard regularization with learned data-driven priors to further enhance reconstruction accuracy.
Summary updated