TL;DR
This paper introduces Attributed Accuracy Assay (AAA), a novel system for evaluating machine learning services not with a single accuracy score, but as a dynamic "accuracy surface" across various attribute combinations. AAA addresses the critical need for understanding how a service performs for diverse user expectations, especially when training data is hidden and client data distributions vary widely.
What Problem Does This Paper Address?
As machine learning models are increasingly offered as services (MLaaS), clients face a challenge: existing benchmarks provide only aggregate accuracy scores, which may not reflect their specific deployment scenarios. Different clients might have data with distinct characteristics (e.g., indoor vs. outdoor scenes for image recognition, or varying speaker demographics for speech recognition). This disparity means a service that performs well on average might fail catastrophically for a specific user. The problem is to provide a granular, attribute-aware assessment of a service's accuracy, creating an "accuracy surface" that maps attribute combinations to expected performance. This is further complicated by the combinatorial explosion of attributes, leading to extremely sparse data for many attribute combinations, and the potential for noisy attribute inference.
Methods
The core of AAA is a Gaussian Process (GP)-based probabilistic estimator that models the accuracy surface. Instead of a single accuracy value, each attribute combination (termed an "arm") is associated with a Beta distribution, from which the service's accuracy is sampled. This allows for probabilistic estimation and uncertainty quantification.
Key innovations to handle sparsity and heteroscedasticity include:
- Beta Distribution with Mean and Scale GPs: Two GPs are used to model the mean and scale parameters of the Beta distribution for each arm, allowing for smoothing of accuracy estimates across related arms.
- Dirichlet Regularization: To prevent over-smoothing of the Beta scale parameters (which can lead to inaccurate uncertainty estimates), a Dirichlet distribution is introduced to supervise the relative scale values across arms.
- Observation Pooling: For arms with very few observations, a pooling strategy is employed, where observations from nearby arms are combined to improve kernel parameter learning for the GPs.
- Attribute Uncertainty Modeling: The system can handle cases where attributes are not known exactly. It uses a joint model that recalibrates individual attribute classifiers and models their correlations, allowing for fractional assignment of instances to arms.
Datasets
The paper evaluates AAA on four tasks using real-world datasets:
- Male-Female Classification (MF):
- CelebA: Used for training a gender classification service and attribute predictors.
- MF-IMDB: A pre-trained gender classification service used for evaluation.
- Animal Classification (AC):
- COCOS: A scene classification dataset adapted for animal classification.
- COCOS10K: An earlier, smaller version of COCOS used for evaluation.
Key Insights and Ideas
- The "Accuracy Surface" is Crucial: Aggregate accuracy is insufficient. Even with high average accuracy, specific attribute combinations (arms) can have drastically lower performance, highlighting vulnerabilities.
- Sparsity is the Enemy of Smoothness: The combinatorial nature of attributes leads to sparse data for many arms, making it difficult for standard GP models to learn reliable accuracy estimates and uncertainties.
- Scale Matters for Uncertainty: Modeling the scale parameter of the Beta distribution, in addition to the mean, is critical for accurately representing uncertainty, especially in sparse settings.
- Dirichlet Prior is Key for Scale Supervision: Directly supervising the relative scale parameters with a Dirichlet prior helps prevent over-smoothing and leads to more faithful uncertainty estimates.
- Pooling Saves Sparse Arms: Combining observations from similar arms is essential for learning robust GP kernels when data is extremely sparse.
- Attribute Noise is a Real Problem: Real-world attributes are often noisy or estimated. AAA's ability to handle this uncertainty is a significant practical advantage.
Key Results
- Significant MSE Reduction: AAA (specifically BetaGP-SLP) achieved an average 80% reduction in macro-averaged square error compared to existing methods.
- Improved Exploration Efficiency: AAA demonstrated faster reduction of macro MSE during active exploration, indicating it more effectively identifies informative instances to label.
- BetaGP-SLP Outperforms Baselines: The proposed method, BetaGP-SLP, consistently outperformed simpler baselines like Beta-I and BernGP in both estimation quality and exploration efficiency across all tested tasks.
- Calibration Enhances Performance: The proposed calibration method (Cal:Full) significantly improved accuracy estimation compared to raw or temperature-only calibration.
Limitations and Future Work
- Scalability to Larger Attribute Spaces: The current evaluation is on thousands of arms. Larger attribute spaces could present new challenges.
- Attribute Selection: Identifying the most relevant attributes for an application is non-trivial and could be an area for future research.
- Characterizing Test-Time Data Shifts: Understanding and modeling subtle test-time data shifts, especially for text applications, requires further development of expressive attribute spaces.
Summary updated