Reproduce “Curriculum Learning for Small Code Language Models” 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

Marwa Naïr, Kamel Yamani, Lynda Said Lhadj, Riyadh Baghdadi

This research from Ecole Nationale Supérieure d’Informatique and New York University Abu Dhabi demonstrates that curriculum learning can substantially improve the code execution performance of code language models, specifically by introducing a novel difficulty metric and a hybrid learning schedule. The approach increased code execution accuracy from 74.58% to 79.23% on a 1M parameter model and showed similar gains when applied to fine-tuning Code Llama 7B.

Key insights

  • Curriculum learning (CL) can be highly effective for code language models (CLMs), particularly for improving performance on code execution tasks, challenging prior findings in natural language processing.
  • The effectiveness of curriculum learning is task-dependent, yielding substantial gains for code execution but only minor impacts on code completion tasks.
  • A carefully designed curriculum, like the Hybrid schedule that gradually introduces complexity while retaining prior knowledge, is crucial for optimal performance, unlike simple sequential progression.

Summary by alphaXiv.

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