Post · 3 min read· pp. 4–6

Valuation-resistant subsets

In this post I’ll show how to construct subsets of data which resist being valued (in the sense of the data valuation research program).

Setup

We will work with the cat/dog subset of CIFAR-10. This forms a binary classification task with 10,000 training examples and 2,000 test examples.

We will construct two subsets of the training data, AA and BB, which yield the following test-set accuracies:

  • Train on just AA: 86% accuracy.
  • Train on A∪BA \cup B: 91% accuracy.
  • Train on just BB: 37% accuracy. (worse than chance!)

Subset BB is both beneficial when added to AA, while also being worse than nothing when used on its own.

This result is problematic for the research program of data valuation – which traditionally “is posed as a problem of equitably splitting the validation performance of a learning algorithm among the training data” (e.g. [1, 2]). What value should we assign to subset BB? Negative, because it’s worse than nothing on its own? Or positive, because it’s helpful when used alongside AA? There seems to be no clear answer.

If you are familiar with ROC curves, please enjoy the following.

Method

The construction is as follows.

  1. Remove a random 10% of the cat/dog training examples, and train a ResNet on this (yields a model with ~75% accuracy).
  2. Run this model on the remaining 90% of examples.
  3. Select the top 15% most confident mistakes from this set, as subset BB.
  4. Finally, let subset AA be the remaining 75% of examples which are not already in BB.

A notebook which reproduces these results is here. It uses a few extra techniques to slightly pump up the numbers – ensembling and evaluating on augmented images to reduce noise.

Thoughts

Consider any binary classification dataset SS, paired with any prediction function ff. I’ll argue that the dataset can always be split into two halves, which on their own cannot give you anything better than ff.

Let AA be the examples in SS which are correctly predicted by ff, and BB the mistakes. Then on AA, ff already has perfect accuracy; to additionally realize zero loss, we can simply scale up the logits. And on BB, the inversion of ff (flipping the predictions) likewise has perfect accuracy.

Therefore, when training on either AA or BB alone, no matter how large and diverse their union is, we cannot rely on ERM to give us a classifier better than ff (or its inversion).

It’s only when these two sets (correctly predicted examples & mistakes) are taken together that they can give models better than ff.

In Learning from Incorrectly Labeled Data, Eric Wallace presented the following experiment:

  1. Train on CIFAR-10 (all 10 classes) for 2 epochs, yielding a model with 63% accuracy.
  2. Run the model on the entire training set of 50,000 points, and relabel according to the model’s prediction.
  3. Throw out all those examples which were predicted correctly, leaving a set of ~18,500 entirely mislabeled examples.
  4. Train on this set … => 50% accuracy! (much better than chance)

The construction presented in this post is derived from Eric’s.

References

[1] Kwon and Zou. Beta Shapley: a Unified and Noise-reduced Data Valuation Framework for Machine Learning. arXiv preprint arXiv:2110.14049, 2021.

[2] Just et al. LAVA: Data Valuation without Pre-Specified Learning Algorithms. ICLR 2023.

[3] Ilyas et al. Datamodels: Predicting Predictions from Training Data. ICML 2022.

[4] Wallace. Learning from Incorrectly Labeled Data. Distill 2019.