Concepts / Information Extraction

Information Extraction

Model training data extraction is the process of pulling the data used to train a model back out of that model or its training material.

  • Programming

A Model Shaped by Its Data

A machine learning model is built from examples. Before it can do anything useful, it has to be fed a large collection of data, and the patterns it absorbs from that collection are what make it work. Because the model is shaped by that data, a natural security question follows: could someone pull the original data back out of the model, or out of the material used to train it?

This article answers that question through two related harms, data theft and privacy violation. Keep one question in mind as you read: when the data is extracted, what exactly has been lost, and to whom does it matter?

What Extraction Means

Definition

Model training data extraction is the process of pulling the data used to train a model back out of that model or its training material.

Two sources of leakage are named here: the model itself and the material used to train it. The definition does not require a dramatic break-in. What defines extraction is the result: data that was used to build the model ends up outside the protected path and in the hands of someone who was not meant to have it.

Tracing the Path of Training Data

Follow the data from left to right. The dataset is the starting point, and the model is built from it. The extraction step is the point where data leaves the protected path. The final box is where the harm lands. The two possible destinations, a competitor or a person whose information was in the data, correspond to the two harms discussed next.

Datasetcollection of examplesTrainingmodel is built from thedataModelpatterns absorbed from thedataExtraction stepdata leaves the protectedpathCompetitordata theft harmPerson in the dataprivacy violation harmfeedsproducespulled fromvaluable dataprivate data
Where does the data start, which stages does it pass through, and at which point does it reach someone it was not meant for?

Data Theft: What Is Valuable

Data theft concerns the value of extracted data. If the extracted data is valuable, it can let competitors build competitive models. The harm is to the organization that invested in collecting and preparing the data, because a rival gains something it did not pay to create.

Privacy Violation: What Is Personal

Privacy violation concerns extracted private and sensitive information. The source gives a concrete case: the emails used to train Gmail's auto-complete model. If that kind of content is extracted, the harm falls on the people whose information it is, not only on the organization that holds it.

Comparing the Two Harms

The two harms are easy to confuse because they share a cause. Both begin with extraction from a model or its training data. The useful test is to ask who is hurt and what kind of information is involved. The diagram below separates the two so that the difference is visible at a glance.

Extracted datawhat is taken: the data'svalueCompetitorswho gains: rival modelsPrivate informationwhat is taken: personalcontentPeople in the datawho is hurt: theindividualsletsaffects
What is actually taken in each case, and who is affected?

Checking Both Questions

Worked example

Classifying one extraction event

A training set contains two kinds of material: proprietary pricing data that gives a company an edge, and customer emails that identify individuals. An outside party pulls both out of the model's training material. Which harms occurred?

  1. 1
    Ask what was taken

    The pricing data is valuable, so its extraction is a data theft concern. The customer emails are private and identifying, so their extraction is a privacy violation concern.

  2. 2
    Ask who is affected

    The company is affected through the value of its data, since a competitor could build a competitive model from it. The customers are affected because their personal information was exposed.

  3. 3
    Combine the answers

    Asking both questions separately is what prevents a risk analysis from missing one of the harms. Here both harms apply to the same act.

Result

The single extraction event produces both data theft and privacy violation. The two labels describe two concerns that the same act can raise at once.

One Event, Two Harms

A single extraction event can produce both harms at once. If the extracted data is both valuable and private, the same act counts as data theft and as privacy violation. The distinction is a way of describing which concern you are looking at, not a rule that the two are always separate.

From Possible Risk to Actual Harm

An extraction risk is a possibility: it exists when data that is valuable or private sits in a training set. A harm is something that has actually happened. The transition happens when extraction takes place and the data reaches someone it was not meant for. The diagram below shows that progression.

Risk presentvaluable or private data intraining setExtractiondata leaves protected pathUnintended partydata reaches someone notmeant to have itHarm realizeddata theft or privacyviolationif extractedif it reachesharm lands
At what point does a risk that could happen become a harm that has actually happened?

Why Protection Comes First

Common Confusions About Extraction

  • Common mistake

    Treating extraction as harmful only after a leak has been confirmed

    Why it fails

    The source states that private or valuable data in a training set justifies protection before any extraction happens.

    Do this instead

    Assess the training data for value and privacy from the start, not after an incident.

  • Common mistake

    Assuming data theft and privacy violation are always separate events

    Why it fails

    A single extraction can be both valuable and private, so it can count as both harms at once.

    Do this instead

    Check each harm separately, then accept that one act can produce both.

  • Common mistake

    Asking only who is hurt and never what was taken

    Why it fails

    The two harms are told apart by the kind of information involved, not only by the victim.

    Do this instead

    Ask what was taken (the data's value or personal information) and who is affected.

  • Common mistake

    Confusing a risk with a harm

    Why it fails

    A risk is a possibility that data could be extracted. A harm has happened only once the data is extracted and reaches an unintended party.

    Do this instead

    Label the situation as risk until the data has actually reached someone it was not meant for.

Classify a Scenario

EASY

A model was trained on a dataset that includes both private emails and business-sensitive sales figures. Someone extracts the sales figures only. Which harm applies, and who is affected? Then consider what changes if the emails were extracted instead.

Hints
  • Ask what was taken first: the value of the data, or private information about people?
  • Then ask who is affected: a competitor, or the people whose information was in the data?
  • Remember that the two harms can occur from the same extraction, so check each separately.

Key Takeaways

  • Model training data extraction is the process of pulling the data used to train a model back out of that model or its training material.
  • Data theft concerns the value of extracted data, which can let competitors build competitive models; privacy violation concerns extracted private and sensitive information, such as the emails used to train Gmail's auto-complete model.
  • Both harms begin with the same extraction, so each should be checked separately by asking what was taken and who is affected; one event can produce both.
  • An extraction risk is a possibility that exists once valuable or private data is in a training set, and it becomes a harm when the data is extracted and reaches an unintended party.

Related concepts

More concepts starting with I