The challenge
Translating natural language ML task descriptions into executable, high-quality code remains a major bottleneck
for rapid ML development.
Standard LLMs often produce:
- Generic or incomplete code, unsuitable for complex tasks.
- Limited control over generation, poor alignment with task requirements.
- Ambiguity issues, especially with domain-specific ML workflows.

The Solution
Linguacodus: a two-stage framework for controllable ML code generation:
- Instruction Synthesis: Fine-tune Llama-2 on Code4ML to extract high-level ML solution instructions (data preprocessing, model architecture, training strategy) from task descriptions.
- Instruction-to-Code Transformation: 1) Sequentially generate compilable Python code from refined instructions, covering all pipeline steps. 2) Leverage task-specific structure + LLM generality for precise, reusable pipelines.
Impact
- Consistently generates ready-to-run ML code across tabular, text, image, and time-series tasks.
- Outperforms vanilla GPT-3.5 on Kaggle competitions in multiple metrics and percentiles (e.g., top leaderboard scores for Tabular, Image data).
- Bridges the gap between natural task language and full ML solutions, accelerating R&D cycles.
Industrial Directions
- AutoML augmentation: integrate Linguacodus as a code generation backend in ML platforms.
- Enterprise ML Ops: rapid prototyping of custom pipelines for tabular / text / image tasks.
- Domain-specific analytics: empower non-experts to produce optimized ML code through natural language.
- Education & onboarding: train new data scientists faster by generating standardized, interpretable pipelines.
- Artificial Intelligence, Cloud Computing, Data & Analytics, Digital Platforms & Transformation, Enterprise IT, FinTech, Healthcare IT, Research & Development, Software Development