MSW: a Multi-Scale Sliced Wasserstein Distance Between Image Distributions

Youssef Haouchat, Stanislas Ducotterd, Bassam El Rawas, Michael UnserarXiv 2026

TL;DR

How do we know if an AI image generator is actually getting better? Standard evaluation metrics rely on massive pretrained neural networks that are surprisingly blind to subtle flaws like faint noise, slight blur, or checkerboard artifacts. This paper introduces the Multi-Scale Sliced Wasserstein (MSW) distance—a fast, training-free, pixel-space metric built on classic signal processing that catches tiny visual defects using just a handful of images, while still competing with giant neural networks on high-level tasks.

What Problem Does This Paper Address?

To evaluate generative models or super-resolution networks, we have to measure the distance between two distributions of images (e.g., real photos vs. AI-generated ones). Comparing high-dimensional pixel spaces directly requires an astronomical number of samples.

To get around this, standard metrics like FID and CMMD pass images through pretrained networks (like Inception or CLIP) and compare the resulting compact "latent" vectors. Here’s the catch: those networks were trained to classify objects or match text, meaning they actively ignore fine-grained pixel details that don't help them recognize a dog or a toaster. Consequently, latent-space metrics are nearly blind to low-level artifacts—like generator noise or periodic upsampling patterns—unless you feed them thousands of images or crank the distortion way up.

Methods

Instead of black-box neural embeddings, MSW goes back to first principles of natural image statistics, adapting the Sliced Wasserstein distance (which compares complex distributions via many 1D projections, where the math reduces to simple sorting).

Rather than projecting along random directions (like standard Sliced Wasserstein or random-convolution variants like CSW), MSW uses a fixed, interpretable bank of filters across multiple image resolutions:

  • Decorrelated Colour & Space: Images are split along three opponent colour axes (luminance, red–green, blue–yellow) and convolved with the 24 non-constant $5 \times 5$ Discrete Cosine Transform (DCT) filters. In natural images, these specific projections are nearly uncorrelated, ensuring each filter captures fresh information.
  • Multi-Scale: Because a $5 \times 5$ patch misses big-picture structure, images are repeatedly smoothed and downsampled, applying the same 72-slice filter bank at every scale.
  • Spatial Pooling: Because image statistics are roughly translation-invariant, MSW pools filter responses across every pixel position of every image into one 1D histogram per slice. One $256 \times 256$ image yields tens of thousands of samples instead of one latent vector!
Figure 2. Overview of MSW: for each slice, the responses of all images and positions form one histogram per set.

Finally, the 1D Wasserstein distances across all slices are combined using an unbiased estimator, paired with an exact statistical two-sample test that outputs calibrated $p$-values.

Datasets

Because MSW has no learned components, no training datasets are used. For evaluation, the authors test across:

  • Natural Photos & Objects: CelebA (faces), COCO and COCO-30k, CIFAR-10, ImageNet, and DIV2K (for super-resolution).
  • Generated Images: Stable Diffusion 1.4 outputs across consecutive sampling steps (following the CMMD benchmark).
  • Synthetic Benchmarks: Controlled Gaussian and heavy-tailed (Student-$t$) random-field textures with exact, mathematically known distributions.

Key Insights and Ideas

  • Spatial pooling beats sample hunger: By harvesting filter responses at every pixel coordinate, MSW extracts massive statistical power from tiny datasets—often needing 8 to 16 images where FID and CMMD need hundreds.
  • Chromatic channels are tripwires for artifacts: Natural images have very little variance along red–green and blue–yellow opponent axes. Even whisper-quiet noise or generator checkerboards dramatically widen or split these tight 1D histograms.
  • Preprocessing hides generator flaws: Resizing images to feed fixed-size neural networks (like Inception or CLIP) physically erases high-frequency checkerboard artifacts—a trap pixel-space MSW avoids completely.
  • Classic signal processing captures semantics, too: Even without learned features, accumulating local multi-scale patch statistics across an image is rich enough to tell object categories apart.

Key Results

  • Extreme Sensitivity: Across 10 controlled perturbations, MSW achieves the lowest detection threshold and sample requirement in 9 of them. On CelebA, it detects Gaussian noise down to $\varepsilon = 0.0005$ (about $1/8$th of a grey level) and needs just 8 images at $\varepsilon = 0.0025$ (where CMMD needs 128 and FID fails). On ImageNet red–green checkerboards ($\varepsilon = 0.02$), MSW hits 100% detection power at 128 images, while FID never detects it even at 2,000 images.
Detection power on an ImageNet red–green checkerboard artifact: MSW hits 100% power at 128 images while FID stays near zero.
  • Tracking True Mathematical Distance: Using convex denoisers where the exact ground-truth $W_2$ pixel distance is known via Brenier’s theorem, MSW scales linearly whether image detail is removed or sharpened—whereas FID and CMMD go flat when detail is added.
  • Ranking Generators & Super-Resolution: When ranking six Stable Diffusion 1.4 iterations of increasing quality, MSW orders all six sets with 100% accuracy using just 64 images per set (~90% with just 8 images), handily beating CMMD, CSW, and FID. On ESRGAN super-resolution, MSW cleanly identifies the perceptual sweet spot even on 48 disjoint scenes where FID and CSW flatten out.
  • Semantic Separation & Speed: Despite zero training, MSW separates 90 out of 91 pairs of COCO object classes at 256 images per set (missing only car vs. truck), while running >10x faster than FID and CMMD.

Limitations and Future Work

The authors highlight four clear boundaries of MSW:

  1. Global Colour Shifts: Because all spatial filters are zero-mean, MSW is completely blind to constant, image-wide brightness or colour offsets.
  2. Independent Slices: MSW compares each filter's 1D marginal histogram independently, ignoring cross-filter dependencies (how different frequencies co-vary).
  3. Sample Efficiency on Semantics: While MSW can separate object classes, pretrained latent metrics like FID and CMMD still require several times fewer images for purely semantic changes.
  4. Memorization: Like FID, MSW measures distribution statistics and ignores individual image identities, meaning it cannot catch a generator that blatantly memorizes and copies its training set.

(Future directions are not explicitly discussed in the paper.)

Summary updated

Abstract

We propose the multi-scale sliced Wasserstein (MSW) distance between image distributions, which operates in pixel space and requires no trained network. MSW convolves images with a fixed bank of discrete cosine filters at several scales, pools the responses over all positions, and compares the resulting one-dimensional distributions using the Wasserstein distance. We pair MSW with an exact two-sample test that gives calibrated p-values. Most metrics compare two image sets in the latent space of a pretrained network. We show that these metrics are insensitive to simple perturbations of the images, because the latent space is nearly invariant to them. In contrast, MSW detects smaller perturbations than latent-space metrics and needs far fewer images to do so. Although it uses no learned features, it still detects semantic changes of the image distribution. Finally, MSW matches or outperforms existing Wasserstein-based metrics in our experiments.
BibTeX
@misc{haouchat2026msw,
  author = {Youssef Haouchat and Stanislas Ducotterd and Bassam El Rawas and Michael Unser},
  title = {{MSW: a Multi-Scale Sliced Wasserstein Distance Between Image Distributions}},
  year = {2026},
  eprint = {2611.31647},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31647},
}
Figure