GHOST: Gaussian Hypothesis Open-Set Technique

Ryan Rabinowitz, Steve Cruz, Manuel Günther, Terrance E. Boult

TL;DR

GHOST (Gaussian Hypothesis Open-Set Technique) is a novel, hyperparameter-free post-processing algorithm that significantly improves Open-Set Recognition (OSR) for pre-trained deep networks. By modeling deep feature embeddings as class-wise multivariate Gaussians, GHOST uses a simple feature-space $z$-score to normalize network logits, delivering state-of-the-art performance while uniquely preserving classification fairness across individual classes.

What Problem Does This Paper Address?

When deep neural networks deploy into real-world environments, they inevitably encounter objects from classes they have never seen before. Standard networks operate under a "closed-set assumption," meaning they blindly force these unknown inputs into one of their pre-defined categories with dangerously high confidence. Open-Set Recognition (OSR) attempts to solve this by identifying and rejecting these unknown samples.

However, existing OSR methods suffer from two major flaws:

  1. Hyperparameter Sensitivity: Many post-hoc methods rely on complex geometric distance metrics or Extreme Value Theory (EVT), requiring tedious hyperparameter tuning and expensive parameter searches.
  2. The Fairness Blindspot: Traditional OSR evaluations look strictly at aggregate, overall performance. The authors reveal that when standard methods threshold confidence scores to reject unknowns, the accuracy of "hard" classes drops drastically compared to "easy" classes. This creates a severe algorithmic fairness issue where underrepresented or difficult classes are disproportionately penalized.

Methods

GHOST introduces a beautifully simple post-processing pipeline based on the Gaussian Hypothesis. The authors hypothesize that after passing through many layers of deep computation, the feature embeddings of a given class can be well-approximated by a multivariate Gaussian distribution with a diagonal covariance matrix.

The algorithm operates in two phases:

  • GHOST Training: For each known class, the algorithm computes the mean ($\vec{\mu}_k$) and diagonal variance ($\vec{\sigma}_k^2$) of the feature embeddings ($\vec{\varphi}$) using only correctly classified training samples. This requires just a single pass over the training data and stores only two floats per feature dimension per class.
  • GHOST Inference: When a test image is processed, GHOST extracts its embedding and identifies the predicted class ($\hat{k}$) via the maximum logit ($z_{\hat{k}}$). It then calculates a feature-space $z$-score ($s$) against that class's Gaussian model. The final GHOST score ($\gamma$) is computed as: $$\gamma = \frac{z_{\hat{k}}}{s}$$

If an input is an unknown or out-of-distribution (OOD) sample, its embedding will deviate significantly from the expected class mean, blowing up the $z$-score ($s$) and shrinking the final score ($\gamma$), leading to a clean rejection.

GHOST Score Pipeline

Datasets

The authors evaluated GHOST using ImageNet-1K pre-trained networks as the "known" dataset. To test the model's ability to reject unknowns, they utilized four challenging, large-scale OOD/OSR benchmarks:

  • NINCO (No ImageNet Class Objects): A purpose-built dataset specifically excluding any semantic or background overlap with ImageNet.
  • ImageNet-21K-P Open-Set Splits (Easy & Hard): Semantic shift benchmarks designed to test fine-grained open-set discrimination.
  • OpenImage-O: A curated subset of the public Open Images database used as an unknown distribution.

Key Insights and Ideas

  • The First Fairness Analysis in OSR: The paper demonstrates that standard thresholding techniques (like Maximum Softmax Probability) cause a massive performance gap between the top 10% easiest and bottom 10% hardest classes. GHOST stabilizes this drop, ensuring that difficult classes maintain their correct classification rate even as the false positive rate decreases.
  • Empirical Validation of Normality: Using Shapiro-Wilk tests, the authors proved that the Gaussian hypothesis holds remarkably well for modern architectures. For Vision Transformers (MAE-H) and ConvNeXtV2-H, roughly 97% of the per-class feature distributions perfectly satisfied normality assumptions.
  • Eliminating the Tuning Tax: Because GHOST relies entirely on standard statistical properties (mean and standard deviation), it is completely hyperparameter-free. Practitioners do not need to select tail sizes or search for optimal distance metrics.

Key Results

GHOST establishes a new state-of-the-art across multiple deep network architectures (including MAE-H, ConvNeXtV2-H, and Swin-T).

  • Superior Open-Set Classification: On the MAE-H architecture with OpenImage-O as unknowns, GHOST achieved an Area Under the Open-Set Classification Rate (AUOSCR) of 0.84, handily beating Maximum Softmax Probability (0.78) and the previous state-of-the-art post-hoc method, NNGuide (0.68).
  • Low-FPR Performance: GHOST drastically outperforms competitors at low False Positive Rates, which is critical for high-security applications where accepting an unknown sample carries a massive penalty.
Class-wise Open-Set Recognition Performance

Limitations and Future Work

While GHOST performs exceptionally well on modern architectures, its performance degrades slightly on older models like DenseNet-121. Statistical testing revealed that 8.27% of DenseNet's feature distributions rejected the normality assumption, indicating that GHOST's efficacy is tied to how well a backbone network linearizes and normalizes its feature space.

For future work, the authors suggest extending GHOST to utilize full covariance matrices and Mahalanobis distances rather than restricting the model to a diagonal covariance matrix. Additionally, exploring formal mathematical proofs of feature-space Gaussian convergence via mean-field theory remains an open objective.

Summary updated

BibTeX
@inproceedings{rabinowitz2025ghost,
  author = {Ryan Rabinowitz and Steve Cruz and Manuel Günther and Terrance E. Boult},
  title = {{GHOST: Gaussian Hypothesis Open-Set Technique}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i6.32715},
}
Figure