Abstract
Reference-guided Image Synthesis (RIS) aims to transfer the style of a reference image to a source content image. While Generative Adversarial Networks (GANs) have advanced this field, evaluating individual generated images remains challenging due to the lack of single-image metrics that align with human perception. We present RISA (Reference-guided Image Synthesis Assessment), a learning-based metric that evaluates style similarity and visual quality for single images. RISA utilizes a weakly supervised approach, leveraging GAN training history and multiple binary classifiers to provide robust quality scores. Experimental results demonstrate that RISA significantly outperforms traditional metrics in consistency with human judgment across various datasets and GAN architectures.
Introduction
In Reference-guided Image Synthesis (RIS), a model takes a "source" image (content) and a "reference" image (style) to create a new output. While GANs have made huge strides here, they are notoriously unstable. A model might produce a masterpiece for one pair of images and a "glitchy" mess for another.
Existing evaluation tools fall short for two primary reasons. First, distribution-based metrics like Fréchet Inception Distance (FID) or Inception Score (IS) require thousands of images to calculate a statistical distance, making them unable to assess the quality of a specific, individual image. Second, reconstruction-based metrics like SSIM or PSNR measure pixel-level similarity, which is inappropriate for RIS where the output is meant to inherit style rather than replicate pixels exactly. RISA addresses the need for a "single-image" metric that captures style similarity and overall visual quality.
Methodology
The RISA Architecture
The RISA framework consists of a style encoder and a bank of binary classifiers. The style encoder extracts style codes ($z_g$ for the generated image and $z_r$ for the reference). Instead of using a single regressor to predict a quality score—which is often unstable during training—RISA employs $K$ binary classifiers ($f_1, ..., f_K$). Each classifier predicts whether the image quality exceeds a specific threshold. The final quality score $s(I_r, I_g)$ is the average of these predictions.
Weakly Supervised Training
A key innovation of RISA is its ability to learn without expensive human labels. The authors leverage the inherent training dynamics of GANs: as a GAN trains, its output quality generally improves over time.
- Iterations as Labels: Images from early training iterations are treated as "low quality," while those from later iterations are "high quality."
- Pixel-wise Interpolation: To smooth out these coarse labels, intermediate quality levels are created by linearly interpolating pixels between images from different training stages.
- Loss Functions: The model is optimized using a Contrastive Loss to ensure style consistency across augmentations and a Supremum Loss to force real images to receive the maximum score of 1.0.
Experimental Setup and Results
The model was trained and evaluated on several standard high-resolution datasets, including CelebA-HQ (faces), AFHQ (animals), Yosemite (landscapes), and LSUN (architecture). Test samples were generated using various GAN architectures like StarGAN v2, MSGAN, and Swap Autoencoder.
Key Insights
- Classification vs. Regression: Breaking the quality assessment into multiple "is it better than X?" classification tasks acts as a powerful regularizer, allowing the model to converge on noisy, weakly-labeled data where standard regressors fail.
- Style Disentanglement: By analyzing the difference between style codes, RISA focuses specifically on the success of style transfer rather than content preservation.
- Cross-Model Generalization: RISA demonstrates remarkable robustness; a model trained on StarGAN v2 outputs can accurately judge images produced by entirely different GAN architectures.
Performance
RISA achieved significantly higher consistency with human judgments (70%–83%) compared to baselines like NIQE, LPIPS, or SSIM, which often performed only slightly better than random chance. Qualitative results show that RISA correctly penalizes "ghosting" artifacts and color mismatches while rewarding clean, style-consistent textures.
Conclusion and Future Work
While RISA excels at style assessment, it primarily focuses on style similarity. Future work could involve explicitly balancing content preservation with style quality. Additionally, while the assumption of monotonic GAN improvement holds for many models, cases of mode collapse or late-stage oscillation could introduce noise into the weak labels. Extending this framework to other generative tasks beyond reference-guided synthesis remains a promising direction.
Summary updated