Reproduce “Mining patterns in syntax trees to automate code reviews of student solutions for programming exercises” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Charlotte Van Petegem, Kasper Demeyere, Rien Maertens, Niko Strijbol, Bram De Wever, Bart Mesuere, Peter Dawyndt

A new machine learning method, ECHO, helps automate code review feedback for student programming assignments by predicting relevant annotations based on patterns in Abstract Syntax Trees (ASTs). It demonstrated predicting correct human feedback within the top five suggestions for up to 93% of instances, with most predictions occurring within milliseconds.

Key insights

  • Patterns extracted from Abstract Syntax Trees of previously reviewed student code can reliably predict appropriate feedback annotations for new code segments.
  • Weighting mined patterns by their length and inverse frequency across all annotations significantly enhances their discriminative power for specific feedback types.
  • The system's training and prediction processes are optimized for speed, demonstrating that such AI assistance can operate effectively in live, interactive code review environments.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.