Factorized Diffusion: Perceptual Illusions by Noise Decomposition

Daniel Geng, Inbum Park, Andrew Owens

Abstract

Given a factorization of an image into a sum of linear components, we present a zero-shot method to control each individual component through diffusion model sampling. For example, we can decompose an image into low and high spatial frequencies and condition these components on different text prompts. This produces hybrid images, which change appearance depending on viewing distance. By decomposing an image into three frequency subbands, we can generate hybrid images with three prompts. We also use a decomposition into grayscale and color components to produce images whose appearance changes when they are viewed in grayscale, a phenomena that naturally occurs under dim lighting. And we explore a decomposition by a motion blur kernel, which produces images that change appearance under motion blurring. Our method works by denoising with a composite noise estimate, built from the components of noise estimates conditioned on different prompts. We also show that for certain decompositions, our method recovers prior approaches to compositional generation and spatial control. Finally, we show that we can extend our approach to generate hybrid images from real images. We do this by holding one component fixed and generating the remaining components, effectively solving an inverse problem.

The Challenge of Generative Illusions

The human visual system processes images at multiple scales and under varying conditions. A classic example is the "hybrid image" (e.g., the famous portrait that looks like Albert Einstein up close but Marilyn Monroe from a distance), which exploits the fact that our eyes prioritize high-frequency details nearby and low-frequency shapes far away.

Creating these illusions traditionally requires manually aligning and blending two existing images. Doing this generatively—creating a brand-new image from scratch that satisfies two different text descriptions—is significantly harder. Standard diffusion models are designed to produce a single, globally coherent interpretation. If you ask for a "skull" and a "mountain," the model usually tries to merge them into one object or fails. The challenge is: how do we force a model to be "schizophrenic," seeing one thing in the details and another in the global structure, without retraining the entire system?

A hybrid image of New York City generated using Factorized Diffusion.

Methodology: Linear Noise Decomposition

The authors introduce Factorized Diffusion, a technique that modifies the sampling process of pre-trained diffusion models without requiring any fine-tuning. The core idea relies on linear image decomposition. Any image $x$ can be represented as a sum of components (e.g., $x = f_{low}(x) + f_{high}(x)$). During the reverse diffusion process, instead of calculating a single noise estimate $\epsilon$, the method:

  1. Calculates $N$ different noise estimates ($\epsilon_1, \epsilon_2, ... \epsilon_N$), each conditioned on a different text prompt.
  2. Applies the decomposition to these noise estimates.
  3. Combines them into a composite noise estimate: $\tilde{\epsilon} = \sum f_i(\epsilon_i)$.

For example, to make a mountain that looks like a skull up close, they take the low-frequency component of the "mountain" noise and the high-frequency component of the "skull" noise. Because the diffusion update step is largely linear, this composite noise successfully guides the image toward both goals simultaneously.

Overview of Factorized Diffusion applications, including spatial frequency, color, motion, and inverse hybrids.

As a zero-shot method, the authors utilize pre-trained, off-the-shelf models like Stable Diffusion and DeepFloyd IF. The paper explores several decompositions beyond simple frequency:

  • Spatial Frequency: Low-pass vs. high-pass (Hybrid images).
  • Color Space: Grayscale luminance vs. color residuals (Color hybrids).
  • Motion Blur: Blurred component vs. residual (Motion hybrids).
  • Inverse Hybrids: Fixing one component from a real-world image and generating the rest.

Key Insights: The Linearity Loophole

The most elegant insight is that because many image operations (blurring, grayscale conversion, motion kernels) are linear, they can be applied directly to the noise estimates during sampling. This allows for complex multi-prompt control without breaking the underlying math of the diffusion model. This concept even extends to "color hybrids" that look like one subject in color but another in grayscale—an effect that mimics how human vision loses color perception in dim light.

Furthermore, by holding one component of a real image fixed (like its low-frequency structure) and "filling in" the other components with a prompt, the method can turn real photos into illusions, effectively solving zero-shot inverse problems.

Results and Evaluation

In human trials, Factorized Diffusion images were preferred over traditional methods ~80% of the time for both "prompt alignment" and "overall quality." The authors also successfully generated "triple hybrids" using a Laplacian pyramid decomposition, creating images with three distinct interpretations at near, mid, and far viewing distances. Quantitative CLIP scores confirmed that Factorized Diffusion produces images where the high-frequency and low-frequency components are significantly more recognizable as their intended prompts compared to traditional blending.

Limitations and Future Work

While the method is consistent, "very high quality" illusions are still somewhat rare and often require multiple runs or careful prompt selection. Sometimes one prompt "dominates" the other, making the illusion one-sided. Additionally, the method currently relies on pixel-space diffusion models; extending this to Latent Diffusion Models is complex because the latent space is not as intuitively linear as the pixel space. Finally, the authors note that the ability to hide one image inside another could potentially be used for misinformation, warranting further ethical study.

Summary updated

BibTeX
@misc{geng2024factorized,
  author = {Daniel Geng and Inbum Park and Andrew Owens},
  title = {{Factorized Diffusion: Perceptual Illusions by Noise Decomposition}},
  year = {2024},
  eprint = {2404.11615},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.11615},
}
Figure