A classifier trained on a fixed set of categories will still give confident answers on inputs from categories it has never seen. The most effective recent remedy is to generate fake "outlier" images that sit just outside the training data and teach the classifier to give them low confidence. Generating those images is slow. Dream the Impossible: Outlier Imagination with Diffusion Models (DREAM-OOD) needs about 10 hours on an RTX 2080Ti to produce 100,000 of them with Stable Diffusion, and FodFoM chains four foundation models per sample. Both methods pick where to generate once, before training begins, using a fixed geometric rule. They never ask whether the classifier already rejects a candidate outlier. Any image the classifier would already score as "unknown" costs about a third of a GPU-second to make and teaches it almost nothing.
We propose to choose, before paying for diffusion, which candidate outliers to decode into pixels, and to base that choice on the current classifier's own estimate that the candidate is unknown. The mechanism is simple. DREAM-OOD already proposes outliers as cheap embedding vectors on the edge of each class cluster. We score thousands of those vectors with a small head that predicts how confidently the current classifier will accept the decoded image as a known class. Only the vectors most likely to fool the classifier are sent through the diffusion model (a generator that turns random noise into an image by removing noise step by step). The loop then retrains the classifier, refits the scorer, and repeats. The claim is that most of DREAM-OOD's benefit on out-of-distribution (OOD) detection can be kept at a fraction of its generation cost, and that the selection signal is what makes this possible, not just the smaller budget.
Core Claim and What Is New
The central hypothesis has two parts. First, the classifier's open-set confidence on a synthetic outlier can be predicted accurately from the embedding before decoding. Second, the most informative outliers are the ones the classifier currently scores as known. Together these would let us match DREAM-OOD's FPR95 (false-positive rate on unknowns when 95% of known inputs are accepted) within about one point while using at most a quarter of its diffusion GPU-hours.
The closest prior work on generative outliers is open-loop. DREAM-OOD samples low-density embeddings using k-nearest-neighbour distance and a fixed variance. FodFoM pushes CLIP text embeddings outward by a fixed step length. Neither uses feedback from the classifier being trained.
Generative OpenMax does use the classifier. It keeps only GAN samples that a pretrained classifier misclassifies. That filter runs after generation, so every discarded sample has already been paid for, and the method collapsed on natural ImageNet images.
Towards Active Synthetic Data Generation for Finetuning Language Models supplies the closed-loop recipe. It generates new data where the student model's loss is high and reports 1.3x to 2x data efficiency. It was only tested on closed-world reasoning benchmarks, where there is no notion of rejecting unknowns.
Our proposal differs from all three in the same way. The selection is made before paying for generation. The selection signal is an open-set probability rather than a training loss. The regime is pixel-space outlier synthesis, where each sample is expensive.
Research Program
We build on the released DREAM-OOD pipeline, keeping its text-aligned embedding space, its boundary sampling, and its outlier-exposure loss unchanged. We then add three components.
The first is a proposal pool. At each round we draw many cheap boundary embeddings, roughly 20x the number we will decode, using DREAM-OOD's own sampler.
The second is an acquisition scorer. It is a small MLP on the aligned embedding space, trained to predict the current classifier's open-set score on the decoded image of each embedding. It is fitted on the images decoded so far, so it improves as the loop runs.
The third is an acquisition rule. We decode the proposals with the highest predicted known-class confidence, with a diversity term that spreads picks across classes and cluster directions. The diversity term matters because Beyond Quantity shows that redundancy makes returns from simply adding more synthetic data saturate early.
The acquisition rule depends on which open-set score is used, and this is a question from the open-set recognition literature in its own right. Plain maximum softmax probability remains a strong detector. A Unified Evaluation Framework for Novelty Detection and Accommodation in NLP found it matched or beat distance-based scores for detecting novel authors. The gap between the top two class probabilities after Platt scaling, as in Bartelds et al., may better capture candidates that sit between two classes. OpenMax's extreme-value tail probability, from Towards Open Set Deep Networks, targets candidates far from every class centre. We compare all three as acquisition signals, and we check whether each score's ranking of candidates survives decoding.
The analysis has three parts. We measure how well the embedding-space prediction ranks candidates in the same order as the classifier's actual score on the decoded images (Spearman correlation per round). We track how the selected region moves as the classifier improves. We also report a Pareto curve of detection quality against generation GPU-hours. That curve is the concrete answer to the pixel-space versus feature-space dispute raised by OpenGAN and DREAM-OOD.
Baselines
The naive reference point trains the same backbone with no synthetic outliers and rejects inputs by thresholding maximum softmax probability. This costs no generation and shows how much any synthesis buys. It is run with the same backbone, epochs, and augmentation as every other arm.
The strongest direct competitor is full DREAM-OOD with its 100,000 decoded images. It reports FPR95 of 38.76% on ImageNet-100 and 40.31% on CIFAR-100 in Dream the Impossible. We rerun it rather than copy the numbers, so that hardware, backbone, and OOD test sets match. We log its generation GPU-hours as the cost reference. Beating it means matching its FPR95 within one point and its known-class accuracy within half a point, at 25% or less of its diffusion GPU-hours, averaged over three seeds.
FodFoM is the strongest reported detector in the file, with average AUROC of 93.79% on ImageNet-100 and FPR95 of 8.43% on CIFAR-10 in FodFoM. It is costlier and uses different outlier types, so we report it as an accuracy ceiling at its own cost rather than claim to beat it outright. We also test whether our acquisition rule, applied to FodFoM's semantic-outlier branch in place of its fixed step length, lowers that branch's cost at equal AUROC.
The feature-space competitors cost no diffusion at all. NPOS reports FPR95 of 44.00% on ImageNet-100 and VOS reports 49.02%, both as cited in DREAM-OOD. OpenGAN reports 0.984 AUROC on TinyImageNet but was not evaluated on the DREAM-OOD protocol; no reported result on Lacuna was found for OpenGAN on ImageNet-100 FPR95. We run OpenGAN on our protocol with its Open Validation checkpoint selection.
The ablation that isolates the key ingredient is random selection at the same decode budget. It uses the same proposal pool and the same number of decoded images, but picks them uniformly at random. A second ablation is an oracle that decodes the whole pool and keeps the images the classifier accepts as known, as the Generative OpenMax filter does. The oracle bounds what perfect prediction could achieve, and its full decoding cost shows what pre-selection saves. A third ablation freezes the scorer after the first round, which separates the value of the closed loop from one-shot selection.
Why not just…?
Why not just generate fewer DREAM-OOD images at random? This is the most serious threat. If returns on outlier count saturate early, a random 25,000 images may already match 100,000, and the overhead problem would have a trivial fix. We therefore measure DREAM-OOD's budget curve first, at 5k, 10k, 25k, 50k, and 100k images. If random subsets reach full performance at small budgets, we will report that result and move the question to the lowest budgets, where selection should matter most. Selection earns its place only if it pushes the Pareto curve clearly below the random-budget curve.
Why not skip pixels entirely and synthesize outliers in feature space? OpenGAN's 2MB feature-space GAN is extremely cheap. On ImageNet-100, however, DREAM-OOD reports that pixel-space outliers beat the feature-space method NPOS by about 5 points of FPR95. Our Pareto curve places both families on one cost axis. If OpenGAN run on our protocol matches our method at near-zero cost, the honest conclusion is that pixel synthesis is not worth paying for, and we would report that.
Why not just threshold softmax confidence after training? Softmax thresholding is free and strong in NLP novelty detection. Fooling-image results show that softmax classifiers can be highly confident far from the training data (Nguyen et al.). OpenGAN reports 0.755 AUROC for a plain (K+1)-way classifier on Cityscapes, against 0.885 with synthetic outliers. The no-synthesis baseline measures the size of that gap on our protocol directly.
Why not use a real auxiliary outlier set such as 300K Random Images? DREAM-OOD reports matching or beating real-outlier training with fewer images. OpenGAN reports that outlier exposure overfits to the particular outliers seen in training. We include real outlier exposure as an arm at a matched image count. We also report results on the near-OOD sets NINCO and OpenImage-O separately, since that is where boundary synthesis should help most.
Proposed Experiments and Decisive Checks
We follow the DREAM-OOD and FodFoM protocols. In-distribution data is CIFAR-100 and ImageNet-100. The OOD test sets are SVHN, Textures, Places365, NINCO, and OpenImage-O. Metrics are FPR95, AUROC, known-class accuracy, and wall-clock diffusion GPU-hours on fixed hardware.
The first decisive check comes early and is cheap. After the first round, the embedding scorer must rank decoded candidates with a Spearman correlation of at least about 0.5 against the classifier's true score. If it does not, predicting informativeness before decoding fails, and the project falls back to a cheaper decode, such as a few denoising steps, as the preview signal.
The second check is the comparison with random selection at matched budget on the Pareto curve.
The third check is whether the choice of acquisition score matters. Margin-based selection should win on near-OOD sets and tail-probability selection on far-OOD sets. If all scores perform alike, that tells us the benefit comes from avoiding outliers the classifier already rejects, not from matching the score to the kind of unknown.
References
- Dream the Impossible: Outlier Imagination with Diffusion Models
- FodFoM: Fake Outlier Data by Foundation Models Creates Stronger Visual Out-of-Distribution Detector
- Generative OpenMax for Multi-Class Open Set Classification
- Towards Active Synthetic Data Generation for Finetuning Language Models
- Beyond Quantity: Trajectory Diversity Scaling for Code Agents
- A Unified Evaluation Framework for Novelty Detection and Accommodation in NLP with an Instantiation in Authorship Attribution
- Improving Cross-domain Authorship Attribution by Combining Lexical and Syntactic Features
- Towards Open Set Deep Networks
- OpenGAN: Open-Set Recognition via Open Data Generation
- Deep neural networks are easily fooled: High confidence predictions for unrecognizable images