LangProBe: a Language Programs Benchmark
Shangyin Tan, Lakshya A Agrawal, Arnav Singhvi, Liheng Lai, Michael J Ryan, Dan Klein, Omar Khattab, Koushik Sen, Matei Zaharia
TL;DR
LangProBe addresses the challenge of evaluating modular language-program pipelines by examining cost–quality tradeoffs across architectures, datasets, optimizers, and language models. It introduces a large-scale benchmark with 15 datasets, multiple program designs, and four optimizers, enabling over 2000 experiments to map Pareto frontiers. The study finds that optimized language programs can yield cost–quality improvements over raw calls to stronger baselines, but performance remains task-dependent and requires careful design and empirical selection. By providing open-source data and a flexible evaluation framework, LangProBe offers a practical platform for advancing modular AI systems and guiding practitioners toward cost-efficient, high-quality deployments.
Abstract
Composing language models (LMs) into multi-step language programs and automatically optimizing their modular prompts is now a mainstream paradigm for building AI systems, but the tradeoffs in this space have only scarcely been studied before. We introduce LangProBe, the first large-scale benchmark for evaluating the architectures and optimization strategies for language programs, with over 2000 combinations of tasks, architectures, optimizers, and choices of LMs. Using LangProBe, we are the first to study the impact of program architectures and optimizers (and their compositions together and with different models) on tradeoffs of quality and cost. We find that optimized language programs offer strong cost--quality Pareto improvement over raw calls to models, but simultaneously demonstrate that human judgment (or empirical decisions) about which compositions to pursue is still necessary for best performance. We will open source the code and evaluation data for LangProBe.
