A four-level executable validation protocol for evaluating LLM-generated topology specifications of physics-based HVAC digital twins

Younghwan Joo, Jeonghoon Han, Sanghyun Oh, Soosik Bang, Sung-il KimarXiv 2026

TL;DR

Researchers have developed a rigorous four-level validation protocol to ensure that Large Language Models (LLMs) aren't just writing "code that runs," but are actually designing physically accurate digital twins for HVAC systems. By testing models through stages of static validity, successful building, simulation convergence, and behavioral equivalence against a reference, the study reveals that while most LLMs can build a model, only the best can capture the complex physics required for industrial applications.

What Problem Does This Paper Address?

In industrial settings like battery manufacturing, air conditioning (HVAC) is a massive energy consumer. Physics-based "digital twins"—virtual models of these systems—allow engineers to optimize energy use. While LLMs can now generate the specifications for these models from plain-language descriptions, evaluating their work is tricky.

Current benchmarks often stop at "parse success" (does the code work?) or "textual similarity" (does it look like the answer key?). However, in the world of physics, a model can be synthetically perfect and converge in a simulation while being completely wrong—for instance, if a component is sized incorrectly, the system might reach a steady state that doesn't represent the real-world plant. This paper addresses the need for an evaluation method that rejects "physically nonsense" models.

Methods

The authors propose a four-level executable validation protocol:

  1. L1: Static Validity: Checks if the YAML specification parses correctly and if values (like temperature) fall within physical ranges.
  2. L2: Model Build: Tests if the framework can actually synthesize a functional Simulink model from the spec.
  3. L3: Simulation Convergence: Ensures the model reaches a stable, physically admissible steady state within a time limit.
  4. L4: Behavioral Equivalence: The "gold standard." The model's output (temperature, dew point, flow rate) is compared against a hidden reference model.

Crucially, the "pass" criteria for L4 aren't arbitrary. The researchers used perturbation-calibrated tolerance bands. They took a reference model and tweaked its sizing parameters by $\pm$20% to see how much the output naturally varied. If an LLM's model falls within this "physics-permitted" spread, it passes.

Figure 1: The four-level executable validation protocol on topology 1: description excerpt, LLM-written specification (L1; the highlighted line is an illustrative unit error), built model (L2; of a specification without that error), converged simulation (L3; schematic curve), and supply-air state against its tolerance band (L4; reference state and one passing and one failing attempt of the main experiment), with the L4 error message returned for up to three repair rounds (translated from the evaluator output).

The protocol also includes a repair loop: if a model fails at any level, the LLM receives the verbatim error message and gets up to three tries to fix its mistake.

Datasets

The study utilized a benchmark of 14 HVAC topologies, ranging from simple outdoor-air handlers to complex desiccant dehumidification systems used in "dry rooms" for battery tech.

To ensure the results weren't biased by how the prompts were written, the researchers used three different "authors" for the system descriptions:

  • A "blind" LLM (Claude-Sonnet-5).
  • Professional human engineers.
  • A second LLM family (GPT-5.6-Terra).

Key Insights and Ideas

  • Build success is a low bar: Seven out of eight models tested could generate a buildable specification nearly 100% of the time. If you only evaluate based on "does it run," you’d think almost any frontier LLM is ready for engineering work.
  • The "Desiccant Rotor" Litmus Test: The hardest physics to get right involved desiccant rotors (which manage moisture). Many models produced simulations that converged (L3) but reached the wrong physical state (failing L4). This proves that simulation convergence is not a proxy for physical accuracy.
  • Error messages are effective "teachers": The repair loop significantly boosted performance. For example, one model (GPT-6.1-Sol) jumped from a 37.1% one-shot pass rate to 92.9% after three repairs.
  • Minimal Authorship Bias: LLMs performed roughly the same whether the system was described by a human engineer or another AI, suggesting these models are robust to different "dialects" of technical description.

Key Results

The protocol was tested on eight LLMs, from "frontier" API models to small on-premises models.

  • Top Performers: Claude-Opus-5-5 led the pack, reaching behavioral equivalence (L4) in 98.6% of trials. GPT-6.1-Sol followed closely at 92.9%.
  • The Gap: While 98.6% to 100% of trials for the top seven models passed the "Build" stage (L2), their "Equivalence" (L4) scores ranged widely from 50.0% to 98.6%.
  • Small Models Struggle: The smallest model tested (Qwen3.5-9B) only reached L4 in 7.1% of cases, failing mostly at the very first stage (L1).

Limitations and Future Work

The authors acknowledge that this benchmark is currently limited to the HVAC domain. Transferring this protocol to other fields (like chemical processing or electrical grids) would require building new reference models and "monitored-node" contracts.

Additionally, many failures were linked to the LLMs hitting their output token limits during the repair process. Future work could explore whether larger context windows or more sophisticated agentic workflows (where the LLM "self-corrects" using the protocol as an internal loop) could solve the remaining complex physics errors.

Summary updated

BibTeX
@misc{joo2026four,
  author = {Younghwan Joo and Jeonghoon Han and Sanghyun Oh and Soosik Bang and Sung-il Kim},
  title = {{A four-level executable validation protocol for evaluating LLM-generated topology specifications of physics-based HVAC digital twins}},
  year = {2026},
  eprint = {2611.25471},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.25471},
}
Figure