← All projects

Geometric Deep Learning · Oxford · 2023

Learning knot invariants with graph neural networks

Can a neural network learn a knot's symmetry from its topological structure?

So far, very little research has been done on the applications of machine learning to the topological field of knot theory. To the best of our knowledge, we are the first to investigate directly leveraging the topological structure of knots for learning tasks to predict certain properties.

We show that graph neural networks, in particular graph isomorphism networks, provide better accuracy in predicting the symmetry of prime knots, indicating that the structure of knots can indeed be leveraged. While the performance of models is still not sufficient for useful applications in research in mathematics, we hope that this study inspires further research at the intersection of knot theory and geometric learning methods.

This page is an excerpt; the full report has the details.

A (very!) short and informal introduction to knot theory

We briefly summarize some of the relevant theoretical background on knot theory from Lickorish’s “A Beginning for Knot Theory”. Knot theory is a branch of topology that intuitively studies how connected one-dimensional strings can be arranged in three-dimensional space. We rephrase definition 1.1 to be specific to knots, as we do not consider the more general case of links with more than one component:

Definition. A knot is a subset of S3S^3, or R3\mathbb{R}^3, that consists of a single, piecewise linear, simple closed curve.

Two knots are said to be equivalent if there exists an orientation-preserving piecewise linear homeomorphism that maps both knots to the same value. A knot invariant is a quantity which remains constant under any two equivalent knots.

Kurt Reidemeister showed that any two equivalent knots can be related through a homeomorphism consisting of only three moves, the so-called Reidemeister moves:

Sketches of the three Reidemeister moves, labelled I, II and III
The three Reidemeister moves under which two knots remain equivalent.

Any knot can be represented by a so-called planar diagram (PD). Here, each edge of the plane graph representation of the knot is labeled by a number. The PD representation is a list of crossings of the knot, where each crossing is identified by four numbers which correspond to the connecting edges. The first denotes the incoming lower edge of the crossing, and the others are the remaining edges, in counter-clockwise order.

According to the Jordan Curve Theorem, in the plane graph representation there exists exactly one coloring where the unbounded face is colored white and the remaining surfaces are colored black, i.e. the planar graph is 2-colorable. The black faces describe the Seifert surface of the knot.

We finally distinguish between two crossings in this colored planar graph, left- and right-handed crossings. Distinguishing between the two is important, as it may affect the symmetry of the knot, or the knot altogether.

A left-handed and a right-handed crossing, with the black faces of the coloring shaded
Left- and right-handed crossings in the 2-colored planar graph.

Results

We observe that encoding the crossing type into the node features improves the performance of the Graph Isomorphism Network by approximately 4%. Surprisingly, however, it also leads to an improvement for the basic MLP architecture. In the latter case, we suspect that the symmetry distribution of alternating and non-alternating knots changes, which the MLP could pick up on.

Line chart of test accuracy for input types 0 and 1: GIN rises from about 0.63 to 0.655, MLP from about 0.545 to 0.56
For input type 0, we set all node features to 1, whereas for input type 1, we provide information about the crossing. Both MLP and GIN benefit from information on the crossing type.

Encoding the crossing types into the node features, we compare the performance of additional networks against the MLP as a baseline. We observe that the MLP architecture achieves an accuracy close to 54%, which is the occurrence of the most frequent symmetry type and therefore not much better than an educated guess.

On the other hand, all graph-based models outperform the MLP, the Graph Isomorphism Network in particular. Learning the aggregation function appears to be useful for predicting the symmetry of knots.

Architecture Test accuracy
GIN 65.54 ± 1.91%
GCN 58.79 ± 1.85%
GAT 58.27 ± 1.26%
MLP 56.30 ± 1.74%

References