The unknotting number, hard unknot diagrams, and reinforcement learning

Taylor Applebaum, Sam Blackwell, Alex Davies, Thomas Edlich, András Juhász, Marc Lackenby, Nenad Tomasev, Daniel Zheng · DOI

Introduction

In the field of low-dimensional topology, the unknotting number $u(K)$ stands as one of the most fundamental yet computationally elusive invariants. Determining the minimum number of crossing changes required to transform a complex knot into a trivial loop (the unknot) has historically lacked a general algorithm. This research, a collaboration between Google DeepMind and the University of Oxford, leverages modern reinforcement learning (RL) to bridge this gap, providing new insights into knot complexity and solving decades-old mathematical problems.

The Problem: Computing the Unknotting Number

A knot is a closed loop embedded in three-dimensional space. The unknotting number $u(K)$ is defined as the minimum number of times the string must pass through itself to reach the unknot. Despite its simple definition, computing $u(K)$ is notoriously difficult. For many knots with as few as 12 crossings, the value remained unknown until this study.

A related challenge involves "hard unknots." These are diagrams that represent a simple loop but are so tangled that standard simplification moves (Reidemeister moves) must initially increase the diagram's complexity before it can be untied. Prior to this work, the mathematical community was aware of only a small handful of such diagrams.

The researchers framed the unknotting process as a sequential decision-making problem, making it suitable for a Reinforcement Learning agent.

The Agent and Environment

The study utilized IMPALA (Importance Weighted Actor-Learner Architecture), a distributed RL framework. In this setup:

  • State: The current knot diagram.
  • Action: Selecting a specific crossing to flip.
  • Reward: A sparse reward of +1 is granted only when the agent successfully reaches the unknot.

Feature Engineering and the "One-Step Lookahead"

Rather than using raw image data, the agent was fed mathematical invariants as features. A critical component of the methodology was the "one-step lookahead" strategy: for every possible crossing change available in a given state, the agent calculated the invariants of the resulting knot to decide its next move.

Surprisingly, the Jones polynomial emerged as the most effective feature for guiding the agent. While mathematicians have long known the Jones polynomial can often detect the unknot, this study revealed it contains deep, previously unobserved information regarding a knot's "distance" from the unknot, acting as a highly effective heuristic compass.

Key Results and Discoveries

The application of RL to this topological problem yielded several significant breakthroughs:

  1. Solving Unsolved Knots: The agent determined the unknotting numbers for 43 knots with 12 or fewer crossings that had remained unsolved for decades (under the assumption that the additivity conjecture holds).
  2. Massive Dataset Generation: The researchers generated a dataset of 2.6 million hard unknots. This represents a massive expansion from the few dozen previously known examples, providing a new benchmark for testing future unknotting algorithms.
  3. Testing the Additivity Conjecture: The agent was used to hunt for counterexamples to the conjecture that $u(K \# K') = u(K) + u(K')$. While the main conjecture remains open, the agent successfully found 20 counterexamples to a stronger version of the conjecture concerning "unknotting arcs."
  4. Scalability: Unlike traditional brute-force methods, the RL agent demonstrated the ability to find unknotting sequences for diagrams with up to 200 crossings, significantly outperforming random walkers and Bayesian optimization baselines.

Limitations and Future Directions

While the RL agent is highly effective at finding unknotting sequences, it technically provides an upper bound on $u(K)$—it finds a path to the unknot, but not necessarily the shortest one. To confirm exact values, the researchers had to pair the RL results with topological invariants like Floer homology to establish lower bounds.

Furthermore, the choice of representation proved vital. While diagram-based RL succeeded, experiments using Transformer models on "braid words" struggled with larger knots.

The most tantalizing question remains: Why does the Jones polynomial provide such a strong signal for the unknotting number? Future work aims to "open the black box" of the RL model to extract new formal mathematical theorems from the patterns the agent has learned to exploit.

Summary updated

BibTeX
@inproceedings{applebaum2025unknotting,
  author = {Taylor Applebaum and Sam Blackwell and Alex Davies and Thomas Edlich and András Juhász and Marc Lackenby and Nenad Tomasev and Daniel Zheng},
  title = {{The unknotting number, hard unknot diagrams, and reinforcement learning}},
  booktitle = {Experimental},
  year = {2025},
  doi = {10.1080/10586458.2025.2542174},
}
Figure