DevFormer: A Symmetric Transformer for Context-Aware Device Placement

Haeyeon Kim, Minsu Kim, Federico Berto, Joungho Kim, Jinkyoo Park

TL;DR

DevFormer is a specialized Transformer architecture designed for hardware component placement that overcomes the "data scarcity" problem in semiconductor design. By baking physical inductive biases—like relative positioning and action-permutation symmetry—directly into the model, it outperforms traditional genetic algorithms and reduces component counts by over 30% while maintaining peak performance.

What Problem Does This Paper Address?

Modern semiconductor design is a balancing act of extreme complexity. A critical task within this domain is Decoupling Capacitor Placement (DPP). "Decaps" are tiny components that suppress power noise; place them poorly, and the chip fails due to power instability.

Power Distribution Network and Decap Placement

Currently, engineers rely on Electrical Design Automation (EDA) tools and search heuristics like Genetic Algorithms (GA). However, these are painfully slow, often requiring hours of simulation for a single design. While Deep Learning (specifically Transformers) could theoretically speed this up, two major hurdles exist:

  1. Data Scarcity: Unlike the billions of words available for training Large Language Models, high-quality hardware design data is rare, computationally expensive, and time-consuming to generate.
  2. Order Bias: Standard Transformers are sensitive to the sequence of data. In hardware placement, if you place Capacitor A then Capacitor B, the physical result is identical to placing B then A. Standard models struggle to realize this "permutation symmetry," wasting parameters and data trying to learn that the placement order doesn't matter.

Methods: The DevFormer Architecture

To solve these issues, the authors introduce DevFormer, a "Symmetric Transformer" that incorporates clever architectural shifts to align the model with the physical realities of hardware design.

Overall DevFormer Architecture
  • Probing Positional Encoding (PPE): Instead of using absolute grid coordinates (which lack physical context in a circuit), DevFormer uses relative distances to a "probing port"—the specific area where power noise is measured. This aligns the model’s spatial awareness with the actual physics of the problem.
  • Collaborative Symmetricity Exploitation (CSE): This novel training framework uses both Expert Exploitation (learning from GA-generated designs) and Self-Exploitation. In self-exploitation, the model generates its own designs and is penalized if it assigns different probabilities to the exact same layout just because the components were selected in a different sequence. This mathematically forces the model to be "order-agnostic."
  • Context Query Embedding: The decoder utilizes a Recurrent Context Network (RCN) that only looks at the set of previously placed nodes rather than their sequence, further stripping away unnecessary sequential bias.

Datasets and Evaluation

The researchers evaluated DevFormer across multiple environments:

  • A New DPP Benchmark: A simulated environment for 10x10 and 15x15 grids, which the authors have released to the community to spur further research.
  • Real-world Hardware: A complex, hierarchical Power Distribution Network (PDN) for High Bandwidth Memory (HBM), involving interposers and through-silicon vias (TSVs).
  • Combinatorial Optimization: To prove the model's versatility, they tested it on the Traveling Salesman Problem (TSP) using cyclic symmetry.

Key Insights and Results

The "Aha!" of Symmetry

By forcing the model to respect action-permutation symmetry, the authors effectively "amplified" their small dataset. The model doesn't have to see every possible sequence of placements; it learns the underlying spatial logic directly.

Beating the Teacher

Remarkably, DevFormer achieved higher scores than the Genetic Algorithm (GA) that provided its training data. DevFormer achieved an average score of 12.88, outperforming the expert GA (12.56) and significantly beating other Reinforcement Learning baselines (which hovered around 9.5-9.7). This suggests the model didn't just memorize the GA's moves; it learned a more robust placement strategy that generalizes better.

Massive Efficiency Gains

In real-world HBM tests, DevFormer achieved the same level of noise suppression as a GA-designed layout but used 30% fewer capacitors. In mass production, saving 14 capacitors per unit translates to massive cost reductions and space savings on the silicon.

Zero-Shot Generalization

A model trained on a 10x10 grid was able to perform well on a 15x15 grid without any additional training. This demonstrates that DevFormer truly understands the spatial "context" of the hardware, rather than just memorizing a specific grid size.

Limitations and Future Work

While DevFormer is a significant leap forward for ML in hardware design, the authors note a few areas for future growth:

  • Single-Port Focus: The current architecture is optimized for designs centered around a single probing port. Real-world chips often have multiple critical ports, which would require a more complex multi-centric embedding strategy.
  • Computational Overhead: Calculating the symmetry loss during training involves permutations, which can become computationally expensive as the number of components grows.
  • Scaling: Future work will look at even larger, more complex design tasks beyond the 15x15 grid to see if the "symmetry advantage" holds up at the scale of full-chip floorplanning.

Summary updated

BibTeX
@inproceedings{kim2023devformer,
  author = {Haeyeon Kim and Minsu Kim and Federico Berto and Joungho Kim and Jinkyoo Park},
  title = {{DevFormer: A Symmetric Transformer for Context-Aware Device Placement}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=pWk5MoS04I},
}
Figure