Skip to main content
QUICK REVIEW

[论文解读] Design and Evaluation of a Retrieval-Augmented Generation Architecture for OWASP Security Data

Es, Shahul, Jithin James|arXiv (Cornell University)|Sep 26, 2023
Topic ModelingComputer Science被引用 65
一句话总结

RAGAs 引入了一个用于检索增强生成(RAG)系统的无参考评估框架,辅以 WikiEval 数据集,并且在与人类判断的一致性方面尤其在忠实性和答案相关性方面有所体现。

ABSTRACT

Project Description This archive contains a research artifact for the design, implementation, and evaluation of a Retrieval-Augmented Generation (RAG) system in the domain of application security. The artifact provides a complete, self-contained snapshot of the system architecture, curated evaluation data, and automated benchmarking pipelines. RAG System Architecture The archive includes a fully implemented RAG pipeline designed to ground large language model outputs in authoritative security documentation. The system follows a modular architecture with clearly separated components for document ingestion, semantic retrieval, and answer generation. The knowledge base is derived from OWASP Cheat Sheet Series and related security guidance, enabling security-focused question answering with reduced risk of hallucinated responses. Ground Truth Dataset A ground truth dataset is included to support systematic evaluation. The dataset consists of security-relevant questions and corresponding reference information derived from OWASP materials. It is intended exclusively for offline evaluation and benchmarking of RAG behavior and is not meant to serve as training data.

研究动机与目标

  • 推动对 RAG 系统在多个质量维度上的自动化、无真实标注的评估。
  • 提出在不使用地面真相注释的情况下评估忠实性、答案相关性和上下文相关性的指标。
  • 引入 WikiEval 数据集,用于对超出模型训练数据的近期文本事件进行人类支撑的评估。
  • 展示 RAGAs 框架,以便与常用的 RAG 工具链(llama-index、Langchain)实现轻松集成。
  • 证明自动化指标与人类判断之间的相关性,从而帮助更快的 RAG 开发。

提出的方法

  • 定义用于 RAG 评估的三大核心质量维度:忠实性、答案相关性和上下文相关性。
  • 提出通过大型语言模型(gpt-3.5-turbo-16k)估计每个维度的提示与验证步骤。
  • 构建一个完全无参考的评估协议,不依赖地面真相答案。
  • 创建 WikiEval 数据集,在维基语境中对忠实性、答案相关性和上下文相关性进行人工判断。
  • 将 RAGAs 与两个基线(GPT Score 和 GPT Ranking)进行比较,以验证与人类判断的一致性。
  • 提供与流行的 RAG 框架(llama-index、Langchain)的集成。

实验结果

研究问题

  • RQ1在没有地面真相参考的情况下,是否可以对 RAG 系统的忠实性、答案相关性和上下文相关性进行可靠评估?
  • RQ2所提出的 RAGAs 指标是否比现有的 RAG 评估基线与人类判断更一致?
  • RQ3在评估上下文相关性时会出现哪些挑战,尤其是对于较长的检索文本?
  • RQ4WikiEval 是否能为超出训练数据的近期事件提供真实、最新的评估表面?
  • RQ5与标准 RAG 工具链的集成是否可行且对开发者有益?

主要发现

  • RAGAs 在 WikiEval 中在忠实性(0.95)与答案相关性(0.78)和上下文相关性(0.70)的与人类判断的一致性方面表现较高。
  • GPT Score 和 GPT Ranking 基线在三个维度上的与人类判断的一致性显著较低。
  • 上下文相关性是自动化评估中最具挑战性的维度,对于较长的上下文,模型判断与人类判断之间存在差距。
  • WikiEval 提供了以维基百科为焦点的 50 页案例,问题由导言部分生成,且由两位人工评审标注。
  • RAGAs 证明了自动化、无参考的评估可以成为 RAG 工作流中基于地面真相评估的可行替代方案。
  • RAGAs 可以无缝集成到广泛使用的工具中,简化 RAG 研究者和从业者的采用。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。