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

Yadang Alexis Rouzoumka, Jean Pinsolle, Eugénie Terreaux, Christèle Morisseau, Jean-Philippe Ovarlez +1 more
1/30/2026
cs.LGcs.CV

Official code: RouzAY/gepc-diffusion (1 star, last commit 2026-02-13).

Abstract

Diffusion models learn a time-indexed score field $\mathbf{s}_θ(\mathbf{x}_t,t)$ that often inherits approximate equivariances (flips, rotations, circular shifts) from in-distribution (ID) data and convolutional backbones. Most diffusion-based out-of-distribution (OOD) detectors exploit score magnitude or local geometry (energies, curvature, covariance spectra) and largely ignore equivariances. We introduce Group-Equivariant Posterior Consistency (GEPC), a training-free probe that measures how consistently the learned score transforms under a finite group $\mathcal{G}$, detecting equivariance breaking even when score magnitude remains unchanged. At the population level, we propose the ideal GEPC residual, which averages an equivariance-residual functional over $\mathcal{G}$, and we derive ID upper bounds and OOD lower bounds under mild assumptions. GEPC requires only score evaluations and produces interpretable equivariance-breaking maps. On OOD image benchmark datasets, we show that GEPC achieves competitive or improved AUROC compared to recent diffusion-based baselines while remaining computationally lightweight. On high-resolution synthetic aperture radar imagery where OOD corresponds to targets or anomalies in clutter, GEPC yields strong target-background separation and visually interpretable equivariance-breaking maps. Code is available at https://github.com/RouzAY/gepc-diffusion/.

View on arXivView PDF

Code Implementations(1)

GEPC is a training-free out-of-distribution (OOD) detection method built on pretrained unconditional diffusion backbones.

10PythonJan 29, 20268 months ago

Similar Papers

Cite this paper

@article{rouzoumka2026gepc,
  title  = {GEPC: Group-Equivariant Posterior Consistency for Out-of-Distribution Detection in Diffusion Models},
  author = {Yadang Alexis Rouzoumka and Jean Pinsolle and Eugénie Terreaux and Christèle Morisseau and Jean-Philippe Ovarlez and Chengfang Ren},
  year   = {2026},
  eprint = {2602.00191},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.00191v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.00191.svg)](https://codeofpaper.com/paper/2602.00191)

Discussion