Rule2DRC
收藏资源简介:
Rule2DRC是一个用于评估LLM代理从自然语言设计规则规范生成可运行KLayout DRC Ruby脚本的基准测试数据集。该数据集包含1000个问题和13,921个标记的GDS测试用例,每个问题包括自然语言规则、层定义、黄金DRC脚本和标记的GDS测试用例。数据集托管在Hugging Face上,分为tasks和testcases两个配置。
Rule2DRC is a benchmark dataset for evaluating LLM Agents that generate executable KLayout DRC Ruby scripts from natural-language design rule specifications. This dataset contains 1,000 tasks and 13,921 annotated GDS test cases. Each task includes natural-language rules, layer definitions, golden DRC scripts, and annotated GDS test cases. The dataset is hosted on Hugging Face and is split into two configurations: tasks and testcases.
数据集概述
Rule2DRC 是一个用于评估大语言模型(LLM)代理能否根据自然语言设计规则规范生成可运行的设计规则检查(DRC)脚本的基准测试。
核心任务
- 每个问题包含一条自然语言设计规则、层定义、标准答案的 DRC 脚本以及带标签的 GDS 测试用例。
- 生成的脚本需要能通过编译,并且与问题的所有测试用例标签匹配,才算成功。
数据集规模
- 1000 个问题(任务)
- 13,921 个带标签的 GDS 测试用例
数据托管
数据集托管在 Hugging Face 上,包含两个配置:
- tasks:每个基准问题一行,包含
problem_id、prompt、spec_yaml、gold_drc及元数据。 - testcases:每个 GDS 测试用例一行,包含
problem_id、gds_path、label、labels_json及二进制gds数据。
数据格式
通过脚本将 Hugging Face 数据集物化为以下目录结构:
problems/{problem_id}/spec.yaml problems/{problem_id}/gold/{problem_id}.drc problems/{problem_id}/data/gds/labels.csv problems/{problem_id}/data/gds/{pass,fail}/*.gds
评估方法
- 生成候选脚本(Best-of-N,BoN),使用不同的候选池大小(Bon10、Bon15、Bon20,每个设置运行 3 次)。
- 通过自我生成的 GDS 测试或多种测试选择器(SplitTester (Ours)、S* 基线、CodeMonkey 风格基线、LLM 评判基线)对候选脚本进行评分和选择。
- 最终通过聚合脚本得到评估结果,输出为 JSON 文件。
相关论文与引用
发表于 ICML 2026,arXiv 论文 ID:2605.15669。引用格式如下:
bibtex @InProceedings{kim2026rule2drc, title = {{Rule2DRC: Benchmarking LLM Agents for DRC Script Synthesis with Execution-Guided Test Generation}}, author = {Kim, Jinuk and Byun, Junsoo and Hwang, Donghwi and Park, Seong-Jin and Song, Hyun Oh}, booktitle = {Proceedings of the 43rd International Conference on Machine Learning}, year = {2026}, volume = {306}, series = {Proceedings of Machine Learning Research}, publisher = {PMLR} }
许可证
MIT





