NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

DiffPattern: Layout Pattern Generation via Discrete Diffusion

Zixiao Wang, Yunheng Shen, Wenqian Zhao, Yang Bai, Guojin Chen, Farzan Farnia, Bei Yu

Abstract

In semiconductor manufacturing, the generation of diverse and design-rule-compliant layout patterns is critical for the development of robust Electronic Design Automation (EDA) tools. Traditional generative models, such as GANs and VAEs, often struggle to satisfy the rigid geometric constraints required for manufacturing legality. This paper presents DiffPattern, a framework that achieves a 100% legality rate by decoupling layout generation into a discrete diffusion-based topology synthesis phase and a deterministic nonlinear solver phase for geometric legalization. Experimental results on the ICCAD 2014 contest dataset demonstrate that DiffPattern not only ensures perfect legality but also surpasses existing state-of-the-art methods in pattern diversity.

Introduction

As integrated circuit (IC) manufacturing advances into sub-nanometer regimes, the demand for massive libraries of layout patterns has grown exponentially. These libraries are essential for training and testing tools such as Optical Proximity Correction (OPC) engines and lithographic hotspot detectors. Historically, creating these patterns was a manual, labor-intensive process. While deep learning has offered a path toward automation, standard generative architectures often fail to respect the strict Design Rule Checks (DRC)—minimum widths, spacings, and area requirements—that govern physical manufacturability.

DiffPattern addresses this gap by treating layout generation as a two-stage process: generating a structural "skeleton" (topology) and then solving for precise dimensions (geometry). This approach ensures that the stochastic nature of neural networks does not compromise the physical integrity of the circuit.

Methodology

1. Deep Squish Pattern Representation

Standard layout images are often sparse and computationally inefficient for neural networks. DiffPattern utilizes a "Squish" representation that separates a layout into a binary topology matrix and corresponding geometric vectors. To further optimize this for deep learning, the authors "fold" the topology matrix into a multi-channel Topology Tensor. This increases information density, allowing the model to capture complex spatial relationships more effectively than flat binary masks.

2. Discrete Diffusion Model

Unlike continuous diffusion models that add Gaussian noise to images, DiffPattern employs a discrete diffusion process. This is specifically designed for the binary nature of circuit layouts. The model treats generation as a denoising task where pixels transition between discrete states (0 or 1). By using a U-Net backbone to learn the reverse of this discrete noise process, the model avoids the "fuzziness" and artifacts common in pixel-based generative models, producing clean, high-contrast topological skeletons.

The final stage of the framework is a "white-box" nonlinear solver. Once the diffusion model generates a topology, it is fed into a system of nonlinear equations. This solver calculates the exact dimensions required to satisfy all DRC rules (Space, Width, and Area). Because this step relies on deterministic mathematical optimization rather than probabilistic guessing, it guarantees that every output is 100% legal. Furthermore, a single topology can be used to generate multiple legal variations by slightly adjusting the constraint parameters in the solver.

Experimental Results

The researchers evaluated DiffPattern using the ICCAD 2014 Contest Dataset, which consists of large-scale layout maps. The model was compared against several benchmarks, including Convolutional Autoencoders (CAE), Variational Autoencoders (VAE), LegalGAN, and LayoutTransformer.

Legality and Diversity

DiffPattern achieved a 100% legality rate, a significant improvement over the previous state-of-the-art, LayoutTransformer, which achieved 89.7%. Older VAE-based methods performed poorly, with legality rates as low as 2%.

In terms of diversity, measured by Shannon Entropy, DiffPattern scored 10.815. This not only outperformed all other generative models but also exceeded the diversity score of the original "Real Patterns" in the training dataset (10.777). This suggests that DiffPattern is capable of exploring the design space more effectively than the human-designed patterns it was trained on.

Computational Efficiency

The framework also demonstrated high efficiency. By initializing the nonlinear solver with geometric vectors derived from the generated topology (a technique termed "Solving-E"), the authors achieved a 2.30x speedup in the legalization phase compared to random initialization. This makes the framework viable for generating the millions of patterns required for industrial-scale EDA tool training.

Conclusion

DiffPattern represents a significant shift in layout generation by moving the burden of legality from a "black-box" neural network to a transparent, mathematical solver. By combining the creative potential of discrete diffusion with the reliability of nonlinear optimization, the framework provides a robust solution for generating high-quality, diverse, and manufacturable IC layouts. Future work will focus on extending this methodology to multi-layer layout scenarios and further refining the solver to handle increasingly complex topological structures.

Summary updated

BibTeX
@inproceedings{wang2023diffpattern,
  author = {Zixiao Wang and Yunheng Shen and Wenqian Zhao and Yang Bai and Guojin Chen and Farzan Farnia and Bei Yu},
  title = {{DiffPattern: Layout Pattern Generation via Discrete Diffusion}},
  booktitle = {DAC},
  year = {2023},
  url = {https://openreview.net/forum?id=IZoY9eOf5A},
}
Figure