From Task to Code: Automating ML Pipeline Generation with Linguacodus

DEVELOPED FOR
Global open-source ML research and competition ecosystem/ International competitive ML research community and open-source data science platforms

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

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.

Research Team

Meet Our PIs

Discover the principal investigators behind this project and the expertise that made it possible.

Prof. Dr. Andrey Ustyuzhanin

Open Vacancies

Join our team working on cutting-edge autonomous transport systems. Explore opportunities in machine learning, computer vision, and robotics.

Related Projects

Explore our innovative research work

Discover a selection of our key projects that highlight our commitment to advancing education through research.

Systematics Audit (DL advocatus)

CERN Detector Optimization (Co-design)