One Sample Fits All: Approximating All Probabilistic Values Simultaneously and Efficiently

Weida Li, Yaoliang Yu

TL;DR

This paper introduces the One-Sample-Fits-All (OFA) framework, a highly efficient method for simultaneously approximating a wide range of "probabilistic values" (like Shapley and Banzhaf values) used in feature attribution and data valuation. By optimizing a single sampling strategy, the authors achieve the currently best-known time complexity—$O(n \log n)$—for multiple attribution methods at once, eliminating the need to run separate, expensive simulations for each one.

The Challenge of Probabilistic Values

In machine learning, determining "who contributed what" is essential for model interpretability and data valuation. Practitioners turn to probabilistic values from cooperative game theory, such as the Shapley value, Banzhaf values, and Beta Shapley values. However, no single value is universally "best"; researchers often must test several to find the most effective one for a specific application.

The primary hurdle is computational: calculating these values exactly is exponentially expensive as the number of players (features or data points) increases. While various approximation estimators exist, they are typically specialized for a single value. Running five different attribution methods currently requires five separate, costly approximation processes. Furthermore, many generic estimators rely on "amplifying scalars"—mathematical weights that inadvertently inflate estimation error and slow convergence.

The OFA Framework

The authors propose the OFA framework, built on two core principles: maximum sample reuse and the elimination of amplifying scalars. Every sampled subset is used to update estimates for all players across all target probabilistic values simultaneously. By restructuring the underlying mathematics, the framework avoids large multipliers that typically increase variance.

Comparison of OFA against existing estimators across different scopes and properties. OFA is unique in supporting all probabilistic values while satisfying both P1 and P2 properties.

The framework is parameterized by a sampling vector ($q$), which determines the probability of picking subsets of specific sizes. The authors offer two versions:

  • OFA-A (Average): Optimized to perform well across all probabilistic values on average.
  • OFA-S (Specific): Optimally tuned for one specific probabilistic value (e.g., the Shapley value).

Key Insights and Theoretical Milestones

  • The "One-for-All" Milestone: OFA-A achieves a convergence rate of $O(n \log n)$ for all probabilistic values on average. This is a significant advancement, as this complexity was previously only achievable for a few specific values using specialized estimators.
  • Breaking the Shapley Speed Limit: For the standard Shapley value, OFA-A achieves a faster theoretical convergence rate ($O(n \log n)$) than the previous state-of-the-art group testing estimator ($O(n (\log n)^2)$).
  • The Datamodel Bridge: The paper establishes a mathematical connection between game-theoretic values and "datamodels" (linear surrogates). OFA-A can solve an entire family of regularized datamodels simultaneously, aiding researchers in fine-tuning data valuation metrics.

Empirical Results and Scalability

The researchers evaluated OFA using real-world image classification (MNIST, FMNIST, iris) and synthetic "Sum of Unanimity" (SOU) games for scalability testing.

Convergence performance of OFA-A and OFA-S compared to baselines across different probabilistic values (Beta and Weighted Banzhaf). OFA methods consistently maintain lower relative difference with fewer utility evaluations.

Across 18 different probabilistic values, the OFA-A estimator consistently outperformed established baselines like WSL-Shapley, SHAP-IQ, and Permutation-Shapley in terms of the Area Under the Convergence Curve (AUCC). Notably, the SOU game experiments demonstrated that the $O(n \log n)$ complexity holds even as the number of players increases to 256, where other methods begin to lag significantly.

Limitations and Future Work

While OFA-A is a superior "all-rounder," specialized estimators may still slightly outperform it for specific values like weighted Banzhaf values (though OFA-S matches that performance). Future research may explore adaptive sampling—adjusting the sampling vector $q$ dynamically during estimation—and extending the framework to more complex, non-linear attribution models.

Summary updated

BibTeX
@inproceedings{li2024one,
  author = {Weida Li and Yaoliang Yu},
  title = {{One Sample Fits All: Approximating All Probabilistic Values Simultaneously and Efficiently}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=AUg9D2VjcF},
}
Figure