arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2605.01123cs.AI
收藏

PERSA:利用强化学习生成教授风格的个性化反馈

PERSA: Reinforcement Learning for Professor-Style Personalized Feedback with LLMs

Florida International University(佛罗里达国际大学);University of South Florida(佛罗里达州立大学)

Ravi Ranjan, Utkarsh Grover, Xiaomin Lin, Agoritsa Polyzou

AI总结:

PERSA通过结合监督微调、奖励建模和PPO,利用LLM生成符合教授风格的编程反馈,提升反馈的风格匹配度和准确性。

摘要:

大型语言模型(LLM)可以为教育环境提供自动化反馈,但将LLM的风格与特定教师的语气对齐并保持诊断正确性仍具挑战性。我们探讨如何更新LLM以生成符合目标教师风格的反馈,而不牺牲核心知识。我们研究了如何利用人类反馈的强化学习(RLHF)来调整基于Transformer的LLM,以生成匹配教授评分语气的编程反馈。我们引入PERSA,一种结合教授示范的监督微调、基于成对偏好的奖励建模以及近端策略优化(PPO)的RLHF流程,同时刻意限制学习到风格相关的组件。受Transformer内部分析的启发,PERSA采用参数高效的微调。它仅更新顶部Transformer块及其前馈投影,从而最小化全局参数漂移,同时提高风格可控性。我们在三个代码反馈基准(APPS、PyFiXV和CodeReviewQA)上评估了所提出的方法,使用互补的指标进行风格对齐和保真度评估。在Llama-3和Gemma-2的架构上,PERSA在保持正确性的同时,实现了最强的教授风格迁移,例如在APPS上,风格对齐分数(SAC)从基础模型的34.8%提升到96.2%,正确性准确率(CA)达到100%。总体而言,PERSA通过同时对齐内容正确性和关键的教师风格语气和结构,提供了一条实用的个性化教育反馈路径。

英文摘要:

Large language models (LLMs) can provide automated feedback in educational settings, but aligning an LLMs style with a specific instructors tone while maintaining diagnostic correctness remains challenging. We ask how can we update an LLM for automated feedback generation to align with a target instructors style without sacrificing core knowledge? We study how Reinforcement Learning from Human Feedback (RLHF) can adapt a transformer-based LLM to generate programming feedback that matches a professors grading voice. We introduce PERSA, an RLHF pipeline that combines supervised fine-tuning on professor demonstrations, reward modeling from pairwise preferences, and Proximal Policy Optimization (PPO), while deliberately constraining learning to style-bearing components. Motivated by analyses of transformer internals, PERSA applies parameter efficient fine-tuning. It updates only the top transformer blocks and their feed-forward projections, minimizing global parameter drift while increasing stylistic controllability. We evaluate our proposed approach on three code-feedback benchmarks (APPS, PyFiXV, and CodeReviewQA) using complementary metrics for style alignment and fidelity. Across both Llama-3 and Gemma-2 backbones, PERSA delivers the strongest professor-style transfer while retaining correctness, for example on APPS, it boosts Style Alignment Score (SAC) to 96.2% (from 34.8% for Base) with Correctness Accuracy (CA) up to 100% on Llama-3, and Gemma-2. Overall, PERSA offers a practical route to personalized educational feedback by aligning both what it says (content correctness) and, crucially, how it says it (instructor-like tone and structure).

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑