SciQAG: A Framework for Auto-Generated Scientific Question Answering Dataset with Fine-grained Evaluation

Yuwei Wan, Aswathy Ajith, Yixuan Liu, Ke Lu, Clara Grazian, Bram Hoex, Wenjie Zhang, Chunyu Kit, Tong Xie, Ian T. FosterarXiv 2024 · DOI

Introduction

Large Language Models (LLMs) have demonstrated significant potential in scientific domains, yet their progress is often hindered by the limitations of existing training and evaluation datasets. Current scientific question-answering (QA) benchmarks frequently suffer from three primary issues: they are often limited to simple multiple-choice questions (MCQs) at an elementary level, they require expensive manual curation by subject matter experts, and they typically focus on a narrow range of popular fields like biology or AI.

To address these bottlenecks, we introduce SciQAG, a novel framework that leverages LLMs to automatically generate and evaluate high-quality, open-ended QA pairs from scientific literature. This approach enables the creation of sophisticated training sets across diverse scientific disciplines without human intervention.

The SciQAG Framework

The SciQAG framework automates the transition from raw scientific papers to structured, research-level datasets through a two-stage pipeline.

  1. QA Generation: The system first extracts key terms and concepts from a scientific paper. It then generates diverse, "closed-book" QA pairs based on these keywords. Crucially, the model is instructed to ensure that answers are self-contained and do not rely on external context like figure references.
  2. QA Evaluation (RACAR): To maintain high data quality, the authors developed the RACAR metric. This metric evaluates generated pairs across five dimensions: Relevance, Agnosticism (context independence), Completeness, Accuracy, and Reasonableness. GPT-4 is utilized as a "judge" to score these dimensions, a method that has shown strong correlation with human expert judgment.
Overview of the SciQAG framework pipeline.

Dataset Construction: SciQAG-24D

Using this framework, the researchers produced SciQAG-24D, a massive dataset containing 188,042 QA pairs derived from over 22,000 papers. The dataset spans 24 distinct scientific categories, including low-resource niches such as Materials Science, Nuclear Physics, and Medicinal Chemistry. Unlike traditional benchmarks that rely on MCQs, SciQAG-24D focuses on open-ended questions to better test a model's logical reasoning and deep understanding of scientific concepts.

Experimental Results and Fine-Tuning

Evaluation of various state-of-the-art models revealed that while frontier models like GPT-4 and Claude 3 lead in zero-shot performance, there is significant room for improvement in smaller, open-source models.

By fine-tuning LLaMA-1 on the SciQAG-24D dataset, the researchers observed dramatic performance gains. The fine-tuned model, LLaMA1-QA, showed a 13.18% increase in Completeness, a 31.22% increase in Accuracy, and a 33.35% increase in Reasonableness compared to its base version. These results demonstrate that smaller models can effectively "learn" scientific logic from data generated by more powerful models.

Performance comparison of various models and the impact of fine-tuning on LLaMA1.

Key Insights and Cross-Task Benefits

A significant finding of this research is the cross-task generalization enabled by SciQAG. Fine-tuning on general scientific QA pairs not only improved performance on linguistic tasks but also enhanced the model's ability to handle highly specific numerical regression tasks. For instance, on the "Steels" task (predicting metal yield strength), the fine-tuned model reduced its Mean Absolute Error (MAE) from 463.96 to 185.32, outperforming several specialized machine learning models. This suggests that mastering the language and logic of science provides a foundational benefit for actual scientific computation.

Furthermore, the framework proved robust against hallucinations. A source validation check confirmed that 99.15% of numerical values in the generated answers were present in the original source texts.

Limitations and Future Outlook

While SciQAG represents a major step forward, challenges remain. Some generated questions still contain implicit dependencies on the source text (e.g., referring to "this study"), and the cost of using commercial LLMs for evaluation remains high. Future work will focus on expanding the domain breadth even further and improving the efficiency of the evaluation pipeline to cover the vast landscape of scientific research.

Summary updated

BibTeX
@misc{wan2024sciqag,
  author = {Yuwei Wan and Aswathy Ajith and Yixuan Liu and Ke Lu and Clara Grazian and Bram Hoex and Wenjie Zhang and Chunyu Kit and Tong Xie and Ian T. Foster},
  title = {{SciQAG: A Framework for Auto-Generated Scientific Question Answering Dataset with Fine-grained Evaluation}},
  year = {2024},
  eprint = {2405.09939},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.09939},
}
Figure