The DSM Copyright Directive, formally Directive (EU) 2019/790 on copyright and related rights in the Digital Single Market, is the European Union law that modernized copyright exceptions, licensing and platform liability for the online environment. In the field of Copyright & AI, it matters above all because its text and data mining exceptions and the rights reservation (opt-out) mechanism define when developers may copy protected works to train machine learning models without asking permission.
The Directive was adopted in April 2019, and Member States had to transpose it into national law by 7 June 2021. As a directive rather than a regulation, it works through national statutes, so the precise wording, remedies and procedures differ from country to country, while the core obligations remain harmonized across the Union.
What the DSM Copyright Directive regulates
The Directive is a package of targeted reforms rather than a complete copyright code. It sits on top of earlier instruments, especially the InfoSoc Directive of 2001, and adds new mandatory exceptions, new rights for certain rightholders and new duties for large online platforms.
The following table summarizes the provisions that practitioners consult most often and the actors each one affects.
| Provision | Subject | Main addressees |
|---|---|---|
| Article 3 | Text and data mining for scientific research | Research organizations, cultural heritage institutions |
| Article 4 | General text and data mining exception with opt-out | Any user with lawful access, including AI developers |
| Article 5 | Digital and cross-border teaching uses | Schools, universities |
| Article 6 | Preservation copies of collections | Libraries, archives, museums |
| Articles 8 to 11 | Out-of-commerce works | Cultural heritage institutions, collecting societies |
| Article 15 | Related right for press publishers | News publishers, aggregators |
| Article 17 | Liability of content-sharing platforms | Large user-upload services |
| Articles 18 to 23 | Fair remuneration and transparency in contracts | Authors, performers, their contractual partners |
Two further provisions are frequently overlooked. Article 14 states that reproductions of public domain visual art are not protected unless the reproduction itself is original, and Article 7 makes the research and teaching exceptions resistant to contractual override.
How the text and data mining exceptions work
Text and data mining (TDM) is defined in the Directive as any automated analytical technique aimed at analyzing text and data in digital form to generate information, including patterns, trends and correlations. Training a large language model or an image generator involves copying works into datasets, which is a reproduction that would otherwise require authorization.
Article 3 and Article 4 create two distinct routes. The research route is narrow in beneficiaries but strong in protection, while the general route is open to everyone but yields to the rightholder’s reservation. The table compares them.
| Feature | Article 3 research exception | Article 4 general exception |
|---|---|---|
| Beneficiaries | Research organizations and cultural heritage institutions | Anyone, including commercial firms |
| Purpose | Scientific research only | Any purpose |
| Lawful access required | Yes | Yes |
| Rightholder opt-out | Not available | Available through express reservation |
| Contractual override | Prohibited | Possible through the reservation |
| Retention of copies | With appropriate security, including for verification of results | Only as long as necessary for mining |
Both exceptions require lawful access, which means the miner must obtain content through a subscription, an open license or free public availability. Circumventing a paywall or using pirated collections does not satisfy this condition, regardless of the downstream use.
The opt-out under Article 4(3)
The Article 4(3) reservation lets rightholders exclude their works from the general exception. For content made publicly available online, the reservation must be expressed in an appropriate manner, and the Directive names machine-readable means as the example. In practice, this sentence has become the central legal hinge of AI training in Europe.
No single technical standard is mandated, so several mechanisms coexist. Their legal weight is still being clarified by courts and by guidance under the AI Act.
| Method | Where it sits | Practical strength |
|---|---|---|
| robots.txt directives | Website root file addressing specific crawlers | Widely honored by major crawlers, but crawler-specific |
| TDM Reservation Protocol | HTTP headers or a well-known file | Purpose-built for TDM, adoption still growing |
| Metadata flags | Embedded in files such as images | Travels with the file, may be stripped |
| Terms of service text | Website legal pages | Legally relevant, but harder for automated systems to parse |
| Licensing contracts | Bilateral agreements | Strongest clarity, limited to the parties |
A 2024 German first-instance ruling concerning the LAION image dataset suggested that a reservation written in natural language in website terms might count as machine-readable, while deciding the case mainly on the research exception. Such views remain unsettled at appellate level, so careful developers treat any clear reservation as binding.
Interaction with the AI Act and related rules
The AI Act turned the Directive’s opt-out into a compliance duty for model providers. Providers of general-purpose AI models must put in place a policy to comply with Union copyright law, including identifying and respecting Article 4(3) reservations, and must publish a sufficiently detailed summary of training content according to a template issued by the European Commission.
This link has a notable extraterritorial dimension. The AI Act expects compliance from providers placing models on the EU market regardless of where training occurred, although whether the Directive itself reaches training performed outside the Union is still debated among scholars. The voluntary Code of Practice for general-purpose AI published in 2025 describes concrete steps, such as honoring robots.txt and excluding known infringing sources.
Compared with fair use under United States law, the European model is rule-based rather than case-by-case. Fair use weighs four factors after the fact, while the Directive defines in advance who may mine, under which conditions, and how rightholders can refuse. Neither framework resolves whether model outputs infringe, which remains a question of reproduction and substantial similarity.
Platform liability and remuneration provisions
Article 17 made online content-sharing service providers directly liable for user uploads of protected works unless they make best efforts to obtain authorization, act expeditiously on notices and prevent future uploads of notified works. Newer, smaller services benefit from lighter obligations: those operating under three years with turnover below EUR 10 million face reduced duties, and further relief applies below five million monthly unique visitors.
The Court of Justice upheld Article 17 in 2022 against a challenge by Poland, stressing that filtering must not block lawful uses such as quotation and parody. For AI, Article 17 matters when platforms host generated content that reproduces protected material, while Article 15 affects services that reuse news snippets.
The remuneration chapter gives authors a right to appropriate and proportionate remuneration, an annual transparency report on exploitation, a contract adjustment mechanism when pay is disproportionately low, and a revocation right for unexploited works. These provisions increasingly shape negotiations over AI training licenses.
Common misreadings and compliance risks
Misunderstandings of the Directive create real legal exposure for both developers and rightholders. The following table lists frequent errors and the correct reading.
| Misreading | Correct position | Consequence of the error |
|---|---|---|
| Public availability means free use | Lawful access is necessary but does not override a valid reservation | Infringing reproductions in training data |
| Research labels cover commercial work | Article 3 requires genuine scientific research by qualifying bodies | Loss of the non-overridable protection |
| One robots.txt rule suffices forever | Reservations must address the crawlers actually used | Unintended inclusion of content |
| The Directive governs outputs | TDM exceptions cover copying for analysis, not output reproduction | False sense of security about generated content |
| National laws are identical | Transposition differs in wording and remedies | Gaps in cross-border compliance |
In simple terms
The DSM Copyright Directive is a set of European copyright rules for the internet age. One of its most important parts decides when computers may copy books, articles, images and music in bulk to analyze them, which is exactly what happens when an AI system is trained.
Think of it like a public library with a sign on some shelves. Researchers may study every shelf. Everyone else may also study the books, unless the owner has put up a clear sign saying no. The key point is that creators can say no in a machine-readable way, and AI developers in Europe are expected to look for that sign and respect it.
A practical example
A mid-sized European software company plans to train a domain-specific language model on public web pages about engineering. Before crawling, its legal team reviews the Article 4 exception and concludes that the company is not a research organization, so the opt-out applies. Engineers configure the crawler to read robots.txt, TDM Reservation Protocol headers and common metadata flags, and to skip any site that expresses a reservation.
The crawl initially collects about 40 million pages, and roughly 18 percent are excluded because of reservations. The company records which signals it honored, keeps copies only for the duration of training, and drafts the public training content summary required by the AI Act. A national trade publisher that opted out later asks whether its archive was used; the company answers from its crawl logs within days, and the documented compliance prevents a dispute.