Skip to main content
QUICK REVIEW

[논문 리뷰] Evaluating RAG-Fusion with RAGElo: an Automated Elo-based Framework

Zackary Rackauckas, Arthur Câmara|arXiv (Cornell University)|2024. 06. 20.
Inertial Sensor and NavigationEngineering인용 수 3
한 줄 요약

이 논문은 기업 QA 환경에서 RAG 및 RAG-Fusion(RAGF) 에이전트를 평가하기 위해 LLM-as-a-judge를 사용하는 자동화된 엘로 기반 평가 프레임워크인 RAGElo를 제안한다. 실제 사용자 쿼리와 도메인 내 문서에서 유사 쿼리를 생성하고, 관련 검색된 문서를 LLM 심판의 맥락에 통합함으로써 RAGElo는 전문가 평가와 중간 정도의 상관관계를 보이며, RAGF가 완전성과 종합적인 답변 품질에서 RAG를 뛰어넘는 것으로 나타났다. 다만 정밀도에서는 열등한 성능을 보였다.

ABSTRACT

Challenges in the automated evaluation of Retrieval-Augmented Generation (RAG) Question-Answering (QA) systems include hallucination problems in domain-specific knowledge and the lack of gold standard benchmarks for company internal tasks. This results in difficulties in evaluating RAG variations, like RAG-Fusion (RAGF), in the context of a product QA task at Infineon Technologies. To solve these problems, we propose a comprehensive evaluation framework, which leverages Large Language Models (LLMs) to generate large datasets of synthetic queries based on real user queries and in-domain documents, uses LLM-as-a-judge to rate retrieved documents and answers, evaluates the quality of answers, and ranks different variants of Retrieval-Augmented Generation (RAG) agents with RAGElo's automated Elo-based competition. LLM-as-a-judge rating of a random sample of synthetic queries shows a moderate, positive correlation with domain expert scoring in relevance, accuracy, completeness, and precision. While RAGF outperformed RAG in Elo score, a significance analysis against expert annotations also shows that RAGF significantly outperforms RAG in completeness, but underperforms in precision. In addition, Infineon's RAGF assistant demonstrated slightly higher performance in document relevance based on MRR@5 scores. We find that RAGElo positively aligns with the preferences of human annotators, though due caution is still required. Finally, RAGF's approach leads to more complete answers based on expert annotations and better answers overall based on RAGElo's evaluation criteria.

연구 동기 및 목표

  • 기업 환경에서 RAG 시스템을 평가하기 위한 골드 표준 벤치마크의 부족 문제를 해결하기 위해, 특히 내부 도메인 특화 QA 작업을 위한 평가 기준을 마련한다.
  • 인간이 애너테이션한 골드 답변이 없는 상황에서 RAG 파이프라인의 환각 현상과 신뢰할 수 없는 평가 문제를 해결한다.
  • 전문가 선호도와 일치하고 RAG 변종(예: RAG 및 RAG-Fusion) 간 공정한 비교를 가능하게 하는 자동화되고 확장 가능한 평가 프레임워크를 개발한다.
  • LLM-as-a-judge와 전문가 애너테이션을 모두 활용하여 RAG-Fusion(RAGF)이 표준 RAG에 비해 더 완전하고 품질 높은 답변을 생성하는지 검증한다.

제안 방법

  • 실제 사용자 쿼리와 도메인 내 문서에서 소수의 예시를 활용해 LLM을 프롬프팅하여 실제 사용자 쿼리 기반으로 유사 평가 쿼리를 생성한다.
  • 검색된 문서를 심판 LLM의 맥락에 통합하여 답변 평가 시 관련성, 정확도, 환각 위험 평가 능력을 향상시킨다.
  • 심판 LLM이 서로 다른 RAG 파이프라인에서 유래한 두 후보 답변 중 더 나은 것을 선택하는 방식의 쌍별 LLM-as-a-judge 접근법을 사용한다.
  • 쌍별 비교 결과를 기반으로 RAG 파이프라인을 랭킹하는 엘로 기반 토너먼트 시스템(RAGElo)을 적용하여 모델 성능에 대한 자동화되고 확장 가능한 랭킹을 가능하게 한다.
  • 검색 품질을 측정하기 위해 MRR@5를 사용하며, RAG와 RAGF가 관련 문서를 얼마나 높은 순위에 배치하는지 비교한다.
  • 심판 LLM에게 종합성, 정확성, 유용성, 완전성, 정확도, 깊이, 세부 정보 등 다양한 차원에서 답변을 평가하도록 지시한다.
Figure 1. A traditional Retrieval-Augmented Generation pipeline compared to a -Fusion pipeline. While a traditional RAG agent submits only the original query to the search system, a RAGF agent first generates variations of the user query and combines the rankings induced by these queries into a fina
Figure 1. A traditional Retrieval-Augmented Generation pipeline compared to a -Fusion pipeline. While a traditional RAG agent submits only the original query to the search system, a RAGF agent first generates variations of the user query and combines the rankings induced by these queries into a fina

실험 결과

연구 질문

  • RQ1RAGElo 프레임워크는 RAG 시스템 평가에서 인간 전문가의 선호도와 일치하는 평가 결과를 도출하는가?
  • RQ2RAG-Fusion(RAGF)는 표준 RAG에 비해 답변의 완전성, 정밀도, 종합적인 품질 측면에서 어떻게 다른가?
  • RQ3심판 LLM의 맥락에 검색된 문서를 통합함으로써 LLM-as-a-judge 평가의 신뢰성이 얼마나 향상되는가?
  • RQ4실제 쿼리와 도메인 문서를 기반으로 한 유사 쿼리 생성은 엔터프라이즈 RAG 평가를 위한 고품질이고 현실적인 테스트 세트를 생성할 수 있는가?
  • RQ5RAG와 RAGF 간의 검색 메트릭스(MRR@5)는 어떻게 비교되며, 이는 그들의 랭킹 성능에 대해 어떤 의미를 갖는가?

주요 결과

  • RAGElo를 사용한 LLM-as-a-judge 평가에서 관련성, 정확도, 완전성, 정밀도 측면에서 전문가 평가와 중간 정도의 양의 상관관계를 보였다.
  • 전문가 애너테이션에 따르면 RAGF는 RAG에 비해 완전성에서 뚜렷하게 뛰어나 더 종합적인 답변을 생성함을 시사한다.
  • 정밀도 측면에서 RAGF는 RAG에 비해 성능이 열등하여 답변 생성 시 완전성과 사실 정확도 사이에 트레이드오프가 존재함을 시사한다.
  • MRR@5 점수를 바탕으로 RAGF는 약간 더 높은 문서 관련성 수준을 보이며, 쿼리 다양화와 랭크 퓨전을 통해 검색 품질 향상이 이루어졌음을 나타낸다.
  • RAGElo 프레임워크는 전반적으로 RAGF를 RAG보다 높게 랭킹하여, 이는 신뢰할 수 있고 자동화된 평가 도구로의 활용 가능성을 뒷받침한다.
  • 주어진 테스트 세트에서 BM25는 벡터 검색보다 검색 성능에서 뛰어나, 임bedding 품질이 도메인에 매우 의존적이며, 보정이 필요할 수 있음을 시사한다.
Figure 2. Process for creating synthetic queries. We prompt multiple LLMs to generate queries based on existing documents. We include some existing user queries in the prompt as few-shot examples.
Figure 2. Process for creating synthetic queries. We prompt multiple LLMs to generate queries based on existing documents. We include some existing user queries in the prompt as few-shot examples.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.