Domain adaptation of large language models for geotechnical applications

Lei Fan, Fangxue Liu, Cheng Chen

TL;DR

This paper reviews how Large Language Models (LLMs) are being adapted and applied to geotechnical engineering, a field rich in complex textual data. It highlights that while domain-adapted LLMs show promise in improving accuracy and automation, challenges remain in data availability, validation, and explainability.

What Problem Does This Paper Address?

Geotechnical engineering relies heavily on interpreting vast amounts of text-rich data, from geological reports to design documents. While general LLMs are powerful, they struggle with the specialized terminology and domain-specific logic of this field. This gap limits their effectiveness. The paper addresses this by reviewing how LLMs are being "domain-adapted" – tailored for geotechnical use – and applied to various tasks, aiming to bridge the divide between linguistic data and numerical modeling in this critical engineering discipline.

Methods

The paper categorizes LLM adaptation into four main strategies:

  • Prompt Engineering: This is the most accessible method, involving carefully crafting input prompts to guide LLMs without altering their internal parameters. Techniques include explicit instructions, few-shot examples, and chain-of-thought reasoning.
  • Retrieval-Augmented Generation (RAG): RAG systems enhance LLMs by integrating an external retrieval mechanism that "consults" authoritative domain references (like design standards or soil property databases) in real-time before generating a response. This grounds the output in verifiable sources.
  • Domain-Adaptive Pretraining (DAPT): This unsupervised method involves continuing the pretraining of an LLM on domain-specific corpora (e.g., textbooks, research papers). The goal is to imbue the model with the terminology, language patterns, and implicit knowledge of the geotechnical field.
  • Fine-tuning: This supervised approach involves further training a pre-trained LLM on a labeled, task-specific dataset to align its behavior with specific objectives. This typically yields the highest task precision.

The paper also notes the emergence of hybrid strategies, combining these methods for more robust results.

Datasets

Not explicitly detailed as a single list, but the paper mentions various types of data used for adaptation and application:

  • Unlabeled domain-specific data: Textbooks, research articles, engineering standards, technical manuals, and reports.
  • Labeled task-specific data: Question-answer pairs, design guidelines, sample report interpretations, and sample soil classifications.
  • Geotechnical data: Geological borehole descriptions, site-specific design codes, seismic zoning data, soil classifications, field measurement data, and news reports.

The paper does not introduce new benchmark datasets but reviews existing applications that utilize these data types.

Key Insights and Ideas

  • Domain adaptation is crucial: General LLMs are insufficient for geotechnical tasks; tailoring them to the domain is essential for accuracy and reliability.
  • Prompt engineering is the entry point: Its simplicity makes it the most adopted method, but it has limitations in depth and robustness.
  • RAG bridges knowledge gaps: It improves factual grounding by accessing external knowledge, but its effectiveness hinges on the quality of the retrieval corpus.
  • DAPT builds domain fluency: It helps LLMs "speak the language" of geotechnics, improving contextual understanding without task-specific constraints.
  • Fine-tuning achieves precision: It delivers the highest accuracy for specific tasks but requires substantial labeled data and computational resources.
  • Hybrid approaches are the future: Combining DAPT with RAG, or fine-tuning with optimized prompting, offers a powerful path forward.
  • LLMs as reasoning assistants, not autonomous engines: The paper emphasizes that LLMs are most reliable when they supplement, not replace, established analytical workflows and human expertise.

Key Results

  • Domain-adapted LLMs have demonstrated substantial improvements in reasoning accuracy, automation, and interpretability across various geotechnical tasks.
  • Studies show that prompt engineering can significantly boost LLM accuracy for geotechnical problems. For example, one study showed task-specific prompts improving GPT-4's accuracy to 67% compared to 28.9% with zero-shot prompting.
  • RAG-augmented models have achieved high accuracy on domain quizzes (e.g., 95%), outperforming non-RAG counterparts.
  • Fine-tuned models, like GEOBERTje, have achieved state-of-the-art performance, surpassing traditional machine learning models and general-purpose LLMs.
  • LLMs are effective in generating executable code for numerical modeling, lowering the coding barrier and accelerating simulation setup, though iterative human review is still needed.
  • In hazard and risk assessment, integrated LLM approaches have shown high precision (e.g., 97%) and recall (e.g., 94%), outperforming traditional methods.

Limitations and Future Work

Limitations:

  • Data Scarcity and Heterogeneity: Geotechnical datasets are often sparse, site-specific, and inconsistently formatted, hindering adaptation.
  • Factual Reliability and Numerical Rigor: LLMs can still "hallucinate" and make numerical mistakes, even when adapted. Linguistic fluency does not equate to engineering precision.
  • Reproducibility: Standardized mechanisms for documenting prompts, retrieval, and reasoning chains are lacking, making LLM outputs difficult to verify.
  • Explainability: Concerns persist about how LLMs arrive at their conclusions, especially in safety-critical applications.
  • Institutional Readiness: A gap exists in the technical capabilities and resources of individual practitioners and organizations to fully implement and maintain LLM-based systems.
  • Over-reliance: Excessive dependence on LLMs could erode essential analytical rigor and creative problem-solving skills.

Future Work:

  • Collaborative Efforts: Foster coordinated efforts between research institutions, professional societies, and software developers to establish shared benchmarks, validation protocols, and data-governance frameworks.
  • Human-Centered Interfaces: Design transparent, interactive systems that support iterative human-AI collaboration, with features like visual prompt builders and reasoning visualizations.
  • LLM-Solver Co-design: Formalize integrations between LLMs and numerical solvers through standard APIs to ensure numerical rigor.
  • Traceable Retrieval and Knowledge Graphs: Develop shared ontologies and embed provenance metadata to improve accuracy, reproducibility, and auditability.
  • Shared Benchmarks and Datasets: Create multilingual, multimodal benchmark datasets with open repositories for prompts and evaluation scripts to promote transparency.
  • Multimodal Data Fusion: Advance techniques to integrate textual, visual, and numerical information for more comprehensive analysis.
  • Synthetic Data Generation: Develop physics-based simulators for generating synthetic data, with metadata for validation and uncertainty.
  • Lightweight, Edge-Deployable LLMs: Develop efficient models for real-time applications in constrained environments.
  • Interdisciplinary Integration: Expand LLM applications to integrate geotechnical engineering with environmental, biological, and materials sciences.
  • Standardized Training Programs: Equip practitioners with the knowledge and skills for responsible AI implementation.

Summary updated

Abstract

The rapid advancement of large language models (LLMs) is transforming opportunities in geotechnical engineering, where workflows rely on complex, text-rich data. While general-purpose LLMs demonstrate strong reasoning capabilities, their effectiveness in geotechnical applications is constrained by limited exposure to specialized terminology and domain logic. Thus, domain adaptation, tailoring general LLMs for geotechnical use, has become essential. This paper presents the first review of LLM adaptation and application in geotechnical contexts. It critically examines four key adaptation strategies, including prompt engineering, retrieval-augmented generation, domain-adaptive pretraining, and fine-tuning, and evaluates their comparative benefits, limitations, and implementation trends. This review synthesizes current applications spanning geological interpretation, subsurface characterization, design analysis, numerical modeling, risk assessment, and geotechnical education. Findings show that domain-adapted LLMs substantially improve reasoning accuracy, automation, and interpretability, yet remain limited by data scarcity, validation challenges, and explainability concerns. Future research directions are also suggested. This review establishes a critical foundation for developing geotechnically literate LLMs and guides researchers and practitioners in advancing the digital transformation of geotechnical engineering.
BibTeX
@inproceedings{fan2026domain,
  author = {Lei Fan and Fangxue Liu and Cheng Chen},
  title = {{Domain adaptation of large language models for geotechnical applications}},
  booktitle = {Solid},
  year = {2026},
  doi = {10.1016/j.sesci.2025.100285},
}
Figure