Skip to main content
QUICK REVIEW

[Paper Review] Datamodels: Predicting Predictions from Training Data

Andrew Ilyas, Sung Min Park|arXiv (Cornell University)|Feb 1, 2022
Machine Learning and Data ClassificationComputer Science18 citations
TL;DR

This paper introduces datamodeling, a framework that predicts model behavior on a given input by learning a surrogate function mapping training subset presence to model predictions. By treating each training example's inclusion as a binary feature, simple linear models can accurately predict outcomes across diverse ML tasks, enabling applications like identifying data influence, detecting brittle predictions, and quantifying data leakage.

ABSTRACT

We present a conceptual framework, datamodeling, for analyzing the behavior of a model class in terms of the training data. For any fixed "target" example $x$, training set $S$, and learning algorithm, a datamodel is a parameterized function $2^S o \mathbb{R}$ that for any subset of $S' \subset S$ -- using only information about which examples of $S$ are contained in $S'$ -- predicts the outcome of training a model on $S'$ and evaluating on $x$. Despite the potential complexity of the underlying process being approximated (e.g., end-to-end training and evaluation of deep neural networks), we show that even simple linear datamodels can successfully predict model outputs. We then demonstrate that datamodels give rise to a variety of applications, such as: accurately predicting the effect of dataset counterfactuals; identifying brittle predictions; finding semantically similar examples; quantifying train-test leakage; and embedding data into a well-behaved and feature-rich representation space. Data for this paper (including pre-computed datamodels as well as raw predictions from four million trained deep neural networks) is available at https://github.com/MadryLab/datamodels-data .

Motivation & Objective

  • To understand how training data and learning algorithms jointly determine model predictions on specific inputs.
  • To address the challenge of interpreting complex model behavior by modeling it as a function of training data subsets.
  • To develop a scalable, interpretable framework for analyzing model behavior without retraining on every possible subset.
  • To enable practical applications such as identifying influential training examples, detecting data leakage, and improving model robustness.

Proposed method

  • Formalizes the prediction function $ f_{\mathcal{A}}(x; S) $ as the output of training a model on subset $ S' \subset S $ and evaluating on input $ x $, treating this as a black-box function.
  • Introduces a surrogate modeling approach where a parametric function $ g_\theta $ maps binary characteristic vectors $ \mathbf{1}_{S'} \in \{0,1\}^d $ to predicted outcomes.
  • Uses a fixed distribution $ \mathcal{D}_S $ over subsets $ S' \subset S $ to sample training data for the surrogate model.
  • Trains the surrogate $ g_\theta $ via supervised learning using a loss function (e.g., mean squared error) between predictions and actual model outputs.
  • Employs linear models as $ g_\theta $, with parameters learned to minimize the difference between predicted and true model outputs across sampled subsets.
  • Represents each training example's presence/absence in a subset via a binary vector, abstracting away example content and focusing on inclusion patterns.

Experimental results

Research questions

  • RQ1Can a simple surrogate model trained on subset presence predict model outputs across diverse training data configurations?
  • RQ2How well can datamodels identify influential training examples and quantify their impact on predictions?
  • RQ3To what extent can datamodels detect data leakage between training and test sets?
  • RQ4Can datamodels reveal brittle predictions that depend on specific training examples?
  • RQ5How effective are datamodels in finding semantically similar examples or embedding data in a meaningful representation space?

Key findings

  • Simple linear datamodels achieve high accuracy in predicting model outputs across diverse tasks, including image classification and NLP, even when the underlying training process is complex.
  • Datamodels successfully identify influential training examples and quantify their impact, enabling detection of data leakage and spurious correlations.
  • The framework enables accurate prediction of the effect of dataset counterfactuals—e.g., removing or adding specific examples—without retraining.
  • Datamodels reveal brittle predictions that are highly sensitive to small changes in the training set, highlighting potential failure modes.
  • The method embeds data points into a low-dimensional, feature-rich space where semantic similarity and influence can be meaningfully measured.
  • The authors release a large-scale dataset of four million model predictions and precomputed datamodels, enabling reproducibility and further research.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.