2D-OOB: Attributing Data Contribution Through Joint Valuation Framework

Yifan Sun, Jingyan Shen, Yongchan Kwon

TL;DR

2D-OOB is a new framework that moves beyond valuing whole data points to valuing individual cells (specific features within a row). By leveraging "out-of-bag" estimation from subset bagging, it identifies exactly which features make a data point helpful or harmful—achieving state-of-the-art accuracy while running up to 200x faster than previous methods.

What Problem Does This Paper Address?

In the world of data-centric AI, "data valuation" is the process of figuring out how much each training sample contributes to a model's performance. Traditional methods like DataShapley assign a single scalar score to an entire row.

Illustration of cell-level noise in a tabular dataset.

However, data is rarely "all good" or "all bad." As illustrated above, a record might have perfectly valid entries for most features, but contain a single noisy or incorrect reading (e.g., a negative income or an impossible education level). If a valuation tool flags the whole row as "low quality," we might discard valuable information. Furthermore, row-level scores don't tell us why a point is problematic.

The authors address this by proposing joint valuation (or 2D valuation). The goal is to attribute value to the specific "cells" (the intersection of a sample and a feature) to provide finer granularity and better interpretability.

Methods

The authors introduce 2D-OOB, an efficient framework based on subset bagging. Here is the high-level intuition:

  1. Subset Bagging: Instead of training one giant model, they train a "forest" of many weak learners (like decision trees). Each learner is trained on a random subset of rows and a random subset of features.
  2. Out-of-Bag (OOB) Evaluation: To value a specific cell (Row $i$, Feature $j$), the algorithm looks at all the weak learners that did not use Row $i$ during training but did use Feature $j$.
  3. The Score: It calculates the average performance of these specific learners on Row $i$. If the learners consistently perform well on Row $i$ when Feature $j$ is included, that cell is considered highly valuable.

This approach is "model-agnostic" (you can swap decision trees for MLPs or logistic regression) and computationally "free" in the sense that it only requires a single training pass of a bagging model.

Datasets

The researchers evaluated 2D-OOB across a diverse range of benchmarks:

  • Tabular Data: 12 binary classification datasets from OpenML (e.g., lawschool, electricity, creditcard, musk) and 3 multi-class datasets (e.g., Covertype).
  • Image Data: CIFAR-10, specifically adapted for a novel "backdoor trigger localization" task where images were transformed into flattened vectors.

Key Insights and Ideas

  • From Deletion to Fixation: Because 2D-OOB identifies specific bad cells, we don't have to delete rows. The authors demonstrate "cell fixation," where they only "repair" the noisy features, preserving the rest of the data point and leading to better model accuracy than row-level filtering.
  • Backdoor Localization: This is a standout application. In a data poisoning attack, a "backdoor" (like a specific pixel pattern) is hidden in a few images to trick the model. 2D-OOB can actually generate a heatmap of the image, correctly identifying the specific pixels that constitute the malicious trigger.
  • Theoretical Grounding: The authors prove that 2D-OOB is a conditional empirical expectation of row-level Data-OOB. This means that if you sum up all the cell scores in a row, you get a highly reliable row-level valuation score.
  • Efficiency is King: Previous 2D valuation methods like 2D-KNN rely on expensive permutations or nearest-neighbor searches. 2D-OOB’s reliance on bagging makes it naturally parallelizable and orders of magnitude faster.

Key Results

Detection rate vs. inspection percentage across multiple datasets.
  • Outlier Detection: In detecting noisy cells, 2D-OOB achieved an average Area Under the Curve (AUC) of 0.83, significantly outperforming the baseline 2D-KNN (0.67). As seen in the performance curves above, 2D-OOB consistently identifies noisy cells faster and more accurately across various datasets.
  • Massive Speedups: On the musk dataset (166 features), 2D-KNN took over an hour to process. 2D-OOB finished in seconds. On average, it is 200x faster across all tested datasets.
  • Backdoor Detection: 2D-OOB achieved a 0.95 AUC in localizing backdoor triggers, effectively "seeing" the malicious pixels that traditional valuation methods would miss.

Limitations and Future Work

  • Weak Learner Dependency: While the framework is model-agnostic, the quality of the valuation is tied to the choice of the weak learner. The authors noted that more complex learners (like MLPs) generally yield better results but increase computation time.
  • Tabular vs. Structured Data: Most of the experiments focused on tabular data. While the CIFAR-10 results are promising, the images were flattened into vectors. Future work could explore how to better integrate 2D-OOB with convolutional or transformer architectures that preserve spatial or sequential relationships.
  • NLP Potential: The authors suggest that in text datasets, individual tokens or words could be treated as "cells," opening the door for 2D-OOB to explain valuations in Large Language Models (LLMs).

Summary updated

BibTeX
@inproceedings{sun2024d,
  author = {Yifan Sun and Jingyan Shen and Yongchan Kwon},
  title = {{2D-OOB: Attributing Data Contribution Through Joint Valuation Framework}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=vBxeeH1X4y},
}
Figure