LithoGRPO: Fast Inverse Lithography via GRPO Reinforced Flow Matching

Yao Lai, Xuyuan Xiong, Zeyue Xue, Guojin Chen, Jing Wang, Xihui Liu, Rui Zhang, Robert D. Mullins, Bei Yu, Ping Luo

The Challenge of Inverse Lithography

In modern semiconductor manufacturing, photolithography is the critical process of "printing" circuit patterns onto silicon wafers using light and an optical mask. However, as circuit features have relentlessly shrunk below the wavelength of the light used to print them, optical diffraction causes the resulting patterns to blur and distort.

Inverse Lithography Technology (ILT) addresses this by mathematically "pre-distorting" the mask so that the final printed image on the wafer matches the intended design. While highly effective, ILT faces a significant hurdle: the trade-off between computational speed and mask manufacturability.

  1. Optimization-based methods are highly accurate but notoriously slow, often taking minutes or even hours to compute a single mask.
  2. Learning-based methods (such as CNNs or GANs) offer rapid generation but struggle to optimize for critical, non-differentiable manufacturing metrics.

The most vital of these non-differentiable metrics is Shot Count—the number of rectangular "shots" an electron beam must fire to physically manufacture the mask. A mask with a high shot count is expensive and time-consuming to produce. Because calculating shot count requires complex geometric partitioning, standard deep learning models typically ignore it during training, resulting in masks that are mathematically accurate but practically unmanufacturable.

LithoGRPO: A Three-Stage Generative Framework

To bridge the gap between generative modeling speed and physical manufacturing constraints, the researchers introduce LithoGRPO, a novel framework that unifies flow-matching generative models with reinforcement learning (RL). The training pipeline operates in three distinct stages:

  1. Pretraining via Rectified Flow: The model learns the foundational mapping from a target layout to a mask using a Rectified Flow paradigm. Unlike traditional diffusion models that require numerous iterative steps, rectified flow aims for a "straight-line" transformation from noise to data, enabling highly efficient, one-step mask generation.
  2. Supervised Fine-Tuning (SFT): The model is refined using differentiable physical simulations to minimize pixel-level errors (L2 loss) and process variation bands (PVB).
  3. Reinforcement Learning Fine-Tuning (RLFT): The core innovation of the paper. The authors employ Group Relative Policy Optimization (GRPO)—an RL algorithm recently popularized by advanced reasoning models like DeepSeek-R1. GRPO generates a group of mask candidates for a single target and calculates their "advantage" by comparing them against one another. This allows the model to directly optimize for non-differentiable rewards like Shot Count and Edge Placement Error (EPE).

The Fast Shot-Counting Innovation

To make RL training computationally feasible, the authors had to overcome the bottleneck of shot counting, which is traditionally an NP-hard problem taking over a minute per mask. They developed a Fast Shot-Counting algorithm using Integer Linear Programming (ILP) with overlapping rectangles. This proxy provides a highly accurate count in just 0.2 seconds—a staggering 130x to 490x speedup.

Key Insights

  • Ranking Over Absolute Accuracy: For reinforcement learning, the reward signal does not need to be a perfectly accurate shot count; it only needs to correctly identify which mask in a generated group is better. The fast shot-counting proxy preserves this ranking perfectly, making it an ideal, lightweight reward signal.
  • Colored Noise for Smooth Exploration: Standard RL exploration often relies on "white noise," which introduces grainy, fragmented artifacts into the masks, rendering them unmanufacturable. LithoGRPO instead uses low-frequency colored noise during the RL stage, ensuring that the model's exploration remains within the realm of smooth, continuous, and printable shapes.

Performance and Results

The authors evaluated LithoGRPO using LithoBench, the standard open-source benchmark for AI in computational lithography, focusing on wiring layers (MetalSet/StdMetal) and vertical connections (ViaSet/StdContact).

  • State-of-the-Art Optimization: LithoGRPO achieved the lowest average rank across all metrics when compared to both traditional optimization and previous learning-based baselines.
  • Enhanced Manufacturability: During the RLFT stage, the model successfully drove down shot counts significantly while keeping imaging fidelity (L2/EPE) stable.
  • Blazing Inference Speed: The model generates a high-quality, manufacturable mask in approximately 0.1 seconds, making it orders of magnitude faster than traditional optimization methods.
  • Robustness: Sensitivity analyses demonstrated that the model remains stable even when the weighting of different rewards (e.g., prioritizing shot count over pixel error) is aggressively shifted.

Limitations and Future Directions

While LithoGRPO represents a major leap forward, the authors note a few remaining challenges. First, while LithoBench is a robust academic standard, industrial-scale layouts are vastly larger and denser; validating the model on full-chip industrial designs is a critical next step. Second, the three-stage training process carries a high computational overhead, though this is a one-time cost prior to deployment. Finally, there remains an inherent physical conflict between high fidelity (which demands complex mask shapes) and low shot count (which demands simplicity). Navigating this Pareto frontier will continue to be a central challenge for the future of Inverse Lithography Technology.

Summary updated

BibTeX
@inproceedings{lai2026lithogrpo,
  author = {Yao Lai and Xuyuan Xiong and Zeyue Xue and Guojin Chen and Jing Wang and Xihui Liu and Rui Zhang and Robert D. Mullins and Bei Yu and Ping Luo},
  title = {{LithoGRPO: Fast Inverse Lithography via GRPO Reinforced Flow Matching}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=stDqIrBoRO},
}
Figure