PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguistics

Atharva Naik, Prakam, Yash Mathur, Darsh Agrawal, Manav Nitin Kapadnis, Yuwei An, Clayton Marr, Carolyn P. Rosé, David R. Mortensen

TL;DR

PBEBench is a new, "knowledge-free" benchmark that evaluates the multi-step inductive reasoning of Large Language Models (LLMs) by tasking them with inferring sequences of string-rewrite rules. Inspired by historical linguistics, it reveals that even state-of-the-art reasoning models struggle significantly as the number of steps and the complexity of rule interactions (like "bleeding" and "feeding") increase.

What Problem Does This Paper Address?

While LLMs have shown remarkable performance on many benchmarks, it is often unclear whether they are truly reasoning or simply retrieving patterns from their massive training data. Many existing reasoning benchmarks are "contaminated" (the models have seen the problems before) or rely on domain-specific knowledge that masks pure logical capability.

The authors turn to Historical Linguistics, specifically Sound Law Induction (SLI). Linguists reconstruct how ancient languages evolved by positing an ordered sequence of sound changes. This is a perfect "black box" reasoning task: given a set of ancestral words and their modern descendants, can you find the specific, ordered rules that transformed one into the other? The challenge lies in the ordering constraints: Rule A might create the conditions for Rule B to apply (Feeding), or Rule A might destroy the conditions Rule B needs (Bleeding). This requires the model to perform complex sequential planning and reason over unobserved intermediate states.

Methods

The authors formulate this as a Programming by Example (PBE) task. Instead of natural language, the models must produce a "cascade" (a sequence) of Python-style replace(α, β) functions.

Key components of their approach include:

  • Symbolic Proposer: A system that automatically generates synthetic datasets. It samples random input strings, applies a sequence of rewrite rules, and generates the final outputs.
  • BFCC Relations: The benchmark explicitly controls for four fundamental linguistic interactions: Feeding, Bleeding, Counter-feeding, and Counter-bleeding. This allows the researchers to pinpoint exactly which logical structures trip up the models.
  • Rejection Sampling: To ensure the benchmark isn't too easy, the proposer uses rejection sampling to balance the dataset across all 16 possible combinations of these BFCC interactions.
  • Scaling Analysis: The researchers tested two ways to improve model performance: increasing the sampling budget (generating more candidate solutions) vs. increasing the thinking budget (allowing for longer internal Chain-of-Thought reasoning).

Datasets

The paper introduces several variations of the benchmark:

  • PBEBench-Lite: 1,008 instances with short cascades (2–5 steps) and 5 input-output pairs per problem.
  • PBEBench-Lite-Perm: A "program reordering" task where the model is given the correct rules but must find the valid execution order.
  • PBEBench (Main): A much harder set with 1,216 instances, featuring long cascades (up to 20–30 steps) and 50 input-output pairs.
  • Real-SLI: 21 instances derived from actual historical linguistic data (e.g., the evolution of Proto-Tangkhulic to Huishu).
  • Comparison Benchmarks: The authors also evaluated models on CLUTRR (kinship reasoning) and SLR-Bench (logical induction) to see how PBEBench compares.

Key Insights and Ideas

  • Isolating Reasoning: Because the strings and rules are synthetic and randomized, the benchmark is highly resistant to data contamination. A model cannot "memorize" the answer; it must derive it.
  • The "Interaction Wall": The difficulty isn't just the number of rules, but how they interact. Models predictably struggle more with "Counter-Feeding" and "Counter-Bleeding" interactions, where the logic is counter-intuitive.
  • Thinking > Sampling: For models capable of internal reasoning (like the "o" series or gpt-oss), increasing the "thinking budget" (test-time compute) provides much more "bang for the buck" than simply sampling more random guesses.
  • Linguistic Validity: PBEBench scores are more predictive of a model's performance on real-world historical linguistics tasks than existing benchmarks like CLUTRR. This suggests PBEBench captures a more fundamental type of inductive reasoning.

Key Results

  • Reasoning Models Lead: Models designed for reasoning (e.g., GPT-5, gpt-oss-120b, Claude 3.7 Thinking) significantly outperform standard models.
  • Performance Collapse: On the hardest PBEBench instances (long cascades), even the best models' solve rates drop below 5%, even with high computational budgets.
  • Reordering is "Easy," Induction is Hard: While the best models can solve the reordering task (finding the order of given rules) with nearly 100% accuracy, they fail when they have to infer the rules from scratch.
  • Complexity Metrics: The authors found that "cascade length" is the strongest negative predictor of success. As the number of steps increases, the search space for valid rule sequences explodes.

Limitations and Future Work

  • Example Density: In PBEBench, individual rules often only modify a few examples. In real linguistics, "sound laws" are usually more regular and apply to almost all words containing a specific sound.
  • Search Efficiency: The random sampling method used to generate the benchmark becomes inefficient for very long, highly constrained cascades, leading to high rejection rates during data generation.
  • Future Directions: The authors suggest moving toward hybrid neuro-symbolic generation to create even more complex and linguistically realistic training and evaluation data. They also plan to explore how training on this synthetic data might improve a model's general-purpose reasoning.

Summary updated

BibTeX
@inproceedings{naik2026pbebench,
  author = {Atharva Naik and Prakam and Yash Mathur and Darsh Agrawal and Manav Nitin Kapadnis and Yuwei An and Clayton Marr and Carolyn P. Rosé and David R. Mortensen},
  title = {{PBEBench: A Multi-Step Programming by Examples Reasoning Benchmark inspired by Historical Linguistics}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.432},
}
Figure