SAVA: Scalable Learning-Agnostic Data Valuation

Samuel Kessler, Tam Le, Vu Nguyen

Introduction

In the era of "big data," machine learning models are routinely trained on massive, web-scraped datasets. Unfortunately, these datasets are frequently "dirty," containing noisy labels, corrupted features, or even intentional malicious attacks like backdoors. Identifying and pruning this low-quality data is essential for improving model performance and reducing training costs.

A highly promising approach to this problem is data valuation, which assigns a "score" to each training point based on its utility. Recent work introduced LAVA, a method that uses Optimal Transport (OT) to measure how well a training point aligns with a clean, curated validation set. Because LAVA is "learning-agnostic," it does not require training a model to value the data. However, LAVA suffers from a critical bottleneck: its memory requirements grow quadratically ($O(N^2)$) with the number of data points. For a dataset of 1 million points, LAVA would require over 7,000 GB of RAM—far beyond the reach of standard hardware.

To overcome this, researchers introduce SAVA (Scalable Learning-Agnostic Data Valuation), a novel framework that uses hierarchical optimal transport to efficiently value training data. By processing data in batches rather than all at once, SAVA bypasses massive memory bottlenecks, scaling to datasets with millions of points while maintaining state-of-the-art performance.

The SAVA Approach

SAVA introduces a hierarchical approach to make OT-based data valuation scalable, drawing inspiration from how Stochastic Gradient Descent (SGD) made deep learning possible by training on batches.

  1. Hierarchical Optimal Transport (HOT): Instead of solving one giant OT problem across the entire dataset, SAVA divides the training and validation sets into smaller, manageable batches.
  2. Two-Level Computation: It first solves many small, computationally "cheap" OT problems to find the distance between individual batches. Then, it solves a "high-level" OT problem to find the optimal plan for moving mass between these batches.
  3. Calibrated Gradients: To value an individual data point, SAVA combines the "local" gradients from its batch-level OT problem with the "global" weights from the high-level batch plan.
  4. Theoretical Refinement: The authors also provide a corrected theoretical derivation for the gradients of entropic-regularized OT, fixing errors in previous literature to ensure more accurate valuation scores.
Overview of the SAVA method, illustrating how it decomposes the large-scale Optimal Transport problem into manageable batch-level computations.

By caching label-to-label distances, SAVA can run nearly as fast as LAVA on small datasets while being the only one capable of finishing on large ones. Interestingly, the authors suggest that batching might also act as a form of regularization. Solving the OT problem exactly can sometimes lead to overfitting on the validation set; SAVA's batch approximation can actually lead to better quality valuation in some cases.

Experimental Setup

The researchers evaluated SAVA on several challenging benchmarks to test both its scalability and its ability to detect bad data:

  • CIFAR10 with Corruptions: They injected four types of noise into the standard CIFAR10 training set: noisy labels, noisy features (Gaussian noise), backdoor attacks (Trojan squares), and "poison frogs" (sophisticated feature-collision attacks).
  • Clothing1M: A large-scale, real-world dataset containing 1 million images of clothing with naturally noisy labels scraped from the web. This served as the primary test for SAVA's scalability.

Key Results

SAVA demonstrates that practitioners do not have to trade off performance for scalability:

  • Unlocking Scalability: While LAVA runs out of memory (OOM) on CIFAR10 once the dataset exceeds 10k-50k points, SAVA easily handles the full 50k and scales seamlessly up to the 1 million points in Clothing1M.
  • Robust Corruption Detection: SAVA consistently matches or exceeds LAVA's detection rates for all types of data corruption. In "poison frog" detection, SAVA maintained a near 100% detection rate where other methods like KNN Shapley and Influence Functions struggled.
  • Improved Model Performance: On the massive Clothing1M dataset, pruning the "worst" data identified by SAVA led to a test accuracy of 70.0%, significantly higher than random pruning (67.6%) and better than other popular methods like EL2N (69.2%).
SAVA maintains high detection rates across various corruptions as training set size increases, whereas LAVA fails due to memory limits (OOM).

Limitations and Future Work

While SAVA represents a significant leap forward for data valuation, the authors identify a few areas for further exploration:

  • Clean Set Dependency: Like LAVA, SAVA requires a high-quality, "clean" validation set. If the reference set is biased or noisy, the resulting valuation scores will reflect that bias.
  • Ground Cost Design: The current implementation uses a feature-label distance specifically designed for labeled classification tasks. Extending SAVA to unlabeled data or different modalities like text and audio remains an open challenge.
  • Theoretical Bounds: The hierarchical approach (HOT) provides a looser theoretical bound on validation error compared to standard OT, though empirical results strongly suggest this does not hurt practical performance.

Summary updated

BibTeX
@inproceedings{kessler2025sava,
  author = {Samuel Kessler and Tam Le and Vu Nguyen},
  title = {{SAVA: Scalable Learning-Agnostic Data Valuation}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=0UCoWxPhQ4},
}
Figure