Mobile QR Code QR CODE : Journal of the Korean Society of Civil Engineers
Title Performance Comparison of Cloud and Local LLMs in a Hybrid Question-Answering System for WIM Operational Data Retrieval
Authors 박준영(Park, Jun Young) ; 조윤범(Jho, Youn Beom) ; 김종우(Kim, Jong Woo)
DOI https://doi.org/10.12652/Ksce.2026.46.6.0669
Page pp.669-685
ISSN 10156348
Keywords 축중기(WIM); 대규모 언어모델(LLM); 화물차 운송안전; 하이브리드 질의응답; 정형데이터 질의 Weigh-in-Motion (WIM); Large Language Model (LLM); Freight transport safety; Hybrid question answering; Structured data querying
Abstract Weigh-in-Motion (WIM) systems accumulate large volumes of passage-event data across multiple sites, but practitioners without database expertise have difficulty retrieving the information they need. This study developed a hybrid question-answering framework in which a large language model (LLM) extracts query conditions and operations from Korean natural-language questions, while a separate query-processing module performs filtering, aggregation, ranking, and numerical operations on the actual data. Using a fixed sample of 200,000 records from approximately 26.29 million WIM passage events at five sites, three cloud models and four local models were evaluated on 40 queries of four types under the same schema-based prompt. The execution match rate was defined as the proportion of queries whose executed results matched the reference results. Claude Sonnet 4.5 and Gemini 2.5 Flash achieved 97.5 %, GPT-4o 95.0 %, and GPT-OSS 20B 87.5 %, while Qwen3-8B, Gemma3-4B, and Mistral-7B achieved 40.0 %, 30.0 %, and 15.0 %, respectively. Differences among the first four models were not statistically distinguishable at this sample size, whereas their differences from the remaining three were significant. Some local models showed a lower execution match rate when queries required grouping, ranking, additional operations, or more conditions, and most incorrect results originated from condition extraction rather than from numerical processing. Under a minimal prompt without schema and operation information, none of the seven models correctly processed any query. The quality of final natural-language answers was not evaluated, and the compared models differ in scale and execution environment. These results demonstrate the applicability of separating natural-language interpretation from numerical processing for WIM operational data and indicate that reliable question answering requires both sufficient model capability and explicit specification of the available data fields and supported operations.