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

DiffPattern-Flex: Efficient Layout Pattern Generation via Discrete Diffusion

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

Introduction

Generating high-quality, diverse, and—most importantly—legal layout patterns is a cornerstone of modern semiconductor manufacturing. These patterns are essential for training models that detect "hotspots" (lithography errors) and optimizing Optical Proximity Correction (OPC). However, traditional generative models like GANs or VAEs often struggle to guarantee that their outputs actually follow strict physical design rules.

DiffPattern-Flex is a novel framework that combines the creative power of discrete diffusion models with a "white-box" optimization process to ensure 100% legality without sacrificing speed or diversity. By decoupling topology generation from a legalization process, it achieves state-of-the-art results while remaining flexible enough to adapt to new design rules without retraining.

Problem Statement: The Reliability-Flexibility Trade-off

In Very-Large-Scale Integration (VLSI), a layout consists of polygons that must obey strict "Design Rules," such as minimum width of a wire or minimum spacing between shapes. Existing generative methods face a significant trade-off:

  • Pixel-based methods (VAEs/GANs): Treat layouts as binary images, often producing "fuzzy" edges or patterns that violate spacing rules.
  • Sequential methods: Model layouts as sequences of vertices. These are hard to scale and require retraining if design rules change.
  • The "Black Box" Problem: Most models learn rules implicitly. If the manufacturing process changes (e.g., from 7nm to 5nm), these models become obsolete.

Methodology

The DiffPattern-Flex framework breaks the generation process into three distinct phases:

1. Deep Squish Pattern Encoding

To handle sparse layout data efficiently, the authors propose Deep Squish. This technique "folds" $2 \times 2$ blocks of a binary topology matrix into four channels. This reduces spatial resolution—making the diffusion process more computationally efficient—while preserving the necessary information in the channel depth.

2. Discrete Diffusion Model

Unlike standard continuous diffusion models, DiffPattern-Flex operates in a discrete state space ({0, 1}). It treats generation as a denoising problem where the model predicts bit flips to recover a valid topology from noise. This aligns with the binary nature of circuit layouts and avoids the "blurry" artifacts of continuous models.

The discrete diffusion process showing forward noise addition and reverse denoising to recover the layout topology.

3. White-Box Legalization

The "Flex" in DiffPattern-Flex comes from treating the final step as a nonlinear optimization problem. The diffusion model generates the topology (the arrangement of shapes), and a "white-box" solver then assigns the exact geometry (coordinates) to satisfy all design rules.

Examples of physical design rules—Space, Width, and Area—that the white-box legalization process must satisfy.

Because this solver is an explicit algorithm rather than a learned black box, it can guarantee 100% legality. Furthermore, users can change a "Minimum Spacing" rule in the optimizer, and the same diffusion model can still generate valid patterns for the new rule without retraining.

Evaluation and Results

The researchers evaluated DiffPattern-Flex using the ICCAD 2014 Contest Dataset, measuring diversity via Shannon Entropy and legality using the industry-standard Klayout tool.

Key results include:

  • 100% Legality: While previous SOTA models like LayoutTransformer reached ~89% legality, DiffPattern-Flex achieved a perfect 100%.
  • Superior Diversity: It achieved a diversity score of 11.713, significantly higher than the original "Real Patterns" (10.777).
  • Efficiency: The framework achieved an 8.37x speedup in sampling and a 2.48x speedup in legalization compared to standard baselines.

Conclusion

DiffPattern-Flex addresses the critical need for reliable and flexible layout generation in VLSI design. By decoupling topology from geometry and utilizing discrete diffusion, it provides a robust solution that guarantees legality and enhances diversity. Future work will focus on scaling this approach to multi-layer layouts and integrating complex electrical connectivity constraints.

Reference: Wang, Z., et al. "DiffPattern-Flex: Efficient Layout Pattern Generation via Discrete Diffusion." arXiv:2505.04173v1, 2025.

Summary updated

BibTeX
@article{wang2025diffpattern,
  author = {Zixiao Wang and Wenqian Zhao and Yunheng Shen and Yang Bai and Guojin Chen and Farzan Farnia and Bei Yu},
  title = {{DiffPattern-Flex: Efficient Layout Pattern Generation via Discrete Diffusion}},
  journal = {IEEE Trans. Comput. Aided Des. Integr. Circuits Syst.},
  year = {2025},
  doi = {10.1109/tcad.2025.3569493},
}
Figure