K2: A Foundation Language Model for Geoscience Knowledge Understanding and Utilization

Cheng Deng, Tianhang Zhang, Zhongmou He, Qiyuan Chen, Yuanyuan Shi, Yi Xu, Luoyi Fu, Weinan Zhang, Xinbing Wang, Chenghu Zhou, Zhouhan Lin, Junxian He · DOI

TL;DR

This paper introduces K2, the first foundation language model specifically designed for geoscience. K2 is built upon LLaMA-7B and fine-tuned on a massive geoscience corpus, demonstrating strong performance on understanding and utilizing geoscience knowledge. The authors also introduce GeoSignal, a new geoscience instruction tuning dataset, and GeoBench, a benchmark for evaluating geoscience LLMs, aiming to advance research and applications in this critical scientific domain.

What Problem Does This Paper Address?

Large Language Models (LLMs) have revolutionized natural language processing in general domains, but their application in specialized scientific fields like geoscience has been limited. Geoscientists face challenges integrating diverse data and terminology, and existing LLMs often lack the domain-specific knowledge required to effectively assist with tasks such as geological analysis, report summarization, and knowledge graph construction. Furthermore, the proprietary nature of many leading LLMs hinders open research and development within these specialized areas. This paper aims to bridge this gap by creating a powerful, open-source LLM tailored for geoscience.

Methods

The development of K2 involved a multi-stage process:

  • Further Pre-training: The LLaMA-7B model was further pre-trained on a substantial corpus of geoscience text (5.5 billion tokens) to imbue it with domain-specific knowledge.
  • Instruction Tuning: To align K2 with human instructions and geoscience expertise, a two-phase instruction tuning approach was employed:
  • Human-Alignment: The model was first fine-tuned on general instruction-following datasets like Alpaca-GPT4.
  • Expert-Alignment: Subsequently, it was fine-tuned on GeoSignal, a novel, knowledge-intensive dataset curated from various geoscience resources.
  • Parameter-Efficient Fine-Tuning (PEFT): Techniques like LoRA (Low-Rank Adaptation) were used to efficiently fine-tune the model, significantly reducing computational costs and the number of trainable parameters.
  • Tool Learning: K2 was further trained to utilize external tools, specifically a geoscience academic search engine (GeoSearch), enabling it to access and process real-time information.

Datasets

  • Pre-training Corpus: 5.5 billion tokens of geoscience text, including Wikipedia pages, paper abstracts, and open-access geoscience papers.
  • GeoSignal: A newly curated geoscience-supervised instruction dataset designed to align LLM responses with human and expert geoscience knowledge. It encompasses data for various tasks like Named Entity Recognition, Reasoning, Fact Verification, Summarization, Text Classification, Word Semantics, and Question Answering.
  • GeoBench: A new benchmark for evaluating geoscience LLMs, comprising over 1500 objective questions (from NPEE and AP Test Geology/Geography/Environmental Science) and 939 subjective questions (from NPEE).
  • General Instruction Tuning Datasets: Alpaca-GPT4, Dolly-15k, Natural Instruction, and AI2 Reasoning Challenge were used for the initial human-alignment phase.
  • ToolBench: Used to curate the GeoTool dataset for training K2's tool-learning capabilities.

Key Insights and Ideas

  • Domain Adaptation is Crucial: Simply using general LLMs is insufficient for specialized scientific domains. A dedicated pre-training and fine-tuning process is essential to capture domain-specific nuances.
  • Two-Stage Instruction Tuning Works Best: A staged approach, first aligning with general human instructions and then with domain experts (GeoSignal), proved more effective than mixed training. This mirrors human learning, where foundational understanding precedes specialized expertise.
  • PEFT is Key for Efficiency: Parameter-efficient fine-tuning methods like LoRA are vital for adapting large models to niche domains without prohibitive computational costs.
  • Tool Integration Enhances Utility: Equipping K2 with tool-learning capabilities significantly boosts its practical utility for research assistance, allowing it to actively search for and synthesize information.
  • Open-Source is Essential for Progress: The creation of open-source models, datasets, and benchmarks like K2, GeoSignal, and GeoBench is critical for fostering collaborative research and accelerating advancements in geoscience AI.

Key Results

  • K2, a 7-billion parameter model, demonstrates superior performance on both objective and subjective geoscience tasks compared to similar-sized baseline models on the GeoBench benchmark.
  • On objective tasks, K2 achieved an accuracy of 39.9% on NPEE and 29.3% on APTest, outperforming models like Alpaca-7B and LLaMA-7B.
  • Human evaluations for subjective tasks showed K2 performing better in rationality and correctness, indicating a deeper understanding of geoscience concepts.
  • The tool-augmented K2 showed improved "thought quality" in geoscience Q&A tasks compared to Alpaca-7B, suggesting better reasoning due to its specialized knowledge.

Limitations and Future Work

  • Limited Scope of Tool Learning: While K2 can use tools, its current tool integration is focused on a specific academic search engine. Future work could involve expanding its toolset to cover a wider range of geoscience applications.
  • Subjective Task Evaluation: While human evaluation was conducted, the paper notes that subjective tasks are inherently harder to evaluate comprehensively.
  • Further Domain Adaptation: The authors suggest that further pre-training on more diverse geoscience data and exploring more advanced PEFT techniques could lead to even better performance.
  • Broader Applications: K2's potential for research assistance and knowledge reasoning is highlighted, with future work likely to explore these applications more deeply. The paper also mentions the release of code, data, and model weights to encourage further research.

Summary updated

BibTeX
@misc{deng2023k,
  author = {Cheng Deng and Tianhang Zhang and Zhongmou He and Qiyuan Chen and Yuanyuan Shi and Yi Xu and Luoyi Fu and Weinan Zhang and Xinbing Wang and Chenghu Zhou and Zhouhan Lin and Junxian He},
  title = {{K2: A Foundation Language Model for Geoscience Knowledge Understanding and Utilization}},
  year = {2023},
  eprint = {2306.05064},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.05064},
}
Figure