← Latest papers
📊 statistics

Exponential Sample Complexity Separation between Flat and Hierarchical Agentic Theorem Provers

This paper demonstrates that hierarchical theorem provers achieve an exponential reduction in sample complexity compared to flat provers by learning reusable proof structures from teacher traces, thereby avoiding the redundant repetition of hard subproofs inherent in flattened representations.

Original authors: Sho Sonoda, Shunta Akiyama, Yuya Uezato

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

Original authors: Sho Sonoda, Shunta Akiyama, Yuya Uezato

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 are teaching a student how to solve a very complex puzzle, like a massive jigsaw or a difficult math problem. The goal is to get the student to find the solution as quickly and efficiently as possible, using a limited amount of time and effort.

This paper asks a simple question: Is it better to teach the student to solve the whole puzzle from scratch every single time, or to teach them to recognize and reuse smaller, solved pieces of the puzzle?

The authors argue that teaching the student to reuse pieces (a hierarchical approach) is exponentially more efficient than forcing them to re-solve every tiny step from scratch (a flat approach), even if the "pieces" themselves are hard to figure out.

Here is the breakdown using everyday analogies:

1. The Two Ways of Learning

The "Flat" Student (The Hard Worker)
Imagine a student who is given a recipe for a huge banquet. Every time the recipe says "make the sauce," the student has to start from zero: chop the onions, peel the garlic, simmer the tomatoes, and blend it all. Even if the recipe asks for the sauce ten times, this student makes ten separate batches of sauce, chopping the onions ten times.

  • In the paper: This is a "flat" prover. It sees the entire proof as one long, straight line of steps. If a specific logical argument (like a lemma) is needed five times, the student has to learn and execute those five steps five separate times.

The "Hierarchical" Student (The Smart Organizer)
Now imagine a smarter student. When they see "make the sauce," they realize, "I've done this before!" They write down a note: "Sauce Recipe: Chop, peel, simmer." Next time the recipe calls for sauce, they just say, "Use the Sauce Recipe," and they don't have to chop the onions again. They build a library of reusable "blocks" (lemmas).

  • In the paper: This is a "hierarchical" prover. It breaks the problem into a map (a DAG, or Directed Acyclic Graph) where shared parts are solved once and then referenced many times.

2. The Core Discovery: The "Exponential" Gap

The paper's main finding is about sample complexity. In simple terms, this means: "How many examples does the student need to study to become good at the task?"

The authors prove that if a problem requires reusing a difficult sub-step many times, the "Flat" student needs to see that difficult step repeated exponentially more times in their training data than the "Hierarchical" student.

The Analogy of the Library:

  • Flat Student: To learn how to write a book that quotes a famous poem 1,000 times, this student must read the entire book 1,000 times, memorizing the poem's 10 lines every single time. They need a massive library of books to learn this.
  • Hierarchical Student: This student reads the book once. They memorize the poem's 10 lines once and put them in a "Citation Box." When they need to quote it again, they just point to the box. They need a tiny library to learn the same thing.

The paper shows that if the "poem" (the hard sub-proof) is difficult, the Flat student might need millions of examples to learn it, while the Hierarchical student might only need dozens. The difference isn't just a little bit; it's an exponential gap.

3. Why Does This Happen?

The authors model this using a concept called an MDP (Markov Decision Process), which is just a fancy way of describing a game with rules, states, and moves.

  • The Teacher: A perfect solver that shows the student successful proofs.
  • The Data: The student learns by watching these successful proofs.
  • The Problem: If the teacher's proof uses a clever shortcut (a lemma) five times, the "Flat" view of the data looks like five separate, long, hard paths. The student has to learn five separate paths.
  • The Solution: The "Hierarchical" view sees that those five paths are actually just one path repeated. The student only needs to learn the one path.

The paper provides mathematical formulas (bounds) to prove that the number of training examples needed for the Hierarchical student stays small, while the number needed for the Flat student explodes as the problem gets deeper.

4. What This Means for AI Theorem Provers

The paper focuses on Agentic Theorem Provers—AI systems that try to prove mathematical theorems. These systems often try to break big problems into smaller "subgoals" or "lemmas."

  • The Skeptic's View: "Why bother breaking it down? Proving the small lemma is hard. Why waste time on it?"
  • The Paper's Answer: "Because if you don't break it down and reuse the solution, you will have to solve that same hard problem over and over again. The 'waste' of solving the lemma once is actually a massive saving compared to solving it a thousand times."

Summary

Think of it like building a house:

  • Flat Approach: You build the house by laying every single brick individually, even if you need to build the same wall pattern 100 times. You need a mountain of bricks and a lot of time.
  • Hierarchical Approach: You build a "wall module" once. Then, you just stack that pre-made module 100 times. You need far fewer raw materials and less time.

The paper proves mathematically that for complex problems, the "module" approach (hierarchical) requires exponentially fewer training examples to learn than the "brick-by-brick" approach (flat). This explains why modern AI theorem provers that use "lemmas" and "subgoals" are statistically more efficient than those that try to solve everything in one long, flat line.

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 →