Foundations of Unknown-aware Machine Learning

Xuefeng DuarXiv 2025 · DOI

Abstract

Standard machine learning models often operate under a "closed-world" assumption, presuming that test-time data will mirror the distribution of training data. However, in real-world deployments, models frequently encounter Out-of-Distribution (OOD) inputs, leading to "blind overconfidence"—high-confidence but incorrect predictions. This research establishes a foundation for unknown-aware machine learning by introducing algorithms that allow models to synthesize outliers, leverage unlabeled data, and refine internal geometric representations to recognize when they are out of their depth.

Introduction

In critical applications such as autonomous driving or medical diagnostics, the ability of an AI system to say "I don't know" is as important as its ability to classify known objects. Traditional models are prone to catastrophic failures when encountering novel scenarios, such as an autonomous vehicle misidentifying a low-flying helicopter or a diagnostic tool failing to flag a rare, unseen pathology. The core bottleneck in addressing this issue is the impossibility of labeling every potential "unknown" in the universe. This work addresses this challenge by developing methods that teach models to recognize the unknown without requiring exhaustive, human-labeled outlier datasets.

Methodological Framework

1. Virtual Outlier Synthesis (VOS & NPOS)

To regularize decision boundaries without real-world outlier data, this research introduces Virtual Outlier Synthesis (VOS). By modeling in-distribution data as Gaussian distributions within the feature space, the system can sample "virtual" outliers from low-likelihood regions. This process forces the model to maintain low confidence in the "empty" spaces between known classes. Extending this to pixel space, Dream-OOD utilizes Diffusion Models to imagine photo-realistic outliers, providing an interpretable mechanism for defining the boundaries of the known world.

2. Geometric Representation Shaping (SIREN)

Standard neural network training often results in "messy" feature clusters where Euclidean distance does not reliably correlate with sample novelty. The SIREN method addresses this by shaping internal representations into a mixture of von Mises-Fisher (vMF) distributions on a unit hypersphere. This geometric constraint ensures that the distance between "known" and "unknown" points is mathematically distinct and easier to measure.

3. Learning from the "Wild" (SAL)

Real-world data is often a "wild" mixture of labeled knowns and unlabeled unknowns. The Separate And Learn (SAL) framework utilizes Singular Value Decomposition (SVD) on the model's gradient matrices to identify candidate outliers. By recognizing that OOD samples produce gradients that point in distinct directions compared to in-distribution samples, SAL filters these outliers to train robust classifiers without manual intervention.

4. Hallucination Detection in LLMs (HaloScope)

The framework extends to Large Language Models (LLMs) through HaloScope. This method identifies a specific "hallucination subspace" within a model's internal activations. By detecting the distinct patterns that emerge when a model is hallucinating versus being truthful, HaloScope provides a path toward more reliable generative AI.

Empirical Evaluation

The proposed methods were evaluated across diverse benchmarks, including object detection (PASCAL VOC, BDD-100k), image classification (CIFAR, ImageNet-100), and LLM truthfulness (TruthfulQA, CoQA).

Key results include:

  • VOS achieved a reduction in the False Positive Rate (FPR95) of up to 9.36% in object detection tasks.
  • Dream-OOD significantly improved performance on ImageNet-100, reducing FPR95 on the "Places" dataset by nearly 20%.
  • SAL demonstrated the power of unlabeled data, reducing FPR95 on CIFAR-100 from 7.80% to 1.88%, nearing perfect detection.
  • HaloScope improved hallucination detection by 10.69% (AUROC) on TruthfulQA without requiring manual annotations.

Discussion and Future Work

This research demonstrates that feature space regularization and gradient analysis are more tractable and effective than traditional pixel-space outlier hunting. While these methods show significant promise, challenges remain regarding distribution shifts in "wild" data and the computational scaling required for multi-billion parameter vision-language models. Future research will explore the resilience of these systems against adversarial attacks and their application in scientific discovery, such as identifying unknown protein configurations.

By moving beyond the closed-world assumption, this work provides a mathematical and algorithmic foundation for safer, more reliable machine learning systems that are aware of their own limitations.

Summary updated

BibTeX
@misc{du2025foundations,
  author = {Xuefeng Du},
  title = {{Foundations of Unknown-aware Machine Learning}},
  year = {2025},
  eprint = {2505.14933},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.14933},
}
Figure