Interactive Research Resource and Summary

Research Explorer

Research Explorer · Interactive demonstration

Explainable AI for Brane Tilings

Diagnosing Inconsistencies in 4d N = 1 Gauge Theories with Explainable AI · Seong-Jin Lee, Rak-Kyeong Seong · arXiv:2609.21867

Brane tilings are bipartite graphs on a 2-torus that encode 4-dimensional N=1 supersymmetric gauge theories arising on D3-branes probing toric Calabi-Yau 3-folds. Only those satisfying geometric consistency conditions correspond to well-behaved quantum field theories.

This page carries the family studied in the paper: diagonal edges added to the hexagonal faces of the brane tiling for the abelian orbifold C3/(Z3×Z3) with orbifold action (0,1,2)(1,0,2). Click a hexagon to add or change its diagonal and the four panels below recompute — the tiling, the saliency map of the trained convolutional network, the toric diagram with its consistency verdict, and the quiver of the gauge theory with its superpotential.

The laboratory runs entirely in the browser. The permanent of the Kasteleyn matrix is evaluated exactly, the consistency criterion is checked in integer arithmetic, and the network's forward pass and input gradient are computed from the manuscript checkpoint itself, so what you see is the published model's own explanation rather than a reconstruction of it.

Below the laboratory, the paper's results are laid out in full: how the network was trained, how it classifies all 262,144 tilings, how well its saliency finds a defect in each of the 7,236 1-edge-fixable ones, and the three worked examples, each a click away from the laboratory. Those numbers are not computed in the browser: they are read from the companion code's evaluation of the same checkpoint and from the record of its training run.

Load a tiling
File

Brane tiling laboratory

Hexagonal brane tilings with diagonals

The original hexagonal tiling, with no diagonals, is the brane tiling for the abelian orbifold C3/(Z3×Z3) with orbifold action (0,1,2)(1,0,2). Click a hexagon, or its gauge group in the quiver, to cycle through no diagonal and the three diagonal orientations; right-click cycles backwards. Every diagonal adds one gauge group.

Loading the CNN…

(a)

brane tiling

ND = 0

(b)

saliency map

CNN

(c)

toric diagram

2A vs NG

  • corner
  • boundary
  • interior
  • missing interior point
(d)

quiver

NG = 9 · NE = 27

Superpotential

white nodes, positive terms

    black nodes, negative terms

      • gauge group U(N)i, a face of (a)
      • chiral field Xij, an edge
      • field of a diagonal, coloured as in (a)
      Configuration 0 states 000000000: one base-4 digit per hexagon, row by row, which is faces 4–9 and then 1–3
      Gauge groups 9 NG = 9 + ND, with 0 diagonal edges
      Toric diagram area 2A = 9 A = 4.5
      Consistency (exact) consistent
        Fixability (exact) – the fewest diagonal deletions that restore consistency
        CNN prediction – probability of the consistent class
        Saliency-guided repair – highest-saliency diagonal edge present in the tiling
        Newton polynomial P(x, y) = perm K(x, y)
        
                        

        How to read the panels

        From bipartite graph to gauge theory

        (a) The brane tiling

        The base tiling is the periodic honeycomb of the orbifold: nine white and nine black nodes in the fundamental domain, nine hexagonal faces and 27 edges. Faces are gauge groups, edges are bifundamental chiral fields, and nodes are superpotential terms.

        Each hexagon may carry one long diagonal in one of three orientations, encoded by a digit 0–3. Reading the nine digits row by row as a base-4 number gives the configuration index, so the family has 49 = 262,144 members. A diagonal splits a hexagon into two quadrilaterals, adding one gauge group.

        (b) The CNN and its saliency map

        A three-layer convolutional network with circular padding reads the 9×9×9 Kasteleyn tensor and returns one logit for the consistent class. The weights are the manuscript checkpoint, evaluated here in JavaScript.

        Gradient saliency is projected to a node-pair map for display. For a 1-edge-fixable tiling, the present diagonal with the largest saliency component is the network's diagnosis; removing it, by Higgsing the corresponding chiral field, restores consistency in 88.18% of the 7,236 cases against a matched random baseline of 21.10%.

        (c) Toric diagram and consistency

        The Kasteleyn matrix K(x, y) weights every edge by its winding numbers around the torus. Its permanent is the Newton polynomial P(x, y), whose Newton polygon is the toric diagram; each lattice point is labelled by the number of perfect matchings carrying that monomial.

        A tiling is geometrically consistent when 2A = NG: twice the area of the toric diagram equals the number of gauge groups. This is the paper's criterion, taken there as equivalent to the existence of an isoradial embedding and to properly ordered, non-self-intersecting zig-zag paths. Only 1,387 of the 262,144 tilings pass. Of the failures, 7,236 are one diagonal deletion away from consistency, the paper's 1-edge-fixable tilings; counting the fewest deletions in the same way, 39,006 are 3-edge-fixable, needing three and no fewer.

        (d) The quiver and its superpotential

        Each face of the tiling is a gauge group U(N)i and each edge a bifundamental chiral field Xij, drawn as an arrow from the face on one side of the edge to the face on the other, clockwise around the white node of the edge. For the bare tiling this is the quiver of the orbifold: the nine faces fall into three classes, and every gauge group has one field to each group of the next class. Following the group's brane tiling figures, six gauge groups sit on a hexagon and three inside it.

        A diagonal splits a gauge group in two, joined by the diagonal's own field; Higgsing that field, which is what Remove this edge does, joins them again. The superpotential has one term per node of the tiling: the fields around a white node, clockwise, with a plus sign, and around a black node, anticlockwise, with a minus sign, so that every field appears once with each sign.

        Results from the paper

        The trained classifier over the full family

        Classification of all 262,144 tilings at the decision rule p > 0.5, and defect localisation over the 7,236 1-edge-fixable ones, recomputed from the manuscript checkpoint.

        99.92%accuracy
        92.76%F1-score
        82.92%top-1, all 729 components
        88.18%top-1, present diagonals

        Training

        Training the classifier

        The pool holds all 1,387 consistent tilings and 13,870 inconsistent ones, about one to ten, split 9 : 1 within each class into 13,728 training and 1,529 validation tilings. The network is given only the binary consistency label, never the location of a defect.

        Loss and validation F1-score by epoch

        Fig. 4
        • training loss
        • validation loss and F1-score

        Loading the training history…

        The paper draws the two measures on one plot with two scales; here they share the epoch axis and keep a scale each. The F1-score is computed on the validation tilings at p > 0.5. The vertical rule marks epoch 45, the checkpoint used everywhere on this page: the highest validation F1-score, a tie going to the lower validation loss. Point at the chart, or focus it and use the arrow keys, to read any epoch.

        The training history as a table

        Network and schedule

        Input
        the unsigned Kasteleyn tensor: 9 winding channels × 9 white × 9 black nodes, every present edge a 1
        Network
        three 3 × 3 convolutions with circular padding and 32, 64 and 128 channels, each followed by BatchNorm and ReLU; a fully connected layer of 256 units on the 10,368 flattened features, followed by ReLU and dropout 0.6; a final linear layer giving one logit for the consistent class
        Parameters
        2,750,145
        Optimiser
        Adam on the binary cross-entropy, batch size 32, weight decay 10⁻⁴
        Learning rate
        3×10⁻⁴, lowered by 4×10⁻⁵ after every 10 epochs, to 1.4×10⁻⁴ at the end
        Negatives
        drawn by their deficit NG − 2A rather than uniformly: 4,623 with deficit 1, 4,623 with 2 and 4,624 with 3 or more
        Seed
        315
        Checkpoint
        epoch 45 of 50, with validation F1-score 87.94% and loss 0.0695. On the 1,529 validation tilings it finds 124 of the 139 consistent ones, with 19 false positives

        Classification

        Consistency across all 262,144 tilings

        Table I of the paper, recomputed. A tiling is called consistent when p > 0.5. Precision, recall and the F1-score refer to the consistent class; the ROC-AUC does not depend on the threshold.

        Accuracy 99.92% correct verdicts over the whole family
        Precision 87.72% of the 1,556 tilings called consistent, the share that are consistent
        Recall 98.41% of the 1,387 consistent tilings, the share found
        F1-score 92.76% the harmonic mean of precision and recall
        ROC-AUC 99.99% the ranking quality over every threshold at once

        The network's verdict against the exact one

        p > 0.5

        Loading the results…

        Each count is followed by its share of the row. The network misses 22 of the consistent tilings and lets through 191 of the 260,757 inconsistent ones.

        Reading the numbers

        Because 260,757 of the tilings are inconsistent, calling every tiling inconsistent would already score 99.47% accuracy. The F1-score on the consistent class is the informative number.

        The evaluation covers the whole family, including the 15,257 tilings of the training pool, so it shows how the network partitions the family rather than how it generalises; there is no separate test split.

        Defect localisation

        Finding the defect in 7,236 tilings

        A diagonal is a defect when removing it alone restores consistency, and a tiling with at least one is 1-edge-fixable: 5,157 of them have a single defect and 2,079 have two. The 729 components Suvk of each saliency tensor are ranked, and Top-k succeeds when a defect is among the k highest.

        Top-k accuracy by what is ranked

        Loading the results…

        Ranking only the diagonals present in the tiling lifts Top-1 from 82.92% to 88.18%, more than four times the matched random baseline: a present diagonal picked at random is a defect with probability NR/ND, 21.10% on average over the tilings. That restricted choice is the edge Remove this edge deletes in the laboratory.

        Where the top component lands

        Loading the results…

        Over all 729 components, the top one is a diagonal of the tiling in 6,667 tilings and a component that carries no edge in the other 569; it is never a base edge. For tilings with six diagonals, the top component carries no edge in 15.12% of cases against 7.86% overall, one reason ND = 6 has the lowest Top-1 accuracy over all 729 components.

        Top-1 accuracy by the number of diagonals

        Table II · Fig. 5

        Loading the results…

        Accuracy is not monotonic in ND. It broadly follows the mean defect fraction, the share of a tiling's diagonals that are defects: six and nine diagonals have the smallest share of correct candidates and the lowest Top-1 accuracies, though the defect is often still near the top of the ranking. The number of defects does not explain it, since every tiling with one diagonal and every tiling with six has a single defect, yet over all 729 components the two rows sit at opposite ends. No tiling with two or three diagonals is 1-edge-fixable. The bars count the tilings with each ND: 6.43 diagonals on average, with a median of 7.

        The map agrees with the tensor

        The panels above colour each diagonal by the projected map Muv = maxk Suvk. Restricted to node pairs that carry a diagonal, its largest value picks the same diagonal as the tensor's own ranking of the present diagonals in 7,226 of the 7,236 tilings, 99.86% of them. The other 10, each a link into the laboratory:

        Seen in training or not

        Loading the results…

        4,623 of the 1-edge-fixable tilings were in the training pool and 2,613 never were, with nearly the same mix of ND. Top-1 differs by 1.18 and Top-3 by 0.67 percentage points between them, both computed from the unrounded accuracies. Since the network was also never shown where a defect is, this indicates that the localisation does not rest on memorised tilings.

        Figures 6 to 8

        Diagnose, Higgs, repair

        The paper's three worked examples. In each, the largest of the 729 saliency components lies on the defect, and Higgsing its chiral field gives a consistent tiling whose toric diagram has the same corners. Open one in the laboratory to reproduce its published saliency map; Remove this edge then draws the map after the repair on the same scale, as the paper shows it for Figures 7 and 8.

        Loading the examples…

        Provenance

        Where these numbers come from

        Every number in the results sections is read from model/results.json, which tools/export_results.py writes from two sources. The classification and localisation results come from a fresh evaluation of the manuscript checkpoint by the companion code, the Python code that accompanies the paper: inference on all 262,144 tilings and saliency gradients for all 7,236 1-edge-fixable ones, with no cached predictions. That evaluation passes 501 of the verifier's 501 numerical and geometric checks against the companion code's reference values, among them Tables I and II of the paper. The training curves are the history recorded while the checkpoint was trained, read as it was saved. The laboratory runs the same network in the browser, and its test suite matches the Python saliency to about 10−7 of the peak.

        Checksums and commands
        # in the companion code's top folder
        python evaluate.py --device cpu
        python verify.py --results outputs/paper
        python /path/to/website/tools/export_results.py outputs/paper /path/to/website/model/results.json

        Elsewhere

        Profiles and Repositories