GeoGPT-RAG Technical Report

Fei Huang, Fan Wu, Zeqing Zhang, Qihao Wang, Long Zhang, Grant Michael Boquet, Hongyang ChenarXiv 2025 · DOI

Abstract

Large Language Models (LLMs) frequently encounter challenges with factual accuracy in specialized domains such as the geosciences. This report introduces GeoGPT-RAG, a specialized Retrieval-Augmented Generation system designed to eliminate hallucinations and improve domain-specific performance. By implementing custom embedding and reranking models trained on a novel synthetic data pipeline, the system demonstrates significant improvements in retrieval precision and answer recall.

1. Introduction

The geosciences require high levels of precision, as misinterpretations of geological formations or chemical properties can have significant consequences. General-purpose LLMs are prone to "hallucinations"—generating plausible but incorrect information—due to a lack of specialized training on domain-specific terminology and semantic nuances. Furthermore, the scarcity of high-quality, labeled "query-document" pairs in this field hinders the development of effective domain-specific models. GeoGPT-RAG addresses these challenges through a custom pipeline encompassing semantic text segmentation, specialized model fine-tuning, and a robust synthetic data generation strategy.

2. Methodology

The GeoGPT-RAG system moves beyond "off-the-shelf" RAG solutions by implementing a multi-stage optimization process.

2.1 System Architecture

The architecture integrates advanced retrieval techniques with fine-tuned generation to ensure contextually relevant and factually grounded answers.

The GeoGPT-RAG system architecture, illustrating the multi-stage retrieval and generation process.
  • GeoEmbedding: The team repurposed a Mistral-7B decoder-only model into an encoder-only architecture. Utilizing Matryoshka representation learning and LoRA (Low-Rank Adaptation), the model provides high-quality semantic embeddings tailored to geoscientific literature.
  • GeoReranker: Based on the BGE-M3 model, this component uses a cross-encoding scheme to score the relevance of retrieved chunks. It was fine-tuned using Multiple Negative Ranking (MNR) loss and "hard negative" mining via SimANS to distinguish between subtle geological concepts.
  • Semantic Segmentation: To maintain logical coherence, a chunking pipeline using Next Sentence Prediction (NSP) ensures that text segments are divided at natural boundaries rather than arbitrary token limits.
  • Retrieval-Augmented Fine-Tuning (RAFT): The LLM was specifically fine-tuned to prioritize relevant retrieved context while ignoring "distractor" documents, explicitly teaching the model how to cite its sources accurately.
  • Vector Infrastructure: The system utilizes Zilliz Cloud (Milvus) to manage a public library of 15 million vector entries, alongside private "user libraries" through a partitioned architecture.

3. Data Synthesis and Benchmarking

To address the lack of domain-specific training data, the researchers developed a sophisticated synthetic generation pipeline.

3.1 Synthetic Data Generation

The team utilized a massive LLM (Qwen-110B) to "distill" knowledge from scientific abstracts into training pairs.

The synthetic data generation pipeline using Qwen-110B to create high-quality training pairs from scientific abstracts.

This pipeline generated 30,000 synthetic QA pairs based on abstracts from 1 million open-access geoscience papers. By incorporating general datasets like SciFact and the MTEB benchmark, the team ensured the model retained its general-purpose capabilities while gaining deep domain expertise.

3.2 GeoRAG-QA Benchmark

The authors introduced the GeoRAG-QA benchmark, consisting of 938 expert-reviewed query-document pairs. This benchmark categorizes queries into four types: fact-based, inference-based, multi-document, and conditional, providing a rigorous standard for evaluating geoscientific RAG systems.

4. Results and Discussion

GeoGPT-RAG demonstrates superior performance across several key metrics:

  • Answer Recall: The integration of the RAG pipeline led to a 13.7% absolute gain in Answer Recall (from 0.529 to 0.666) compared to the base GeoGPT model.
  • Retrieval Precision: The system achieved a Top-1 recall of 0.908 on the GeoRAG-QA benchmark, successfully retrieving the correct document as the primary result in over 90% of cases.
  • Expert Validation: In a manual evaluation of 70 complex questions regarding petroleum exploration, the system achieved an 85.7% accuracy rate as judged by subject matter experts.
  • Generalization: Despite its heavy domain focus, GeoEmbedding maintained a competitive score of 70.21 on the general MTEB benchmark, proving that domain specialization did not compromise general task performance.

5. Conclusion and Future Work

GeoGPT-RAG successfully addresses the problem of hallucinations in geoscientific LLM applications. By combining specialized embedding models with a robust synthetic data pipeline, the system provides a reliable "research assistant" for geoscientists. Future work will focus on optimizing the computational overhead of the multi-stage pipeline and expanding the system to handle multi-modal content, such as geological maps and stratigraphic charts, directly.

Summary updated

BibTeX
@misc{huang2025geogpt,
  author = {Fei Huang and Fan Wu and Zeqing Zhang and Qihao Wang and Long Zhang and Grant Michael Boquet and Hongyang Chen},
  title = {{GeoGPT-RAG Technical Report}},
  year = {2025},
  eprint = {2509.09686},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.09686},
}
Figure