Metas AI tool Llama almost entirely memorized Harry Potter book, study finds

0
26

Meta’s Llama has memorized huge portions of Harry Potter

Llama has a memorization problem, but don't call it a smoking gun.

 By 

Cecily Mauran

 on 

Share on Facebook Share on Twitter Share on Flipboard

copy of harry potter book held up by white gloved hands

Apparently, the first Harry Potter book is one of Llama's favorite books. Credit: ANGELA WEISS / AFP / Getty Images

Meta's Llama model has memorized Harry Potter and the Sorcerer's Stone so well that it can reproduce verbatim excerpts from 42 percent of the book, according to a new study.

Researchers from Stanford, Cornell, and West Virginia University analyzed dozens of books from the now-infamous Books3 dataset, a collection of pirated books used to train Meta's Llama models. Books3 is also at the center of a copyright infringement lawsuit against Meta, Kadrey v. Meta Platforms, Inc. The study's authors say their findings could have major implications for AI companies facing similar lawsuits.

According to the research paper, the Llama 3.1 model "memorizes some books, like Harry Potter and 1984, almost entirely." Specifically, the study found that Llama 3.1 has memorized 42 percent of the first Harry Potter book so well that it can reproduce verbatim excerpts at least 50 percent of the time. Overall, Llama 3.1 could reproduce excerpts from 91 percent of the book, though not as consistently.

"The extent of verbatim memorization of books from the Books3 dataset is more significant than previously described," said the paper. But the researchers also discovered that "memorization varies widely from model to model and from book to book within each model, as well as varying in different parts of individual books." For example, the study estimated that Llama 3.1 only memorized 0.13 percent of Sandman Slim by Richard Kadrey, one of the lead plaintiffs in the class action copyright suit against Meta.

So, while some of the paper's findings seem damning, don't call it a smoking gun for plaintiffs in AI copyright infringement cases.

Mashable Light Speed

"These results give everyone in the AI copyright debate something to latch on to," wrote journalist Timothy B. Lee in his Understanding AI newsletter. "Divergent results like these could cast doubt on whether it makes sense to lump J.K. Rowling, Richard Kadrey, and thousands of other authors together in a single mass lawsuit. And that could work in Meta’s favor, since most authors lack the resources to file individual lawsuits."

Why is Llama able to reproduce some books more than others? "I suspect that the difference is because Harry Potter is a much more famous book. It's widely quoted and I'm sure that substantial excerpts from it on third-party websites found their way into the training data on the web," said James Grimmelmann, a professor of digital and information law at Cornell University, who was cited in the paper.

What this also shows, Grimmelmann said, is that "AI companies can make choices that increase or reduce memorization. It's not an inevitable feature of AI; they have control over it."

Meta and other AI companies have argued that using copyrighted works to train their models is protected under fair use, a complex legal doctrine. However, the extent of memorization could complicate those arguments.

“Yes, I do think that the likelihood that LLMs are memorizing more than previously thought changes the copyright analysis,” Robert Brauneis, a professor with the George Washington University Law School, said in an email to Mashable. He concluded that the study’s findings could ultimately weaken Meta’s fair use argument.

We asked Meta for comment on the study's findings, and we'll update this article if we receive a response.


Disclosure: Ziff Davis, Mashable’s parent company, in April filed a lawsuit against OpenAI, alleging it infringed Ziff Davis copyrights in training and operating its AI systems.

Mashable Image

Cecily is a tech reporter at Mashable who covers AI, Apple, and emerging tech trends. Before getting her master's degree at Columbia Journalism School, she spent several years working with startups and social impact businesses for Unreasonable Group and B Lab. Before that, she co-founded a startup consulting business for emerging entrepreneurial hubs in South America, Europe, and Asia. You can find her on X at @cecily_mauran.


These newsletters may contain advertising, deals, or affiliate links. By clicking Subscribe, you confirm you are 16+ and agree to our Terms of Use and Privacy Policy.

البحث
الأقسام
إقرأ المزيد
Home & Garden
Starbucks Is Releasing Its Most Festive Drink Yet—Red, White, and Blue Included
Starbucks Is Releasing Its Most Festive Drink Yet—Red, White, and Blue Included It's a summer of...
بواسطة Test Blogger9 2025-05-29 00:11:29 0 347
Technology
The roborock Qrevo Edge robot vacuum is back down to its lowest-ever price
Best robot vacuum deal: Save $500 on the roborock Qrevo Edge...
بواسطة Test Blogger7 2025-05-29 04:00:14 0 385
الألعاب
Rivaling The Forest and Rust, Steam hidden gem Soulmask gets big, free DLC
Rivaling The Forest and Rust, Steam hidden gem Soulmask gets big, free DLC As an Amazon...
بواسطة Test Blogger6 2025-05-30 11:00:31 0 395
Science
Why South Africa Has Been Lifting Out The Ocean By Up To 2 Millimeters Each Year
Why Has South Africa Been Rising Out The Sea By Up To 2 Millimeters Each Year?The southern tip of...
بواسطة test Blogger3 2025-06-03 17:00:15 0 336
Music
Rockers Respond to California's ICE Raid Protests
Rockers Respond to California's ICE Raid Protests + National Guard DeploymentThe current protests...
بواسطة Test Blogger4 2025-06-09 21:00:05 0 273