# Learning to Unknot

arXiv: https://arxiv.org/abs/2010.16263 · HTML: https://mlsanity.com/paper/2010.16263/

## Key facts

- Cited by 40 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 28 Oct 2020.

## Built on by (most cited first, 30 of 40)

- [KAN: Kolmogorov-Arnold Networks](https://mlsanity.com/paper/2404.19756/) (2024)
- [Towards Understanding Grokking: An Effective Theory of Representation Learning](https://mlsanity.com/paper/2205.10343/) (2022)
- [The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networks](https://mlsanity.com/paper/2306.17844/) (2023)
- [Formal Mathematical Reasoning: A New Frontier in AI](https://mlsanity.com/paper/2412.16075/) (2024)
- [Machine-Learning Mathematical Structures](https://mlsanity.com/paper/2101.06317/) (2021)
- [Neural Network Field Theories: Non-Gaussianity, Actions, and Locality](https://mlsanity.com/paper/2307.03223/) (2023)
- [Simplifying Polylogarithms with Machine Learning](https://mlsanity.com/paper/2206.04115/) (2022)
- [Learning knot invariants across dimensions](https://mlsanity.com/paper/2112.00016/) (2021)
- [Searching for ribbons with machine learning](https://mlsanity.com/paper/2304.09304/) (2023)
- [Rigor with Machine Learning from Field Theory to the Poincar'e Conjecture](https://mlsanity.com/paper/2402.13321/) (2024)
- [Data for Mathematical Copilots: Better Ways of Presenting Proofs for Machine Learning](https://mlsanity.com/paper/2412.15184/) (2024)
- [Heterotic String Model Building with Monad Bundles and Reinforcement Learning](https://mlsanity.com/paper/2108.07316/) (2021)
- [Cluster Algebras: Network Science and Machine Learning](https://mlsanity.com/paper/2203.13847/) (2022)
- [Machine Learning Kreuzer--Skarke Calabi--Yau Threefolds](https://mlsanity.com/paper/2112.09117/) (2021)
- [Can Transformers Do Enumerative Geometry?](https://mlsanity.com/paper/2408.14915/) (2024)
- [Machine Learning Clifford invariants of ADE Coxeter elements](https://mlsanity.com/paper/2310.00041/) (2023)
- [Discovery of Optimal Quantum Error Correcting Codes via Reinforcement Learning](https://mlsanity.com/paper/2305.06378/) (2023)
- [Machine Learning Regularization for the Minimum Volume Formula of Toric Calabi-Yau 3-folds](https://mlsanity.com/paper/2310.19276/) (2023)
- [A Triumvirate of AI Driven Theoretical Discovery](https://mlsanity.com/paper/2405.19973/) (2024)
- [Graph Neural Networks and 3-Dimensional Topology](https://mlsanity.com/paper/2305.05966/) (2023)
- [Mapper-type algorithms for complex data and relations](https://mlsanity.com/paper/2109.00831/) (2021)
- [Untangling Braids with Multi-agent Q-Learning](https://mlsanity.com/paper/2109.14502/) (2021)
- [Learning BPS Spectra and the Gap Conjecture](https://mlsanity.com/paper/2405.09993/) (2024)
- [From the String Landscape to the Mathematical Landscape: a Machine-Learning Outlook](https://mlsanity.com/paper/2202.06086/) (2022)
- [An application of neural networks to a problem in knot theory and group theory (untangling braids)](https://mlsanity.com/paper/2206.05373/) (2022)
- [The unknotting number, hard unknot diagrams, and reinforcement learning](https://mlsanity.com/paper/2409.09032/) (2024)
- [Generative AI for Brane Configurations and Coamoeba](https://mlsanity.com/paper/2411.16033/) (2024)
- [Knot So Simple: A Minimalistic Environment for Spatial Reasoning](https://mlsanity.com/paper/2505.18028/) (2025)
- [On knot detection via picture recognition](https://mlsanity.com/paper/2510.06284/) (2025)
- [Intelligent Explorations of the String Theory Landscape](https://mlsanity.com/paper/2204.08073/) (2022)

## Abstract (arXiv)

We introduce natural language processing into the study of knot theory, as made natural by the braid word representation of knots. We study the UNKNOT problem of determining whether or not a given knot is the unknot. After describing an algorithm to randomly generate N-crossing braids and their knot closures and discussing the induced prior on the distribution of knots, we apply binary classification to the UNKNOT decision problem. We find that the Reformer and shared-QK Transformer network architectures outperform fully-connected networks, though all perform well. Perhaps surprisingly, we find that accuracy increases with the length of the braid word, and that the networks learn a direct correlation between the confidence of their predictions and the degree of the Jones polynomial. Finally, we utilize reinforcement learning (RL) to find sequences of Markov moves and braid relations that simplify knots and can identify unknots by explicitly giving the sequence of unknotting actions. Trust region policy optimization (TRPO) performs consistently well for a wide range of crossing numbers and thoroughly outperformed other RL algorithms and random walkers. Studying these actions, we find that braid relations are more useful in simplifying to the unknot than one of the Markov moves.
