Direct Repair Optimization: Training Small Language Models For Educational Program Repair Improves Feedback

Locally deployed Small Language Models (SLMs) offer a promising solution for providing timely and effective programming feedback to students learning to code.However, SLMs often produce misleading or hallucinated feedback, limiting their reliability in educational settings.Current approaches for improving SLM feedback rely on existing human annotations or LLM-generated feedback.This paper addresses a fundamental challenge: Can we improve SLMs' feedback capabilities without relying on human or LLM-generated annotations?We demonstrate that training SLMs on the proxy task of program repair is sufficient to enhance their ability to generate high-quality feedback.To this end, we introduce Direct Repair Optimization (DRO), a self-supervised online reinforcement learning strategy that trains language models to reason about how to efficiently fix students' programs.Our experiments, using DRO to fine-tune LLaMA-3.1-3B and Qwen-2.5-3B on a large-scale dataset of Python submissions from real students, show substantial improvements on downstream feedback tasks.We release our code to support further research in educational feedback and highlight promising directions for future work.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.bea-1.41
Primary Topic
Higher Education Learning Practices
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Direct Repair Optimization: Training Small Language Models For Educational Program Repair Improves Feedback

Charles Koutcheme, Arto Hellas, Nicola Dainese
Higher Education Learning Practices
article

Direct Repair Optimization: Training Small Language Models For Educational Program Repair Improves Feedback

Charles Koutcheme, Arto Hellas, Nicola Dainese
article en

Abstract

Locally deployed Small Language Models (SLMs) offer a promising solution for providing timely and effective programming feedback to students learning to code.However, SLMs often produce misleading or hallucinated feedback, limiting their reliability in educational settings.Current approaches for improving SLM feedback rely on existing human annotations or LLM-generated feedback.This paper addresses a fundamental challenge: Can we improve SLMs' feedback capabilities without relying on human or LLM-generated annotations?We demonstrate that training SLMs on the proxy task of program repair is sufficient to enhance their ability to generate high-quality feedback.To this end, we introduce Direct Repair Optimization (DRO), a self-supervised online reinforcement learning strategy that trains language models to reason about how to efficiently fix students' programs.Our experiments, using DRO to fine-tune LLaMA-3.1-3B and Qwen-2.5-3B on a large-scale dataset of Python submissions from real students, show substantial improvements on downstream feedback tasks.We release our code to support further research in educational feedback and highlight promising directions for future work.

Aalto University (FI)
Openalex Percentile: Top 79%
Higher Education Learning Practices
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.

Direct Repair Optimization: Training Small Language Models For Educational Program Repair Improves Feedback — Charles Koutcheme, Arto Hellas, et al. · (2025) | TGRS Research Map | TGRS