Published in Computer-Aided Civil and Infrastructure Engineering
Large language models are increasingly being piloted in civil engineering firms to automate workflows and help engineers navigate dense design codes and specifications. However, safety-critical use remains limited by reliability concerns, inconsistent reasoning, and the need for auditable, code-grounded outputs suitable for quality control. While retrieval augmentation and agentic workflows have improved factuality in other domains, their effectiveness in civil engineering has not been systematically established, and it remains unclear how to scale them into transparent, code-compliant design pipelines with reliable evaluation.
To address these limitations, we develop the first benchmark, PE Civil Bench, consisting of Fundamentals of Engineering and Professional Engineering Civil examination questions and produce baseline scores of thirteen frontier and open-weight large language models, including the state-of-the-art GPT-5.5, under baseline prompting, conventional retrieval-augmented generation (RAG), and agentic RAG. We then develop a retrieval-augmented multi-agent framework for fully automated concrete element design, demonstrated on reinforced concrete beams and columns, that infers design steps from worked examples and performs code retrieval, calculation, validation, and iterative self-correction with transparent traces. Across 33 beam configurations it produced code-compliant designs in all cases and closely matched ETABS finite-element outputs (r ≥ 0.90). Requiring only a new reference example and no reprogramming, the same architecture extended to column design. Finally, we introduce an autonomous RAG-based evaluator that extracts assessment criteria from reference solutions and agrees strongly with a traditional rule-based scorer (r = 0.976).
The first open benchmark of 150 FE- and PE-style civil engineering problems spanning 8 subdisciplines, 3 difficulty tiers, and multiple question types, enabling systematic evaluation of base, RAG-augmented, and agentic LLMs.
A self-correcting multi-agent framework for fully automated, code-compliant structural design. Design logic is inferred dynamically from reference examples: no hard-coded rules, no reprogramming when codes change.
An autonomous evaluation framework that extracts assessment criteria from retrieved reference solutions and verifies design accuracy without manual rubric construction, scaling quality control alongside the design pipeline.
From strategy benchmarking through automated design to quality verification: a unified pipeline for AI-assisted civil engineering.
Three augmentation strategies of increasing sophistication (Base LLM, Vector RAG, and Agentic RAG) are evaluated on PE Civil Bench using LangChain with consistent hyperparameters across all 13 models.
The best-performing strategy drives a self-correcting multi-agent framework for code-compliant structural design. Design logic is inferred dynamically: no hard-coded procedures.
A RAG-based evaluation framework learns assessment criteria from reference solutions and scores designs without manual rubric construction.
150 problems curated by professional engineers at the Structures and AI Lab, University of Houston, covering all major FE/PE Civil subdisciplines.
| Benchmark Breakdown (N = 150) | ||
|---|---|---|
| Dimension | Category | n (%) |
| Subdiscipline | Structural | 50 (33%) |
| Water Resources | 27 (18%) | |
| Mathematics | 22 (15%) | |
| Geotechnical | 21 (14%) | |
| Transportation | 13 (9%) | |
| Construction | 12 (8%) | |
| Ethics | 3 (2%) | |
| Surveying | 2 (1%) | |
| Difficulty | Easy | 47 (31%) |
| Medium | 63 (42%) | |
| Hard | 40 (27%) | |
| Question Type | Numerical | 114 (76%) |
| Conceptual | 26 (17%) | |
| Code Interpretation | 10 (7%) | |
| Reasoning Demand | Multi-step | 111 (74%) |
| Single-step | 39 (26%) | |
| Response Format | Multiple Choice (MCQ) | 110 (73%) |
| Open-Ended Numerical | 40 (27%) | |
The elastic modulus of concrete with f'c = 3 ksi and a unit weight of 145 pcf is almost nearly:
A. 3,155 ksi B. 3,834 ksi C. 3,484 ksi D. 3,562 ksi
A sand sample was tested in a triaxial device. At the beginning of the test, a confining pressure of 50 psi was applied, and deviatoric pressure was then applied. The sample failed when the applied external pressure reached 320 psi. The angle of internal friction of the sand is most nearly:
A. 32° B. 37° C. 43° D. 47°
Consider a four-legged intersection with a single lane for each approach. The intersection is currently signalized with simple two-phase actuated control and a 50-second phase duration for the northbound/southbound approaches, with 4-second change and 1.5-second clearance intervals. The southbound approach has a saturation flow rate of 1,615 vehicles per hour and a queue of 14 vehicles. Assuming a green extension time of 4.5 seconds, the arrival flow rate during the effective green time for the southbound approach is most nearly:
Note: Numerical answer required, no answer choices provided.
Overall accuracy across 13 LLMs under three augmentation strategies on PE Civil Bench (N = 150). Agentic RAG improved every evaluable model with no degradations.
| Model | Base LLM | Vector RAG | Agentic RAG | ||||||
|---|---|---|---|---|---|---|---|---|---|
| MCQ | OE | Overall | MCQ | OE | Overall | MCQ | OE | Overall | |
| Reasoning-Optimized Models | |||||||||
| GPT-5.5 | 93.6% | 52.5% | 82.7% | 94.5% | 65.0% | 86.7% | 94.5% | 67.5% | 87.3% |
| GPT-5.4 | 91.0% | 42.5% | 78.0% | 95.5% | 45.0% | 82.0% | 97.3% | 50.0% | 84.7% |
| o4-mini | 87.0% | 22.5% | 70.0% | 87.0% | 22.5% | 70.0% | 87.0% | 32.5% | 72.0% |
| o3-mini | 84.0% | 15.0% | 65.3% | 84.0% | 30.0% | 69.3% | 86.3% | 30.0% | 71.3% |
| Gemini 2.5 Pro | 63.0% | 12.5% | 49.3% | 73.0% | 32.5% | 57.3% | 93.6% | 35.0% | 78.0% +28.7pp |
| DeepSeek R1 7B | 40.0% | 0.0% | 29.3% | 39.0% | 0.0% | 28.7% | † No tool-calling support | ||
| General-Purpose Flagship Models | |||||||||
| GPT-4o ★ selected | 66.3% | 2.5% | 49.3% | 71.7% | 25.0% | 59.3% | 86.4% | 27.5% | 70.7% +21.4pp |
| GPT-4o-mini | 54.5% | 2.5% | 40.7% | 58.1% | 10.0% | 45.3% | 74.0% | 12.5% | 52.7% |
| Open-Source Models | |||||||||
| Llama 3.3 70B | 61.8% | 2.5% | 46.0% | 60.0% | 12.5% | 43.3% | 61.0% | 17.5% | 49.3% |
| Llama 3.1 405B | 57.3% | 2.5% | 42.7% | 62.0% | 10.0% | 48.0% | 74.0% | 25.0% | 60.7% |
| Llama 3.1 8B | 37.2% | 2.5% | 28.0% | 34.5% | 7.5% | 27.3% | 36.0% | 10.0% | 29.3% |
| Mistral 7B | 40.0% | 0.0% | 29.3% | 32.0% | 0.0% | 23.3% −6.0pp | 43.0% | 2.5% | 32.0% |
| Gemma2 9B | 29.0% | 0.0% | 21.3% | 32.0% | 5.0% | 24.7% | † No tool-calling support | ||
† DeepSeek R1 7B and Gemma2 9B do not support tool calling and could not be evaluated under Agentic RAG. MCQ = Multiple Choice (n=110); OE = Open-Ended numerical (n=40). ■ Best per model ■ Degraded vs. baseline
Unlike Vector RAG (which hurt Mistral by 6pp and Llama 3.3 70B by 2.7pp), Agentic RAG improved every evaluable model.
+28.7 percentage points with Agentic RAG (49.3% → 78.0%), the largest gain among all models evaluated.
Ablation shows removing multi-turn retrieval causes the largest drops: −8.7pp for Gemini, −16.0pp for GPT-4o.
After augmentation, 68.6% of remaining failures are grounding or conceptual errors: selecting the right principle, not computing it.
A self-correcting multi-agent framework produced code-compliant reinforced concrete beam designs across all 33 configurations, closely matching ETABS finite-element outputs with no hard-coded design rules.
The pipeline executed 60 LLM calls consuming ~887K tokens for a single representative beam design, producing ~15,200 words of step-by-step documentation with Python execution logs and ACI 318 references at every decision point.
The autonomous RAG-based evaluator was validated against a traditional hardcoded scoring script across 66 RC beam designs (33 full-pipeline + 33 ablated without RAG). The near-perfect agreement confirms that retrieval-augmented evaluation can recover the expert judgment embedded in hand-crafted rubrics, without any manual rule construction. The Pearson correlation coefficient is r = 0.976, with R² = 0.953 indicating that 95.3% of variance in RAG-based scores is explained by the hardcoded scores. The RMSE of 4.69 represents under 8% of the 36–98 point scale, confirming practical accuracy.
Figure 12: Correlation between RAG-based and hardcoded evaluation scores for RC beam designs. Green markers = full agentic pipeline (Regular Beam Design); red markers = ablated pipeline (no RAG retrieval). The two populations separate cleanly across both evaluation methods, confirming the RAG evaluator captures design quality with the same fidelity as traditional rubrics.
@article{SILWAL2026100126,
title = {PE Civil Bench: Advancing Agentic Retrieval-Augmented Generation
Performance of Large Language Models on Exam Problems and
Automated Component Design},
journal = {Computer-Aided Civil and Infrastructure Engineering},
pages = {100126},
year = {2026},
issn = {1093-9687},
doi = {https://doi.org/10.1016/j.cacaie.2026.100126},
url = {https://www.sciencedirect.com/science/article/pii/S1093968726031129},
author = {Saurav Silwal and Joshua Gao and Subin Varghese and Vedhus Hoskere},
keywords = {Large Language Models (LLMs), Retrieval-Augmented Generation (RAG)}
}