Palette: Image-to-Image Diffusion Models

Chitwan Saharia, William Chan, Huiwen Chang, Chris A. Lee, Jonathan Ho, Tim Salimans, David J. Fleet, Mohammad Norouzi

TL;DR

Palette is a unified framework that uses conditional diffusion models to tackle diverse image-to-image translation tasks—like colorization, inpainting, and uncropping—using a single, simple architecture. By doing away with task-specific "hacks" and complex GAN training, Palette achieves state-of-the-art results and proves that a single "generalist" model can perform as well as specialized ones.

What Problem Does This Paper Address?

Image-to-image (I2I) translation involves transforming an input image into a target output (e.g., turning a grayscale photo into color or filling in a missing hole in a landscape). Traditionally, this field has been dominated by Generative Adversarial Networks (GANs). While GANs produce sharp images, they are notoriously difficult to train, prone to "mode collapse" (where they only produce a few types of outputs), and often require a "kitchen sink" of auxiliary losses and architectural tweaks to work for different tasks.

The authors of Palette wanted to see if Diffusion Models—which have recently revolutionized unconditional image generation—could provide a simpler, more robust, and unified way to handle these complex "inverse problems" without needing a different strategy for every new task.

Methods

Palette adapts the standard Denoising Diffusion Probabilistic Model (DDPM) framework into a conditional model.

  1. Conditioning: Unlike a standard diffusion model that starts from pure noise to create an image from scratch, Palette conditions the process on a source image (the "input"). It does this simply by concatenating the source image with the noisy version of the target image at the input layer of the neural network.
  2. Architecture: The backbone is a 256×256 U-Net. While similar to previous diffusion architectures, the authors removed class-conditioning (since the input image provides enough context) and emphasized the use of self-attention layers to capture long-range dependencies.
  3. Loss Function: The model is trained to predict the noise added to an image. The authors specifically experimented with $L_1$ vs. $L_2$ loss, finding that while $L_1$ is common in some diffusion variants, $L_2$ is superior for capturing the multi-modal nature of images (i.e., producing a diverse set of plausible results for a single input).
  4. Multi-task Training: A key experiment involved training a "Generalist" model on all four tasks (colorization, inpainting, uncropping, and JPEG restoration) simultaneously to see if it could learn a universal representation of image statistics.

Datasets

The authors advocate for a standardized evaluation protocol to move away from the inconsistent benchmarking common in I2I research:

  • ImageNet: Specifically the ctest10k split (a standard 10,000 image subset) for benchmarking colorization and restoration.
  • Places2: A large-scale dataset of scenes, used primarily for inpainting and uncropping. The authors introduced places10k, a category-balanced subset, to ensure fair evaluation.

Key Insights and Ideas

  • Simplicity is a Feature: Palette requires no task-specific hyperparameter tuning, no auxiliary GAN discriminators, and no complex loss functions. The same "vanilla" setup worked across four very different tasks.
  • The $L_2$ Diversity Boost: The choice of loss function ($L_2$ vs $L_1$) significantly impacts the "creativity" of the model. $L_2$ loss allows the model to better represent the full distribution of possible outputs, leading to higher sample diversity, whereas $L_1$ tends to produce more "conservative" or averaged results.
  • Attention is Non-Negotiable: Removing self-attention layers to create a fully convolutional model (which is easier to scale to different resolutions) resulted in a significant drop in performance. Global context is essential for tasks like inpainting large holes.
  • Generalists vs. Specialists: One of the most surprising findings was that a single model trained on multiple tasks performed nearly as well as—and in the case of JPEG restoration, better than—models trained on only one task. This suggests that learning to "fix" images in one way helps the model understand how to "fix" them in others.

Key Results

  • Colorization: Palette achieved a "fool rate" (how often humans preferred the model's output over a real photo) of nearly 48%, which is remarkably close to the ideal 50% (indistinguishable from reality). This significantly outperformed previous SOTA models like ColTran.
  • Inpainting & Uncropping: On the Places2 dataset, Palette outperformed strong GAN baselines (like DeepFillv2 and HiFill) across all metrics, including FID (Fréchet Inception Distance) and human preference.
  • JPEG Restoration: Even at extreme compression levels (Quality Factor = 5), Palette restored sharp, plausible details where standard regression models produced blurry, blocky outputs.
  • Qualitative Excellence: Visually, Palette's outputs are characterized by a lack of the "checkerboard" artifacts or blurry patches often seen in GAN-based or regression-based I2I models.

Limitations and Future Work

  • Inference Speed: Like all diffusion models, Palette is slow. Generating a single image requires 1,000 iterations through the U-Net, making it much slower than a GAN, which generates an image in a single forward pass.
  • Resolution Constraints: Because the model relies on self-attention layers tied to a specific resolution (256×256), it does not naturally generalize to images of arbitrary sizes without further techniques like patch-based processing.
  • Implicit Bias: As a generative model trained on large-scale web data (ImageNet/Places2), Palette likely inherits the biases present in those datasets, which the authors note should be studied before real-world deployment.

Summary updated

BibTeX
@inproceedings{saharia2022palette,
  author = {Chitwan Saharia and William Chan and Huiwen Chang and Chris A. Lee and Jonathan Ho and Tim Salimans and David J. Fleet and Mohammad Norouzi},
  title = {{Palette: Image-to-Image Diffusion Models}},
  booktitle = {SIGGRAPH (Conference Paper Track)},
  year = {2022},
  url = {https://openreview.net/forum?id=eJ6Mkz8PbHr},
}

Loading related content...

Figure