Landgericht Hamburg released on 27 September 2024
In an eagerly awaited decision, the Hamburg Regional Court is now the first in Germany to rule on AI training datasets under copyright law.
The decision provides guidance on the aggregation of such datasets for AI training and on the rightsholders’ “opt-out” (machine-readable) reservation of use online.
The EU legal instrument at the heart of the decision is Directive (EU) 2019/790 of the European Parliament and of the Council of 17 April 2019 on copyright and related rights in the Digital Single Market and amending Directives 96/9/EC and 2001/29/EC, known as the DSM Directive.
Text and data mining (TDM), defined in Article 2(2) of the DSM Directive as “any automated analytical technique aimed at analysing text and data in digital form in order to generate information”, is exempt under European copyright law, not only for the purpose of scientific research (Article 3 DSM Directive) but also for other purposes, including commercial and business uses (Article 4 DSM Directive). In case of the latter, however, authors and right holders can opt out by explicitly reserving the use of their works. The DSM Directive has been implemented in German law by the German Copyright Act (Urheberrechtsgesetz – UrhG, ss. 44a, 44b and 60d UrhG).
The Case
The claim was brought by Mr Kneschke, a professional photographer, against LAION e.V. (Large-scale Artificial Intelligence Open Network), a non-profit organisation dedicated to creating open-access datasets and models for AI research, particularly in machine learning and computer vision.
The disputed image created by Mr Kneschke was captured by LAION, downloaded, analysed and included with its meta data in the data set. The image file was from the website of photo agency collaborating with Mr Kneschke and provided with a watermark from the photo agency. The website explicitly prohibits the use of automated means for downloading or scraping, as set out in its terms of service.
LAION argued that they had no images, only links to where the images could be found online. Mr Kneschke argued that LAION’s process had included making copies of the image to extract information, and that this amounted to copyright infringement.
LAION had sought to create a new dataset based on a pre-existing one. It downloaded images available online from their storage locations. Those images were then checked using software to determine whether the description of the image content that was already in the existing data set actually matched the content shown in the downloaded image. It was a comparison exercise. Images in which the text and image content did not match sufficiently were filtered out. For the remaining images, the metadata, specifically the image location URL and the image description, were extracted and included in the newly created dataset. To ascertain whether the descriptions aligned with the images in question, LAION did download and temporarily store the images, and then used automation to analyse them.
Mr Kneschke claimed that this violated his copyright in the photograph in the form of unauthorised reproduction by LAION as part of the analysis process. He sought an injunction based on copyright infringement to prevent future reproductions of his image. LAION maintained that the reproduction during the creation of the dataset was exempt under German and European copyright law, particularly in the context of text and data mining.
The Decision
The Court dismissed the claim and found in LAION’s favour, ruling that reproduction for the purpose of verifying the content and its description must be distinguished from use for AI training.
Reproduction for the purpose of verifying constitutes a form of text and data mining, and in this case, the creation by LAION (a not-for-profit organisation) of the dataset for use free of charge fell under the “scientific research” exemption covered by Article 3 DSM Directive and s. 60d UrhG.
The Court found that the creation of a dataset as the basis for training AI systems can be considered scientific research, as it is a fundamental step aimed at using the dataset for future knowledge generation. It noted that “scientific research generally refers to the methodical-systematic pursuit of new knowledge. […] The concept of scientific research is the methodical systematic “striving” for new knowledge should not be understood so narrowly that it would only cover the work steps directly associated with the acquisition of knowledge. Rather, it is sufficient that the work step in question is aimed at (later) gaining knowledge, as is the case, for example, with numerous data collections that must first be carried out in order to then draw empirical conclusions. In particular, the term scientific research does not presuppose subsequent research success. Accordingly – contrary to the plaintiff’s opinion – the creation of a data set of the type in dispute, which can be the basis for training AI systems, can certainly be viewed as scientific research in the above sense. […] it is a fundamental step with the aim of using the data set for the purpose of later gaining knowledge. […]” .
Further, the Court affirmed the absence of commercial activity, as the dataset itself was made freely available to the public: “it is sufficient that the data set was – undisputedly – published free of charge and thus made available to researchers (also) in the field of artificial neural networks” .
The fact that the training set could also be used by for-profit companies was irrelevant for the assessment under Sec. 60d UrhG: “Whether the data set […] is also used by commercial companies for training or further development of their AI systems is irrelevant because the research of commercial companies is still research – albeit is not privileged as such according to §§ 60c et seq. UrhG” .
The claim against LAION was dismissed.
Regarding the “opt-out” from commercial TDM, while it was not necessary for the Court to deal with it in order to reach its main conclusion, the Court suggested a generous approach regarding machine-readability, finding that an opt-out in natural language would have been sufficient in this case to dis-apply the commercial TDM exception. However, the Court also indicated that this was not a general rule that would always apply. Each case should be analysed on its own merit and the answer would depend on the technical development at the relevant time of use of the work. The Court’s willingness to give a broad meaning of “machine-readability” introduces new challenges and risks for AI businesses. If rightsholders’ “opt-out” in natural language is deemed “machine-readable”, data aggregators will be compelled to use AI systems with natural language processing capabilities to identify and interpret these reservations. The Court seems to have taken the view that the risk of error when looking for opt-outs in natural language should be borne by AI businesses, in the absence of a TDM reservation web standard protocol.
The decision by the Landgericht Hamburg is a significant one from a historic perspective as it is the first legal test of the TDM exceptions contained in the DSM Directive. It is certainly not the last. Its legal impact is quite limited because it covers the use of text and data mining for the making of a dataset, not the actual training of a model. Mr Kneschke may appeal, but given the narrow scope of the ruling, that may be difficult. In the short term, AI dataset makers have scored a small victory in the ongoing AI Wars.
Pierre Valentin

