mlsanityData to 13 Oct 2026

Efficient Task-Specific Data Valuation for Nearest Neighbor Algorithms

arXiv 1908.08619 ↗First posted 22 Aug 2019cs.LG stat.MLcited by 148

Not on the map. Why?

Abstract (arXiv)

Given a data set D containing millions of data points and a data consumer who is willing to pay for X to train a machine learning (ML) model over D, how should we distribute this X to each data point to reflect its "value"? In this paper, we define the "relative value of data" via the Shapley value, as it uniquely possesses properties with appealing real-world interpretations, such as fairness, rationality and decentralizability. For general, bounded utility functions, the Shapley value is known to be challenging to compute: to get Shapley values for all N data points, it requires O(2N) model evaluations for exact computation and O(Nlog N) for (ε, δ)-approximation. In this paper, we focus on one popular family of ML models relying on K-nearest neighbors (KNN). The most surprising result is that for unweighted KNN classifiers and regressors, the Shapley value of all N data points can be computed, exactly, in O(Nlog N) time -- an exponential improvement on computational complexity! Moreover, for (ε, δ)-approximation, we are able to develop an algorithm based on Locality Sensitive Hashing (LSH) with only sublinear complexity O(Nh(ε,K)log N) when ε is not too small and K is not too large. We empirically evaluate our algorithms on up to 10 million data points and even our exact algorithm is up to three orders of magnitude faster than the baseline approximation algorithm. The LSH-based approximation algorithm can accelerate the value calculation process even further. We then extend our algorithms to other scenarios such as (1) weighed KNN classifiers, (2) different data points are clustered by different data curators, and (3) there are data analysts providing computation who also requires proper valuation.

Key facts. Cited by 148 papers in the map (data through 13 Oct 2026). First posted on arXiv 22 Aug 2019.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 13 Oct)

Citing papers per year: 2021: 6; 2022: 10; 2023: 25; 2024: 47; 2025: 36; 2026: 24.

148 papers.

Sort:

By area:

  1. 2022Training Data Influence Analysis and Estimation: A Surveycited by 134
  2. 2022Data Banzhaf: A Robust Data Valuation Framework for Machine Learningcited by 128
  3. 2023DataInf: Efficiently Estimating Data Influence in LoRA-tuned LLMs and Diffusion Modelscited by 121
  4. 2024Data Shapley in One Training Runcited by 79
  5. 2023LAVA: Data Valuation without Pre-Specified Learning Algorithmscited by 69
  6. 2023OpenDataVal: a Unified Benchmark for Data Valuationcited by 55
  7. 2023Data-OOB: Out-of-bag Estimate as a Simple and Efficient Data Valuecited by 38
  8. 2022WeightedSHAP: analyzing and improving Shapley based feature attributionscited by 36
  9. 2022CS-Shapley: Class-wise Shapley Values for Data Valuation in Classificationcited by 32
  10. 2024Get more for less: Principled Data Selection for Warming Up Fine-Tuning in LLMscited by 32
  11. 2021DataLens: Scalable Privacy Preserving Training via Gradient Compression and Aggregationcited by 31
  12. 2024Rethinking Data Shapley for Data Selection Tasks: Misleads and Meritscited by 29
38 more
  1. 2023MediTab: Scaling Medical Tabular Data Predictors via Data Consolidation, Enrichment, and Refinementcited by 24
  2. 2023Data Selection for Fine-tuning Large Language Models Using Transferred Shapley Valuescited by 21
  3. 2024Stochastic Amortization: A Unified Approach to Accelerate Feature and Data Attributioncited by 21
  4. 2023Threshold KNN-Shapley: A Linear-Time and Privacy-Friendly Approach to Data Valuationcited by 19
  5. 2024Efficient Data Shapley for Weighted Nearest Neighbor Algorithmscited by 18
  6. 2024textttdattri: A Library for Efficient Data Attributioncited by 18
  7. 2021Data Pricing in Machine Learning Pipelinescited by 17
  8. 2023HarsanyiNet: Computing Accurate Shapley Values in a Single Forward Propagationcited by 17
  9. 2023Data Valuation and Detections in Federated Learningcited by 17
  10. 2022Data Debugging with Shapley Importance over End-to-End Machine Learning Pipelinescited by 16
  11. 2022Variance reduced Shapley value estimation for trustworthy data valuationcited by 16
  12. 2023Performance Scaling via Optimal Transport: Enabling Data Selection from Partially Revealed Sourcescited by 16
  13. 2024The Mirrored Influence Hypothesis: Efficient Data Influence Estimation by Harnessing Forward Passescited by 16
  14. 2025TokenShapley: Token Level Context Attribution with Shapley Valuecited by 14
  15. 2023DU-Shapley: A Shapley Value Proxy for Efficient Dataset Valuationcited by 12
  16. 2025LayerIF: Estimating Layer Quality for Large Language Models using Influence Functionscited by 12
  17. 2025From Points to Coalitions: Hierarchical Contrastive Shapley Values for Prioritizing Data Samplescited by 12
  18. 2023A Note on "Efficient Task-Specific Data Valuation for Nearest Neighbor Algorithms"cited by 11
  19. 2023Selectivity Drives Productivity: Efficient Dataset Pruning for Enhanced Transfer Learningcited by 11
  20. 2024Incentives in Private Collaborative Machine Learningcited by 10
  21. 2024Outlier Gradient Analysis: Efficiently Identifying Detrimental Training Samples for Deep Learning Modelscited by 10
  22. 2021FL-Market: Trading Private Models in Federated Learningcited by 9
  23. 2023Data Acquisition: A New Frontier in Data-centric AIcited by 9
  24. 2022Differentially Private Shapley Values for Data Evaluationcited by 8
  25. 2021A Unified Framework for Task-Driven Data Quality Managementcited by 7
  26. 2023Towards Algorithmic Fairness by means of Instance-level Data Re-weighting based on Shapley Valuescited by 7
  27. 20232D-Shapley: A Framework for Fragmented Data Valuationcited by 7
  28. 2024HyperINF: Unleashing the HyperPower of the Schulz's Method for Data Influence Estimationcited by 7
  29. 2022Towards More Efficient Data Valuation in Healthcare Federated Learning using Ensemblingcited by 6
  30. 2022Probably Approximate Shapley Fairness with Applications in Machine Learningcited by 6
  31. 2023TRIAGE: Characterizing and auditing training data for improved regressioncited by 6
  32. 2023SoK: Unintended Interactions among Machine Learning Defenses and Riskscited by 6
  33. 2024Precedence-Constrained Winter Value for Effective Graph Data Valuationcited by 6
  34. 2024DAVED: Data Acquisition via Experimental Design for Data Marketscited by 6
  35. 2024TimeInf: Time Series Data Contribution via Influence Functionscited by 6
  36. 2021One-Round Active Learningcited by 5
  37. 2023GMValuator: Similarity-based Data Valuation for Generative Modelscited by 5
  38. 2024Understanding Data Importance in Machine Learning Attacks: Does Valuable Data Pose Greater Harm?cited by 5

50 most cited of 148 All 148 (JSON)