LLM attribution analysis across different fine-tuning strategies and model scales for automated code compliance
Shi, Jack Wei Lun, Dang, Minghao, Solihin, Wawan, Yeoh, Justin K. W.
–arXiv.org Artificial Intelligence
The emergence of large language models (LLMs) has introduced a new approach for automated code compliance (ACC), offering promising solutions to the conventional labor-intensive process of manual rule interpretation. Recent studies have demonstrated the potential and versatility of LLMs to convert complex building rules into computerprocessable rules. These applications include identifying predefined atomic functions to interpret rules [1], a promptbased framework to transform rules into Prolog [2], directly generating scripts from rules via fine-tuning an LLM on domain-specific rule-script pairs [3], and using a multi-modal LLM to derive computer-processable rules from a combination of textual and graphical information [4]. Despite these remarkable advancements, existing research has focused solely on evaluating the performance and accuracy of the generated outputs, often treating the LLMs as black boxes. It remains unclear how different training decisions such as the choice between full fine-tuning versus parameter-efficient fine-tuning (PEFT) methods or the effect of model scale (e.g., 3 billion vs. 22 billion parameters) influence the internal interpretative mechanisms of the LLM. This knowledge gap limits our ability to understand and trust these systems, which is a significant barrier to their adoption for critical, regulation-bound tasks in the Architecture, Engineering, and Construction (AEC) industry. To address this knowledge gap, this paper utilizes a perturbation-based attribution analysis to compare the interpretive behaviors of LLMs across different fine-tuning strategies and model scales in the context of rule interpretation. We found that the attribution patterns of fully fine-tuned models are statistically different from those using PEFT methods. Additionally, our results indicate that model scale dictates which parts of the building regulatory text are prioritized, with larger models exhibiting distinct attribution patterns compared to smaller models.
arXiv.org Artificial Intelligence
Apr-20-2026