Learning to Struggle: Teaching LLMs to Code Like Real Students

What makes code feel like it was written by a student? Not just errors, but how they evolve. Not just style, but how it diverges from the polished norms. This week’s standout paper, ParaStudent, tackles a refreshingly underexplored challenge: teaching LLMs to generate code that learns like a student — messy, iterative, full of hiccups and growth. Instead of building yet another high-performing code assistant, the authors fine-tune LLMs to mimic real students in an introductory CS class at UC Berkeley. They call their framework ParaStudent. The goal: replace idealized solutions with something plausibly human — an LLM that stumbles, recovers, and grows in fidelity to how novices actually write code. ...

July 19, 2025 · 3 min · Zelina