LLM-based Structured Intermediate Representation for building regulation encoding

Automating the encoding of building codes into formal representations is a critical step for compliance checking, yet it is often hindered by the linguistic complexity of regulations. This paper develops a two-stage pipeline that utilises Large Language Models (LLMs) to generate LegalRuleML (LRML) through a Structured Intermediate Representation (SIR). Using a dataset derived from the New Zealand Building Code (NZBC), the paper demonstrates that the SIR-based approach outperforms direct translation, with four fine-tuned models achieving F1 scores of 73.29%–77.23%, representing improvements of up to 2.40% over the current state-of-the-art method. Despite these gains, a large gap remains compared to expert-crafted SIRs (80%+). Analysis reveals that LLMs still struggle with logical structural integrity and that standard cross-entropy loss poorly aligns with formalisation goals. These findings highlight the potential of LLM-generated SIRs while underscoring the necessity of task classification and logic-driven verification in automated rule encoding systems.

Authors

Institutions

Publication Details

Journal
Automation in Construction
Published
2026-10-09
DOI
https://doi.org/10.1016/j.autcon.2026.107295
Primary Topic
BIM and Construction Integration
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

LLM-based Structured Intermediate Representation for building regulation encoding

Avinash Malik, Robert Amor, Pinzhang Wu, Partha Roop
Automation in Construction
BIM and Construction Integration
article

LLM-based Structured Intermediate Representation for building regulation encoding

Avinash Malik, Robert Amor, Pinzhang Wu, Partha Roop
article en

Abstract

Automating the encoding of building codes into formal representations is a critical step for compliance checking, yet it is often hindered by the linguistic complexity of regulations. This paper develops a two-stage pipeline that utilises Large Language Models (LLMs) to generate LegalRuleML (LRML) through a Structured Intermediate Representation (SIR). Using a dataset derived from the New Zealand Building Code (NZBC), the paper demonstrates that the SIR-based approach outperforms direct translation, with four fine-tuned models achieving F1 scores of 73.29%–77.23%, representing improvements of up to 2.40% over the current state-of-the-art method. Despite these gains, a large gap remains compared to expert-crafted SIRs (80%+). Analysis reveals that LLMs still struggle with logical structural integrity and that standard cross-entropy loss poorly aligns with formalisation goals. These findings highlight the potential of LLM-generated SIRs while underscoring the necessity of task classification and logic-driven verification in automated rule encoding systems.

Automation in ConstructionVol. 193
University of Auckland (NZ)
Industry, innovation and infrastructure
Openalex Percentile: Top 16%
BIM and Construction Integration
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

LLM-based Structured Intermediate Representation for building regulation encoding — Avinash Malik, Robert Amor, et al. · Automation in Construction (2026) | TGRS Research Map | TGRS