Once Upon an Input: Reasoning via Per-Instance Program Synthesis
On the map: LLM reasoning → Test-time compute and efficient thinking
Abstract (arXiv)
Large language models (LLMs) excel at zero-shot inference but continue to struggle with complex, multi-step reasoning. Recent methods that augment LLMs with intermediate reasoning steps such as Chain of Thought (CoT) and Program of Thought (PoT) improve performance but often produce undesirable solutions, especially in algorithmic domains. We introduce Per-Instance Program Synthesis (PIPS), a method that generates and refines programs at the instance-level using structural feedback without relying on task-specific guidance or explicit test cases. To further improve performance, PIPS incorporates a confidence metric that dynamically chooses between direct inference and program synthesis on a per-instance basis. Experiments across three frontier LLMs and 30 benchmarks including all tasks of Big Bench Extra Hard (BBEH), visual question answering tasks, relational reasoning tasks, and mathematical reasoning tasks show that PIPS improves the absolute harmonic mean accuracy by up to 8.6% and 9.4% compared to PoT and CoT respectively, and reduces undesirable program generations by 65.1% on the algorithmic tasks compared to PoT with Gemini-2.0-Flash.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Test-time compute and efficient thinking, one of 17 directions in LLM reasoning. Builds on 9 of its 46 references that are in the map. First posted on arXiv 26 Oct 2025.
Builds on
9 of 46 references.
Closest ancestors · 2
Same direction, newest first
- 2024Do NOT Think That Much for 2+3=? On the Overthinking of o1-Like LLMs30 Dec
- 2022Language Models (Mostly) Know What They Know11 Jul
Other references · 7
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,146
- 2022Code as Policies: Language Model Programs for Embodied Controlcited by 1,172
- 2023Gemini: A Family of Highly Capable Multimodal Modelscited by 810
- 2023Measuring Faithfulness in Chain-of-Thought Reasoningcited by 668
- 2025BIG-Bench Extra Hardcited by 123
- 2014Learning to Executecited by 105
- 2025The Road to Generalizable Neuro-Symbolic Learning Should be Paved with Foundation Modelscited by 3
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025SLR: Automated Synthesis for Scalable Logical Reasoning
- 2025Think, Prune, Train, Improve: Scaling Reasoning without Scaling Models
- 2025Reasoning on a Budget: A Survey of Adaptive and Controllable Test-Time Compute in LLMs
- 2026Tandem: Riding Together with Large and Small Language Models for Efficient Reasoning
- 2024Inference Scaling vs Reasoning: An Empirical Analysis of Compute-Optimal LLM Problem-Solving
- 2025Efficient Inference for Large Reasoning Models: A Survey
- 2025An Empirical Study of Reasoning Steps in Thinking Code LLMs
- 2025Don't Overthink it. Preferring Shorter Thinking Chains for Improved LLM Reasoning