Learning to Say “I Don’t Know”: The First Floor of Awareness

· Source: Towards AI - Medium · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Cybersecurity & Data Privacy · Depth: Advanced, extended

Summary

This essay, part of the "Humble Model Series," introduces the "first floor" of an AI awareness architecture, enabling models to express uncertainty and "say 'I don't know'." It implements three mechanisms: Monte Carlo Dropout, Deep Ensembles, and Out-of-Distribution (OOD) Detection, integrating them into a decision gate. Experiments on MNIST and Fashion-MNIST showed MC Dropout variance rising 31x and Deep Ensemble variance 28x from clean to OOD data, compared to 6x and 4x for adversarial inputs. A class-conditional Mahalanobis distance achieved a Cohen's d of 0.99 for OOD detection. The fused decision gate, evaluated on 10,000 images per set, deferred 2.52% of clean MNIST inputs (achieving 99.85% accuracy on predictions) and 80.09% of Fashion-MNIST inputs. While fusion reduced silent OOD failures by 61% (from ~1,878 to ~724), it decreased clean data coverage from 97.48% to 87.04%. Critically, the gate deferred only 8.80% of FGSM-perturbed adversarial inputs (ε=0.25), revealing a significant gap in adversarial awareness compared to distributional unfamiliarity.

Key takeaway

For Machine Learning Engineers deploying models in environments sensitive to mispredictions, you should recognize that current uncertainty quantification and OOD detection methods, while effective for natural distribution shifts, offer limited protection against adversarial attacks. Your awareness architecture must explicitly address adversarial robustness, as ensemble disagreement and feature-space distances do not reliably detect such perturbations. Prioritize research and implementation of techniques specifically designed for adversarial awareness to prevent silent, confident failures.

Key insights

AI models can be engineered to express uncertainty and defer, but current methods struggle with adversarial inputs.

Principles

Method

Combine Monte Carlo Dropout or Deep Ensembles with class-conditional feature-space OOD detection. Integrate these signals into a threshold-based decision gate to defer uncertain predictions.

In practice

Topics

Code references

Best for: AI Scientist, Machine Learning Engineer, AI Security Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Towards AI - Medium.