Powers of layers for image-to-image translation

Hugo Touvron, Matthijs Douze, Matthieu Cord, Hervé Jégou

Abstract

We propose a simple architecture to address unpaired image-to-image translation tasks: style or class transfer, denoising, deblurring, deblocking, etc. We start from an image autoencoder architecture with fixed weights. For each task we learn a residual block operating in the latent space, which is iteratively called until the target domain is reached. A specific training schedule is required to alleviate the exponentiation effect of the iterations. At test time, it offers several advantages: the number of weight parameters is limited and the compositional design allows one to modulate the strength of the transformation with the number of iterations. This is useful, for instance, when the type or amount of noise to suppress is not known in advance. Experimentally, we provide proofs of concepts showing the interest of our method for many transformations. The performance of our model is comparable or better than CycleGAN with significantly fewer parameters.

Introduction

Standard image-to-image (I2I) translation models, such as CycleGAN, typically rely on deep architectures with numerous unique layers. While effective, these models suffer from parameter bloat and a lack of post-training control. Once trained, they provide a static output, offering no mechanism to modulate the intensity of the transformation.

The "Powers of Layers" (PoL) approach addresses these challenges in unpaired translation—where direct input-output pairs are unavailable—by repeatedly applying a single residual block to an image's latent representation. This design significantly reduces parameter counts while enabling users to adjust the transformation strength at inference time by simply varying the number of iterations.

Methods

The PoL architecture is composed of three primary components: a fixed autoencoder, an iterative residual block, and a progressive training schedule.

The PoL architecture featuring a fixed autoencoder and an iterative residual block in the latent space.

The model utilizes a pre-trained encoder and decoder that remain frozen during task-specific training. Translation occurs entirely within the compressed latent space. A single residual block, $f$, is applied iteratively: the latent vector is passed through $f$ for $n$ compositions ($f^n$). To ensure stability against the "exponentiation effect" of repeated compositions, the authors employ a warm-up phase, gradually increasing the number of iterations during training.

At test time, the transformation strength is modulated by the number of compositions. An adaptive stopping criterion can be implemented using a discriminator to determine the optimal number of iterations for a given input, ensuring the output reaches the target domain's distribution.

Experimental Setup

The PoL framework was evaluated on several benchmarks:

  • YFCC100M: Used for pre-training the universal autoencoder on 6 million images.
  • Div2K & Urban-100: Utilized for training and quantitative evaluation (PSNR, NIQE) of denoising and deblurring.
  • CycleGAN Datasets: Standard sets for unpaired tasks like Horse $\leftrightarrow$ Zebra and Summer $\leftrightarrow$ Winter.

Results and Discussion

PoL demonstrates high parameter efficiency, achieving results comparable to CycleGAN with approximately half the weights (~15.9M vs. ~28.2M). In unpaired denoising, PoL outperformed CycleGAN, showing a +1.36dB PSNR improvement when using adaptive stopping.

Performance metrics as a function of the number of compositions ($n_{te}$) for different training and evaluation settings.

The model is particularly robust in data-scarce environments, successfully learning translations with as few as 1–10 images. Operating in a fixed latent space allows the model to focus on learning the domain delta rather than low-level feature extraction. Furthermore, the iterative nature allows for smooth qualitative transitions, such as the gradual addition of zebra stripes.

Conclusion

Powers of Layers offers a compact and flexible alternative for image translation. By leveraging weight sharing through iteration and operating in a fixed latent space, it provides a controllable mechanism for domain transfer that is both efficient and robust to limited data. Future work may explore fine-tuning the autoencoder or optimizing the composition of different task-specific blocks.

Summary updated

BibTeX
@misc{touvron2020powers,
  author = {Hugo Touvron and Matthijs Douze and Matthieu Cord and Hervé Jégou},
  title = {{Powers of layers for image-to-image translation}},
  year = {2020},
  eprint = {2008.05763},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2008.05763},
}
Figure