Efficient Task-Specific Data Valuation for Nearest Neighbor Algorithms
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
Citing papers per year: 2021: 6; 2022: 10; 2023: 25; 2024: 47; 2025: 36; 2026: 24.
148 papers.
Sort:
By area:
- 2022Training Data Influence Analysis and Estimation: A Surveycited by 134
- 2022Data Banzhaf: A Robust Data Valuation Framework for Machine Learningcited by 128
- 2023DataInf: Efficiently Estimating Data Influence in LoRA-tuned LLMs and Diffusion Modelscited by 121
- 2024Data Shapley in One Training Runcited by 79
- 2023LAVA: Data Valuation without Pre-Specified Learning Algorithmscited by 69
- 2023OpenDataVal: a Unified Benchmark for Data Valuationcited by 55
- 2023Data-OOB: Out-of-bag Estimate as a Simple and Efficient Data Valuecited by 38
- 2022WeightedSHAP: analyzing and improving Shapley based feature attributionscited by 36
- 2022CS-Shapley: Class-wise Shapley Values for Data Valuation in Classificationcited by 32
- 2024Get more for less: Principled Data Selection for Warming Up Fine-Tuning in LLMscited by 32
- 2021DataLens: Scalable Privacy Preserving Training via Gradient Compression and Aggregationcited by 31
- 2024Rethinking Data Shapley for Data Selection Tasks: Misleads and Meritscited by 29
38 more
- 2023MediTab: Scaling Medical Tabular Data Predictors via Data Consolidation, Enrichment, and Refinementcited by 24
- 2023Data Selection for Fine-tuning Large Language Models Using Transferred Shapley Valuescited by 21
- 2024Stochastic Amortization: A Unified Approach to Accelerate Feature and Data Attributioncited by 21
- 2023Threshold KNN-Shapley: A Linear-Time and Privacy-Friendly Approach to Data Valuationcited by 19
- 2024Efficient Data Shapley for Weighted Nearest Neighbor Algorithmscited by 18
- 2024textttdattri: A Library for Efficient Data Attributioncited by 18
- 2021Data Pricing in Machine Learning Pipelinescited by 17
- 2023HarsanyiNet: Computing Accurate Shapley Values in a Single Forward Propagationcited by 17
- 2023Data Valuation and Detections in Federated Learningcited by 17
- 2022Data Debugging with Shapley Importance over End-to-End Machine Learning Pipelinescited by 16
- 2022Variance reduced Shapley value estimation for trustworthy data valuationcited by 16
- 2023Performance Scaling via Optimal Transport: Enabling Data Selection from Partially Revealed Sourcescited by 16
- 2024The Mirrored Influence Hypothesis: Efficient Data Influence Estimation by Harnessing Forward Passescited by 16
- 2025TokenShapley: Token Level Context Attribution with Shapley Valuecited by 14
- 2023DU-Shapley: A Shapley Value Proxy for Efficient Dataset Valuationcited by 12
- 2025LayerIF: Estimating Layer Quality for Large Language Models using Influence Functionscited by 12
- 2025From Points to Coalitions: Hierarchical Contrastive Shapley Values for Prioritizing Data Samplescited by 12
- 2023A Note on "Efficient Task-Specific Data Valuation for Nearest Neighbor Algorithms"cited by 11
- 2023Selectivity Drives Productivity: Efficient Dataset Pruning for Enhanced Transfer Learningcited by 11
- 2024Incentives in Private Collaborative Machine Learningcited by 10
- 2024Outlier Gradient Analysis: Efficiently Identifying Detrimental Training Samples for Deep Learning Modelscited by 10
- 2021FL-Market: Trading Private Models in Federated Learningcited by 9
- 2023Data Acquisition: A New Frontier in Data-centric AIcited by 9
- 2022Differentially Private Shapley Values for Data Evaluationcited by 8
- 2021A Unified Framework for Task-Driven Data Quality Managementcited by 7
- 2023Towards Algorithmic Fairness by means of Instance-level Data Re-weighting based on Shapley Valuescited by 7
- 20232D-Shapley: A Framework for Fragmented Data Valuationcited by 7
- 2024HyperINF: Unleashing the HyperPower of the Schulz's Method for Data Influence Estimationcited by 7
- 2022Towards More Efficient Data Valuation in Healthcare Federated Learning using Ensemblingcited by 6
- 2022Probably Approximate Shapley Fairness with Applications in Machine Learningcited by 6
- 2023TRIAGE: Characterizing and auditing training data for improved regressioncited by 6
- 2023SoK: Unintended Interactions among Machine Learning Defenses and Riskscited by 6
- 2024Precedence-Constrained Winter Value for Effective Graph Data Valuationcited by 6
- 2024DAVED: Data Acquisition via Experimental Design for Data Marketscited by 6
- 2024TimeInf: Time Series Data Contribution via Influence Functionscited by 6
- 2021One-Round Active Learningcited by 5
- 2023GMValuator: Similarity-based Data Valuation for Generative Modelscited by 5
- 2024Understanding Data Importance in Machine Learning Attacks: Does Valuable Data Pose Greater Harm?cited by 5
50 most cited of 148 All 148 (JSON)
- 2026Modeling Deletion Requests in Machine Unlearning3 Oct 2026
- 2026ReCo: When to Relocate Sensor Kits under Deployment Constraints -- A NILM Case Study28 Sep 2026
- 2026No Free Efficiency: Revisiting the Trade-off Between Training Efficiency and Model Vulnerability27 Sep 2026
- 2026From Detrimental to Beneficial: Dynamic Influence-based Valuation and Editing23 Aug 2026
- 2026Beyond Shapley: An Influence-Based Data Auditing Pipeline for LLM Alignment and Evaluation24 Jul 2026
- 2026Nonlinear Axiomatic Attribution for Cooperative Games10 Jul 2026
- 2026Validation-Induced Shapley Shifts: How Validation Structure Distorts Data Valuation4 Jul 2026
- 2026Efficient Decentralized Multi-task Dataset Valuation via Model Merging3 Jul 2026
- 2026TimeLAVA: Learning-Agnostic Valuation for Time Series Data17 Jun 2026
- 2026LineageMark: Multi-user White-box Watermarking for Contribution Tracing in Model Derivation Chains15 Jun 2026
- 2026ATHENA: Accelerated Multi-Task Heterogeneous Influence Functions for Robot Data Curation15 Jun 2026
- 2026Feature Attribution in Directed Acyclic Graphs Using Edge Intervention13 Jun 2026
38 more
- 2026AlphaToken: Decoupling Adaptation and Stability for Path-Aware Response Token Valuation in LLM Post-Training1 Jun 2026
- 2026Efficient Banzhaf-Based Data Valuation for k-Nearest Neighbors Classification20 May 2026
- 2026Dynamic Shapley Computation20 May 2026
- 2026Attributing Emergence in Million-Agent Systems12 May 2026
- 2026Is Data Shapley Not Better than Random in Data Selection? Ask NASH11 May 2026
- 2026SCARV: Structure-Constrained Aggregation for Stable Sample Ranking in Redundant NLP Datasets1 May 2026
- 2026Randomized Antipodal Search Done Right for Data Pareto Improvement of LLM Unlearning17 Apr 2026
- 2026Quality over Quantity: Demonstration Curation via Influence Functions for Data-Centric Robot Learning10 Mar 2026
- 2026Local Shapley: Model-Induced Locality and Optimal Reuse in Data Valuation4 Mar 2026
- 2026Challenges in Enabling Private Data Valuation27 Feb 2026
- 2026In-Run Data Shapley for Adam Optimizer30 Jan 2026
- 2026Unsupervised Synthetic Image Attribution: Alignment and Disentanglement30 Jan 2026
- 2025From Points to Coalitions: Hierarchical Contrastive Shapley Values for Prioritizing Data Samples22 Dec 2025
- 2025Shapley-based Data Valuation for LLM Alignment via Sequential Preference Optimization12 Dec 2025
- 2025Scalable Data Attribution via Forward-Only Test-Time Inference25 Nov 2025
- 2025Reliable and Private Utility Signaling for Data Markets11 Nov 2025
- 2025Beyond Uniform Deletion: A Data Value-Weighted Framework for Certified Machine Unlearning10 Nov 2025
- 2025Error Estimate and Convergence Analysis for Data Valuation9 Nov 2025
- 2025Geometric Data Valuation via Leverage Scores3 Nov 2025
- 2025Eigen-Value: Efficient Domain-Robust Data Valuation via Eigenvalue-Based Approach27 Oct 2025
- 2025Layer-Aware Influence for Online Data Valuation Estimation14 Oct 2025
- 2025Towards Cross-Modal Error Detection with Tables and Images14 Oct 2025
- 2025f-INE: A Hypothesis Testing Framework for Estimating Influence under Training Randomness12 Oct 2025
- 2025Amulet: a Python Library for Assessing Interactions Among ML Defenses and Risks15 Sep 2025
- 2025Data Valuation and Selection in a Federated Model Marketplace9 Sep 2025
- 2025Understanding Data Influence with Differential Approximation20 Aug 2025
- 2025CompLeak: Deep Learning Model Compression Exacerbates Privacy Leakage22 Jul 2025
- 2025Concept-TRAK: Understanding how diffusion models learn concepts through concept-level attribution9 Jul 2025
- 2025KAIROS: Scalable Model-Agnostic Data Valuation30 Jun 2025
- 2025A case for data valuation transparency via DValCards29 Jun 2025
- 2025TokenShapley: Token Level Context Attribution with Shapley Value18 Jun 2025
- 2025Semivalue-based data valuation is arbitrary and gameable14 Jun 2025
- 2025Fast-DataShapley: Neural Modeling for Training Data Valuation5 Jun 2025
- 2025On the Usage of Gaussian Process for Efficient Data Valuation4 Jun 2025
- 2025Rating Quality of Diverse Time Series Data by Meta-learning from LLM Judgment2 Jun 2025
- 2025LayerIF: Estimating Layer Quality for Large Language Models using Influence Functions27 May 2025
- 2025Faithful Group Shapley Value25 May 2025
- 2025Losing is for Cherishing: Data Valuation Based on Machine Unlearning and Shapley Value22 May 2025
50 newest of 148 All 148 (JSON)
- 2024Understanding Data Importance in Machine Learning Attacks: Does Valuable Data Pose Greater Harm?cited by 5
- 20242D-OOB: Attributing Data Contribution Through Joint Valuation Frameworkcited by 4
- 2024WaKA: Data Attribution using K-Nearest Neighbors and Membership Privacy Principlescited by 2
- 2026Randomized Antipodal Search Done Right for Data Pareto Improvement of LLM Unlearningcited by 2
- 2025Losing is for Cherishing: Data Valuation Based on Machine Unlearning and Shapley Valuecited by 1
- 2025Beyond Uniform Deletion: A Data Value-Weighted Framework for Certified Machine Unlearningcited by 0
- 2026LineageMark: Multi-user White-box Watermarking for Contribution Tracing in Model Derivation Chainscited by 0
- 2026Modeling Deletion Requests in Machine Unlearningcited by 0
- 2026Modeling Deletion Requests in Machine Unlearning3 Oct 2026
- 2026LineageMark: Multi-user White-box Watermarking for Contribution Tracing in Model Derivation Chains15 Jun 2026
- 2026Randomized Antipodal Search Done Right for Data Pareto Improvement of LLM Unlearning17 Apr 2026
- 2025Beyond Uniform Deletion: A Data Value-Weighted Framework for Certified Machine Unlearning10 Nov 2025
- 2025Losing is for Cherishing: Data Valuation Based on Machine Unlearning and Shapley Value22 May 2025
- 2024WaKA: Data Attribution using K-Nearest Neighbors and Membership Privacy Principles2 Nov 2024
- 2024Understanding Data Importance in Machine Learning Attacks: Does Valuable Data Pose Greater Harm?5 Sep 2024
- 20242D-OOB: Attributing Data Contribution Through Joint Valuation Framework7 Aug 2024
- 2026Attributing Emergence in Million-Agent Systemscited by 0
- 2026Attributing Emergence in Million-Agent Systems12 May 2026
- 2022Training Data Influence Analysis and Estimation: A Surveycited by 134
- 2022Data Banzhaf: A Robust Data Valuation Framework for Machine Learningcited by 128
- 2024Data Shapley in One Training Runcited by 79
- 2023LAVA: Data Valuation without Pre-Specified Learning Algorithmscited by 69
- 2023OpenDataVal: a Unified Benchmark for Data Valuationcited by 55
- 2023Data-OOB: Out-of-bag Estimate as a Simple and Efficient Data Valuecited by 38
- 2022WeightedSHAP: analyzing and improving Shapley based feature attributionscited by 36
- 2022CS-Shapley: Class-wise Shapley Values for Data Valuation in Classificationcited by 32
- 2024Get more for less: Principled Data Selection for Warming Up Fine-Tuning in LLMscited by 32
- 2021DataLens: Scalable Privacy Preserving Training via Gradient Compression and Aggregationcited by 31
- 2024Rethinking Data Shapley for Data Selection Tasks: Misleads and Meritscited by 29
- 2023MediTab: Scaling Medical Tabular Data Predictors via Data Consolidation, Enrichment, and Refinementcited by 24
12 most cited of 132 All 132 (JSON)
- 2026ReCo: When to Relocate Sensor Kits under Deployment Constraints -- A NILM Case Study28 Sep 2026
- 2026No Free Efficiency: Revisiting the Trade-off Between Training Efficiency and Model Vulnerability27 Sep 2026
- 2026From Detrimental to Beneficial: Dynamic Influence-based Valuation and Editing23 Aug 2026
- 2026Nonlinear Axiomatic Attribution for Cooperative Games10 Jul 2026
- 2026Validation-Induced Shapley Shifts: How Validation Structure Distorts Data Valuation4 Jul 2026
- 2026Efficient Decentralized Multi-task Dataset Valuation via Model Merging3 Jul 2026
- 2026TimeLAVA: Learning-Agnostic Valuation for Time Series Data17 Jun 2026
- 2026Feature Attribution in Directed Acyclic Graphs Using Edge Intervention13 Jun 2026
- 2026AlphaToken: Decoupling Adaptation and Stability for Path-Aware Response Token Valuation in LLM Post-Training1 Jun 2026
- 2026Efficient Banzhaf-Based Data Valuation for k-Nearest Neighbors Classification20 May 2026
- 2026Dynamic Shapley Computation20 May 2026
- 2026Is Data Shapley Not Better than Random in Data Selection? Ask NASH11 May 2026
12 newest of 132 All 132 (JSON)