Adversarial Feedback Loop

Firas Shama, Roey Mechrez, Alon Shoshan, Lihi Zelnik-ManorICCV 2018

Abstract

Thanks to their remarkable generative capabilities, GANs have gained great popularity, and are used abundantly in state-of-the-art methods and applications. In a GAN based model, a discriminator is trained to learn the real data distribution. To date, it has been used only for training purposes, where it's utilized to train the generator to provide real-looking outputs. In this paper we propose a novel method that makes an explicit use of the discriminator in test-time, in a feedback manner in order to improve the generator results. To the best of our knowledge it is the first time a discriminator is involved in test-time. We claim that the discriminator holds significant information on the real data distribution, that could be useful for test-time as well, a potential that has not been explored before. The approach we propose does not alter the conventional training stage. At test-time, however, it transfers the output from the generator into the discriminator, and uses feedback modules (convolutional blocks) to translate the features of the discriminator layers into corrections to the features of the generator layers, which are used eventually to get a better generator result. Our method can contribute to both conditional and unconditional GANs. As demonstrated by our experiments, it can improve the results of state-of-the-art networks for super-resolution, and image generation.

Introduction

Generative Adversarial Networks (GANs) have revolutionized image synthesis, yet they frequently produce outputs with noticeable artifacts such as blurriness or structural inconsistencies. Traditionally, the discriminator ($D$) is treated as a temporary scaffolding tool: essential during training to guide the generator ($G$), but discarded once the model is deployed.

This paper introduces the Adversarial Feedback Loop (AFL), a framework that keeps the discriminator active during inference. The authors argue that the discriminator's internal representations contain rich spatial information about what makes an image look "fake." By feeding this information back into the generator, AFL allows for real-time error correction and refinement of generated outputs.

Conceptual overview of the Adversarial Feedback Loop (AFL), showing how the discriminator provides feedback to the generator at test-time.

Methodology: Closing the Loop

The AFL approach operates in two distinct phases without disrupting the standard GAN training pipeline.

Phase 1: Standard Training

The generator and discriminator are trained using standard adversarial losses until they reach convergence. This ensures the base model is as strong as a standard GAN.

Phase 2: Feedback Training

Once the base GAN is trained, the generator's weights are frozen. The authors introduce Feedback Modules—small convolutional blocks that bridge intermediate layers of the discriminator to corresponding layers in the generator. These modules are trained to translate the discriminator's high-dimensional feature maps into corrective signals. These signals are added to the generator's internal activations via skip-connections, scaled by a hyperparameter $\alpha$ (typically 0.1–0.2).

Inference at Test-Time

During inference, the process becomes iterative. $G$ generates an initial image, which is then passed through $D$. The feedback modules extract "error maps" from $D$ and inject them back into $G$. A second pass through the generator then produces a refined image with fewer artifacts. This effectively "leaks" the discriminator's knowledge back into the generation process.

Experimental Results

The effectiveness of AFL was validated across diverse tasks, including 2D distribution modeling (Swiss Roll), unsupervised image generation (CIFAR-10, CelebA), and super-resolution (DIV2K).

Qualitative Improvements

Visual analysis reveals that AFL significantly reduces common GAN artifacts. In face generation tasks (CelebA), the feedback loop sharpens features and corrects textures that the baseline model might leave blurry or distorted. The difference maps show that the feedback signal specifically targets areas where the discriminator detects "fakeness."

Comparison of DCGAN results with and without AFL. The bottom row visualizes the magnitude of the corrective signal, highlighting where the discriminator identified artifacts.

Quantitative Performance

  • CIFAR-10: AFL improved the Inception Score (IS) for multiple architectures. For instance, SN-GAN’s score rose from 7.42 to 7.73.
  • CelebA: The Fréchet Inception Distance (FID) dropped from 24.17 to 17.32, indicating a significant shift toward the real data distribution.
  • Super-Resolution (ESRGAN): Integrating AFL into ESRGAN improved the Perceptual Index (PI) from 2.433 to 2.135 and reduced RMSE from 16.34 to 14.72.

Discussion and Conclusion

The Adversarial Feedback Loop demonstrates that the discriminator is more than just a training critic; it is a powerful diagnostic tool that remains useful during inference. By providing spatial error information back to the generator, AFL provides a general, architecture-agnostic way to boost the performance of existing GANs.

While AFL introduces some computational overhead due to the iterative nature of inference, the gains in image quality and the ability to "steer" generation make it a compelling addition to the generative modeling toolkit. Future work may explore more complex feedback mechanisms or interactive generation where users can manually adjust feedback signals to guide the output.

Summary updated

BibTeX
@inproceedings{shama2018adversarial,
  author = {Firas Shama and Roey Mechrez and Alon Shoshan and Lihi Zelnik-Manor},
  title = {{Adversarial Feedback Loop}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2018},
  url = {https://openreview.net/forum?id=rLlgKZX9jFg},
}
Figure