Abstract
Ensuring the reliability and fairness of AI models remains a significant challenge as they scale to hundreds of millions of parameters. Traditional offline verification methods often fail to account for real-world data shifts or become computationally intractable. This paper introduces Clemont, a framework for the real-time monitoring of "input-output robustness"—a unified property encompassing adversarial robustness, semantic robustness, and individual fairness. By casting the monitoring problem as a dynamic Fixed-Radius Nearest Neighbor (FRNN) search, Clemont detects robustness violations in massive, black-box models during deployment, providing a practical safety net where static verification fails.
Introduction
In the deployment of machine learning models, robustness—the principle that similar inputs should produce similar outputs—is a cornerstone of safety and ethics. Whether protecting against adversarial perturbations or ensuring that similar individuals are treated equitably (individual fairness), the goal is consistency.
Traditionally, researchers have sought to guarantee this property offline through formal verification or probabilistic bounds. However, these methods face three primary hurdles:
- Distribution Shifts: Models may be proven robust on training data but fail on novel real-world distributions.
- Computational Complexity: Formal methods rarely scale to modern deep learning architectures with millions of parameters.
- The Boundary Paradox: Global robustness is often impossible near decision boundaries, where even minor changes should logically result in different classifications.
Clemont addresses these issues by shifting the focus to runtime monitoring. Instead of proving global robustness, Clemont monitors the actual sequence of inputs seen in production. If a new input is sufficiently similar to a previously seen input but results in a different model decision, the system raises an immediate alarm.
Methodology: Efficient Runtime Monitoring
The core technical challenge of runtime monitoring is efficiency: the system must compare every incoming input against the entire history of previous inputs without introducing significant latency. Clemont treats this as a Fixed-Radius Nearest Neighbor (FRNN) problem and introduces several optimizations to maintain real-time performance.
Dynamic Indexing and BDDs
Most FRNN algorithms, such as k-d trees, are designed for static datasets. Clemont adapts these for dynamic streams by utilizing a dual-buffer strategy: a "short-term" buffer for immediate comparisons and a "long-term" index that is periodically rebuilt.
Furthermore, the authors introduce a novel algorithm using Binary Decision Diagrams (BDDs). While typically used in hardware verification, BDDs allow for the symbolic discretization of the input space. This enables extremely fast neighbor lookups, particularly when using the $L_\infty$ distance metric, by representing the search space as a compact, searchable graph.
Dimension Decomposition
To handle high-dimensional data like images, Clemont employs a parallelization technique called dimension decomposition. By splitting dimensions into smaller, manageable groups, the system solves the FRNN problem for each group in parallel and intersects the results. This is specifically optimized for the $L_\infty$ norm, where points are considered "close" only if they are close across every individual dimension.
Experimental Evaluation
The authors evaluated Clemont across three distinct domains to demonstrate its versatility and scalability:
- Adversarial & Semantic Robustness: Tested on CIFAR-10, CIFAR-100, and ImageNet (using models with up to 350 million parameters). The monitor was subjected to standard corruptions such as fog, frost, and noise from the RobustBench suite.
- Individual Fairness: Evaluated using tabular datasets involving human-centric decisions, including German Credit, Adult (Census Income), and COMPAS (Recidivism).
- Scalability Stress-Testing: Used the HIGGS dataset, containing 10.5 million entries, to measure how processing time scales with massive history lengths.
Key Results
- Scalability: Clemont successfully monitored models with over 350 million parameters and input spaces exceeding 150,000 dimensions (ImageNet).
- Latency: In most benchmarks, violations were detected within fractions of a second, making the tool viable for real-time deployment.
- The Robustness Paradox: A striking finding was that even models specifically trained for robustness (via state-of-the-art adversarial training) still frequently violated runtime robustness when faced with real-world corruptions.
Discussion: Fairness as Robustness
One of the paper's most significant conceptual contributions is the framing of Individual Fairness as a specific instance of input-output robustness. By defining fairness as the requirement that similar individuals (inputs) receive similar outcomes (outputs), the authors allow a single monitoring framework to address both security concerns and ethical requirements.
This runtime approach offers a practical compromise: a model might be "unrobust" in a theoretical, global sense, but if the specific inputs that trigger those failures never appear in practice, the system remains functionally safe. Clemont focuses resources on the inputs that actually occur, providing a targeted defense.
Limitations and Future Work
Despite its performance, Clemont currently has limitations. The BDD-based algorithm and dimension decomposition are optimized for the $L_\infty$ distance metric; extending these to $L_2$ (Euclidean) distance remains an open challenge. Additionally, the memory overhead of storing input histories can be significant, with the ImageNet benchmark requiring up to 75GB of RAM.
Future research directions include the exploration of approximate FRNN algorithms to trade minor accuracy losses for increased speed, and the development of "spam filters" to alert users if a model's verdicts are becoming increasingly inconsistent over time.
Summary updated