Skip to main content
QUICK REVIEW

[Paper Review] Data Portraits: Recording Foundation Model Training Data

Marc Marone, Benjamin Van Durme|arXiv (Cornell University)|Mar 6, 2023
Natural Language Processing TechniquesComputer Science5 citations
TL;DR

The paper introduces Data Portraits—lightweight, probabilistic data structures based on strided Bloom filters—that enable fast, space-efficient membership inference for foundation model training data. By storing only 3% of the original dataset size, the method allows researchers and users to determine whether a given text snippet was part of a training corpus, effectively detecting test set leakage and model plagiarism with low false positive rates.

ABSTRACT

Foundation models are trained on increasingly immense and opaque datasets. Even while these models are now key in AI system building, it can be difficult to answer the straightforward question: has the model already encountered a given example during training? We therefore propose a widespread adoption of Data Portraits: artifacts that record training data and allow for downstream inspection. First we outline the properties of such an artifact and discuss how existing solutions can be used to increase transparency. We then propose and implement a solution based on data sketching, stressing fast and space efficient querying. Using our tools, we document a popular language modeling corpus (The Pile) and a recently released code modeling dataset (The Stack). We show that our solution enables answering questions about test set leakage and model plagiarism. Our tool is lightweight and fast, costing only 3% of the dataset size in overhead. We release a live interface of our tools at https://dataportraits.org/ and call on dataset and model creators to release Data Portraits as a complement to current documentation practices.

Motivation & Objective

  • To address the lack of practical tools for determining whether a given text was part of a foundation model's training data.
  • To improve transparency in AI model development by introducing a new class of documentation artifacts—Data Portraits—that support membership inference.
  • To provide a lightweight, scalable solution for dataset inspection that complements existing documentation practices like Datasheets and Model Cards.
  • To enable content creators, scientists, and end-users to detect data leakage, plagiarism, and memorization in large language models.
  • To advocate for the widespread adoption of Data Portraits by dataset and model creators as a standard practice.

Proposed method

  • The method employs a strided Bloom filter—a compressed, probabilistic data structure that uses multiple hash functions to represent training data in a space-efficient manner.
  • Each text example is split into fixed-length n-grams (e.g., 50 characters), which are then hashed and stored in the Bloom filter to enable fast membership queries.
  • The system supports millisecond-latency queries, with a space overhead of only ~3% of the original dataset size.
  • False positive rates are tunable at construction time, allowing trade-offs between accuracy and storage cost.
  • The approach avoids full data redistribution and enables local, offline membership testing without exposing the original dataset.
  • The implementation is demonstrated on The Pile and The Stack datasets, with a live web interface available at dataportraits.org.

Experimental results

Research questions

  • RQ1Can a lightweight, efficient data structure be used to answer the membership question: was this example in the training data?
  • RQ2To what extent can a probabilistic data structure like a Bloom filter support accurate and scalable membership inference for large-scale web-scraped datasets?
  • RQ3How does the performance of a strided Bloom filter compare to full-text indexing or grep-based approaches in terms of speed, accuracy, and resource usage?
  • RQ4What is the false positive rate of such a system when applied to real-world language modeling datasets like The Pile and The Stack?
  • RQ5Can Data Portraits effectively detect test set leakage and model plagiarism in practice?

Key findings

  • The strided Bloom filter implementation achieves membership inference in under a millisecond per query, with only 3% of the original dataset size in storage overhead.
  • The system reports a false positive rate of 7×10⁻⁴, slightly below the intended 1×10⁻³, demonstrating strong accuracy for practical use.
  • Compared to full-text indexing (e.g., FTS), the Bloom filter is ~700x faster at 200-character context, though with lower recall and precision at shorter contexts.
  • The method successfully detects overlapping text spans between novel inputs and training data, including long-form matches like 'National Counterintelligence and Security Center'.
  • The tool enables detection of test set leakage and model plagiarism, as demonstrated in case studies using The Pile and The Stack datasets.
  • The system supports both approximate membership testing and document fingerprinting, with performance tunable via false positive rate and n-gram length parameters.

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.