NVIDIA Developer ★ 85 6 min

Optimizing Agent Reliability and Tool Calling Efficiency for Chip Design Using NVIDIA NeMo Gym

Agentic AI / Generative AISimulation / Modeling / DesignAI AgentBuild AI Agents

🔗 https://developer.nvidia.com/blog/optimizing-agent-reliability-and-tool-calling-efficiency-for-chip-design-using-nvidia-nemo-gym/

📌 【NVIDIA】晶片驗證 Agent 靠 NeMo Gym 從 55 分衝上 95 分

TL;DR:Siemens 用 NVIDIA NeMo Gym 評估並改進晶片 characterization agent,benchmark 綜合分數從約 55% 提升到約 95%。

AI agent 產出的檔案看起來頭頭是道,卻可能是錯的——在晶片設計這種多階段流程裡,一個早期的設定錯誤會悄悄滲透進每一個後續步驟,最終生出一份看似正常、實際上有缺陷的 Liberty 檔。

🤔 一個早期設定錯誤,會悄悄滲透到整份晶片庫

Standard-cell characterization 是替晶片中的邏輯 cell,在各種工作條件下產生準確的 timing、power 與 noise 模型,每當晶圓廠發布新的 process design kit(PDK,內含 SPICE 電晶體模型、設計規則,以及 process/voltage/temperature 條件定義)時,既有的 characterization 資料就可能不再準確描述新元件,timing 與 power 模型必須針對每個受影響的 cell,在 input slew、output load、PVT 條件的各種組合下重新產生與驗證。Siemens Fuse EDA AI Agent 透過 MCP servers 與 skills,把 Solido Characterization Suite 的工具開放給 Claude Code、Codex、Cursor 等常見 coding harness 使用,但 agent 得完成工具設定、大規模 SPICE 模擬、分散式運算、Liberty 檔產生、除錯與最終驗證,其中任何一站出錯,往往不是乾淨地失敗,而是產出帶著錯誤門檻值、缺漏 corner 或不完整 cell 的「看似正常」結果,而這些階段彼此依賴,早期的設定錯誤會一路傳遞到最後。

🧩 不看中間步驟,只用最終 Liberty 檔驗證

NeMo Gym 是 NVIDIA NeMo 系列中用來評估與改進模型及 agent 的開源函式庫。它替每次 rollout 定義 task、tools、state 與 verifier,讓每次嘗試都從乾淨狀態出發、結果可以互相比較,並完整記錄 thinking trace、輸入輸出訊息與工具呼叫。團隊借此建立了一個可重複的優化迴圈:

  • Step 1:在自訂 NeMo Gym 環境中,用版本化的 task 與 verifier 跑出 baseline rollout。
  • Step 2:檢視 trajectory、失敗的工具呼叫,以及 verifier 的診斷結果。
  • Step 3:找出模糊不清的指令、沒有效果的動作,以及選錯的工具。
  • Step 4:修正 agent 的 skills 與 MCP 工具描述。
  • Step 5:在相同評估條件下,重跑同一批 task。
  • Step 6:比較驗證後的結果,以及每一次成功所耗費的效率。

團隊發現,端到端驗證揪出了中間檢查漏掉的錯誤:最終的 Liberty 驗證才暴露出缺漏的 cell 與操作條件、錯誤的 slew 門檻值,以及超出容許範圍的 timing 或 power 數值。為了讓這套評估可重複,團隊把最終的 composite reward 拆成五個關卡:Coverage(是否產出所有預期的 cell 與 PVT corner)、Validity(Liberty 檔是否格式正確、可被驗證工具使用)、Relative validation(輸出是否在參考基準之外又引入新的失敗)、Accuracy(timing 與 power 數值落在容許範圍內的比例),以及 Integrity(是否真正跑完整個流程,而非沿用、截斷或重新格式化既有數值)。只要五個關卡中有任何一個沒通過,整體 reward 就直接判定為零;五關全過時,reward 才依照數值落在容許範圍內的比例給分。

📊 綜合分數 55% 衝上 95%,輪數與 token 同步下降

團隊用開源的 GF180MCU PDK 作為 benchmark,資料集涵蓋 229 個 standard cell、36 組 PVT corner,SPICE 模擬使用 Solido AFS。為了方便調校,每次執行把流程限制在 2 個 cell、36 組 PVT corner 的子集即可,每次 rollout 約需 1.5 到 2 小時。團隊以 Claude Opus 4.8 搭配 Claude Code 作為固定的模型與 agent harness,總共跑了約 25 次 rollout。經過多輪評估、持續修正 agent 的 characterization skills 與 MCP 工具描述後,benchmark 綜合分數從約 55% 提升到約 95%,同時減少了對話輪數(turns)與輸出 token 量。

⚠️ 調校樣本小,工具鏈也綁得死

調校過程只用了 2 個 cell 的子集,而非完整的 229 個 cell,而且整套做法高度綁定 Siemens Fuse 與 Solido Characterization Suite 的特定工具鏈,若要套用到其他 EDA 流程,仍需要重新定義對應的 verifier 與 reward 指標。

🎯 錯誤會累積,所以要用硬門檻式 reward 把關

這個案例給所有在建多階段 agentic workflow 的團隊一個提醒:只檢查中間步驟是不夠的,錯誤會沿著 pipeline 悄悄累積;用真正的最終產出定義 verifier,並把 reward 設計成「任一關卡沒過就是零分」的硬門檻,再搭配可重複、版本化的評估環境,才能把「看起來對」和「真的對」的輸出區分開來。

🔗 來源

#NVIDIA #NeMoGym #ChipDesign #EDA #AIAgents #MCP #RewardDesign #Siemens #Semiconductor #AgentReliability

原始資料 NVIDIA Developer · 收集於 2026-10-14
來源原標題
Optimizing Agent Reliability and Tool Calling Efficiency for Chip Design Using NVIDIA NeMo Gym
作者
Tanya Lenz
原始標籤
Agentic AI / Generative AI · Simulation / Modeling / Design · AI Agent · Build AI Agents
原始連結
https://developer.nvidia.com/blog/optimizing-agent-reliability-and-tool-calling-efficiency-for-chip-design-using-nvidia-nemo-gym/

摘要原文

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 , 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. 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. 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 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. 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 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. 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. Figure 1. Agentic characterization workflow from SPICE inputs through pilot validation, scale-out, Liberty generation, and waveform comparison. Early setup errors propagate to the final library Measuring and improving agent reliability with NeMo Gym 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: Run 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 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 Figure 2. NeMo Gym checks the Liberty files produced by the Solido Characterization Suite agent and Solido tools, then feeds failure analysis into the next skill and tool-description revision. The entire process is driven by a coding agent with a human in the loop Reward design and artifact verification 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: Coverage : Whether the agent produced every expected cell and PVT corner. 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{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}}}\) 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. 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. Optimizing the agent 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. 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. Across successive evaluation rounds, the team refined the agent’s characterization skills and MCP tool descriptions.

由 claude-code/sonnet 自動生成