Visual Anagrams: Generating Multi-View Optical Illusions with Diffusion Models
Daniel Geng, Inbum Park, Andrew Owens
TL;DR
This work introduces a zero-shot framework for generating multi-view optical illusions with off-the-shelf diffusion models by denoising multiple transformed views in parallel and aggregating their noise estimates to produce a unified reverse-diffusion update. It formalizes the concept of visual anagrams and extends from rotations and flips to arbitrary orthogonal pixel permutations, supported by a theoretical analysis of admissible views. The approach uses a pixel-based diffusion model to avoid latent-artifact issues and demonstrates quantitative gains in alignment and concealment over baselines, along with extensive qualitative results and ablations across up to four views. The work provides practical guidance on view design, highlights failure modes, and lays a foundation for broader exploration of diffusion-based perceptual illusions in a zero-shot regime.
Abstract
We address the problem of synthesizing multi-view optical illusions: images that change appearance upon a transformation, such as a flip or rotation. We propose a simple, zero-shot method for obtaining these illusions from off-the-shelf text-to-image diffusion models. During the reverse diffusion process, we estimate the noise from different views of a noisy image, and then combine these noise estimates together and denoise the image. A theoretical analysis suggests that this method works precisely for views that can be written as orthogonal transformations, of which permutations are a subset. This leads to the idea of a visual anagram--an image that changes appearance under some rearrangement of pixels. This includes rotations and flips, but also more exotic pixel permutations such as a jigsaw rearrangement. Our approach also naturally extends to illusions with more than two views. We provide both qualitative and quantitative results demonstrating the effectiveness and flexibility of our method. Please see our project webpage for additional visualizations and results: https://dangeng.github.io/visual_anagrams/
