GEPC: Group-Equivariant Posterior Consistency for Out-of-Distribution Detection in Diffusion Models

This paper introduces GEPC, a training-free method for out-of-distribution detection in diffusion models that leverages group-equivariant posterior consistency to identify anomalies by measuring score field transformation inconsistencies under symmetry groups, achieving competitive performance and interpretable results across image and SAR datasets.

Yadang Alexis Rouzoumka, Jean Pinsolle, Eugénie Terreaux, Christèle Morisseau, Jean-Philippe Ovarlez, Chengfang Ren

Published 2026-02-19
📖 4 min read☕ Coffee break read

Imagine you have a very smart artist (a Diffusion Model) who has spent years learning to paint perfect landscapes, portraits, and cityscapes. This artist knows exactly how a "normal" tree, a "normal" face, or a "normal" building should look and feel.

Now, imagine someone hands the artist a picture of a flying toaster or a purple giraffe. The artist has never seen these things. How do you know the artist is confused?

Usually, we check if the artist's "confidence" is low. But sometimes, the artist might confidently say, "Oh yes, that's a very normal purple giraffe!" just because the colors are bright, even though the shape makes no sense.

This paper introduces a new way to catch the artist's confusion, called GEPC (Group-Equivariant Posterior Consistency). Here is how it works, using simple analogies:

1. The "Magic Mirror" Test

Imagine the artist is looking at a painting through a magic mirror.

  • The Setup: You take a picture of a "normal" object (like a cat). You then take that picture, flip it upside down, rotate it, or shift it slightly (these are the "Group" actions).
  • The Prediction: You ask the artist: "If I show you this rotated cat, what does the cat look like before it was rotated?"
  • The Consistency Check:
    • For a Real Cat (In-Distribution): If you rotate the picture of a cat, the artist's brain should rotate the "answer" back perfectly. If you flip the picture, the answer flips back. The artist's internal logic is consistent. It's like a puzzle where all the pieces fit together no matter how you turn the box.
    • For a Flying Toaster (Out-of-Distribution): If you show the artist a flying toaster and rotate the picture, the artist's brain gets confused. It might try to rotate the answer in a way that doesn't match the original picture. The logic breaks. The pieces of the puzzle don't fit anymore.

2. Why This is Better Than Just "Looking"

Most old methods tried to detect weird things by looking at how "bright" or "dark" the artist's answer was (like checking if the artist is sweating).

  • The Problem: A flying toaster might make the artist sweat just as much as a normal cat, or maybe not at all. The "sweat" (score magnitude) doesn't tell the whole story.
  • The GEPC Solution: GEPC doesn't care about how much the artist is sweating. It cares about symmetry. It asks: "Does the artist's brain work the same way when I turn the world upside down?"
    • If the answer is Yes, it's probably a normal image.
    • If the answer is No (the logic breaks), it's likely a weird, out-of-distribution image.

3. The "Training-Free" Superpower

Usually, to teach a computer to spot weird things, you have to show it a million examples of "weird" things first. That takes a lot of time and data.

  • GEPC is different: It doesn't need to be taught what a "flying toaster" looks like. It just uses the artist's existing knowledge of symmetry. It's like hiring a security guard who doesn't need a list of suspects; they just know that if someone walks through a door backwards, something is wrong.
  • No Extra Cost: It doesn't require rebuilding the artist's brain or running complex extra calculations. It just asks the artist a few extra questions about rotated versions of the image.

4. Real-World Superpower: Finding Ships in the Ocean

The paper tested this on Radar Images (SAR), which are used to see ships in the ocean through clouds and at night.

  • The Scene: The ocean is usually just "clutter" (waves, noise). This is the "Normal" data the artist learned.
  • The Anomaly: A ship or a submarine is a "weird" object in that ocean.
  • The Result: When GEPC looked at the radar images, it didn't just give a "Yes/No" answer. It drew a heat map. It highlighted exactly where the symmetry broke.
    • On empty water, the map was calm (consistent).
    • On the ship, the map lit up like a neon sign (inconsistent).
    • This means GEPC can tell you not just that there is a ship, but exactly where it is, even if the computer has never seen a ship before.

Summary

GEPC is a clever trick that checks if an AI's brain is "symmetrical."

  • Normal things behave the same way when you flip or rotate them.
  • Weird things break the rules of symmetry.
  • By measuring how much the AI's logic "breaks" when you twist the image, GEPC can spot anomalies that other methods miss, without needing to be retrained. It's like catching a liar not by what they say, but by how they stumble when you ask the same question from a different angle.

Get papers like this in your inbox

Personalized daily or weekly digests matching your interests. Gists or technical summaries, in your language.

Try Digest →