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

0
2كيلو بايت

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.

البحث
الأقسام
إقرأ المزيد
الألعاب
F1 25 Bahrain setup
F1 25 Bahrain setup As an Amazon Associate, we earn from qualifying purchases and other...
بواسطة Test Blogger6 2025-05-29 00:00:18 0 2كيلو بايت
Technology
Theres no way the Amazon Fire TV 2-Series should cost less than $130
Best TV deal: Save $20 on Amazon Fire TV 2-Series Get a...
بواسطة Test Blogger7 2025-06-13 10:00:13 0 2كيلو بايت
Sports
Ceramic Microspheres Market: Insights, Key Players, and Growth Analysis 2025 –2032
Executive Summary Ceramic Microspheres Market Opportunities by Size and Share CAGR...
بواسطة Pooja Chincholkar 2025-10-09 08:12:02 0 617
Home & Garden
Michaels Just Acquired Joann Fabrics Brands—Here's What It Means for Your Favorite Crafting Supplies
Michaels Just Acquired Joann Fabrics Brands—Here's What It Means for Your Favorite Crafting...
بواسطة Test Blogger9 2025-06-07 12:00:24 0 2كيلو بايت
القصص
Crips vs. Bloods: How Two Street Gangs Changed American Cities Forever
Crips vs. Bloods: How Two Street Gangs Changed American Cities Forever - History Collection...
بواسطة Test Blogger2 2025-07-14 08:00:15 0 1كيلو بايت