arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.25039cs.CV
收藏

AstroRAG -- 一种基于PageRank的检索增强生成管道用于天文学问答

AstroRAG -- A Pagerank-Based Retrieval-Augmented Generation Pipeline for Question Answering in Astronomy

Australian National University(澳大利亚国立大学);Learning Machines Pty Ltd

Zhifeng Wang, Jason Jingshi Li, Kaihao Zhang, Ramesh Sankaranarayana

AI总结:

提出AstroRAG,一种基于PageRank的检索增强生成管道,通过两阶段检索(MMR和PR重排序)在严格token预算下选择紧凑互支持的上下文,无需训练且保护隐私,在天文学QA基准上使Mistral-7B准确率和F1分数达到79.49%,性能近乎翻倍。

摘要:

大型语言模型(LLMs)在自然语言处理中表现出强大的性能,但仅依赖参数化知识时常常产生事实性错误。检索增强生成(RAG)通过将响应基于外部证据来减轻这些错误,然而传统的检索-转储方法经常引入无关上下文,从而降低答案质量。在这项工作中,我们提出了AstroRAG——一种基于PageRank的检索增强生成(RAG)管道,适用于天文学中的问答。该系统在Elasticsearch中执行token感知的分块和每个实例的临时索引,然后执行两阶段检索:(i)最大边际相关性(MMR)以获得一个小的、多样化的候选集,以及(ii)在相似性图上进行读者驱动的PageRank(PR)重排序,以在严格的token预算下识别紧凑、互支持的上下文。我们的设计无需训练、保护隐私且可重复,因为每个实例通过临时索引处理以防止跨任务泄漏。我们在用于天文学QA的AstroQA基准上评估了该管道,并在所有难度级别上展示了有竞争力的性能。特别是,RAG增强的Mistral-7B实现了 extbf{79.49\%的准确率}和 extbf{79.49\%的F1分数},几乎是非RAG对应版本性能的两倍。这些结果突显了严格检索和精炼在提升领域特定推理方面的有效性,为将RAG扩展到其他科学领域奠定了坚实基础。

英文摘要:

Large language models (LLMs) demonstrate strong performance in natural language processing but often generate factual errors when relying solely on parametric knowledge. Retrieval-Augmented Generation (RAG) mitigates these errors by grounding responses in external evidence, yet conventional retrieve-and-dump approaches frequently introduce irrelevant context that degrades answer quality. In this work, we present AstroRAG -- a PageRank-based retrieval-augmented generation (RAG) pipeline adapted for question answering in astronomy. The system performs token-aware chunking and per-instance, ephemeral indexing in Elasticsearch, then executes a two-stage retrieval: (i) Maximal Marginal Relevance (MMR) to obtain a small, diverse candidate set and (ii) a reader-driven PageRank (PR) re-ranking on a similarity graph to identify a compact, mutually supportive context under a strict token budget. Our design is training-free, privacy-preserving, and reproducible, as each instance is processed through transient indexing to prevent cross-task leakage. We evaluate the pipeline on the AstroQA benchmark for astronomy QA, and demonstrate competitive performance across all difficulty levels. In particular, the RAG-enhanced Mistral-7B achieves \textbf{79.49\% accuracy} and \textbf{79.49\% F1-score}, nearly doubling the performance of its non-RAG counterpart. These results highlight the effectiveness of disciplined retrieval and refinement in boosting domain-specific reasoning, establishing a robust foundation for extending RAG to other scientific fields.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑