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.
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…
saliency map
CNNtoric diagram
2A vs NG- corner
- boundary
- interior
- missing interior point
quiver
NG = 9 · NE = 27Superpotential
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)
000000000: one base-4 digit per hexagon, row by row, which is faces 4–9 and then 1–3
Newton polynomial P(x, y) = perm K(x, y)
How to read the panels
From bipartite graph to gauge theory
(a) The brane tiling
(b) The CNN and its saliency map
(c) Toric diagram and consistency
(d) The quiver and its superpotential
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.
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.
The network's verdict against the exact one
p > 0.5Loading 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. 5Loading 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