← Latest papers
🤖 machine learning

Inferring the Size of Large Language Models From Popular Text Memorization

This paper introduces a black-box method that infers conservative lower bounds on the parameter counts of large language models by analyzing their memorization accuracy of popular texts, enabling the ranking of model sizes and revealing hidden industry scaling strategies even for closed-weight systems.

Original authors: Ivica Nikolic

Published 2026-05-29
📖 5 min read🧠 Deep dive

Original authors: Ivica Nikolic

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you walk into a room where several people are reciting famous stories like Alice in Wonderland or the Bible. You can't see them, you can't ask them how big their brains are, and you can't peek at their notes. You can only listen to what they say next when you stop them in the middle of a sentence.

This is exactly the problem researchers faced with modern AI models (Large Language Models). Big tech companies build these powerful AIs but keep their "blueprints" secret. They won't tell you how many "neurons" (parameters) the AI has, which is the standard way to measure how smart or expensive a model is.

This paper introduces a clever "black-box" detective method to guess the size of these secret AI brains just by listening to how well they finish sentences.

The Core Idea: The "Memory Test"

The researchers realized that almost every big AI is trained on the same massive pile of internet text. This means they have all read the same popular books, religious texts, and famous documents.

Think of it like a memory contest. If you ask a person to finish a sentence from a book they've memorized, a person with a bigger brain (more parameters) will generally get it right more often than someone with a smaller brain.

The researchers tested this by:

  1. Picking 37 famous, public-domain texts (like Hamlet, the Bible, and the US Constitution).
  2. Cutting them up into thousands of little snippets.
  3. Asking different AI models to predict the very next word in those snippets.

They found a clear pattern: The bigger the AI, the better it was at guessing the next word in these famous stories. Even though other factors (like how the AI was taught) matter, the size of the brain was the biggest driver of success.

The Two Detective Tools

To turn these "memory scores" into a size estimate, the team built two different tools:

1. The "Scaling Law" (The Map)
Imagine you have a group of known people (open-source AIs) whose brain sizes you do know. You plot their memory scores against their known sizes and draw a smooth curve connecting the dots. It looks like a ladder: as the score goes up, the size goes up exponentially.

  • How it works: When a secret AI takes the test, you see where it lands on the ladder. If it scores like a 100-billion-parameter model, you estimate it's roughly that size.
  • The Catch: Because the secret AI might be built differently (like a "Mixture of Experts" model where only part of the brain is active at once), the researchers decided to be very conservative. They don't guess the exact size; they guess a minimum floor. They say, "This AI is at least this big."

2. The "Head-to-Head" Test (The Race)
Sometimes, you don't need an exact number; you just need to know who is bigger.

  • How it works: The researchers pit two secret AIs against each other on the same memory test. They use a statistical "race" to see if one AI is consistently better at finishing the sentences than the other.
  • The Result: If AI A beats AI B in the race, they can confidently say, "AI A is definitely larger than AI B," even if they don't know the exact numbers.

What They Discovered

The team tested their method on 19 open-source models (where they knew the answers) and got it right 95% of the time. Then, they turned their eyes on the "secret" models from companies like OpenAI, Google, Anthropic, and Alibaba.

Here is what the "detective work" revealed about the industry's hidden strategies:

  • The "Big Brain" Strategy (Google & Anthropic): These companies seem to be building models with massive parameter counts. For example, their top-tier models showed signs of having hundreds of billions of parameters, suggesting they are getting bigger and bigger with each new generation.
  • The "Efficiency" Strategy (OpenAI & Alibaba): Surprisingly, the researchers found that OpenAI's newer models (like GPT-4o and GPT-5 variants) didn't seem to be getting significantly bigger in terms of raw parameter count compared to their older versions. They seem to be hitting a "size ceiling." Instead of making the brain bigger, they appear to be making the existing brain smarter through better training or smarter algorithms.
  • The Hierarchy Check: The method correctly identified the internal ranking of products. For example, it correctly guessed that Anthropic's "Opus" model is bigger than its "Sonnet" model, which is bigger than its "Haiku" model, without being told that order beforehand.

The Limitations (The Fine Print)

The paper is very honest about what it can't do:

  • It's a Lower Bound: The method is designed to be safe. It will tell you the AI is at least X size, but the real size could be much bigger. It's like saying, "This box weighs at least 10 pounds," when it might actually weigh 50.
  • The "MoE" Problem: Some modern AIs use a "Mixture of Experts" architecture. Imagine a library where only a few specific librarians are called in to answer a question, rather than the whole staff. Because the researchers can't see how many librarians are total versus how many are active, they can't get an exact total count for these models, only a conservative minimum.
  • No Cheating: The method assumes the AI isn't trying to trick them. If a company intentionally programmed their AI to forget famous books to hide its size, this method would fail.

The Bottom Line

This paper proves that you don't need a company's secret blueprints to get a good idea of how big their AI is. By simply testing how well an AI remembers famous stories, you can infer a reliable "minimum size" and uncover whether a company is growing its models by making them bigger or by making them smarter. It turns the "black box" of AI into something we can peek inside, even if we can't see everything.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →