使用 NVIDIA NeMo Gym 优化芯片设计的代理可靠性和工具调用效率
原题Optimizing Agent Reliability and Tool Calling Efficiency for Chip Design Using NVIDIA NeMo Gym
读前速览
NVIDIA NeMo Gym 支持对芯片设计 AI 代理进行系统化评估,通过验证最终的 Liberty 工件并优化 MCP 工具描述,将 Siemens Fuse EDA 代理的可靠性从 55% 提升至 95%。
NeMo Gym 通过验证最终工件(而非中间步骤),支持对多阶段芯片设计工作流程中的 AI 代理进行系统化评估。
该环境定义了任务、工具、状态,并包含一个领域专用验证器,用于将最终的 Liberty 文件与参考工件进行比较。这种端到端评估可以发现中间工具调用检查所遗漏的微妙错误,例如丢失的单元、错误的斜率阈值以及超出容差范围的时序值。
一个带有硬栅门(覆盖范围、有效性、相对验证、完整性)和连续准确性度量的综合奖励函数,为代理可靠性提供了严格且可重复的基准。
奖励在任何栅门失败时为零,阻止代理通过复用或截断结果来“作弊”。准确性组件衡量时序和功率值在给定容差范围内的比例,从而可以对回滚结果进行精细比较。
基于轨迹分析,对代理技能和 MCP 工具描述进行微调,显著提高可靠性和效率。
通过简化重叠的文件/shell 接口,并使用显式的 JSON 模式定义工具输入,团队减少了歧义指令和错误的工具选择。这导致综合分数从 ~55% 上升到 ~95%,回合数减少 66%,输出令牌减少 64%。
同样的方法适用于 EDA、CAE 等领域中,用于可靠生成工程工件的代理。
核心原则包括评估最终工件、编写可以检测丢失或变形结果的领域专用验证器,以及通过反复迭代优化技能和工具接口,以收集大量的回滚数据。
完整摘要
本文详细介绍了 NVIDIA NeMo Gym 如何用于评估和改进 Siemens Fuse EDA AI 代理,用于标准单元表征。该代理协调 229 个单元和 36 个 PVT 角色的 SPICE 模拟,生成 Liberty 时序模型。NeMo Gym 提供了一个带有领域专用验证器的受控评估循环,该验证器检查最终工件的覆盖范围、有效性、相对验证、准确性和完整性。通过分析回滚轨迹,工程师们完善了代理的技能并改进了 MCP 工具描述,简化了重叠的接口并添加了显式的 JSON 模式。这种优化将综合验证分数从 ~55% 提升到 ~95%,同时将代理回合数减少 66%(从 155 到 53),并减少输出令牌 64%(从 ~81K 到 ~29K)。该方法强调评估最终工程工件而不是单个工具调用,并适用于 EDA、CAE 和其他工程领域。
目录 · 6 节
AI 智能体能够显著提升复杂芯片设计工作流的生产效率,但它们容易生成看似合理却不正确的产物,这使可靠性成为其投入生产应用的主要障碍。在多阶段工程工作流中,设置阶段的错误如果未被发现,就可能悄无声息地传递到下游阶段和最终产物生成环节。要构建可信赖的自动化系统,关键在于依据经过验证的最终输出评估和优化这些智能体,而非仅针对孤立的中间步骤。AI agents offer remarkable productivity gains in complex chip design workflows, but their tendency to generate plausible yet incorrect artifacts makes reliability a major barrier to production adoption. In multistage engineering workflows, an undetected error early in setup can silently propagate through downstream stages and final artifact generation. Evaluating and refining these agents against verified final outputs, rather than isolated intermediate steps, is essential for building trustworthy automation.
NVIDIA NeMo Gym 是一个开放库,利用环境评估和改进模型与智能体,旨在应对这一挑战。NeMo Gym 的智能体评估环境专为诊断故障模式以及追踪复杂多阶段工作流中的错误传播而设计。通过建立领域专用验证器,将最终输出与经过验证的参考制品进行比对,NeMo Gym 可帮助工程师追踪完整的运行轨迹,并找出细微错误背后的根本原因。NVIDIA NeMo Gym, an open library for evaluating and improving models and agents using environments, addresses this challenge. The NeMo Gym agentic evaluation environment is designed to diagnose failure modes and track error propagation across complex, multistage workflows. By establishing a domain-specific verifier to inspect final outputs against verified reference artifacts, NeMo Gym enables engineers to trace complete rollout trajectories and identify root causes behind subtle errors.
本文介绍了如何使用 NeMo Gym 评估并提升 Siemens Fuse EDA AI Agent 调用表征工具时的可靠性。Siemens Fuse 团队借助 NeMo Gym 扩大评估规模,并将生成的 Liberty (.lib) 文件与已知参考结果进行核对,同时追踪每次运行中的常见和罕见故障。这些发现为改进 Agent 的技能和 Model Context Protocol (MCP) 工具描述提供了依据,使其在涵盖代表性标准单元表征任务的基准测试中,测得的综合分数从约 55% 提升至约 95%,同时减少了对话轮次和输出 token 数。This post walks through how NeMo Gym was used to evaluate and improve the reliability of the Siemens Fuse EDA AI Agent when calling characterization tools. The Siemens Fuse team used NeMo Gym to scale up evaluations and verify the resulting Liberty (.lib) files against known references and tracing—both common and rare failures through each rollout. Those findings guided changes to the agent’s skill and Model Context Protocol (MCP) tool descriptions, increasing the measured benchmark composite score from approximately 55% to ~95% across a benchmark of representative standard-cell characterization tasks, while reducing turns and output tokens.
西门子的工作为芯片设计团队和 EDA 开发人员提供了一个实践案例,展示了如何利用 NVIDIA AI 软件栈和开放库,提高智能体的可靠性并改进芯片设计工作流程。Siemens’ work provides a practical example for chip design teams and EDA developers on how to leverage the NVIDIA AI software stack and open libraries to improve agent reliability and chip design workflows.
自动化标准单元表征Automating standard-cell characterization
标准单元特性表征是指针对不同工作条件,为逻辑单元生成准确的时序、功耗和噪声模型。这是芯片设计的基础工作;每当半导体代工厂发布新的工艺设计套件(PDK)时,都必须进行这项工作。每套新的 PDK 都包含 SPICE 晶体管模型、设计规则,以及将制造工艺与设计工具关联起来的工艺、电压和温度(PVT)定义。当代工厂更新 PDK 时,现有的特性表征数据集可能不再能准确描述更新后的器件。因此,必须针对每个受影响的单元,在不同输入转换时间、输出负载和 PVT 条件的组合下,重新生成并验证时序和功耗模型。Standard-cell characterization is the process of generating accurate timing, power, and noise models for logic cells across operating conditions. It is foundational to chip design and required whenever a semiconductor foundry issues a new process design kit (PDK). Each new PDK carries SPICE transistor models; design rules; and process, voltage, and temperature (PVT) definitions that connect the manufacturing process to design tools. When a foundry updates a PDK, existing characterization datasets may no longer accurately describe the updated devices. Timing and power models must then be regenerated and validated for every affected cell across combinations of input slew, output load, and PVT conditions.
Solido 特性分析套件代理可自动执行这一流程。该代理通过 Siemens Fuse EDA AI Agent 调用更广泛的 Solido 特性分析套件中的工具;Siemens Fuse EDA AI Agent 为 Claude Code、Codex 和 Cursor 等常用编码框架提供 MCP 服务器和技能。The Solido Characterization Suite agent automates this process. The agent orchestrates tools from the broader Solido Characterization Suite through Siemens Fuse EDA AI Agent, which exposes MCP servers and skills to common coding harnesses including Claude Code, Codex, and Cursor.
MCP 接口让工程智能体能够使用这些加速工具,而技能则指导它们在特性分析工作流中使用这些工具。更快的仿真有助于智能体更快完成工程迭代,而 NVIDIA NeMo Gym 则帮助开发者衡量并提升智能体编排这些工具的可靠性和效率。MCP interfaces make these accelerated tools accessible to engineering agents, while skills guide their use in characterization workflows. Faster simulation helps agents complete engineering iterations sooner, while NVIDIA NeMo Gym helps developers measure and improve how reliably and efficiently agents orchestrate those tools.
Solido Characterization Suite 智能体必须完成工具配置、大规模 SPICE 仿真、分布式计算、Liberty 文件生成、调试和最终验证(图 1)。错误往往会产生看似合理的输出,而非明确报错,导致错误的阈值、缺失的工艺角或不完整的单元被掩盖。由于这些阶段彼此依赖,早期的配置错误可能会传递到后续每个步骤中。制定严格的评估规程,是让 Solido Characterization Suite 智能体为生产工作流做好准备的关键一步。The Solido Characterization Suite agent must perform tool setup, large-scale SPICE simulation, distributed compute, Liberty file generation, debugging, and final validation (Figure 1). Errors often produce plausible outputs instead of clean failures, leaving incorrect thresholds, missing corners, or incomplete cells hidden. Because these stages depended on one another, an early setup error could propagate into every step that followed. Defining a rigorous evaluation protocol was a key step in preparing the Solido Characterization Suite agent for production workflows.
使用 NeMo Gym 衡量并提升智能体的可靠性Measuring and improving agent reliability with NeMo Gym
作为 NVIDIA NeMo 开源库集合的一部分,NeMo Gym 专注于智能体的专业化与优化,并集成到受控评估循环中的标准单元表征流程(图 2)。它为每次 rollout 定义任务、工具、状态和验证器,确保每次尝试都从干净状态开始,并产出可比较的结果。它还会记录思考轨迹、输入和输出消息,以及工具操作。Part of the NVIDIA NeMo collection of open libraries for agent specialization and optimization, NeMo Gym integrates with the standard-cell characterization flow inside a controlled evaluation loop (Figure 2). It defines the task, tools, state, and verifier for each rollout so that attempts started from a clean state and produced comparable results. It also records thinking traces, input and output messages, and tool actions.
这使工程师能够运行以下优化循环:This enabled engineers to run the following optimization loop:
- 在自定义 NeMo Gym 环境中,使用版本化任务和验证器运行基线 rolloutRun baseline rollouts with a versioned task and verifier in a custom NeMo Gym environment
- 检查轨迹、失败的工具调用和验证器诊断信息Inspect trajectories, failed tool calls, and verifier diagnostics
- 识别含糊不清的指令、低效的操作和错误的工具选择Identify ambiguous instructions, unproductive actions, and incorrect tool selection
- 优化代理的技能和 MCP 工具描述Refine the agent’s skills and MCP tool descriptions
- 在相同的评估条件下重复相同的任务Repeat the same tasks under the same evaluation conditions
- 比较已验证的成果以及每项成功结果的效率Compare verified outcomes and efficiency per successful result
奖励设计与工件验证Reward design and artifact verification
在团队分析智能体轨迹时,端到端评估发现了中间检查未能发现的问题。例如,最终的 Liberty 验证暴露出单元和工作条件缺失、转换时间阈值不正确,以及时序或功耗数值超出容差等问题。这些发现说明,评估工程智能体时,必须以最终产物为依据,而不能只看单次工具调用。As the team analyzed agent trajectories, end-to-end evaluation uncovered failures that intermediate checks missed. For example, final Liberty verification exposed missing cells and operating conditions, incorrect slew thresholds, and timing or power values outside tolerance. These findings show why engineering agents must be evaluated against final artifacts rather than individual tool calls.
为了使这项工作可重复,团队实现了验证器,根据以下指标提供最终的综合奖励分数:To make the work repeatable, the team implemented verifiers that provide a final composite reward score based on the following metrics:
- 覆盖情况:代理是否生成了每个预期的单元格和 PVT 角。Coverage: Whether the agent produced every expected cell and PVT corner.
- 有效性:交付的 Liberty 文件是否格式正确且可供验证工具使用。Validity: Whether the delivered Liberty files are well-formed and usable by the validation tools.
- 相对验证:输出是否引入了参考内容中原本不存在的失败。Relative validation: Whether the output introduced failures beyond those already present in the reference.
- 准确率:落在规定容差范围内的预期时序值和功率值所占的比例。Accuracy: The fraction of expected timing and power values that falls within the defined tolerance.
- 完整性:表征工作流是否生成了完整结果,而不是重复使用、截断或重新格式化现有值。Integrity: Whether the characterization workflow produced the complete result rather than reusing, truncating, or reformatting existing values.
奖励分数定义如下:The reward score is defined as:
\(R=\mathbf{1}\left[\text{覆盖率}\right]\times\mathbf{1}\left[\text{有效性}\right]\times\mathbf{1}\left[\text{相对验证}\right]\times\mathbf{1}\left[\text{完整性}\right]\times\frac{X_{\text{tol}}}{X_{\text{total}}}\)\(R=\mathbf{1}\left[\text{Coverage}\right]\times\mathbf{1}\left[\text{Validity}\right]\times\mathbf{1}\left[\text{Relative Validation}\right]\times\mathbf{1}\left[\text{Integrity}\right]\times\frac{X_{\text{tol}}}{X_{\text{total}}}\)
这里,\(X_{\mathrm{tol}}\) 表示输出中处于容差范围内的值的数量,\(X_{\mathrm{total}}\) 表示输出值的总数。两者的比值表示处于容差范围内的输出值所占的比例。Here, \(X_{\mathrm{tol}}\) is the number of values in the output that are within tolerance, and \(X_{\mathrm{total}}\) is the total number of output values. Their ratio represents the fraction of output values within tolerance.
每个指示函数 \(\mathbf{1}[\cdot]\) 在相应的门控条件通过时取值为 \(1\),未通过时取值为 \(0\)。只要任一门控条件未通过,奖励就为零。Each indicator \(\mathbf{1}[\cdot]\) equals \(1\) when its corresponding gate passes and \(0\) when it fails. The reward is zero if any gate fails.
团队利用这个验证器,在多轮迭代中系统地评估并调整了智能体的性能。Using this verifier, the team systematically evaluated and tuned the agent’s performance across multiple iterations.
团队使用开源 GF180MCU PDK,对 Solido Characterization Suite 代理生成 Liberty 文件的能力进行了基准测试。数据集涵盖 36 个 PVT 角下的 229 个标准单元,并使用 Solido AFS 进行 SPICE 仿真。The team used the open source GF180MCU PDK to benchmark the Solido Characterization Suite agent on Liberty-file generation. The dataset includes 229 standard cells across 36 PVT corners, using Solido AFS for SPICE simulation.
团队使用 NeMo Gym 构建了一个定制的智能体环境。每次运行中,表征流程仅针对 36 个 PVT 角下的两个单元进行,因为这个较小的子集已足以用于调整智能体工作流。每次运行约需 1.5 至 2 小时,团队使用在 Claude Code 中运行的 Claude Opus 4.8 作为固定模型和智能体框架,进行了约 25 次 rollout。A custom agentic environment was built using NeMo Gym. For each run, the characterization flow was restricted to two cells across 36 PVT corners, as this smaller subset was sufficient for tuning the agentic workflow. Each run took approximately 1.5 to 2 hours, and the team conducted approximately 25 rollouts using Claude Opus 4.8 running in Claude Code as the fixed model and agent harness.
在连续的评估轮次中,团队不断改进智能体的特征分析能力和 MCP 工具描述。为了提升工具选择效果,他们简化了功能重叠的文件和 shell 接口,并通过明确的 JSON schema 定义工具输入,使智能体更容易调用特征分析工具。Across successive evaluation rounds, the team refined the agent’s characterization skills and MCP tool descriptions. To improve tool selection, they simplified overlapping file and shell interfaces and defined tool inputs with explicit JSON schemas, making characterization tools easier for the agent to call.
经过这些改进,在评估的各次执行中,综合验证平均得分从约 55% 提高到 95%。改进后的工作流所需的智能体轮次和输出令牌也更少。智能体轮次从 155 次降至 53 次,减少约 66%;输出令牌从约 81K 降至 29K,减少约 64%。Following these refinements, the mean composite verification score across evaluated rollouts increased from approximately 55% to 95%. The improved workflow also required fewer agent turns and output tokens. Agent turns fell from 155 to 53, a reduction of approximately 66%, while output tokens fell from approximately 81K to 29K, a reduction of approximately 64%.
| Model | Benchmark composite score | Turns | Avg. output of tokens |
| Claude Opus 4.8 | ~55% → ~95% | 155 → 53 | ~81K → ~29K |
使用相同方法在其他领域开发可靠的智能体Developing reliable agents in other domains using the same method
同样的评估方法适用于 EDA、CAE 及其他工程领域中的工程智能体:The same evaluation method applies to engineering agents in EDA, CAE, and other engineering domains:
- 评估最终的工程成果,而不仅仅是判断单个工具调用是否成功。Evaluate the final engineering artifacts and not just whether individual tool calls succeeded.
- 编写一个特定领域的评分器/验证器,用于检测缺失、截断、重新格式化或重复使用的结果,从而防止智能体作弊。Write a domain-specific grader/verifier that detects missing, truncated, reformatted, or reused results to prevent agent cheating.
- 收集大量运行轨迹,通过优化技能和 MCP 工具接口来提升可靠性。Collect large numbers of rollouts to target improved reliability through optimized skills and MCP tool interfaces.
开始使用 NeMo GymGet started with NeMo Gym
使用 NeMo Gym 快速入门指南进行初步评估。然后将本文介绍的方法应用于一个有代表性的任务:定义有效的最终产物,构建领域专用验证器,检查 rollout 失败情况,优化技能和工具描述,并在一致的评估条件下重新运行。Use the NeMo Gym Quickstart guide to run an initial evaluation. Then apply the approach outlined in this post to one representative task: define a valid final artifact, build a domain-specific verifier, inspect rollout failures, refine skills and tool descriptions, and rerun under consistent evaluation conditions.
有关 Solido Fuse 如何将生成式 AI 和智能体 AI 引入 Solido Characterization Suite 智能体的更多详情,请观看《自验证、长时间运行的智能体表征工作流演示》。For more details about how Solido Fuse brings generative and agentic AI to Solido Characterization Suite agent, watch the Self-Verifying, Long-Running Agentic Characterization Workflow Demo.
进一步了解 NVIDIA 与 Siemens 之间的合作。Learn more about the collaboration between NVIDIA and Siemens.
致谢Acknowledgments
我们谨向 NVIDIA 的 Gunjan Shah,以及西门子的 Tim Wheler、Lakshminarayanan Ramesh 和 Carl Hofmeister 致谢,感谢他们在开发该智能体和建立评估方法方面作出的关键贡献。We would like to acknowledge Gunjan Shah of NVIDIA, along with Tim Wheler, Lakshminarayanan Ramesh, and Carl Hofmeister of Siemens for their key contributions to developing the agent and establishing the evaluation methodology.