Manuscript Offprint

arXiv:2610.10459

NeuralBES: A Differentiable, Control-Aware Emulator for Scalable Building Energy Modeling

Ting-Yu Dai, Takuya Kurihana, Wing Yee Au, Hon Yung Wong

Abstract

Demand-side flexibility i.e. forecasting, shifting, and curtailing residential energy loads, depends on thermal models trusted across millions of heterogeneous buildings. Existing tools force a hard tradeoff: high-fidelity physics simulators such as EnergyPlus are accurate but sequential and require per-building calibration, while purely data-driven sequence models scale but abandon the physical structure that makes their predictions trustworthy.

We introduce NeuralBES (Building Energy Simulation), a differentiable emulator that resolves this tradeoff by parameterizing a resistance–capacitance (RC) based thermal model with a shared neural encoder: static building metadata such as floor area, vintage, and HVAC type is mapped to physically bounded capacitances, conductances, and equipment coefficients, which become the coefficients of a scalar linear recurrence solved via a log-space parallel scan, and a predictor–corrector loop closes the thermostat–temperature nonlinearity while preserving full-horizon gradient flow. Trained on the ResStock dataset across three climate zones, NeuralBES handles heterogeneous building archetypes, vintages, and climate zones within a single trained encoder, while black-box baselines produce statistically plausible but physically inconsistent trajectories. On the annual full-year rollout, NeuralBES is the only data-conditioned model that is simultaneously physics-valid and accurate to within 4 MAPE points of the strongest raw-error baseline, while operating at roughly an order of magnitude fewer parameters than the transformer and recurrent baselines; among physics-valid baselines at parameter parity it more than halves the MAPE of the grey-box RC alternative.

1 Introduction

Buildings account for roughly 40% of global energy consumption [9], and residential heating, ventilation, and air conditioning (HVAC), appliances, electric vehicles, and PV charging dominate this footprint; the surging demand of AI infrastructure is now adding a comparably fast-growing second load on the same grids [29]. Accurate, scalable models of demand-side behavior are therefore a prerequisite for grid decarbonization, and Building Energy Modeling (BEM) is the standard tool for producing them, combining building descriptors (geometry, construction, HVAC), operational signals (schedules, occupancy, setpoints), and outdoor weather to compute zone-level thermal loads for design, retrofit, and stock-level planning workflows [3, 27].

Classical BEM requires per-building calibration of dozens of parameters (wall layers, window properties, HVAC performance curves, infiltration coefficients), which is what gives it accuracy and what prevents it from scaling. Purely data-driven emulators scale but abandon the physical structure

Preprint.

that makes the outputs trustworthy under distribution shift (new climates, new control policies, new tariffs), which is precisely the regime where demand-flexibility studies need them most.

NeuralBES targets the middle. We address grid planners, utility analysts, MPC researchers, and policy modelers who need to simulate populations of buildings under counterfactual weather, tariffs, or control strategies. The user supplies only the metadata already available in tax-assessor records and utility rolls (floor area, vintage, HVAC type, ZIP code), and a shared encoder infers the RC parameters that would otherwise require a per-building calibration campaign. The result is a differentiable, physics-valid surrogate that scales to stocks of millions, trains once, and transfers across heterogeneous buildings and climates without sacrificing the physical interpretability that makes predictions actionable.

Contributions. NeuralBES occupies a specific point in the BEM / ML design space, and we state it by contrasting with three adjacent families.

• Compared to classical BEM (EnergyPlus [8], DOE-2 [37]): we trade detailed envelope-level fidelity for two orders of magnitude fewer required inputs. The user supplies metadata already available in utility records rather than a full envelope specification, while we retain conservation-law structure and bounded, physically meaningful coefficients.

• Compared to identified RC models [2, 4]: we replace per-building least-squares identification with a single shared encoder that shares calibration across a population, enabling zero-shot prediction for buildings never seen during training.

• Compared to generic state-space sequence models (S4 [17], Mamba [16], LRU [23]): we constrain the state-space recurrence coefficients Aˉ=exp⁡(−P/C⋅Δt)\bar{A} = \exp(-P/C \cdot \Delta t) to be physically bounded functions of encoder-predicted capacitances and conductances rather than free learned parameters. We further wrap the resulting linear scan in a fixed-point loop that closes the thermostat–temperature nonlinearity, a mechanism outside the scope of linear SSMs.

• Compared to black-box sequence models (LSTM [19], PatchTST [22], Roformer [31]): attention-based sequence models incur O(T2)O(T^2) compute and memory in the rollout horizon, while our linear recurrence runs in O(T)O(T) work and O(log⁡T)O(\log T) depth via a parallel scan, which translates directly into parameter efficiency at long horizons. The resulting model is roughly an order of magnitude smaller than transformer and recurrent baselines because of its physical inductive bias, not because of architectural tricks, and it remains physically valid (exclusive heating/cooling modes, bounded indoor temperature, correct sign of HVAC response) where purely data-driven baselines collapse to statistically plausible but physically inconsistent trajectories.

References (58)