TLDRocket
Sign in

This could be the largest synthetic code dataset yet

IBM Research

IBM open-sourced CodeAlchemy, a synthetic code dataset with almost 1 trillion tokens across 15 languages. It pairs code with real execution traces, something no dataset has done at this scale before.

Based on reporting by IBM Research — read the original for the full story.

Summary, retelling and take written by AI under human oversight; images are AI-generated illustrations. How we work · Report an error

IBM Research just released something that sounds dry on paper but could quietly reshape how coding AI models get trained: a nearly 1-trillion-token synthetic dataset called CodeAlchemy, built to fix a problem most people outside AI labs never think about. Good code on the internet is getting scarce. Either it's already been hoovered up by existing models or it's locked behind commercial licenses, leaving mostly mediocre code freely available for anyone building the next generation of tools.

The pipeline itself started as an internal project to improve IBM's Granite models, but the company is now open-sourcing both the tooling and the dataset. Covering 15 programming languages, it's reportedly at least 200 times the size of Wikipedia's roughly 5 billion tokens. What sets it apart isn't just scale, though. Included in the release are 1.3 million code files paired with their actual execution traces, meaning researchers didn't just dump code — they ran it and recorded what happened.

That distinction matters more than it sounds. IBM researcher Ankit Gupta put it plainly: pulling billions of lines from GitHub teaches a model what code looks like, not what it does when you actually run it. A developer tracing a program line by line can catch bugs, spot performance issues, and flag security risks. CodeAlchemy is, by IBM's account, the first dataset attempting to teach models that same skill by pairing static code with real runtime behavior.

The results on frontier models were humbling. When researchers tested how well models could predict a line of code purely from its trace, Claude Sonnet 4.5 nailed an exact match less than 6% of the time, and got a partial match only about a third of the time. Smaller models fared even worse on exact matches. But after training an early Granite 4.0 3B model on CodeAlchemy data, it improved on partial matches enough to beat larger models, and its win rate against Claude Sonnet on a benchmark called DevEval jumped from 2% to 8%.

Some of the findings ran against intuition. Using a smaller model, Gemma 4B, to rewrite code for training produced better outcomes than using a larger GPT-OSS 20B model, apparently because bigger models generalize toward sameness while synthetic data needs variety to be useful. IBM also found that 100 billion tokens of filtered synthetic code outperformed 600 billion tokens of real code on the same model. A Granite 4.0 3B model trained on the CodeAlchemy mix and fine-tuned afterward scored 83.5% on HumanEval and 63.2% on MBPP, suggesting the gains stick around even after further training.

IBM isn't stopping at code. The same synthetic-data approach is being extended into a broader effort called Open Alchemy, aimed at teaching AI agents to operate in specialized work environments — calling applications, navigating databases, handling file systems. The CodeAlchemy team is also building out multi-step coding tasks covering debugging and dependency management, betting that as coding agents take on more autonomous work, they'll need training data that looks less like a GitHub scrape and more like an actual job.

My take — AI-written commentary, not fact-checked reporting

Smaller models beating bigger ones on curated synthetic data is the real story buried here, and it deserves more attention than the headline trillion-token number. If a 3B parameter model can out-trace and out-code larger systems just by training on well-designed synthetic traces, that's a much bigger deal for anyone who can't afford a GPU farm than another giant dataset flex. IBM open-sourcing this instead of hoarding it is the right call — the industry needs fewer walled gardens and more reproducible groundwork like this.

Read more about this at: IBM Research

Related stories

The daily briefing

Every AI story that matters, in your inbox by 8am.

TLDRocket reads all relevant sources, removes duplicate coverage, and summarises the day in two minutes. Follow companies and topics for alerts, or get the briefing in Slack. Free, no spam, unsubscribe anytime.