Skip to main content
QUICK REVIEW

[Paper Review] Translating Regulatory Clauses into Executable Codes for Building Design Checking via Large Language Model Driven Function Matching and Composing

Zhe Zheng, Han, Jin|arXiv (Cornell University)|Aug 17, 2023
Software Engineering ResearchComputer Science10 citations
TL;DR

The paper introduces LLM-FuncMapper, an approach that defines 66 atomic functions to capture complex clause logic, and uses LLM-driven function matching and composing to convert regulatory text into executable code for automated rule checking in building design.

ABSTRACT

Translating clauses into executable code is a vital stage of automated rule checking (ARC) and is essential for effective building design compliance checking, particularly for rules with implicit properties or complex logic requiring domain knowledge. Thus, by systematically analyzing building clauses, 66 atomic functions are defined first to encapsulate common computational logics. Then, LLM-FuncMapper is proposed, a large language model (LLM)-based approach with rule-based adaptive prompts that match clauses to atomic functions. Finally, executable code is generated by composing functions through the LLMs. Experiments show LLM-FuncMapper outperforms fine-tuning methods by 19% in function matching while significantly reducing manual annotation efforts. Case study demonstrates that LLM-FuncMapper can automatically compose multiple atomic functions to generate executable code, boosting rule-checking efficiency. To our knowledge, this research represents the first application of LLMs for interpreting complex design clauses into executable code, which may shed light on further adoption of LLMs in the construction domain.

Motivation & Objective

  • Address the challenge of interpreting complex regulatory clauses with implicit properties for automated rule checking (ARC).
  • Develop an atomic function library to capture common computational logics in building codes.
  • Propose a rule-based adaptive prompting method for LLM-driven function matching and code generation.

Proposed method

  • Define an atomic function library of 66 functions to encapsulate common computational logics found in building clauses.
  • Preprocess clauses by sentence-splitting and converting tabular data to text, then extract atomic functions via semantic labeling and IFC-based matching.
  • Classify objects into five IFC-aligned categories and design function signatures with inputs/outputs.
  • Develop a rule-based adaptive prompting framework with domain knowledge injection to map clauses to atomic functions and generate code.
  • Evaluate multiple LLMs for function matching, using a chain-of-thought prompt and adaptive strategy; assess overall performance, hallucinations, and varying clause difficulty.
  • Demonstrate a case study showing automatic composition of atomic functions into executable code for plant-fire-protection clauses.

Experimental results

Research questions

  • RQ1How can complex building-code clauses with implicit properties be represented as executable computational functions?
  • RQ2Can an LLM-guided mapping of clauses to atomic functions efficiently generate executable code for ARC?
  • RQ3What is the effectiveness of a rule-based adaptive prompt strategy for function matching compared to baselines?
  • RQ4How well does the composed code perform in rule checking on a real plant scenario?

Key findings

  • LLM-FuncMapper outperforms fine-tuning approaches by about 19% in function matching accuracy.
  • Atomic function library enables scalable representation of complex clause logic and reduces manual annotation effort.
  • Clause interpretation via LLMs can automatically compose multiple atomic functions into executable code for rule checking.
  • A plant-case study demonstrates automatic code generation leading to improved rule-checking efficiency.
  • Prompt engineering with domain knowledge injection helps LLMs understand and utilize the atomic function library effectively.
  • The approach provides a first application of LLMs to translate complex design clauses into executable code in the construction domain.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.