Abstract
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.
Introduction: The UNKNOT Problem
The fundamental challenge of the UNKNOT problem is determining whether a tangled closed loop is topologically equivalent to a simple circle. Despite its conceptual simplicity, this problem is a cornerstone of low-dimensional topology, residing in the complexity class NP $\cap$ co-NP. As the number of crossings in a knot diagram increases, the space of possible simplifying moves grows exponentially, making traditional algorithmic searches computationally expensive.
Beyond pure mathematics, solving the unknot problem has profound implications for physics and topology, particularly regarding the smooth 4-dimensional Poincaré conjecture (SPC4). Identifying "exotic" 4-dimensional spheres—which could be distinguished by the properties of knots embedded within them—is central to our understanding of spacetime in string theory and quantum gravity.
Methodology
This research bridges topology and artificial intelligence through two primary lenses: natural language processing (NLP) and reinforcement learning (RL).
Knots as Language
Knots are represented as braid words—sequences of integers describing the crossings of strands. This representation allows knots to be treated as "sentences" where different sequences can represent the same topological object, much like different sentences can share the same semantic meaning. The study utilizes advanced NLP architectures, specifically the Reformer and shared-QK Transformers, to perform binary classification (Unknot vs. Knot). These models are uniquely suited to capturing the long-range dependencies inherent in complex braid structures.
Reinforcement Learning for Simplification
To move beyond "black-box" predictions, the authors employed RL to simplify braid words. An agent trained using Trust Region Policy Optimization (TRPO) learns to apply a sequence of Markov moves and braid relations. If the agent successfully reduces a braid word to an empty string, it has discovered a path to the unknot.
Data Generation
Due to the lack of existing large-scale datasets for tangled unknots, the authors developed custom algorithms:
- Braid Word Datasets: Generated over $10^4$ examples for braid lengths ranging from $N=12$ to $N=96$.
- RandomUnknot & RandomKnot: Procedures that apply random topological moves to generate trivial and non-trivial knots.
- Hard Test Cases: A dataset of 176 "hard" unknots in Dowker-Thistlethwaite (DT) notation was used to evaluate model robustness.
Key Insights and Results
The study yielded several surprising findings:
- The Length Paradox: Accuracy improved as braid words became longer ($N=96$ vs $N=12$). Longer sequences likely provide more global context, allowing the network to better detect the "signal" of unknottedness.
- Implicit Invariant Learning: The models' prediction confidence correlated directly with the degree of the Jones polynomial, a sophisticated knot invariant. This suggests the networks independently learned to use topological complexity as a proxy for knottedness.
- Strategic Preferences: In RL experiments, braid relations (algebraic identities) proved more effective for simplification than standard Markov moves, suggesting new directions for human-designed unknotting algorithms.
- Performance: TRPO agents successfully unknotted ~85% of test cases, significantly outperforming A3C, DQN, and random walker baselines.
Conclusion and Future Work
While the models demonstrate high proficiency, they still struggle with certain "adversarial" unknots (e.g., those in DT notation), where they are often "confidently wrong." Future work aims to leverage these AI tools to search for counterexamples to the smooth relative 4D Poincaré conjecture by identifying "slice" knots that are particularly difficult to classify.
Summary updated