Judge as A Judge: Improving the Evaluation of Retrieval-Augmented Generation through the Judge-Consistency of Large Language Models
Retrieval-Augmented Generation (RAG) has proven its effectiveness in alleviating hallucinations for Large Language Models (LLMs).However, existing automated evaluation metrics cannot fairly evaluate the outputs generated by RAG models during training and evaluation.LLM-based judgment models provide the potential to produce high-quality judgments, but they are highly sensitive to evaluation prompts, leading to inconsistencies when judging the output of RAG models.This paper introduces the Judge-Consistency (ConsJudge) method, which aims to enhance LLMs to generate more accurate evaluations for RAG models.Specifically, ConsJudge prompts LLMs to generate different judgments based on various combinations of judgment dimensions, utilizes the judge-consistency to evaluate these judgments, and selects the chosen and rejected judgments for DPO training.Our experiments show that ConsJudge can effectively provide more accurate judgments for optimizing RAG models across various RAG models and datasets.Further analysis reveals that judgments generated by ConsJudge have a high agreement with the superior LLM.All codes are available at https://github.com/OpenBMB/ConsJudge.Case 1: What are the virulence factors of anthrax?Ground Truth: Bacillus anthracis.Choice A: The virulence factors of anthrax are a group of proteins produced by the Bacillus anthracis bacterium that contribute to its ability to cause disease in humans and animals.Choice B: anthracis.Choice C: lethal factor, edema factor and antiphagocytic factor.Choice D: lethal factor,antiphagocytic factor and other factors.Raw Metric (ROUGE-L): Choice B(0.667) > Choice A(0.143) > Choice C(0) = Choice D(0) Zero-Shot: ...choice C and D are more complete as they specifically mention the names of the virulence factor... Best answer :C.SFT:... from the perspective of
Authors
- Zheni Zeng (ORCID: https://orcid.org/0000-0001-6901-5292)
- Shuliang Liu (ORCID: https://orcid.org/0000-0002-9341-3116)
- Maosong Sun (ORCID: https://orcid.org/0000-0002-6011-6115)
- Zhenghao Liu (ORCID: https://orcid.org/0000-0001-8067-1477)
- Xinze Li (ORCID: https://orcid.org/0009-0005-0035-6802)
- Zhiyuan Liu (ORCID: https://orcid.org/0000-0002-7709-2543)
- Yukun Yan
- Cheng Yang (ORCID: https://orcid.org/0009-0003-5050-7387)
- Yu Ge (ORCID: https://orcid.org/0009-0005-1729-226X)
Publication Details
- Published
- 2025-01-01
- DOI
- https://doi.org/10.18653/v1/2025.findings-acl.301
- Citations
- 1
- Primary Topic
- Artificial Intelligence in Law
- Type
- article
- Field-Weighted Citation Impact
- 8.52
Funders
- National Natural Science Foundation of China
- Natural Science Foundation of Liaoning Province
- Fundamental Research Funds for the Central Universities