NeurIPS 2026QuestionsPapersAreasAboutMarkdown

Stability-Weighted Direction Regularization Disentangles Generator Shortcuts from Detection Signal

Jang Ho Choi, Seongho Kim, Jaehyun Choi, Dahye Kim, Sungwon Yi, Eunho Yang

NeurIPS page · Open on the map

Category: Graphs, OOD Detection & Medical Imaging › Out-Distribution Detection Methods · Type: new method · Keywords: AI image detection, generator shortcuts, LDA direction regularization, stability weighting, OOD generalization

Areas: Safety & Security › Adversarial Security › Synthetic Media Detection; Continual Learning & Adaptation › Domain Shift Adaptation › Domain Generalization

Summary

StaR is a stability-weighted direction regularizer that prevents AI image detectors from relying on generator-specific shortcuts, improving generalization to unseen generators.

Explained to a 5-year-old

Computers can draw pictures that look like real photos. Sometimes computers can tell if a picture is real or drawn by a computer, but they only work well on the kinds of pictures they have seen before. The researchers noticed that the computer looks at special patterns that are only in the pictures it was trained on. They created a new way to teach the computer to ignore those patterns and focus on the ones that stay the same. Now the computer can better tell real pictures from made ones, even if it sees new kinds of pictures.

Explained to a 5-year-old, longer

Computers can draw pictures that look like real photos. To know if a picture is real or drawn by a computer, we use a special program called a detector. The detector learns from many examples of real and fake pictures. It sometimes pays attention to tiny details that only appear in the pictures it has seen before. Those details are like shortcuts that help the detector on the training set but not on new pictures. The researchers found that simply removing those shortcuts also removes useful information about whether a picture is real. They came up with a new training trick that looks at how stable each shortcut is across different kinds of fake pictures. The trick only penalizes the detector for shortcuts that are unstable, leaving the stable ones for the detector to use. This helps the detector focus on features that stay the same no matter which computer generated the picture. As a result, the detector works better on pictures it has never seen before. The researchers also suggested a simpler rule for when to stop training the detector, which works even better. Overall, the new ideas make AI picture detectors more reliable in real-world situations.

For a technical reader

The paper addresses the poor generalization of AI-generated image detectors caused by reliance on generator-specific feature shortcuts. It shows that removing these shortcuts post-hoc also discards genuine detection signal, limiting robustness. The proposed solution scores each generator-discriminative LDA direction by leave-one-generator-out stability and penalizes only the unstable directions during training. This selective regularization rotates the classifier away from unstable shortcuts while preserving stable, informative directions, leading to significantly better OOD performance and more reliable deployment. Additionally, a simpler epoch-selection rule is recommended for practical use.

Problem

AI-generated image detectors often generalize poorly to unseen generators because they latch onto generator-specific feature shortcuts that are predictive only on the training set.

Method

The approach scores each generator-discriminative LDA direction by leave-one-generator-out stability and penalizes the classifier only on unstable directions during training, leaving stable directions for classification. This regularizer rotates the classifier away from unstable shortcuts while preserving useful detection signal.

Results

The approach reduces the across-seed standard deviation of the four-OOD average AUC by 24× relative to ERM and improves the four-OOD average AUC by 1.7 points on CLIP ViT-L/14 over matched CLIP-ERM and by 4.5 points over EFFORT, while preserving in-distribution performance.

Contributions

The paper identifies that generator-discriminative LDA directions contain both shortcuts and genuine signal, proposes a stability-weighted regularizer that selectively penalizes unstable directions, and demonstrates superior generalization on unseen generators across multiple models. It also proposes a better epoch-selection rule for deployment.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction