NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LangProBe: a Language Programs Benchmark

Shangyin Tan, Lakshya A. Agrawal, Arnav Singhvi, Liheng Lai, Michael J. Ryan, Dan Klein, Omar Khattab, Koushik Sen, Matei ZahariaarXiv 2025 · DOI

TL;DR

This paper introduces LangProBe, the first large-scale benchmark for evaluating language programs (sequences of LM calls and tool interactions). They demonstrate that optimized language programs offer significant cost-performance improvements over direct LM calls, but human judgment is still crucial for selecting the best program compositions.

What Problem Does This Paper Address?

Building sophisticated AI systems often involves composing multiple language model (LM) calls and integrating external tools into "language programs." While this paradigm is gaining traction, there's a significant lack of systematic study on the trade-offs between different program architectures, optimization strategies, and the resulting quality and cost. Researchers and practitioners need a way to evaluate these complex systems to understand which approaches yield the best results for specific tasks and how to optimize them efficiently.

Methods

The authors introduce LangProBe, a comprehensive benchmark designed to evaluate language programs. It encompasses:

  • Diverse Datasets: 15 datasets across various categories like coding, reasoning, and question-answering.
  • Multiple Language Programs: Over 10 different program architectures, ranging from simple single LM calls to more complex multi-hop retrieval and agentic programs.
  • Four Optimizers: Techniques like BootstrapFewShot, BootstrapFewShotRandomSearch, MIPROv2, and their newly introduced RuleInfer optimizer. RuleInfer specifically focuses on inducing actionable rules from few-shot demonstrations to improve program performance.
  • Extensive Evaluation: Over 2000 experiments were conducted, evaluating combinations of LMs (including OpenAI and Llama models), datasets, programs, and optimizers.

Datasets

LangProBe utilizes a curated set of 15 datasets from various sources, including:

  • Agentic Tasks: AppWorld
  • Coding & Software Engineering: HumanEval, SWEBench
  • Mathematical & Reasoning: MATH, GSM8K
  • Domain-Specific Classification: Heart Disease, Iris
  • Question Answering: HotpotQA, MMLU, HoVer, IReRa

The paper notes that while these datasets provide a good starting point, future work should focus on more composite downstream problems.

Key Insights and Ideas

  • Language Programs Offer Pareto Improvements: Optimized language programs consistently outperform raw LM calls in terms of both quality and cost, creating a better cost-performance trade-off.
  • Smaller Models Can Shine: Cheaper, smaller LMs combined with effective language programs and optimizers can outperform larger, more expensive LMs used without these enhancements.
  • Human Judgment Remains Key: Despite the advancements in automated optimization, selecting the right program architecture and composition still requires human insight or empirical exploration. There's no one-size-fits-all solution.
  • Rule-Based Optimization is Promising for Structured Tasks: The RuleInfer optimizer shows particular effectiveness on tasks with clear, discrete constraints (like classification or coding) by leveraging induced rules.
  • Task Matters for Program Effectiveness: Language programs provide the most significant improvements on tasks requiring external information or tool access, rather than on tasks that LMs are already well-trained for (e.g., MMLU, HumanEval).

Key Results

  • Cost-Performance Gains: The Model+Program+Optimizer Pareto curve consistently dominates the Model+Program and Model+Optimizer curves, which in turn dominate the Model (raw LM call) curve.
  • Specific Example: gpt-40-mini with language programs and optimization achieved 11.68% higher scores than gpt-40's baseline at half the cost.
  • Optimizer Impact: In some cases, optimizers can reduce inference costs while boosting performance (e.g., GSM8K saw an 8% improvement at 5% lower cost with optimization).
  • RuleInfer's Niche: RuleInfer excels in tasks with clear rules, but its benefits are less pronounced for open-ended question-answering tasks.

Limitations and Future Work

  • Compute Constraints: LangProBe's evaluation is limited by computational resources, preventing the inclusion of more language programs (e.g., program-of-thought) and datasets (e.g., SWE-bench).
  • Newest Models: The benchmark does not include full evaluations on the very latest reasoning models due to time and budget constraints.
  • Future Directions: The authors hope LangProBe will spur further research into new language program architectures and optimization strategies, facilitating their development and comparison. They also suggest that future work could explore more sophisticated evaluators like Math-Verify for mathematical tasks.

Summary updated

BibTeX
@misc{tan2025langprobe,
  author = {Shangyin Tan and Lakshya A. Agrawal and Arnav Singhvi and Liheng Lai and Michael J. Ryan and Dan Klein and Omar Khattab and Koushik Sen and Matei Zaharia},
  title = {{LangProBe: a Language Programs Benchmark}},
  year = {2025},
  eprint = {2502.20315},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.20315},
}
Figure