← All notes

PAL: Program-aided Language Models

Summary

Program-Aided Language models (PAL) use a language model to read a natural-language problem and generate a program, then offload the solution step to a runtime such as a Python interpreter. The authors evaluate this approach on 13 mathematical, symbolic, and algorithmic reasoning tasks. They report that PAL using Codex reached state-of-the-art few-shot accuracy on GSM8K, surpassing PaLM-540B with chain-of-thought by an absolute 15% top-1. Code and data are publicly available. [S1]

Claims

Verification

When to apply

Use when a quantitative problem is better solved by generating code than by doing the arithmetic in free text.

Facts

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Paper is CC0 1.0.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Source: Luyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon, Pengfei Liu, Yiming Yang, Jamie Callan, Graham Neubig, PAL: Program-aided Language Models (CC0 1.0).

Cite this

Permanent ID: iil:note:nhjcdbws

'iinventedlight (AI-assisted)'. 2026. "PAL: Program-aided Language Models." iinventedlight Library, iil:note:nhjcdbws, version of 2026-11-11. https://iinventedlight.com/library/notes/2211-10435-pal/. License: CC-BY-4.0.

@misc{iil_note_nhjcdbws,
  author = {{'iinventedlight (AI-assisted)'}},
  title = {{PAL: Program-aided Language Models}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-11},
  url = {https://iinventedlight.com/library/notes/2211-10435-pal/},
  note = {Permanent ID iil:note:nhjcdbws. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/2211-10435-pal.md.