Arbitrary-Scale Image Synthesis

Evangelos Ntavelis, Mohamad Shahbazi, Iason Kastanis, Radu Timofte, Martin Danelljan, Luc Van Gool

Abstract

Positional encodings have enabled recent works to train a single adversarial network that can generate images of different scales. However, these approaches are either limited to a set of discrete scales or struggle to maintain good perceptual quality at the scales for which the model is not trained explicitly. We propose the design of scale-consistent positional encodings invariant to our generator's layers transformations. This enables the generation of arbitrary-scale images even at scales unseen during training. Moreover, we incorporate novel inter-scale augmentations into our pipeline and partial generation training to facilitate the synthesis of consistent images at arbitrary scales. Lastly, we show competitive results for a continuum of scales on various commonly used datasets for image synthesis.

Introduction

Traditional Generative Adversarial Networks (GANs) are typically constrained to fixed resolutions. A model trained on 256x256 images often fails to produce high-quality outputs at 384x384, frequently introducing artifacts or losing global structural coherence. This limitation stems from two primary factors: the use of zero-padding in convolutional layers, which creates implicit positional anchors, and a lack of multi-scale consistency, where the same latent code produces varying identities or features across different resolutions.

Methodology

The proposed framework, ScaleParty, treats images as continuous coordinate spaces rather than fixed grids. This shift is supported by three main technical innovations.

Scale-Consistent Positional Encodings

To eliminate the reliance on zero-padding for spatial orientation, the generator is provided with an explicit coordinate grid. To counteract the "shrinkage" effect caused by standard convolutions, the authors employ feature unfolding. This technique calculates the necessary "padding" pixels at the input stage to ensure the final output aligns perfectly with the target coordinate grid, maintaining invariance to layer transformations.

Inter-scale Augmentations and Consistency

A key contribution is the introduction of inter-scale augmentations during training. The model generates images from the same latent code at two different scales. These are combined using CutMix (patch pasting) and ChannelMix (RGB channel swapping) to create composite samples.

The scale-consistency training pipeline using ChannelMix and CutMix.

The discriminator is then tasked with distinguishing these mixed-scale images from real ones. This objective forces the generator to maintain structural and textural identity across all scales to fool the discriminator, ensuring that features like eyes or architectural details remain consistent regardless of resolution.

Partial Generation

ScaleParty utilizes partial generation training, where the model synthesizes both full-frame images and zoomed-in patches. This dual focus encourages the network to balance global composition with fine-grained local details, which is essential for high-fidelity arbitrary-scale synthesis.

Experiments and Results

The model was evaluated on high-resolution benchmarks including FFHQ (human faces), LSUN Church, and LSUN Bedroom. While FFHQ features a strong positional prior (centered faces), the LSUN datasets test the model's robustness to diverse layouts.

Continuous Scaling and Consistency

ScaleParty demonstrates the ability to generate images across a continuum of scales without the quality degradation seen in previous methods. It maintains high visual fidelity even at resolutions not explicitly seen during the training phase.

Comparison of training configurations and zero-shot generation capabilities.

Consistency was quantitatively measured using the SelfSSIM metric, which evaluates how well a model maintains identity across scales. On the LSUN Church dataset, ScaleParty achieved a SelfSSIM of 0.90 at resolution 192, significantly outperforming the baseline MSPIE score of 0.39. This indicates superior identity preservation across resolutions.

Discussion and Conclusion

By replacing implicit zero-padding with explicit, extrapolated positional encodings and grid-sampled noise, ScaleParty achieves true translation and scale invariance. While there remains a small gap in raw FID scores compared to specialized single-scale models like StyleGAN2, ScaleParty offers unprecedented flexibility. The coordinate-based approach opens new avenues for extrapolation, warping, and potentially consistent video generation across virtual camera movements.

Summary updated

BibTeX
@inproceedings{ntavelis2022arbitrary,
  author = {Evangelos Ntavelis and Mohamad Shahbazi and Iason Kastanis and Radu Timofte and Martin Danelljan and Luc Van Gool},
  title = {{Arbitrary-Scale Image Synthesis}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2022},
  url = {https://openreview.net/forum?id=eG3p2lzzw_},
}
Figure