Unsupervised Unknown Unknown Detection in Active Learning

Prajit T. Rajendran, Huáscar Espinoza, Agnès Delaborde, Chokri MraidhaAISafety/SafeRL @ IJCAI 2023

TL;DR

This paper introduces U3DAL, a novel unsupervised method for detecting "unknown unknowns" (data points that are both misclassified and confidently predicted) in stream-based active learning. By leveraging uncertainty and diversity thresholds, U3DAL effectively identifies these critical blind spots in machine learning models, enhancing safety and reliability in real-world applications.

What Problem Does This Paper Address?

Machine learning models are increasingly deployed in safety-critical applications, where their reliability is paramount. A significant challenge arises from "unknown unknowns" – data points that lie outside the distribution of known data, leading the model to make incorrect predictions with high confidence. Unlike "known unknowns" (misclassifications with low confidence), these are particularly dangerous as the model appears to be performing well. Traditional methods like anomaly detection or out-of-distribution detection can help, but they often struggle in dynamic, stream-based environments where data arrives sequentially and future data is unknown. This paper tackles the problem of detecting these dangerous unknown unknowns in real-time within a stream-based active learning setting, where models are continuously updated with new data.

Methods

The core of the proposed method, U3DAL (Unsupervised Unknown Unknown Detection in Active Learning), lies in its use of active learning's data selection mechanisms to identify unknown unknowns. Specifically, it leverages two key metrics:

  • Uncertainty: Measured by predictive entropy. Low entropy indicates high confidence from the model, a characteristic of unknown unknowns.
  • Diversity: Measured by the Z-score, which quantifies how different a data point is from the existing training data distribution. High diversity is another hallmark of unknown unknowns.

U3DAL operates within a stream-based active learning framework. A prediction model (M) is trained on initial data. As new data points arrive, the acquisition function (which can be random, uncertainty-based, or diversity-based) selects points for labeling by a human oracle, constrained by a budget (B). These selected points are stored in a stream buffer (S). When the buffer is full, the model is retrained. Crucially, U3DAL uses the uncertainty (U) and diversity (D) selection thresholds from the acquisition function not just for selecting data to label, but also as indicators for unknown unknowns. A data point is classified as an unknown unknown if its normalized predictive entropy is below threshold U and its normalized diversity score is above threshold D. This approach is unsupervised because it doesn't require prior knowledge of what constitutes an unknown unknown; it relies on the model's own confidence and the novelty of the data.

Datasets

  • Mini Imagenet: Used for training the classification model and as a source of normal data points.
  • Imagenet-A: Used as the anomaly set for evaluating the unknown unknown detection capabilities. This dataset was curated to contain challenging, confusing data points that cause significant performance degradation in standard CNN models.

Key Insights and Ideas

  • Leveraging Active Learning Thresholds for Detection: The most significant insight is repurposing the uncertainty and diversity thresholds, typically used for selecting informative data points in active learning, as direct indicators for unknown unknowns. This elegantly bridges the gap between active learning and anomaly detection.
  • Unsupervised Detection in Streams: The method provides a practical way to detect unknown unknowns in real-time within stream-based learning, a scenario common in many real-world applications where data is continuously generated.
  • Model Agnosticism: The U3DAL approach is designed to be model-agnostic, meaning it can be applied with various prediction models, making it broadly applicable.
  • Confidence is Key: The paper emphasizes that unknown unknowns are characterized by high confidence mispredictions, which is why simple uncertainty-based monitors fail. U3DAL's focus on low entropy (high confidence) is critical.

Key Results

  • Outperformance of Baselines: U3DAL significantly outperformed established anomaly detection methods like Local Outlier Factor (LOF) and Isolation Forest in detecting unknown unknowns on the Imagenet-A dataset.
  • Threshold Impact: Experiments showed that specific combinations of uncertainty (U) and diversity (D) thresholds (e.g., U=0.7, D=0.5) yielded the best detection rates for unknown unknowns.
  • Acquisition Function Influence: While U3DAL's performance was generally robust across different acquisition functions (Random, Uncertainty, Diversity), the choice of acquisition function did have a minor impact on the number of detected unknown unknowns.
  • Accuracy Drop on Anomaly Set: The Imagenet-A dataset demonstrated a substantial accuracy drop (around 90%) for well-known CNN models, confirming its suitability for testing unknown unknown detection.

Limitations and Future Work

  • Adaptive Thresholds: The authors suggest that an adaptive threshold setting, where thresholds dynamically adjust to data distribution shifts, could further improve performance. This is noted as a direction for future work.
  • Ablation Studies: While the paper used a specific architecture (Mobilenet backbone), ablation studies with different architectures, budget values, buffer sizes, and thresholds are deferred to future work.
  • Definition of "Unknown Unknowns": The paper defines unknown unknowns as low entropy and high diversity points. While this is a practical operationalization, the philosophical definition of "unknown unknowns" can be broader.

Summary updated

BibTeX
@inproceedings{rajendran2023unsupervised,
  author = {Prajit T. Rajendran and Huáscar Espinoza and Agnès Delaborde and Chokri Mraidha},
  title = {{Unsupervised Unknown Unknown Detection in Active Learning}},
  booktitle = {AISafety/SafeRL @ IJCAI},
  year = {2023},
}
Figure