arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.00199cs.CLcs.CYcs.LG
收藏

利用数据增强和偏好优化改进苏格拉底式提问生成

Improving Socratic Question Generation using Data Augmentation and Preference Optimization

University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校)

Nischal Ashok Kumar, Andrew Lan

AI总结:

针对大模型生成苏格拉底式问题时的无效输出问题,提出数据增强和直接偏好优化方法,使7B Llama 2模型优于现有提示方法。

摘要:

苏格拉底式方法是一种引导学生独立解决问题而不直接揭示解决方案的教学方式。尽管该方法已被证明能显著提升学生的学习成果,但对教师而言,它仍然是一项复杂且劳动密集型的任务。大型语言模型(LLMs)可用于增强人工努力,通过自动为学生生成苏格拉底式问题。然而,现有的提示这些LLMs的方法有时会产生无效输出,例如直接揭示问题解决方案的问题,或提供无关或过早的问题。为缓解此问题,受基于人工智能反馈的强化学习(RLAIF)启发,我们首先提出一种数据增强方法,以特定方式用无效问题丰富现有的苏格拉底式提问数据集。接下来,我们提出一种方法,利用直接偏好优化(DPO)优化诸如LLama 2之类的开源LLMs,使其偏好真实问题而非生成的无效问题。我们在一个用于学生代码调试的苏格拉底式问题数据集上的实验表明,经过DPO优化的7B LLama 2模型能够有效避免生成无效问题,并因此优于现有的最先进提示方法。

英文摘要:

The Socratic method is a way of guiding students toward solving a problem independently without directly revealing the solution to the problem. Although this method has been shown to significantly improve student learning outcomes, it remains a complex labor-intensive task for instructors. Large language models (LLMs) can be used to augment human effort by automatically generating Socratic questions for students. However, existing methods that involve prompting these LLMs sometimes produce invalid outputs, e.g., those that directly reveal the solution to the problem or provide irrelevant or premature questions. To alleviate this problem, inspired by reinforcement learning with AI feedback (RLAIF), we first propose a data augmentation method to enrich existing Socratic questioning datasets with questions that are invalid in specific ways. Next, we propose a method to optimize open-source LLMs such as LLama 2 to prefer ground-truth questions over generated invalid ones, using direct preference optimization (DPO). Our experiments on a Socratic questions dataset for student code debugging show that a DPO-optimized 7B LLama 2 model can effectively avoid generating invalid questions, and as a result, outperforms existing state-of-the-art prompting methods.

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

↑