Semi-Parametric Neural Image Synthesis

Andreas Blattmann, Robin Rombach, Kaan Oktay, Jonas Müller, Björn Ommer
4/25/2022
43 citations
cs.CV

Official code: CompVis/latent-diffusion (14,186 stars, Jupyter Notebook, MIT, last commit 2024-02-29). 1 more implementation below.

Abstract

Novel architectures have recently improved generative image synthesis leading to excellent visual quality in various tasks. Much of this success is due to the scalability of these architectures and hence caused by a dramatic increase in model complexity and in the computational resources invested in training these models.

Show full abstract

Our work questions the underlying paradigm of compressing large training data into ever growing parametric representations. We rather present an orthogonal, semi-parametric approach. We complement comparably small diffusion or autoregressive models with a separate image database and a retrieval strategy. During training we retrieve a set of nearest neighbors from this external database for each training instance and condition the generative model on these informative samples. While the retrieval approach is providing the (local) content, the model is focusing on learning the composition of scenes based on this content. As demonstrated by our experiments, simply swapping the database for one with different contents transfers a trained model post-hoc to a novel domain. The evaluation shows competitive performance on tasks which the generative model has not been trained on, such as class-conditional synthesis, zero-shot stylization or text-to-image synthesis without requiring paired text-image data. With negligible memory and computational overhead for the external database and retrieval we can significantly reduce the parameter count of the generative model and still outperform the state-of-the-art.

View on arXivView PDF

Code Implementations(2)

Code implementations of this paper
RepositoryTypeStarsLanguageLicenseLast commit
CompVis/latent-diffusionOfficial14,186Jupyter NotebookMIT2024-02-29
lucidrains/retrieval-augmented-ddpmOfficial66PythonMIT2022-05-05
MIT

High-Resolution Image Synthesis with Latent Diffusion Models

14,1861,729Jupyter Notebook, PythonDec 20, 20212 years agoMIT
MIT

Implementation of Retrieval-Augmented Denoising Diffusion Probabilistic Models in Pytorch

665PythonMay 1, 20224 years agoMIT
artificial-intelligencedeep-learningimage-generationretrieval

Similar Papers

Cite this paper

@article{blattmann2022semiparametric,
  title  = {Semi-Parametric Neural Image Synthesis},
  author = {Andreas Blattmann and Robin Rombach and Kaan Oktay and Jonas Müller and Björn Ommer},
  year   = {2022},
  eprint = {2204.11824},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2204.11824}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2204.11824.svg)](https://codeofpaper.com/paper/2204.11824)

Discussion