arXiv:2509.13081cs.CLcs.AI2025-09被引 3

用轻量编码器模型提升医学考试解释生成的准确性与逻辑性

Shaping Explanations: Semantic Reward Modeling with Encoder-Only Transformers for GRPO

  • 用编码器模型计算生成解释与标准答案的语义相似度作为奖励信号
  • 在意大利医考数据上,生成解释的忠实度和清晰度显著优于监督微调基线
  • 适合需要高质量解释生成的任务,如教育、医疗等专业领域

尽管大语言模型擅长生成类人文本,但将其输出对齐到教学合理性等复杂定性目标仍具挑战。传统强化学习依赖昂贵的LLM评分或脆弱的关键词指标(如ROUGE),难以捕捉高质量解释的语义本质。本文提出在组相对策略优化(GRPO)框架中使用小型高效编码器-仅解码器变压器作为语义奖励模型,通过生成解释与参考答案之间的余弦相似度提供密集、语义丰富的奖励信号,引导模型生成不仅事实正确,且结构和概念上与专家推理一致的解释。我们在意大利医学院入学考试任务上应用该方法,基于标准领域自适应继续预训练(CPT)和监督微调(SFT)。结果表明,结合本文提出的语义奖励的GRPO显著提升了解释的忠实度与清晰度,优于强基线,展示了轻量级编码模型在复杂生成任务中进行精细奖励塑造的强大能力。

原文摘要 · Abstract (English)

While Large Language Models (LLMs) excel at generating human-like text, aligning their outputs with complex, qualitative goals like pedagogical soundness remains a significant challenge. Standard reinforcement learning techniques often rely on slow and expensive LLM-as-a-judge evaluations or on brittle, keyword-based metrics like ROUGE, which fail to capture the semantic essence of a high-quality explanation. In this work, we introduce a novel approach to reward shaping within the Group Relative Policy Optimisation (GRPO) framework. Our central contribution is the use of a small, efficient encoder-only transformer as a semantic reward model. This model provides a dense, semantically rich reward signal based on the cosine similarity between a generated explanation and a ground-truth reference, guiding the policy towards explanations that are not just factually correct but also structurally and conceptually aligned with expert reasoning. We apply this method to the task of training a model for the Italian medical-school entrance examinations, following standard domain-adaptive continued pre-training (CPT) and supervised fine-tuning (SFT). Our results demonstrate that GRPO with our proposed semantic reward significantly improves explanation faithfulness and clarity over a strong SFT baseline, showcasing the power of using lightweight encoder models for nuanced reward shaping in complex generation tasks

解释生成奖励建模GRPO语义对齐

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。