arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.15854cs.LGcs.AIcs.CL
收藏

增强领域特定检索增强生成:使用推理模型的合成数据生成与评估

Enhancing Domain-Specific Retrieval-Augmented Generation: Synthetic Data Generation and Evaluation using Reasoning Models

IEEE(电气和电子工程师协会);University of Florida(佛罗里达大学)

Aryan Jadon, Avinash Patil, Shashank Kumar

AI总结:

本研究提出结合令牌级评估指标与推理模型驱动的合成数据生成框架,以优化领域特定RAG性能,并揭示块大小与嵌入策略对精度和召回率的影响。

摘要:

检索增强生成(RAG)系统在应用于需要从复杂文档中精确提取信息的技术领域时,存在显著的性能差距。当前依赖文档级指标的评估方法无法充分捕捉对领域相关文档至关重要的令牌级检索精度。我们提出了一个结合细粒度评估指标与合成数据生成的框架,以优化领域特定的RAG性能。首先,我们引入了令牌感知指标精度Ω和交并比(IoU),用于量化技术文本中固有的上下文保留与信息密度之间的权衡。其次,我们开发了一个基于推理模型的流水线,使用指令微调的大语言模型(DeepSeek-R1、DeepSeek-R1蒸馏变体及Phi-4)生成上下文锚定的问答对,这些问答对具有不连续的参考跨度,覆盖三个专业语料库:SEC 10-K文件(金融)、生物医学摘要(PubMed)和APT威胁报告(网络安全)。我们的实证分析揭示了关键见解:较小的块(少于10个令牌)在召回率成本(-18%)下将精度提高了31-42%(IoU=0.071对比基线0.053),而领域特定的嵌入策略在最优块大小(5-20个令牌)上产生了22%的方差。DeepSeek-R1-Distill-Qwen-32B模型展示了优越的概念对齐(平均IoU比替代方案高+14%),尽管没有配置在所有情况下都占优。金融文本偏好较大的块以覆盖风险因素(召回率=0.81,大小为20),而网络安全内容受益于原子分割,精度Ω=0.28,大小为5。我们的代码可在https://github.com/aryan-jadon/Synthetic-Data-Generation-and-Evaluation-using-Reasoning-Model获取。

英文摘要:

Retrieval-Augmented Generation (RAG) systems face significant performance gaps when applied to technical domains requiring precise information extraction from complex documents. Current evaluation methodologies relying on document-level metrics inadequately capture token-resolution retrieval accuracy that is critical for domain-related documents. We propose a framework combining granular evaluation metrics with synthetic data generation to optimize domain-specific RAG performance. First, we introduce token-aware metrics Precision $Ω$ and Intersection-over-Union (IoU) that quantify context preservation versus information density trade-offs inherent in technical texts. Second, we develop a reasoning model-driven pipeline using instruction-tuned LLMs (DeepSeek-R1, DeepSeek-R1 distilled variants, and Phi-4) to generate context-anchored QA pairs with discontinuous reference spans across three specialized corpora: SEC 10-K filings (finance), biomedical abstracts (PubMed), and APT threat reports (cybersecurity). Our empirical analysis reveals critical insights: smaller chunks (less than 10 tokens) improve precision by 31-42% (IoU = 0.071 vs. baseline 0.053) at recall costs (-18%), while domain-specific embedding strategies yield 22% variance in optimal chunk sizing (5-20 tokens). The DeepSeek-R1-Distill-Qwen-32B model demonstrates superior concept alignment (+14% mean IoU over alternatives), though no configuration universally dominates. Financial texts favor larger chunks for risk factor coverage (Recall = 0.81 at size = 20), whereas cybersecurity content benefits from atomic segmentation, Precision $Ω= 0.28$ at size = 5. Our code is available on https://github.com/aryan-jadon/Synthetic-Data-Generation-and-Evaluation-using-Reasoning-Model

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

↑