Configuration Over Selection: Hyperparameter Sensitivity Exceeds Model Differences in Open-Source LLMs for RTL Generation

Minghao Shao, Zeng Wang, Weimin Fu, Xiaolong Guo, Johann Knechtel, Ozgur Sinanoglu, Ramesh Karri, Muhammad ShafiquearXiv 2026

TL;DR

When using open-source Large Language Models (LLMs) for hardware design, how you configure the model's decoding settings matters more than which model you choose. A massive 108-configuration hyperparameter sweep reveals that tweaking inference settings like temperature and top-p can swing an LLM's pass rate by up to 25.5%—a variation 5 times larger than the average difference between entirely different model families. Crucially, there is no universal "best" setting; optimal configurations are highly specific to both the model architecture and the specific benchmark task.

What Problem Does This Paper Address?

Open-source LLMs are highly attractive for Register-Transfer Level (RTL) hardware generation (writing Verilog code) because they allow for local deployment, cost-free scaling, and strict protection of valuable intellectual property. However, standard benchmarking practices typically evaluate these models using "default" or unspecified inference-time decoding hyperparameters (such as temperature, top-p, and repetition penalties).

This paper addresses a critical flaw in this approach: it confounds a model's intrinsic hardware-generation capabilities with incidental configuration choices. If Model A beats Model B on a benchmark, is it actually smarter, or did it just benefit from a luckier default configuration? By failing to optimize these settings, researchers and engineers might be severely underestimating the true potential of open-source hardware generation.

Methods

The authors tackled this problem through a two-phase evaluation framework:

  1. Landscape Mapping: They evaluated 26 open-source LLMs across eight distinct model families to establish a baseline performance landscape under default settings.
  2. Hyperparameter Sweep: They selected three top-performing architectures (GPT-OSS 120B, Qwen-3.5 397B, and GLM-5) and subjected them to a rigorous 108-configuration grid search. They varied four key parameters: temperature (entropy), top_p (truncation), repetition_penalty, and presence_penalty.

To ensure the generated Verilog code was actually viable for real-world chip design, they implemented a synthesis-in-the-loop pipeline. Instead of just checking if the code compiled or passed basic software simulations, they ran the code through Yosys (an open-source synthesis framework) and the Nangate45 open cell library to calculate a post-synthesis Hardware Quality Index (HQI) based on area, delay, and design warnings.

Datasets

The evaluation unified two prominent RTL generation benchmarks, removing duplicate tasks via structural code matching:

  • VerilogEval: Focuses on automated simulation-based checking of Verilog code snippets.
  • RTLLM: A natural-language-to-RTL benchmark that tests syntax, functionality, and post-synthesis design quality across various hardware categories (e.g., arithmetic units, FSMs, and memory buffers).

Key Insights and Ideas

  • Configuration Over Selection: Hyperparameter tuning can completely flip model rankings. For example, a well-tuned GPT-OSS 120B model out-performed a poorly configured Qwen-3.5 397B model, despite Qwen having more than three times the parameters.
  • The "Default" Trap: Standard out-of-the-box configurations are actively detrimental. For instance, Qwen-3.5 397B's default settings ranked dead last (109th out of 109) for pass@5 on VerilogEval, leaving 22% of its achievable performance completely unrealized.
  • Zero Cross-Benchmark Transferability: You cannot optimize a model on one dataset and expect those settings to work on another. The Spearman’s rank correlation ($\rho$) of optimal configurations between VerilogEval and RTLLM was near zero across all tested models.
  • The Pass Rate vs. Quality Trade-off: Maximizing the functional pass rate does not automatically maximize hardware efficiency (area and delay). The two metrics form a Pareto frontier, meaning engineers must treat decoding configuration as a multi-objective optimization problem based on their deployment goals.
Pass Rate vs. HQI Trade-off across configurations

Key Results

  • Massive Performance Swings: The absolute gap between the best and worst hyperparameter configurations reached up to 25.5% for the same model.
  • Architecture-Specific Sensitivity: Models handle randomness differently. GPT-OSS 120B and Qwen-3.5 397B showed extreme sensitivity to broader sampling (higher temperature/top-p introduced syntax-breaking noise), while GLM-5 proved much more robust and tolerant to randomness.
  • Cost-Efficiency Disconnect: Larger models aren't always economically justified. The GPT-OSS family achieved highly competitive hardware quality scores at less than 1/5th the operational token cost of GLM 4.5.
Fig. 2: Pass-rate and HQI landscape for 26 language models. Top: pass@1 (solid) and pass@5 (faded) sorted by descending pass@5. Bottom: Complexity-weighted verification coverage versus Global HQI under synthesis-in-the-loop evaluation.

Limitations and Future Work

While this paper thoroughly exposes the fragility of default LLM configurations, it operates strictly within a one-shot generation paradigm. The authors note that they did not evaluate how these hyperparameter sensitivities manifest in multi-turn agentic workflows, iterative self-reflection loops, or conversational bug-fixing environments.

Additionally, while they observed that decoding parameters heavily influence output length and verbosity (e.g., models adding excessive natural language commentary alongside the code), they did not fully isolate how this structural verbosity interacts with functional correctness. The authors conclude that future research must move away from searching for a single "golden configuration" and instead focus on developing automated, architecture-aware, and task-specific calibration techniques.

Summary updated

BibTeX
@misc{shao2026configuration,
  author = {Minghao Shao and Zeng Wang and Weimin Fu and Xiaolong Guo and Johann Knechtel and Ozgur Sinanoglu and Ramesh Karri and Muhammad Shafique},
  title = {{Configuration Over Selection: Hyperparameter Sensitivity Exceeds Model Differences in Open-Source LLMs for RTL Generation}},
  year = {2026},
  eprint = {2604.17102},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.17102},
}
Figure