TL;DR
Modern AI chip routers serialize 3D wire networks into 1D text sequences and feed them to standard language models—which have zero intuition for physical space. ChiP-STAR cures this geometric amnesia by adding three tiny spatial modules (<0.5% extra parameters) to a text Transformer, yielding cleaner, shorter, and more efficient physical chip layouts without sacrificing the speed of single-pass generation.
What Problem Does This Paper Address?
Imagine trying to navigate a multi-story building using only a list of turn-by-turn directions, without ever looking at a map. That is essentially how recent generative chip routers work.
In microchip design, routing connects a "driver" pin to multiple "load" pins across stacked metal layers using Manhattan-style wires and vertical connectors called vias. Recently, researchers started treating these 3D branching wire trees like text: they flatten a tree using Depth-First Search (DFS) into movement tokens (like R40 for "right 40 units" or <POP> to backtrack to a branch point) and train a Seq2Seq language model to generate routes.
The catch? Flattening a 3D tree into a 1D string shatters spatial locality. Two wires sitting at the exact same physical spot might be hundreds of tokens apart in the text sequence after exploring a long branch. Because standard Transformers rely on text-based mechanisms, they suffer from what the authors call the Three Spatial Blindnesses:
- Positional Blindness: Standard positional encodings (RoPE) assume token distance equals real distance. Across a
<POP>jump, the model forgets that two distant tokens share the exact same 3D coordinate. - Attentional Blindness: Cross-attention matches tokens by content similarity, lacking a dedicated channel to simply ask, "Which unconnected target pin is physically closest to me right now?"
- Trajectory Blindness: Once you feed coordinates into the decoder, exposure bias strikes. During training, coordinates are calculated cleanly from ground-truth steps; at inference, tiny step-by-step prediction errors accumulate into severe spatial drift.
Methods
Instead of ditching pre-trained language models, the authors augment a standard T5Gemma encoder–decoder backbone with three lightweight modules—one for each blindness—after normalizing the chip's wildly uneven $x, y$ (nanometers) and $z$ (metal layer) scales:
- STPE (Spatial-Topological Positional Encoding): Fixes Positional Blindness. Alongside standard 1D RoPE, STPE applies a multi-scale 3D quaternion rotation (called SoPE) driven by each token's physical $(x, y, z)$ coordinate. Because it treats all three axes symmetrically via quaternion math, physical proximity directly preserves attention similarity—invariant to whatever order DFS happened to serialize the branches.
- GeoPrior: Fixes Attentional Blindness. It injects a content-independent spatial distance bias directly into cross-attention logits so nearby unconnected pins always stand out. Computing all pairwise 3D distances directly would blow up GPU memory ($\mathcal{O}(L^2)$), so the authors use a clever trigonometric Fourier identity to factorize relative displacements into per-token vectors, keeping memory strictly linear ($\mathcal{O}(L)$).
- TrajNoise: Fixes Trajectory Blindness. During training only, it perturbs the decoder's running 3D coordinates with cumulative Gaussian noise—a random walk whose variance grows linearly with sequence steps, mimicking real inference-time drift so the spatial modules learn to recover from slight detours.
Datasets
The authors rebuilt and expanded the existing AiEDA and iPCL corpora into the largest geometry-annotated chip routing dataset to date. Parsed from commercial 28 nm chip .def layout files, it spans 32 training designs (plus 10 held-out test designs), totaling 6.4 million nets, 1.8 billion tokens, and 556 GB of step-by-step 3D coordinate annotations.
Key Insights and Ideas
- Geometry beats brute-force scale: A 53M-parameter ChiP-STAR-Medium model matches the topological routing accuracy of a 416M-parameter baseline (iPCL-Large) that lacks spatial awareness—nearly an $8\times$ parameter efficiency win purely from geometric inductive bias.
- Text metrics lie about spatial trees: Across all tested models, text overlap scores like ROUGE-L hover around the exact same value (~0.58). Because one physical wire tree has combinatorially many valid DFS branch orderings, a model can output a 100% geometrically identical route that looks wrong to a text metric. STPE's mathematical invariance lets the model learn the tree, not the arbitrary string ordering.
- Where the magic happens: On simple 1- and 2-load nets, baseline models already do fine. ChiP-STAR's massive gains (+11.4 percentage points in Leaf IoU) concentrate almost entirely on complex 3+-load nets, right where DFS branching breaks 1D sequence locality.
Key Results
- Topological Accuracy: On validation benchmarks, ChiP-STAR-Large reaches 0.984 Leaf IoU and 0.972 Connectivity, outperforming the text-only iPCL-Large baseline by ~3.5% to 5%.
- Real Silicon Signoff (PPA): Passing raw AI predictions through a commercial Engineering Change Order (ECO) tool (Cadence Innovus) to clean up Design Rule Check (DRC) violations across 10 held-out chips:
- Pre-ECO: 39.7% fewer raw DRC violations, 4.8% shorter wirelength, and 11.1% fewer vias than iPCL.
- Post-ECO (DRC-clean): Retains 8.7% fewer vias (up to 11% on specific benchmarks) and 1.9%–3% shorter wirelength, while cutting switching power by 4% against commercial ground truth without hurting timing closure.
- Speed: Completes the full routing + ECO flow in 58% of a commercial router's CPU time.
Limitations and Future Work
- Single-net myopia & ECO reliance: ChiP-STAR routes each net independently, blind to neighboring wires and multi-net congestion. Consequently, it leaves DRC spacing violations that require a commercial ECO tool to clean up; it is a fast, topology-faithful initializer, not yet a standalone router.
- Hardware & representation constraints: Vias are simplified to basic up/down tokens without physical stack attributes, the model was only tested on a single 28 nm process node, and backbone size was capped at 0.4B parameters.
- Next steps: The authors suggest pairing autoregressive tree generation with continuous flow-matching to refine coordinates, alongside applying this framework to other flattened 3D tree problems like molecular conformation, 3D scene synthesis, and robot trajectory planning.
Summary updated