Closing the Loop: Learning to Generate Writing Feedback via Language Model Simulated Student Revisions

Inderjeet Nair, Jiaye Tan, Xiaotian Su, Anne Gere, Xu Wang, Lu Wang

Abstract

Providing feedback is crucial for refining writing skills, yet generating actionable, pedagogically sound feedback automatically remains a challenge. We propose PROF (PROduces Feedback), a framework that iteratively optimizes a feedback generator by learning from language model (LM) simulated student revisions. By directly maximizing the effectiveness of these simulated revisions, PROF outpaces baseline methods and demonstrates emergent pedagogical value, matching or exceeding the performance of much larger models like GPT-4.

Introduction

High-quality writing feedback is a cornerstone of education, but providing it at scale is labor-intensive for human instructors. While Large Language Models (LLMs) can generate feedback rapidly, they lack a clear "ground truth" for what constitutes effective advice. Traditional training relies on expert-annotated datasets, which are scarce and often fail to capture the dynamic nature of student improvement. PROF addresses this by "closing the loop": it treats feedback generation as a reinforcement learning problem where the reward is the actual improvement in a student's revised work.

The PROF Framework

The PROF pipeline treats feedback generation as an iterative optimization process. Instead of relying on real students for every training step, the system employs a Student Simulator—an LLM fine-tuned to revise essays based on provided feedback.

The PROF pipeline iteratively optimizes the feedback generator $M_t$ by simulating student revisions $S$ and selecting preference pairs based on revision quality.

As shown in Figure 1, the process follows these steps:

  1. Generating Feedback: The core model ($M_t$) generates multiple feedback candidates for an initial writing ($x^j$).
  2. Simulated Revision: The student simulator ($S$) applies each feedback candidate to produce revised essays ($y^j$).
  3. Scoring and Selection: A "judge" model (GPT-4) scores the revisions based on academic rubrics. Feedback that leads to better revisions is preferred ($f_+$) over those that do not ($f_-$).
  4. Optimization: Using Direct Preference Optimization (DPO), the model is updated ($M_{t+1}$) to favor the more effective feedback styles.

Experimental Results

We evaluated PROF using a dataset from an introductory Economics course. The task involved writing persuasive letters regarding minimum wage policies.

Extrinsic Quality and Pedagogical Alignment

PROF-generated feedback led to significantly higher-quality revised essays, scoring approximately 80/100, compared to few-shot GPT-4 (~77/100) and basic fine-tuned models (~73/100). Beyond raw scores, PROF showed remarkable improvement in "intrinsic" pedagogical qualities.

Feedback consistency (measured as the fraction of problem/solution feedback) improves across training iterations, with PROF models eventually matching or exceeding GPT-4 performance.

As illustrated in Figure 4, the consistency of the feedback improved steadily over multiple training iterations. Even without explicit instructions to be supportive or metacognitive, the model learned that such traits led to better student outcomes, matching or exceeding GPT-4's performance in these categories despite having far fewer parameters (8B vs. GPT-4's undisclosed scale).

Conclusion

PROF demonstrates that optimizing for student outcomes is a powerful alternative to mimicking human-written feedback. By leveraging simulated revisions, we can train smaller, more efficient models that possess high pedagogical value. Future work will focus on expanding this framework to multi-turn dialogues and diverse academic domains.

Summary updated

BibTeX
@inproceedings{nair2024closing,
  author = {Inderjeet Nair and Jiaye Tan and Xiaotian Su and Anne Gere and Xu Wang and Lu Wang},
  title = {{Closing the Loop: Learning to Generate Writing Feedback via Language Model Simulated Student Revisions}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  url = {https://openreview.net/forum?id=Ha3gB28b3C},
}
Figure