Skip to main content
QUICK REVIEW

[论文解读] Evaluation of RAG Metrics for Question Answering in the Telecom Domain

Sujoy Roychowdhury, Sumit Soman|arXiv (Cornell University)|Jul 15, 2024
Expert finding and Q&A systemsComputer Science被引用 3
一句话总结

本论文扩展了RAGAS框架,为电信问答领域的RAG评估指标提供透明的中间输出,表明忠实度(Faithfulness)与事实正确性(Factual Correctness)是最符合专家判断的可靠指标。研究发现,领域自适应的大语言模型能显著提升指标与人工评估的一致性,尤其在联合使用这两项指标时效果更佳。

ABSTRACT

Retrieval Augmented Generation (RAG) is widely used to enable Large Language Models (LLMs) perform Question Answering (QA) tasks in various domains. However, RAG based on open-source LLM for specialized domains has challenges of evaluating generated responses. A popular framework in the literature is the RAG Assessment (RAGAS), a publicly available library which uses LLMs for evaluation. One disadvantage of RAGAS is the lack of details of derivation of numerical value of the evaluation metrics. One of the outcomes of this work is a modified version of this package for few metrics (faithfulness, context relevance, answer relevance, answer correctness, answer similarity and factual correctness) through which we provide the intermediate outputs of the prompts by using any LLMs. Next, we analyse the expert evaluations of the output of the modified RAGAS package and observe the challenges of using it in the telecom domain. We also study the effect of the metrics under correct vs. wrong retrieval and observe that few of the metrics have higher values for correct retrieval. We also study for differences in metrics between base embeddings and those domain adapted via pre-training and fine-tuning. Finally, we comment on the suitability and challenges of using these metrics for in-the-wild telecom QA task.

研究动机与目标

  • 评估基于大语言模型的RAG评估指标在专业电信领域中的可靠性。
  • 通过暴露中间提示输出,解决RAGAS指标缺乏透明度的问题,提升可解释性。
  • 评估检索器质量、领域自适应嵌入以及指令微调大语言模型对指标性能的影响。
  • 确定在技术问答任务中,哪些RAGAS指标与专家人工评估结果最相符。
  • 为领域特定应用中的RAG系统提供可复现、透明的评估框架。

提出的方法

  • 扩展RAGAS库,记录每个指标的中间大语言模型输出,支持对推理步骤的检查。
  • 使用从3GPP Release 15文档中提取的TeleQuAD数据集子集,进行电信领域特定的问答评估。
  • 评估多种大语言模型配置:基础Mistral-7b、通过指令微调(IFT)微调的模型,以及通过预训练微调(PT-IFT)的提示微调模型。
  • 采用贝叶斯推断,基于指标阈值(如P(c|m1>0.7, m2>0.7))计算正确性的联合概率。
  • 通过人工专家评估RAG生成的回答,建立正确性的基准真值。
  • 在不同检索质量(正确与错误的上下文)和嵌入类型(基础与领域自适应)下比较指标表现。

实验结果

研究问题

  • RQ1RAGAS指标通过其基于提示的推理步骤,如何内部评估响应?
  • RQ2RAGAS指标是否适用于评估电信领域基于RAG的问答任务,特别是涉及领域术语时?
  • RQ3RAGAS指标如何响应检索质量、领域自适应嵌入及指令微调大语言模型的变化?
  • RQ4联合使用多个指标(如忠实度与事实正确性)是否能提升与专家评估的一致性?
  • RQ5生成器大语言模型的领域自适应在多大程度上影响指标的可靠性与一致性?

主要发现

  • 忠实度与事实正确性指标与专家评估结果的匹配度最强,优于其他指标如答案相似性与上下文相关性。
  • 联合使用忠实度与事实正确性可显著提升正确识别正确答案的概率(对于Mistral-7b-PT-IFT,P(c|m1>0.7, m2>0.7) = 0.97)。
  • 对大语言模型进行指令微调可显著提升事实正确性得分(p<0.05),即使检索结果错误亦然。
  • 当从错误检索上下文中生成正确答案时,忠实度得分下降,表明该指标能正确检测出上下文外生成行为。
  • 通过指令微调(IFT)和提示微调(PT-IFT)实现的领域自适应大语言模型,均提升了忠实度与事实正确性,其中PT-IFT表现略优于仅使用IFT。
  • 答案相似性指标被发现不可靠,因其依赖余弦相似度且缺乏语义基础,导致解释不一致。

阅读本论文

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

在 Nubint 中阅读本论文

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