◆ AI All-in-One

Level 1 Use AI · Safety, Ethics and Society

Privacy, Data and Copyright

AI models are trained on vast amounts of other people's words, images and personal details, mostly without asking. This chapter covers consent, memorisation, personal-data law, the copyright fights over training and outputs, and privacy techniques such as differential privacy and federated learning.

Level
●●●●● Beginner
Reading
14 min
To learn it well
45 minutes to read
Builds on
1 concept →
↗ Plan a path here

Read first

What Is AI?

This leads to

—
The full path from zero — 1 concept before this one
  1. What Is AI?
  2. Privacy, Data and Copyright

Read them roughly in this order. See it on the concept map →

Why it matters

Modern AI is built from data. A large language model is trained on trillions of words gathered from the public web, digitised books, code repositories, forums and more (see Pretraining Large Language Models). Image generators learn from billions of captioned pictures. Almost none of the people who wrote those words or made those pictures were asked.

That raises three different questions, which often get mixed up:

  1. Privacy. Training data includes personal information: names, addresses, health details, photos of faces. Can a model reveal it? Is it lawful to process it at all? And what happens to the things you type into a chatbot?
  2. Copyright. Much training data is copyrighted. Is copying it to train a model allowed? Who owns what a model produces? When is an output too close to an original?
  3. Consent and fairness. Even where the law allows it, many writers, artists and ordinary people object to their work and lives being used this way without permission or payment.

The law here is unsettled and differs by country. This chapter explains the durable ideas, the main legal positions as of late 2026, and the technical tools that reduce privacy risk. It isn't legal advice. For practical rules about what to share with AI tools at work, see Using AI Safely at Work.

The intuition

A model doesn't store its training data like a library stores books. It adjusts billions of numbers (its parameters) so that it gets better at predicting the next word or the next pixel. Mostly, that means learning general patterns: grammar, facts, styles, how code works. In that sense it's more like a student who has read a great deal than a photocopier.

But the analogy has limits. A student who reads a poem a hundred times may be able to recite it, and so can a model. Text that appears many times in the training data, such as famous passages, licence agreements and some personal details that are copied across many websites, can be memorised and reproduced word for word. And a model can still generate things about real people, true or false, even if it never memorised a specific document.

Training data web pages, books, images, code, posts Training copies made, patterns learned Model weights billions of numbers; some text memorised Outputs answers, images, code Your prompts may be stored, reviewed or used for training Consent & copyright collected without asking; lawful basis? fair use? Copying reproduction during training; opt-outs Memorisation verbatim text or faces can be extracted Outputs and prompts near-copies, false claims about people, retention Where privacy and copyright questions arise
Fig. 1 The life cycle of an AI model's data, from collection through training and the model's weights to its outputs, with the privacy and copyright questions that arise at each stage. Users' own prompts can also be stored and, depending on the service, used to train future models.

Key idea Models mostly learn patterns, but they also memorise some data verbatim, especially data repeated many times. That single fact sits underneath both the privacy debate (can personal data leak?) and the copyright debate (does the model contain copies?).

Privacy

Memorisation and extraction

Memorisation means a model can reproduce specific training examples, not just general patterns. Training data extraction is the attack of getting it to do so on purpose. In 2020, Carlini and colleagues showed that GPT-2 could be prompted to output verbatim training text, including names, phone numbers and email addresses. In 2023, Nasr, Carlini and colleagues found a simple trick that made ChatGPT "diverge" from its normal behaviour and emit memorised training data, demonstrating that safety training doesn't remove what a model has memorised. Image models can memorise too: researchers have extracted near-copies of training images, including photos of people, from diffusion models.

Memorisation grows with model size and with how often an item is repeated in the data. Developers reduce it by removing duplicates from training data, filtering out personal information, and checking outputs for long verbatim matches.

What you type in

The more immediate privacy risk for most people is their own input. Prompts, uploaded files and conversation history are sent to the provider's servers. Depending on the service and your settings, they may be retained, reviewed by staff for safety, or used to train future models. In 2023 Samsung restricted staff use of generative AI after employees pasted confidential source code into ChatGPT. Business and API plans usually come with stronger commitments not to train on customer data. Check the settings and terms of whatever you use.

Data protection law

In the EU and UK, the General Data Protection Regulation (GDPR) applies whenever personal data is processed, including for AI training. Data protection law of this kind requires, among other things:

  • a lawful basis for processing: a legal reason such as consent, contract or "legitimate interests" (a balancing test between the organisation's purpose and people's rights);
  • data minimisation: collect and keep no more than needed;
  • transparency: tell people what you do with their data;
  • individual rights, such as access, correction and the right to erasure (the "right to be forgotten").

Generative AI strains several of these. It's hard to tell billions of people that their data was used. It's harder still to erase one person's data from a trained model, because their information is spread through the weights rather than stored in one place. Retraining from scratch is expensive, and "machine unlearning" methods remain imperfect. Regulators have acted: Italy's data protection authority temporarily blocked ChatGPT in March 2023 and later fined OpenAI €15 million (December 2024). In December 2024 the European Data Protection Board said that legitimate interests can be a lawful basis for AI training, but only after a careful case-by-case assessment, and that a model trained on personal data isn't automatically "anonymous". Other countries have their own laws; the US has no single federal privacy law, but states such as California do.

Copyright protects original creative works (text, images, music, code) from unauthorised copying. AI raises three questions.

1. Is training on copyrighted work allowed?

Training involves making copies of works, at least temporarily. Whether that is legal depends on the jurisdiction, and the main positions as of late 2026 are:

  • United States: fair use. US law allows some unlicensed uses under fair use, judged by four factors: the purpose of the use (especially whether it is "transformative"), the nature of the work, how much is used, and the effect on the market for the original. Dozens of lawsuits are testing it. In June 2025, two federal judges in San Francisco ruled in cases brought by authors. In Bartz v. Anthropic, Judge Alsup held that training on lawfully acquired books was fair use ("exceedingly transformative") but that downloading millions of pirated books to build a library was not; Anthropic then agreed to a $1.5 billion class settlement in September 2025. In Kadrey v. Meta, Judge Chhabria ruled for Meta because the authors hadn't shown market harm, while stressing that the ruling was narrow and that such harm could be shown in other cases. In February 2025 a court found that Ross Intelligence's use of Thomson Reuters' legal headnotes to build a (non-generative) competing tool was not fair use, and in September 2026 the Third Circuit upheld that ruling, the first appeals-court decision on AI training, while stressing that it did not decide the question for generative models. Major cases such as The New York Times v. OpenAI and Microsoft (filed December 2023) were still awaiting summary-judgment rulings in late 2026. Expect appeals and new rulings.
  • European Union: text and data mining with opt-out. The 2019 Copyright Directive allows text and data mining (automated analysis of works), including for commercial purposes, unless the rights holder has reserved their rights in a machine-readable way. This is the text and data mining exception, and the reservation is commonly called an opt-out. The EU AI Act adds duties for providers of general-purpose AI models, applying since August 2025: respect opt-outs and publish a summary of the content used for training (see AI Regulation and Governance). In November 2025 a Munich court ruled in GEMA v. OpenAI that a model's memorisation and reproduction of song lyrics infringed copyright and was not covered by the exception. That judgment was not final, and an appeal was expected.
  • United Kingdom. The UK's text and data mining exception covers only non-commercial research. In 2024–25 the government consulted on an EU-style exception with opt-out, which creative industries strongly opposed; its March 2026 report dropped that option without choosing a replacement. In Getty Images v. Stability AI (judgment November 2025), the High Court held that the Stable Diffusion model, as distributed, did not contain copies of Getty's images, rejecting Getty's main remaining copyright claim. Getty won only a narrow trade-mark point about watermarks in some outputs.
  • Japan and Singapore have relatively permissive exceptions for computational analysis.

2. Who owns AI-generated output?

In most countries copyright requires a human author. The US Copyright Office has refused to register works generated by AI without sufficient human creative control. In 2023 it registered the text and arrangement of the comic Zarya of the Dawn but not its Midjourney-generated images, and in March 2025 a US appeals court upheld its refusal in Thaler v. Perlmutter (the Supreme Court declined to hear the case in March 2026). Its January 2025 report concluded that prompts alone generally aren't enough for authorship, but that human selection, arrangement and modification of AI output can be protected. The UK has an unusual provision for "computer-generated works" whose application to modern AI is untested.

3. When does an output infringe?

Even if training is lawful, an output that reproduces a substantial part of a protected work can infringe, as can outputs featuring protected characters or trade marks. The risk is highest with memorised material: lyrics, famous passages, well-known characters. Styles themselves generally aren't protected by copyright, which is why "in the style of" outputs are legal in most places but remain a sore point for artists.

Note The arguments on both sides are serious. Developers argue that learning from public material is how all culture works, that models don't store copies, and that requiring licences for everything would make AI possible only for the richest firms. Creators argue that their work is being used to build products that compete with them, without consent or payment, and that "publicly visible" isn't the same as "free to use". Courts are deciding case by case, and licensing deals between AI companies and publishers, image libraries and music labels have become common alongside the lawsuits.

Privacy-preserving techniques

Two technical ideas let you learn from data while limiting what can be learned about any one person.

Differential privacy add calibrated noise so no one person shows records (red: Alice) count = 101 + Laplace noise released: e.g. 102.6 With or without Alice, the released numbers look almost the same, so it reveals almost nothing about her. ε sets how much. Federated learning the model travels to the data, not the reverse server averages updates phone local data stays here phone local data stays here phone local data stays here weight updates new model Updates can still leak, so FL is often paired with DP.
Fig. 2 Two privacy-preserving techniques. Left: differential privacy adds carefully sized random noise to a statistic so that the result is almost the same whether or not any one person, here Alice, is in the data. Right: federated learning keeps data on each device; only model updates travel to a server, which averages them into a shared model.

Differential privacy

Differential privacy (DP) is a mathematical guarantee: the result of an analysis is almost equally likely whether or not any single individual's data is included. So the result can't reveal much about that individual, whatever else an attacker knows. The privacy budget ϵ\epsilon ("epsilon") measures how much "almost" means: smaller ϵ\epsilon means stronger privacy and more noise.

The simplest mechanism adds random noise from the Laplace distribution to a count. Adding or removing one person changes a count by at most 1, so noise with scale 1/ϵ1/\epsilon is enough to hide them:

import numpy as np

rng = np.random.default_rng(0)
has_condition = rng.random(1000) < 0.12          # 1,000 patients; True = has a sensitive condition

def private_count(data, epsilon):
    """Laplace mechanism: one person changes the count by at most 1 (sensitivity 1),
    so noise with scale 1/epsilon hides any single individual."""
    return data.sum() + rng.laplace(0, 1 / epsilon)

# Differencing attack: count everyone, then everyone except Alice (the last record)
alice = has_condition[-1]
exact_diff = has_condition.sum() - has_condition[:-1].sum()
print(f"exact counts reveal Alice's status: {exact_diff} (truth: {int(alice)})")

for eps in [0.1, 1.0, 10.0]:
    diffs = [private_count(has_condition, eps) - private_count(has_condition[:-1], eps)
             for _ in range(5)]
    print(f"epsilon={eps:<4}  true count {has_condition.sum()}, one release "
          f"{private_count(has_condition, eps):7.1f} | attacker's differences:",
          np.round(diffs, 1) + 0.0)

# exact counts reveal Alice's status: 0 (truth: 0)
# epsilon=0.1   true count 101, one release    80.8 | attacker's differences: [-47.1   1.3  -9.8   0.9 -16.8]
# epsilon=1.0   true count 101, one release   101.1 | attacker's differences: [-2.6  0.9  3.  -4.5 -0.2]
# epsilon=10.0  true count 101, one release   101.1 | attacker's differences: [-0.3  0.   0.   0.   0. ]

With exact counts, subtracting "everyone except Alice" from "everyone" reveals Alice's status perfectly. That is a differencing attack, and it's why simply publishing aggregates isn't private. With ϵ=1\epsilon = 1 the attacker's differences are dominated by noise, while a single count of 101 stays accurate to within a few. With ϵ=0.1\epsilon = 0.1, privacy is strong but the count itself is badly off. With ϵ=10\epsilon = 10 the noise is too small, and Alice is exposed again. Notice also that the attacker got five tries: each release spends privacy budget, and the losses add up. Managing that total is a core part of using DP.

The US Census Bureau used DP for the 2020 census, and Apple and Google use it to collect usage statistics from devices. For machine learning, DP-SGD (Abadi and colleagues, 2016) clips each example's contribution to the gradient and adds noise during training, bounding how much the model can memorise about anyone. The cost is lower accuracy, and more data and compute to compensate.

Federated learning

Federated learning (McMahan and colleagues at Google, 2016) trains a shared model without collecting the raw data. Each device (a phone, say) trains the current model briefly on its own data and sends back only the update to the weights. A server averages many updates into a new shared model and sends it out again. Google used it to improve next-word suggestions on its Android keyboard. Model updates can still leak information about the data that produced them, so federated learning is often combined with DP and with secure aggregation, which lets the server see only the sum of many updates.

Other tools include synthetic data (see Synthetic Data), on-device models that never send data out (see Running Models Locally), and removing personal information before training. Each helps; none is a complete answer on its own.

Common pitfalls

  • "It's public, so it's fair game." Publicly visible data is still personal data under GDPR, and still copyrighted.
  • "We removed names, so it's anonymous." Combinations of ordinary details (postcode, birth date, sex) can identify most people. Real anonymisation is hard; see Using AI Safely at Work.
  • Pasting confidential or personal data into consumer AI tools without checking retention and training settings.
  • Assuming outputs are free to use. An output that closely reproduces a protected work can infringe, and purely AI-generated material may not be protectable by you either.
  • Treating differential privacy as a label. A DP claim means little without the value of ϵ\epsilon and an account of how the budget was spent across releases.

Watch out Laws and court decisions in this area are changing month by month. Everything in this chapter's legal sections is dated to late 2026. Check the current position for your country before relying on it, and get legal advice for anything that matters.

Where it leads

A bit of history

Privacy law for computers began in the 1970s: the US Privacy Act (1974) and early European data-protection laws, leading to the EU's GDPR, which took effect in 2018. A string of "anonymised" data releases that turned out to be re-identifiable, including Netflix's prize dataset (2006–2008), pushed computer scientists towards formal guarantees. Cynthia Dwork, Frank McSherry, Kobbi Nissim and Adam Smith introduced differential privacy in 2006. Federated learning followed in 2016, and DP-SGD the same year. On the copyright side, Authors Guild v. Google (2015) held that scanning millions of books to build a searchable index was fair use, a precedent both sides now cite. The arrival of large generative models in 2022 set off the current wave: the first lawsuits by artists and Getty Images in early 2023, The New York Times suit at the end of that year, the first substantial rulings in 2025, and a growing market in licensing deals alongside them.

Try it

  1. Find the data and training settings of an AI assistant you use. Are your conversations used for training by default? How long are they kept?
  2. In the code, run the ϵ=1\epsilon = 1 attack 200 times instead of 5 and average the differences. What happens, and what does it tell you about repeated queries?
  3. Pick one side of the training-data copyright debate and write the strongest argument for the other side in one paragraph.

Hint for 2: averaging cancels out noise, so the average drifts towards the true difference. Each query spent privacy budget, and 200 queries at ϵ=1\epsilon = 1 add up to a total budget of 400 (two releases per query).

Check your understanding

4 quick questions. Pick an answer to see whether you were right and why. Your best score is saved on this device.

  1. A colleague wants to paste a confidential client contract into a free consumer chatbot to summarise it. What is the main risk?

  2. Which training data is a model most likely to reproduce word for word?

  3. You release a count of patients with a condition with Laplace noise at ε = 10. An attacker queries 'everyone' and 'everyone except Alice'. What happens?

  4. A company wants to improve phone keyboard suggestions without collecting what users type. Which technique fits?

Finished this chapter?

Learn more

Hand-picked courses, books, videos and tutorials for going deeper. See all resources →

Docs

Artificial intelligence: guidance for organisations

UK Information Commissioner's Office · Beginner · Free

The UK data-protection regulator's guidance on using AI with personal data. Useful for anyone in Europe who handles customer or staff data.

Book

The Algorithmic Foundations of Differential Privacy

Cynthia Dwork & Aaron Roth · 2014 · Advanced · Free

The standard textbook on differential privacy by one of its inventors, free as a PDF. The first chapters are readable without much background.

Tool

OpenDP

OpenDP (Harvard and partners) · Intermediate · Free

An open-source library and community for differential privacy, with Python tools and clear documentation for releasing private statistics.

Facts checked as of 30 November 2026. Fast-moving details (products, prices, laws) change often. · Source: content/entries/society/privacy-and-copyright.md