NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Data Banzhaf: A Robust Data Valuation Framework for Machine Learning

Jiachen T. Wang, Ruoxi Jia

Abstract

Data valuation has wide use cases in machine learning, including improving data quality and creating economic incentives for data sharing. This paper studies the robustness of data valuation to noise in machine learning training, which is inherently stochastic due to factors like Stochastic Gradient Descent (SGD). We introduce Data Banzhaf, proving that the Banzhaf value is theoretically the most robust metric for ranking data importance. We also provide a "Maximum Sample Reuse" (MSR) algorithm that makes it significantly more efficient to compute than traditional methods.

Introduction

In modern machine learning, quantifying the value of individual data points is crucial for tasks such as filtering poisoned or mislabeled samples and establishing economic incentives for data sharing. The standard approach involves defining a utility function (e.g., test accuracy) and measuring the change in utility when a data point is included or excluded.

However, existing methods like the Shapley value or Leave-One-Out (LOO) error often assume a stable utility function. In practice, training neural networks with SGD introduces significant noise; different random seeds can lead to varying accuracies. This stochasticity can cause valuation algorithms to produce inconsistent rankings across multiple runs, rendering them unreliable for real-world applications. This paper addresses this challenge by focusing on ranking stability and introducing a framework that is resilient to such noise.

Methods

The authors propose a framework centered on ranking stability rather than absolute value.

Safety Margin

A new mathematical metric, the "safety margin," is introduced. It quantifies the maximum noise level a valuation method can withstand before the relative ranking of any two data points is reversed.

The Banzhaf Value

The paper proves that among the class of "semivalues"—which includes the Shapley value and LOO—the Banzhaf value achieves the largest possible safety margin. Unlike the Shapley value, which weights subsets based on their size, the Banzhaf value weights all subsets equally. This uniform weighting "spreads the risk," making the metric more resilient to outliers in model performance caused by training randomness.

Maximum Sample Reuse (MSR)

To address the computational complexity of calculating these values for large datasets, the authors developed the MSR estimator. This Monte Carlo algorithm updates value estimates for all data points using every model trained on a random subset, achieving a $1/n$ speedup over naive sampling methods.

Key Results

The framework was evaluated on 13 diverse classification datasets, including MNIST, CIFAR10, and various tabular benchmarks.

Ranking Consistency

Experimental results on CIFAR10 demonstrate that Data Banzhaf is significantly more consistent than its counterparts. As shown in the figure below, the percentage of points consistently ranked in the top or bottom $k\%$ across multiple runs is much higher for Data Banzhaf compared to Data Shapley or LOO.

Ranking consistency of Data Banzhaf compared to Data Shapley and LOO for top-k% and bottom-k% rankings.

Furthermore, the Banzhaf value achieved a Spearman correlation (ranking consistency) of approximately 0.856 across different runs, whereas the Shapley value and LOO scored 0.038 and 0.001, respectively. The stability of the Banzhaf value estimates is visualized in the following boxplot.

Boxplots of Data Banzhaf value estimates sorted by median, showing high ranking stability (SP=0.856).

Data Cleaning and Weighted Learning

In data cleaning tasks, Data Banzhaf outperformed six state-of-the-art baselines in F1-score for detecting mislabeled images. Additionally, models trained using Banzhaf-weighted samples achieved higher test accuracies than those using uniform or Shapley-based weighting.

Discussion and Conclusion

The primary insight of this work is that the Banzhaf value's uniform weighting of subsets provides superior robustness to the inherent noise of ML training. While the Shapley value is prized in economics for its fairness axioms, ranking stability is often more critical for practical ML applications like data filtering.

Future work includes developing tighter robustness metrics by modeling specific SGD noise distributions and scaling these methods to massive foundation models. Currently, despite the MSR speedup, data valuation remains computationally intensive, requiring the training of numerous models.

Summary updated

BibTeX
@inproceedings{wang2023data,
  author = {Jiachen T. Wang and Ruoxi Jia},
  title = {{Data Banzhaf: A Robust Data Valuation Framework for Machine Learning}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2023},
  url = {https://openreview.net/forum?id=lm4ccfP2FPK},
}
Figure