LLM attribution analysis across different fine-tuning strategies and model scales for automated code compliance
This paper employs perturbation-based attribution analysis to reveal that full fine-tuning yields more focused interpretive behaviors than parameter-efficient methods, while increasing model scale enhances attention to specific rule constraints despite performance gains plateauing beyond 7B parameters, thereby advancing the explainability of LLMs for automated code compliance in the AEC industry.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to teach a very smart, but somewhat mysterious, robot how to read a building code book and turn those rules into a computer program. This is what the paper is about: teaching robots to check if buildings follow the rules (like "fire escapes must be 2 meters wide") and turning those text rules into code that a computer can understand.
The researchers wanted to know: How does the robot actually "think" when it does this? Does it read the whole sentence carefully, or does it just guess based on a few keywords? And does it matter how we teach the robot (the training method) or how big the robot's brain is (the model size)?
Here is the breakdown of their findings using some everyday analogies:
1. The Three Ways to Train the Robot (Fine-Tuning Strategies)
Imagine you have a brilliant student (the AI model) who knows a lot about everything. You want to teach them specifically about building codes. You have three ways to do this:
- Full Fine-Tuning (FFT): This is like hiring a personal tutor who rewrites the student's entire textbook from scratch, changing every single note and highlight to fit the new subject. It's expensive and takes a lot of time, but the student learns the material perfectly.
- The Result: The robot became very focused. It knew exactly which words in the rule were the "keys" to the solution. It didn't waste time guessing; it zeroed in on the critical numbers and specific terms.
- LoRA (Low-Rank Adaptation): This is like giving the student a set of sticky notes and a highlighter. You don't rewrite the whole book; you just add notes to the margins. It's cheaper and faster.
- The Result: The robot did a good job, but its "thinking" was a bit more scattered. It looked at more words, unsure of which ones were truly the most important.
- QLoRA (Quantized LoRA): This is like giving the student the sticky notes, but the ink is very faint (compressed). It's even cheaper, but some details get blurry.
- The Result: The robot struggled the most. It was the least confident about which words mattered, often spreading its attention too thin.
The Takeaway: If you want the robot to be a precise surgeon, you need the "Full Fine-Tuning" method. If you just want a quick check-up, the "sticky note" methods work, but the robot might be a bit fuzzy on the details.
2. The Size of the Brain (Model Scale)
The researchers also tested robots with different brain sizes: small (3 billion parameters), medium (7 billion), and huge (22 billion).
- The Small Brain (3B): Imagine a junior intern. They read the rule and highlight almost everything. They are unsure of what's important, so they highlight "the," "and," "must," and "height" all with equal intensity. They are trying to be safe by not missing anything.
- The Medium Brain (7B): This is a senior engineer. They start to ignore the fluff. They focus on the numbers and the specific rule names.
- The Giant Brain (22B): This is a master architect. They don't just read the words; they understand the structure of the rule.
- The Magic Trick: The giant brain realized that the Rule ID number (like "Section 4.3.11") is actually a super-powerful clue. It also learned that the exact number (like "2.2 meters") is the most critical part of the sentence.
- The Catch: Once the brain got bigger than 7 billion, making it even bigger didn't make it better at the average task. It was like buying a Ferrari when a Toyota was already fast enough; the extra speed didn't help you get to the grocery store any faster. However, the giant brain was better at handling the hardest cases.
3. The "Black Box" Problem
Usually, when we use AI, we treat it like a black box: we put a rule in, and a code comes out. We don't know why it made that code.
This paper is like putting a transparent window on that black box. By using a technique called "attribution analysis" (which is like shining a flashlight on the words the robot is looking at), the researchers could see:
- Did the robot focus on the right words?
- Did it get confused by the wrong words?
- Did it learn to trust the rule numbers?
Why Does This Matter?
In the construction industry, if a robot makes a mistake, a building could be unsafe. We can't just trust a robot because it "got the right answer" 90% of the time. We need to know how it got there.
- If the robot is focusing on the wrong words (like focusing on the color of the text instead of the numbers), it might pass a dangerous building.
- This study shows that to build trustworthy robots for safety-critical jobs, we need to use the right training method (Full Fine-Tuning) and understand that bigger isn't always better—it's about finding the "Goldilocks" size where the robot is smart enough to be precise but not so big that it's wasteful.
In a nutshell: The researchers figured out that to make AI reliable for building safety, we need to train it thoroughly (not just with sticky notes) and teach it to focus on the specific numbers and rule IDs, rather than just guessing based on the general vibe of the sentence.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.