LLM-Generated HVAC Digital Twins: A Four-Layer Executable Validation Protocol

A four-layer validation protocol reveals that LLM-generated HVAC digital twin specifications achieve only 50%-98.6% behavioral equivalence pass rates.
The study proposes a four-layer executable validation protocol for LLM-generated HVAC digital twin specifications: static validity, model construction, simulation convergence, and behavioral equivalence. Testing eight LLMs and fourteen topologies found that seven models successfully constructed models in 98.6%-100% of trials with at least 80% convergence, but behavioral equivalence pass rates were only 50.0%-98.6%. About half of failed trials converged but missed the reference steady state, mainly in desiccant wheel systems. Pass rate differences among authors were under five percentage points, indicating limited authorship bias. The authors recommend embedding the hardest-to-model physical components as validation layers in generation frameworks to reject physically unreasonable models early.
Large language models (LLMs) can already generate specifications for building HVAC systems from natural language descriptions, and from these automatically construct physics-based digital twins. But how do we ensure that these generated specifications are not only "runnable" but also physically correct? A new study proposes a four-layer executable validation protocol and, through testing eight LLMs and fourteen topologies, reveals blind spots in current evaluation methods.

Why "Runnable" Does Not Equal "Physically Correct"
Current evaluations of LLM-generated digital twin specifications typically stop at parse success, simulation completion, or text similarity. However, these metrics cannot reject a model that "converges in simulation but is physically wrong." For example, a desiccant wheel system specification may be numerically stable yet far from real physical behavior.
The study points out that physical validity must be incorporated into the validation loop. To this end, the authors designed a four-layer protocol that progressively checks the static validity of the specification, model construction, simulation convergence, and behavioral equivalence with a hidden reference model.
A digital twin is a high-fidelity dynamic mapping of a physical entity in digital space, whose core is that the model can reflect and predict the behavior of the physical system in real time. In the HVAC field, physics-based digital twins are typically composed of a set of differential-algebraic equations describing thermodynamics, fluid mechanics, and heat and mass transfer processes. Unlike purely data-driven models, physics-based digital twins emphasize the structural correctness of equations and the interpretability of parameters, so their specifications must include complete physical constraints, such as energy conservation, mass conservation, and momentum conservation. If a specification lacks key physical constraints, even if the simulation converges, the model may produce results that violate the laws of thermodynamics, thereby losing its qualification as a decision-support tool.
Detailed Explanation of the Four-Layer Validation Protocol
The core of the protocol is four progressive validation levels, each corresponding to stricter physical constraints:
- Static validity: Check whether the specification conforms to syntax and semantic rules, ensuring it can be parsed.
- Model construction: Verify whether an executable simulation model can be successfully generated from the specification.
- Simulation convergence: Confirm that the simulation can run stably to convergence.
- Behavioral equivalence: Compare simulation results with a hidden reference model, requiring a match within a tolerance band calibrated by ±20% sizing perturbations.
Only by passing all four layers can the LLM-generated specification be deemed to produce a physically valid digital twin. Among these, behavioral equivalence is key—it directly tests whether the model is faithful to the reference system in physical behavior.
Behavioral equivalence is the core step in verifying whether a digital twin specification is faithful to the reference system. Its basic idea is: under the same input excitation, the model built from the LLM-generated specification and the hidden reference model should produce consistent dynamic responses. To accommodate reasonable modeling differences, the study uses ±20% sizing perturbations to calibrate the tolerance band, i.e., allowing the model to have certain deviations in key parameters (such as airflow rate and heat exchange area), but its steady-state and transient behavior must fall within the envelope defined by the perturbation range. This equivalence check is stricter than a mere convergence check because it directly compares the physical outputs of the models and can identify specifications that are "numerically stable but physically distorted."
Experimental Design and Key Findings
The research team applied the protocol to eight LLMs and fourteen HVAC topologies, five of which described an existing low-humidity test chamber. To test authorship bias, engineers and another model family also described six topologies.
The main results include:
- Within three repair attempts, seven of the eight models successfully constructed models in 98.6% to 100% of trials, with a simulation convergence rate of at least 80.0%.
- However, the pass rate for behavioral equivalence was only 50.0% to 98.6%, significantly lower than the previous layers.
- About half of the failed trials, although convergent, did not reach the reference steady state, and were mainly concentrated in desiccant wheel systems.
- The aggregated pass rates among different description authors differed by less than five percentage points, indicating that authorship bias has limited impact.
These data reveal an important trend: LLMs are already quite reliable at generating executable specifications, but still have systematic deficiencies in capturing domain-specific physical difficulties (such as desiccant wheels).
A desiccant wheel is a dehumidification device that uses hygroscopic materials (such as silica gel or molecular sieves) to remove moisture from the air. Its physical processes involve adsorption/desorption kinetics, coupled heat and mass transfer, and periodic boundary conditions caused by wheel rotation. These processes are strongly nonlinear and multi-timescale, making the desiccant wheel one of the most difficult components to model accurately in HVAC systems. When generating its specifications, LLMs often ignore the nonlinearity of adsorption isotherms or the effect of wheel rotational speed on dehumidification performance, resulting in models that converge but deviate from the true steady state. Therefore, the study regards the desiccant wheel as a touchstone for testing the depth of the model's physical understanding.
Implications for Digital Twin Generation Frameworks
The authors argue that the most difficult physical component to model in each domain (here, the desiccant wheel) must be embedded as a validation layer in the generation framework. In other words, the validation protocol should not be a post-hoc check but should become part of the generation process.
This idea can be extended to other domains that generate executable digital twins from declarative specifications. By front-loading domain-specific physical constraints as validation layers, physically unreasonable models can be rejected earlier, avoiding hidden errors in downstream applications.
Limitations and Future Directions
The protocol currently focuses on HVAC topologies, and behavioral equivalence relies on a hidden reference model and ±20% sizing perturbation calibration. For scenarios lacking a reference model, how to define equivalence still needs exploration. In addition, the experiments involve only eight models and fourteen topologies, and broader generalization capability remains to be verified.
Nevertheless, this study provides an actionable framework for evaluating LLM-generated specifications of physical systems and emphasizes the urgency of incorporating physical validity into automated validation.
Authorship bias refers to the possibility that evaluation results may differ systematically depending on who wrote the specification description text. In LLM generation tasks, the terminology, sentence structure, and level of detail used by different authors may affect the model's understanding and output. The study tested this bias by having engineers and another model family separately describe six topologies, and found that the aggregated pass rates differed by less than five percentage points, indicating that the protocol is robust to description style. This finding enhances the generalizability of the protocol, but it still needs to be validated in more domains and description styles.
One-line Summary
A four-layer validation protocol reveals that LLM-generated HVAC digital twin specifications achieve only 50%-98.6% behavioral equivalence pass rates.
Paragraph Summary
This study proposes a four-layer executable validation protocol for LLM-generated HVAC digital twin specifications: static validity, model construction, simulation convergence, and behavioral equivalence. Testing eight LLMs and fourteen topologies found that seven models successfully constructed models in 98.6%-100% of trials, with a convergence rate of at least 80%, but behavioral equivalence pass rates were only 50.0%-98.6%. About half of the failed trials converged but did not reach the reference steady state, mainly in desiccant wheel systems. Pass rate differences among different description authors were less than five percentage points, indicating limited authorship bias. The authors recommend embedding the most difficult physical component to model in each domain as a validation layer in the generation framework to reject physically unreasonable models early.
Related articles

Prompt Engineering for Beginners: From Writing Prompts to Engineering Thinking
Starting from the essence and four functions of prompts, this article systematically explains the six-step process, four success criteria, learning value, and practical limitations of prompt engineering to help you build a complete understanding.

Anthropic Launches Nasdaq IPO: AI Giant's Listing and Risk Disclosures
Anthropic officially launches its Nasdaq IPO under ticker ANT, with market valuation expected to potentially exceed SpaceX's record. The prospectus devotes nearly 100 pages to AI risks, while first-half revenue grew over 14x but net losses widened sharply, reigniting the AI bubble debate.

Rust cURL Clone Uses 4,832 unsafe Blocks—Is the Memory Safety Myth Broken?
A Rust cURL clone uses 4,832 unsafe keywords, challenging Rust's memory safety narrative. We analyze what unsafe really means, compare Fil-C, and examine rewrite motives.