[Paper Reading]: Self-Improving Alignment with LLM-as-a-Meta-Judge

个人 Github Blog 链接:https://wj-mcat.github.io/agent-handbook/docs/paper-reading/2024/08/meta-reward-language-models-self-improving-alignment-with-llm-as-a-meta-judge,欢迎大家前往给一个 star,你们的支持是我最大的动力

现在LLM-as-a-Judge 概念这么火,那Judge 的能力绝对不能弱啊,所以作者提出了新的方法来提升模型Judgement的能力。

方法简要介绍:

  1. 让模型推理得到结果
  2. 同时来评估答案的内容
  3. 用评估结果来调整训练模型

效果:能够提升模型judgement和 Instruction following的能力。

在这里插入图片描述

方法详细介绍

该方法使用一个seed-model(已经SFT过,同时具备Instruction Following的能力),然后有如下流程:

  • As-a-Actor: 根据输入得到对应的 responses。
  • As-a-Judge: 根据输入和responses进行打分(Judgement),一般会提供一个CoT的思考过程,这个也是一个非常重要的计算依据。
  • As-a-Meta-Judge: 对它的Judgement进行比较打分。

其中第三个阶段是核心工作内容,对应的 Prompt 如下所示:

Review the user’s question and the corresponding response, along with two judgments. Determine which judgment is more accurate according to the rubric provided below. The rubric used for the initial judgments is as follows: - Add 1 point if the response is relevant and provides some information related to the user’s inquiry, even if it is incomplete or contains some irrelevant content. - Add another point if the response addresses a substantial portion of the user’s question, but does not completely resolve the query or provide a direct answer. - Award a third point if the response answers the basic elements of the user’s question in a useful way, regardless of whether it seems to have been written by an AI Assistant or if it has elements typically found in blogs or search results. - Grant a fourth point if the response is clearly written from an AI Assistant’s perspective, addressing the user’s question directly and comprehensively, and is well-organized and helpful, even if there is slight room for improvement in clarity, conciseness or focus. - Bestow a fifth point for a response that is impeccably tailored to the user’s question by an AI Assistant, without extraneous information, reflecting expert knowledge, and demonstrating a high-quality, engaging, and insightful answer. 

User: {prompt} 

Response: {response} 

Judgment A: {judgment a} 

Judgment B: {judgment b} 

After examining the original question, response, and both judgments: - Explain which judgment is more accurate according to the original rubric and why. Consider factors such as adherence to the rubric, accuracy in evaluating the response, and consistency in applying the criteria. - Conclude with a clear statement of which judgment is better using the format: “Winner: [Judgement A | Judgement B]”

最后质量最高的 Judgement 将参与到模型的训练当中,进而提升模型的Judgement能力。

在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值