| Issue |
E3S Web Conf.
Volume 716, 2026
The 12th International Conference on Indoor Air Quality, Ventilation & Energy Conservation in Buildings (IAQVEC 2026)
|
|
|---|---|---|
| Article Number | 06011 | |
| Number of page(s) | 7 | |
| Section | Generative AI in the Sustainable Built Environments | |
| DOI | https://doi.org/10.1051/e3sconf/202671606011 | |
| Published online | 09 June 2026 | |
A Comparative Analysis of Fine-Tuning and Prompt Engineering for LLM-Based Automation of Building Energy Models for Rooftop Photovoltaics
Department of Convergence and Fusion System Engineering, Kyungpook National University, South Korea
* Corresponding author: This email address is being protected from spambots. You need JavaScript enabled to view it.
Abstract
This study examines the effectiveness of Large Language Models (LLMs) in automating the generation of EnergyPlus Input Data Files (IDFs) for buildings equipped with integrated rooftop photovoltaic (PV) systems. While LLMs offer a promising future for Building Energy Modeling (BEM), their ability to handle the strict geometric constraints of energy systems remains underexplored. This study focuses on rooftop PV configurations, including tilt angles, inter-row spacing (gap), and building size. The performance of parameter-efficient fine-tuning (LoRA) and standard prompt engineering (zero-shot, one-shot, and two-shot) is evaluated across three transformer models: GPT-2 Medium, Facebook OPT-350M, and Flan-T5 Base. The results demonstrate that standard prompt engineering fails to produce executable simulations for complex PV-integrated models. In contrast, the fine-tuned models successfully design for both building and PV configurations. Furthermore, we validated the practical utility of the fine-tuned models by conducting a design-optimization case study in San Francisco and Chicago, successfully identifying optimal PV tilt angles and spacing configurations. This research confirms that fine-tuning small-scale LLMs is a viable and robust strategy for automating complex BEM tasks.
Key words: Building energy modeling / Large language Model / Code generation / EnergyPlus / Photovoltaics
© The Authors, published by EDP Sciences, 2026
This is an Open Access article distributed under the terms of the Creative Commons Attribution License 4.0, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Current usage metrics show cumulative count of Article Views (full-text article views including HTML views, PDF and ePub downloads, according to the available data) and Abstracts Views on Vision4Press platform.
Data correspond to usage on the plateform after 2015. The current usage metrics is available 48-96 hours after online publication and is updated daily on week days.
Initial download of the metrics may take a while.

