← Latest papers
🤖 machine learning

The Two-Hump Problem: Bridging the Difficulty Gap in Mathematical Reinforcement Learning

This paper addresses the "Two-Hump" difficulty distribution in mathematical reinforcement learning by introducing novel data generation techniques and algorithmic enhancements to bridge the gap between trivial and impossible problem instances, resulting in substantial performance improvements and the release of large-scale benchmark datasets (AC-19 and AC-1M) for the Andrews-Curtis conjecture.

Original authors: Lucas Fagan, Michele Tarquini, Ali Shehper, Maksymilian Manko, Angus Gruen, Coco Huang, Giorgi Butbaia, Davide Passaro, Sergei Gukov

Published 2026-06-23
📖 5 min read🧠 Deep dive

Original authors: Lucas Fagan, Michele Tarquini, Ali Shehper, Maksymilian Manko, Angus Gruen, Coco Huang, Giorgi Butbaia, Davide Passaro, Sergei Gukov

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

The Big Picture: A Mathematical Maze

Imagine you are trying to solve a giant, infinite maze. The goal is to take a complex, tangled knot of string (a mathematical "presentation") and untangle it until it becomes a simple, straight line (the "trivial" solution).

For decades, mathematicians have been trying to figure out if every possible knot can be untangled this way. This is called the Andrews-Curtis Conjecture.

Recently, scientists tried to use Artificial Intelligence (specifically Reinforcement Learning, or RL) to solve this. Think of the AI as a robot explorer trying to find the exit. But the robot kept getting stuck. It could easily solve the easy knots, but it hit a wall when it encountered the hard ones. It didn't know how to get from "easy" to "hard."

This paper explains why the robot was stuck and how they fixed it.


The Problem: The "Two-Hump" Landscape

The authors discovered that the difficulty of these math problems isn't spread out evenly. Instead, it looks like a landscape with two giant hills and a deep, empty valley in between.

  1. The Easy Hill (Left): These are the knots that are easy to untangle. The robot can solve these quickly by just making them shorter step-by-step.
  2. The Impossible Hill (Right): These are the knots that are so complex that current computers and robots simply cannot solve them. They get stuck in a loop.
  3. The Empty Valley (Middle): This is the problem. There are almost no "medium-difficulty" knots.

Why is this bad for AI?
Imagine you are teaching a child to climb a mountain. If you only show them a tiny hill (too easy) and a vertical cliff (too hard), they will never learn how to climb a steep slope. They need "stepping stones" in the middle. Because the math problems lacked these stepping stones, the AI couldn't learn the general skills needed to tackle the really hard knots.


The Solution: Three New Tools

To bridge this gap, the team built three new tools to help the AI climb the mountain.

1. The "Super-Move" (Substitutions)

In the old way, the robot could only make tiny, single steps (like moving one piece of string). This was too slow.
The authors realized the robot could make "Super-Moves." Instead of moving one piece, the robot learned to grab a whole chunk of the knot, rotate it, and snap it into a different spot all at once.

  • Analogy: Imagine trying to organize a messy room. The old way was moving one sock at a time. The new way is picking up a whole pile of clothes, folding them, and placing them in the closet in one giant, efficient motion. This lets the robot take giant leaps through the maze instead of tiny shuffles.

2. The "Dual-Ring" Brain (New Architecture)

The math problems have a special property: they are cyclic. If you have a necklace of beads, it doesn't matter where you start counting; the pattern is the same.
The old AI brains (neural networks) treated the string like a straight line, which confused them. The authors built a new brain called the Dual-Ring Transformer.

  • Analogy: Imagine looking at a clock. A normal brain sees the numbers 1 through 12 in a straight line. The new brain sees them as a circle. It understands that 12 is right next to 1. This helps the AI see the "big picture" of the knot and find shortcuts that the old brain missed.

3. The "Generator-Solver" Game (Filling the Valley)

Since the "valley" of medium-difficulty problems was empty, the team had to create their own. They set up a game between two AIs:

  • The Generator: Its job is to take an easy knot and twist it just enough to make it harder, but not impossible. It's like a puzzle master who creates a puzzle that is challenging but solvable.
  • The Solver: Its job is to try and untangle the new, harder knot.
  • The Result: By playing this game millions of times, they created a massive library of "Goldilocks" problems—not too easy, not too hard. This filled the valley with stepping stones, allowing the AI to learn how to climb the steep parts of the mountain.

The Results

With these three tools, the AI made huge progress:

  • More Solved: The new AI solved 153 more difficult knots than the previous best method.
  • Smarter Paths: Even when the old methods could solve a knot, the new AI found a much shorter, more efficient path to the solution. It learned to take "detours" that temporarily made the knot look bigger, just to untangle it faster later on.
  • New Datasets: They released two massive new libraries of math problems (AC-19 and AC-1M) containing over a million examples, which other scientists can now use to keep training better AIs.

The Bottom Line

The paper proves that the reason AI struggled with this math problem wasn't because the AI was "dumb," but because the problem landscape was broken (the Two-Hump). By fixing the landscape (creating stepping stones) and giving the AI better tools (Super-Moves and a Ring-Brain), they were able to solve hundreds of previously unsolved mathematical puzzles.

They didn't prove the whole conjecture yet (the mountain is still huge), but they built a much better ladder to climb it.

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 →