English

Programming Geotechnical Reliability Algorithms using Generative AI

Applications 2025-06-25 v1

Abstract

Programming reliability algorithms is crucial for risk assessment in geotechnical engineering. This study explores the possibility of automating and accelerating this task using Generative AI based on Large Language Models (LLMs). Specifically, the most popular LLM, i.e., ChatGPT, is used to test the ability to generate MATLAB codes for four classical reliability algorithms. The four specific examples considered in this study are: (1) First Order Reliability Method (FORM); (2) Subset simulation; (3) Random field simulation; and (4) Bayesian update using Gibbs sampling. The results obtained using the generated codes are compared with benchmark methods. It is found that the use of LLMs can be promising for generating reliability codes. Failure, limitations, and challenges of adopting LLMs are also discussed. Overall, this study demonstrates that existing LLMs can be leveraged powerfully and can contribute toward accelerating the adoption of reliability techniques in routine geotechnical engineering.

Keywords

Cite

@article{arxiv.2506.19536,
  title  = {Programming Geotechnical Reliability Algorithms using Generative AI},
  author = {Atma Sharma and Jie Zhang and Meng Lu and Shuangyi Wu and Baoxiang Li},
  journal= {arXiv preprint arXiv:2506.19536},
  year   = {2025}
}
R2 v1 2026-07-01T03:31:28.779Z