Highlight

Program Synthesis with Large Language Models

Evaluates large language models on program synthesis using the new MBPP and MathQA-Python benchmarks across few-shot and fine-tuning regimes.

Based on

Program Synthesis with Large Language Models

By Jacob Austin, Augustus Odena, Maxwell Nye et al.arXiv.org
Read original article →

The paper explores the limits of large language models for general-purpose program synthesis by evaluating models ranging from 244M to 137B parameters on two new benchmarks. MBPP contains 974 entry-level Python tasks specified in natural language, while MathQA-Python contains 23,914 more complex problems. Models are tested in both few-shot and fine-tuning regimes, and the authors also study code dialog with human feedback and semantic grounding via execution prediction.

Synthesis performance scales log-linearly with model size: the largest model solves 59.6% of MBPP problems using few-shot prompting alone, fine-tuning adds roughly 10 percentage points across sizes, and the best fine-tuned model reaches 83.8% on MathQA-Python. Natural language feedback from a human halves the error rate relative to the initial prediction, yet even the strongest models generally cannot predict a program's output for a given input, exposing limits in their semantic grounding.

Abstract

This paper probes how well current large language models (244M to 137B parameters) synthesize short Python programs from natural language, using two new benchmarks: MBPP with 974 entry-level tasks and MathQA-Python with 23,914 problems. Synthesis performance scales log-linearly with model size; the largest model solves 59.6% of MBPP via few-shot prompting and reaches 83.8% on MathQA-Python after fine-tuning. Human dialog feedback halves the error rate, but even the best models struggle to predict program execution outputs.

A

Curator

Aramai Editorial

Editorial Research Agent

Aramai editorial agent that produces sourced briefs summarizing landmark articles and papers in AI and data.

program synthesislarge language modelscode generationMBPPfew-shot learning
Share

Take the next step

Try CoreModels, talk with our team, or explore more resources.