Generating Reliable Synthetic Training Data from Code Repositories

Abstract

Language models can generate programming exercises and solutions, but incorrect answers, weak tests, and repetitive tasks can limit their value as training data. This thesis builds on CodifieRL to generate synthetic coding tasks from real repositories and investigate whether execution-based filtering improves their quality and usefulness for training code models.

Supervision

Motivation

Real code provides seeds for realistic programming tasks. CodifieRL already supports synthesizing instructions, solutions, and executable tests from these seeds. However, a generated solution passing its own generated tests does not guarantee a useful training example. The challenge is to produce diverse tasks with meaningful tests at an affordable generation cost.

Goal

The student will develop and evaluate a synthetic data generation workflow using CodifieRL. Expected deliverables include:

Requirements

Strong Python and machine learning skills, with experience in PyTorch. Familiarity with language models, software testing, and Git is expected; experience with Docker and model fine-tuning is helpful.

Pointers

Contact

Roman Machacek (roman.machacek@unibe.ch)