New Pipeline Boosts Low-Resource Code Generation for SLMs

Didula Samaraweera, Anjana Supun, Srinath Perera· July 10, 2026 View original

▶ The 2-minute explainer

Summary

A three-phase pipeline called "Selective Left-Shift" significantly improves Small Language Models' performance on low-resource programming languages by generating verified synthetic training data and applying execution-grounded reinforcement learning. This method achieves state-of-the-art results with reduced data and cost.

Large Language Models excel at code generation for popular languages like Python, but their performance drops sharply for Low-Resource Programming Languages (LRPLs) such as Julia. Small Language Models (SLMs) face a challenge in this domain due to data scarcity for supervised fine-tuning, high inference costs, and limited benefits from reinforcement learning alone. Researchers have introduced a three-phase pipeline, "Selective Left-Shift," to address these issues by separating syntax acquisition from algorithmic reasoning. The first phase involves "left-shifting" inference-time computation to an offline data synthesis engine. This engine generates verified training examples by iteratively using compiler and test feedback. In the second phase, an SLM is fine-tuned on this synthetic, verified data to establish strong syntactic priors. Finally, the third phase applies Reinforcement Learning with Verifiable Reward (RLVR), which is grounded by language-agnostic Input/Output tests. The strong syntactic prior from the SFT phase helps constrain exploration, preventing syntax errors. This pipeline, applied to Qwen3-8B, achieved significant improvements in pass@1 scores on MultiPL-E and Agnostics LiveCodeBench for Julia, outperforming state-of-the-art results with substantially less data and cost. The method also generalized effectively to Ballerina, a language with minimal pretraining representation.

Why it matters

This pipeline offers a cost-effective and data-efficient way to improve code generation capabilities for less common programming languages, expanding the utility of SLMs and enabling broader automation in software development.

How to implement this in your domain

  1. 1Evaluate the "Selective Left-Shift" pipeline for improving code generation in specific low-resource programming languages relevant to your projects.
  2. 2Implement an offline data synthesis engine to generate verified training examples using compiler and test feedback.
  3. 3Fine-tune existing Small Language Models (SLMs) on synthetically generated data to embed strong syntactic priors.
  4. 4Integrate Reinforcement Learning with Verifiable Reward (RLVR) using language-agnostic I/O tests to refine code generation.
  5. 5Explore applying this methodology to internal DSLs or proprietary languages to enhance developer tooling.

Who benefits

Software DevelopmentIT ServicesFinTechAutomotiveResearch & Development

Key takeaways

  • A new pipeline improves code generation for low-resource programming languages using SLMs.
  • It uses an offline engine to synthesize verified training data from compiler and test feedback.
  • The method combines supervised fine-tuning with execution-grounded reinforcement learning.
  • Significant performance gains are achieved with reduced data and computational cost.

Original post by Didula Samaraweera, Anjana Supun, Srinath Perera

"arXiv:2607.07748v1 Announce Type: new Abstract: Large Language Models achieve strong code generation for high resource languages like Python and Java but suffer sharp performance drops on Low-Resource Programming Languages~(LRPLs) such as Julia. Improving Small Language Models~(S…"

View on X

Originally posted by Didula Samaraweera, Anjana Supun, Srinath Perera on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses