논문 해설
DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation
DIRAS: 검색 증강 생성에서 문서 관련성의 효율적인 LLM 주석
- 연구 문제 통합형 질의를 다루는 RAG 검색에서는 재현율과 부분 관련성, 도메인별 관련성 정의를 평가할 수 있는 주석 데이터가 부족합니다.
- 연구 방법 DIRAS는 질의별 관련성 정의를 GPT-4로 만들고, 교사 LLM이 주석한 데이터로 8B 이하의 소형 LLM을 미세조정하여 보정된 관련성 점수를 내는 파이프라인입니다.
- 주요 결과 Llama3-Tok은 ChatReportRetrieve에서 GPT-4 수준의 보정과 정보 검색 성능을 보였고, ClimRetrieve에서는 개선된 정의로 전체 쌍 순위에서 nDCG 32.53과 MAP 32.65를 기록했다고 원문이 보고합니다.
RAG 검색 평가의 문제
RAG 시스템에서 검색 단계는 생성 품질을 좌우하는 병목입니다. 그런데 기존 RAG 평가는 주로 QA 데이터셋에 기대어 있어, 여러 출처를 통합해야 하는 질의에서 누락된 정보를 찾아내는 재현율(IR recall)을 충분히 다루지 못합니다. 또한 관련성은 도메인마다 달라서 일반 벤치마크의 결과가 실제 RAG 검색 성능을 잘 보여주지 못합니다.
도메인 특화 관련성을 주석하려면 사람이나 GPT-4의 주석이 필요하지만, 비용이 높고 모든 질의-문서 쌍을 덮을 수 없습니다. 주석되지 않은 쌍을 무관으로 취급하면 주석 선택 편향이 생깁니다. 이 논문은 이 두 문제를 함께 다루는 자동 주석 방법을 제안합니다.
DIRAS의 파이프라인과 학생 모델
DIRAS는 질의, 질의별 관련성 정의, 문서 청크를 입력으로 받아 이진 관련성 판정과 보정된 관련성 점수를 출력하는 소형 LLM 주석기를 만드는 파이프라인입니다. 먼저 밀집 검색기로 질의별 문서를 순위화한 뒤 상위 k 내부와 외부에서 같은 수의 문서를 표본 추출합니다. 이후 GPT-4가 각 질의의 관련성 정의를 초안으로 작성합니다.

Figure 1 : Overview of the functionality of DIRAS tak- ing (query, relevance definition, document) triplets as input and output a binary verdict and a well-calibrated relevance score, which is sensitive to the grey-scale of partial relevance.
원문 · CC BY 4.0 · Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold · DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.
Table 11 : Example of a generic and expert-informed relevance definition for a question.
원문 · CC BY 4.0 · Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold · DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.교사 LLM은 질의, 정의, 문서 삼중항에 프롬프트 템플릿을 적용해 주석과 신뢰도 데이터를 만들고, 이 데이터로 학생 LLM을 미세조정합니다. 실험에서는 지점별(pointwise) 주석이 리스트별 방식보다 적절한 보정 방식과 함께 더 나은 성능을 보였기 때문에 이 방식을 채택했습니다. 신뢰도 보정은 모델이 신뢰도를 직접 말하게 하는 방식(Ask)과 Yes/No 토큰 확률을 쓰는 방식(Tok)을 비교했습니다.

Figure 2 : DIRAS pipeline. Domain-specific queries, and documents as inputs; calibrated student LLM annotators as outputs.
원문 · CC BY 4.0 · Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold · DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.ChatReportRetrieve에서의 설계 검증
설계 선택은 저자들이 새로 구축한 ChatReportRetrieve에서 검증되었습니다. 이 데이터셋은 기후 보고서에 대한 실제 사용자 통합형 질의를 바탕으로 하며, 관련성 정의를 주석 지침으로 제공합니다. 테스트 라벨은 두 명의 주석자와 전문가 메타 주석으로 만들어졌고, 불확실성 라벨도 함께 두었습니다.

Table 10 : Label distribution in the ChatReportRetrieve testset.
원문 · CC BY 4.0 · Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold · DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.표 1에서 관련성 정의를 넣은 포인트 방식과 Ask 보정의 조합이 여러 비교 설정에서 높은 성능을 보였습니다. 다만 Few-shot ICL은 도메인 특화 관련성을 잘 가르치지 못했습니다. 평가 지표는 이진 관련성의 F1, 보정의 ECE·Brier·AUROC, 순위의 nDCG와 MAP, 불확실성의 AP입니다.

Table 1 : GPT-4’s performance on ChatReportRetrieve test set with different ranking methods (Point- or List- wise), RAGAs and ARES-few-shot, with/without rel- evance definition (D), and calibration method (Ask or Tok). Bin., Cal., Info., and Unc. stand for evaluation dimensions in § 3.1.
원문 · CC BY 4.0 · Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold · DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.학생 모델의 성능과 CoT 여부
미세조정된 학생 모델은 세 백본(Llama-3-8B-instruct, gemma-7b-it, Phi-3-mini-4k-instruct)에서 원래 모델보다 개선되었습니다. 이 가운데 Llama3-Tok이 여러 지표에서 가장 좋은 설정으로 보고됩니다. 원문은 Llama3-Tok이 ChatReportRetrieve에서 GPT-4 수준의 보정과 정보 검색 성능을 얻었다고 보고합니다.

Table 2 : Comparison between the fine-tuned student Ms and different baselines on ChatReportRetrieve test data. The best scores are bolded and the second bests
원문 · CC BY 4.0 · Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold · DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.
Figure 4 : Shaded bars denote the performance of orig- inal models. Colored bars denote the improvement brought by fine-tuning.
원문 · CC BY 4.0 · Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold · DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.흥미로운 점은 CoT를 제거하면 대부분의 아키텍처에서 성능이 오르는 경향이 나타났다는 것입니다. 토큰 확률 보정(Tok)에서는 CoT가 성능을 떨어뜨렸습니다. 따라서 저자들은 추론 효율을 위해 CoT 없이 미세조정하는 것을 권장합니다.
ClimRetrieve 적용과 주석 선택 편향
ClimRetrieve에서는 595개의 정답 관련 라벨을 이용해 세분화된 관련성 수준을 순위로 평가했습니다. 개선된 관련성 정의를 쓴 Llama3-Tok은 전체 43K 쌍의 순위에서 nDCG 32.53과 MAP 32.65를 기록했다고 원문이 보고합니다. 이 수치는 생성된 정의를 사람 분석가의 예시로 보강한 설정에서 나온 결과입니다.

Table 3 : Performance on ranking the relevant (query, document) pairs in ClimRetrieve.
원문 · CC BY 4.0 · Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold · DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.
Table 4 : Comparison of using the generic and the im- proved relevance definitions for ranking all ClimRe- trieve (query, document) pairs.
원문 · CC BY 4.0 · Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold · DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.주석 선택 편향을 확인하려고 원래 라벨과 불일치하는 200개 표본을 사람이 다시 검토했습니다. 신뢰도가 0.95보다 높은 구간에서는 학생 모델 판정이 91.30% 정확했습니다. ClimRetrieve의 분석가 라벨은 주석된 쌍만 포함하며 주석되지 않은 쌍을 무관으로 가정하므로, 이 결과는 재현율 평가를 보완하는 근거로 읽습니다.

Table 5 : Accuracy of student model Llama3-Tok annota- tions that disagree with original ClimRetrieve relevance labels. All denotes all sampled disagreed labels. Rel. ( Irr.) denotes the subset where the original label is relevant (irrelevant). Conf ≤ 0.95 (> 0.95) denotes the subset where Llama3-Tok’s confidence is lower (higher) than 0.95. ClimRetrieve (62.12%) means that 62.12% of data are annotated with > 0.95 confidence.
원문 · CC BY 4.0 · Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold · DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.적용 범위와 한계
저자들은 GPT-4가 모든 도메인과 사례에서 완벽하지 않다고 제한합니다. 틈새 도메인에서는 도메인 지식이나 에이전트 설계를 추가해야 할 수 있습니다. 또한 이 연구는 텍스트 문서에 집중하며 그래프와 표 콘텐츠는 평가하지 않았습니다. 장문 맥락 LLM이 검색의 역할을 줄일 수 있다는 점도 함께 남은 질문입니다.
논문 정보
- 저자
- Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold
- 학회·저널
- arXiv · 프리프린트
- 최초 공개일
- 2024년 6월 20일
- 등록일
- 2026년 11월 5일
- 수정일
- 2025년 1월 23일
- 버전
- v4
- arXiv
- 2406.14162
- 분류
- cs.IR · cs.AI · cs.CL
- 원문 이용 조건
- CC BY 4.0
- 제공 범위
- 논문 정보, 해설, 허용된 원문 그림
AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.
초록
Retrieval Augmented Generation (RAG) is widely employed to ground responses to queries on domain-specific documents. But do RAG implementations leave out important information when answering queries that need an integrated analysis of information (e.g., Tell me good news in the stock market today.)? To address these concerns, RAG developers need to annotate information retrieval (IR) data for their domain of interest, which is challenging because (1) domain-specific queries usually need nuanced definitions of relevance beyond shallow semantic relevance; and (2) human or GPT-4 annotation is costly and cannot cover all (query, document) pairs (i.e., annotation selection bias), thus harming the effectiveness in evaluating IR recall. To address these challenges, we propose DIRAS (Domain-specific Information Retrieval Annotation with Scalability), a manual-annotation-free schema that fine-tunes open-sourced LLMs to consider nuanced relevance definition and annotate (partial) relevance labels with calibrated relevance scores. Extensive evaluation shows that DIRAS enables smaller (8B) LLMs to achieve GPT-4-level performance on annotating and ranking unseen (query, document) pairs, and is helpful for real-world RAG development. All code, LLM generations, and human annotations can be found in \url{https://github.com/EdisonNi-hku/DIRAS}.
원문 인용
Jingwei Ni, Tobias Schimanski, Meihong Lin, Mrinmaya Sachan, Elliott Ash, Markus Leippold (2024). DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation. arXiv:2406.14162v4. https://arxiv.org/abs/2406.14162v4
BibTeX
@misc{ni2024diras,
title = {{DIRAS: Efficient LLM Annotation of Document Relevance in Retrieval Augmented Generation}},
author = {Jingwei Ni and Tobias Schimanski and Meihong Lin and Mrinmaya Sachan and Elliott Ash and Markus Leippold},
year = {2024},
eprint = {2406.14162},
archivePrefix = {arXiv},
url = {https://arxiv.org/abs/2406.14162v4}
}