Active Assessment of Prediction Services as Accuracy Surface Over Attribute Combinations

Vihari Piratla, Soumen Chakrabarti, Sunita Sarawagi

TL;DR

Machine Learning as a Service (MLaaS) often reports a single aggregate accuracy score, which masks how a model performs on specific subgroups. This paper introduces Attributed Accuracy Assay (AAA), a framework that maps out an "accuracy surface" across thousands of attribute combinations using Gaussian Processes. This allows users to identify exactly where a model excels or fails, even with very limited labeled data.

The Problem with Aggregate Accuracy

When utilizing a black-box model (like a cloud-based image recognizer), the provider might advertise a "95% accuracy" rate. However, that 95% is merely an average. For a specific, niche use case—such as recognizing animals in the desert at night—the accuracy might actually plummet to 60%.

The authors identify a major gap in current evaluation methods: we lack efficient ways to estimate accuracy across a high-dimensional space of attributes (e.g., lighting, background, subject age). If a dataset has 12 binary attributes, there are $2^{12} = 4,096$ possible combinations (which the authors call "arms"). Most of these combinations will have very few, if any, labeled examples. Standard statistical methods fail here because they either treat every combination as independent (ignoring similarities) or smooth things over so much that they miss the "valleys" of poor performance.

The Attributed Accuracy Assay (AAA) Framework

The core of AAA is a probabilistic estimator called BetaGP. The framework relies on several key mechanisms to map the accuracy surface:

  1. Beta Distributions: For every attribute combination (arm), the model assumes accuracy follows a Beta distribution, which is a natural choice for modeling probabilities and uncertainty.
  2. Dual Gaussian Processes (GPs): To handle the "sparsity" problem (arms with no data), the authors use two GPs. One GP smooths the mean accuracy across similar arms, while the second GP smooths the scale (certainty) parameter.
  3. Addressing Heteroscedasticity: Standard GPs struggle with the fact that some arms have abundant data while others have none. The authors introduce two key innovations to fix this:
  4. Dirichlet Regularization: This prevents the scale parameters from over-smoothing, ensuring the model remembers which arms actually have evidence behind them.
  5. Observation Pooling: For arms with very little data, the model "borrows" observations from its nearest neighbors in the attribute space to stabilize the estimate.
  6. Handling Noisy Attributes: AAA doesn't assume attributes (like "is it sunny?") are perfectly known. It includes a joint recalibration model to handle cases where the attributes themselves are predicted by other, potentially noisy, classifiers.
Impact of recalibration methods on MSE across different datasets

Datasets and Key Insights

The authors evaluated AAA on two primary tasks:

  • Male-Female Classification (MF): Using the CelebA dataset, they looked at gender classification across 12 binary attributes (like "young," "wearing glasses"), resulting in 4,096 attribute combinations.
  • Animal Classification (AC): Using COCO-Stuff, they classified 10 animal types across 5 background attributes (water, ground, sky, etc.), resulting in 320 combinations.

Through these evaluations, several insights emerged. First, aggregate accuracy is deceptive. While a model might have high average accuracy, the "worst-case" arms often have abysmally low accuracy. Identifying these "blind spots" is critical for safety and fairness. Second, smoothing is a double-edged sword. You must smooth data across similar attribute combinations to make predictions for rare cases, but over-smoothing hides unique failures. The Dirichlet scale supervision acts as the "secret sauce" that balances this trade-off.

Key Results

  • Massive Error Reduction: AAA (specifically the BetaGP-SLP variant) achieved an average 80% reduction in macro-averaged square error compared to baseline methods.
  • Superior "Worst-Case" Tracking: In experiments, AAA was significantly better at identifying the 50 worst-performing arms compared to standard GP regressions or simple Beta estimators.
  • Active Exploration Efficiency: Because labeling data is expensive, AAA uses its own internal uncertainty (variance) to pick which instances to label next. This "active assessment" allows it to map the accuracy surface much faster than random sampling, making it highly practical for real-world audits under tight budgets.
MSE reduction over the number of explored instances for AC-COCOS10K

Limitations and Future Work

  • Scaling the Attribute Space: While 4,000 arms is a substantial number, real-world applications might involve millions of combinations. The authors note that even larger spaces could unearth new computational challenges.
  • Attribute Selection: The system currently requires humans to manually select which attributes are relevant. Automating the discovery of which attributes actually cause accuracy fluctuations is a suggested next step.
  • Temporal Shifts: The model assumes a static accuracy surface. In reality, model performance might drift over time as data distributions change, a factor which AAA does not currently account for.

Summary updated

BibTeX
@inproceedings{piratla2021active,
  author = {Vihari Piratla and Soumen Chakrabarti and Sunita Sarawagi},
  title = {{Active Assessment of Prediction Services as Accuracy Surface Over Attribute Combinations}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=7CKWdq2yQv},
}
Figure