mlsanityData to 14 Oct 2026

Error-Driven Prompt Optimization for Arithmetic Reasoning

arXiv 2512.13323 ↗First posted 15 Dec 2025cs.AI cs.LGcited by 1

On the map: LLM reasoning → Mathematical reasoning

Abstract (arXiv)

Recent advancements in artificial intelligence have sparked interest in industrial agents capable of supporting analysts in regulated sectors, such as finance and healthcare, within tabular data workflows. A key capability for such systems is performing accurate arithmetic operations on structured data while ensuring sensitive information never leaves secure, on-premises environments. Here, we introduce an error-driven optimization framework for arithmetic reasoning that enhances a Code Generation Agent (CGA), specifically applied to on-premises small language models (SLMs). Through a systematic evaluation of a leading SLM (Qwen3 4B), we find that while the base model exhibits fundamental limitations in arithmetic tasks, our proposed error-driven method, which clusters erroneous predictions to refine prompt-rules iteratively, dramatically improves performance, elevating the model's accuracy to 70.8%. Our results suggest that developing reliable, interpretable, and industrially deployable AI assistants can be achieved not only through costly fine-tuning but also via systematic, error-driven prompt optimization, enabling small models to surpass larger language models (GPT-3.5 Turbo) in a privacy-compliant manner.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Placed in Mathematical reasoning, one of 17 directions in LLM reasoning. Builds on 14 of its 32 references that are in the map. First posted on arXiv 15 Dec 2025.

Builds on

14 of 32 references.

References · 14

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2025Qwen3 Technical Reportcited by 8,820
  3. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,708
  4. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,182
  5. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,442
  6. 2023Mistral 7Bcited by 3,164
  7. 2022Program of Thoughts Prompting: Disentangling Computation from Reasoning for Numerical Reasoning Taskscited by 1,076
  8. 2022PAL: Program-aided Language Modelscited by 652
  9. 2015Compositional Semantic Parsing on Semi-Structured Tablescited by 515
  10. 2020TAPAS: Weakly Supervised Table Parsing via Pre-trainingcited by 434
  11. 2021TAT-QA: A Question Answering Benchmark on a Hybrid of Tabular and Textual Content in Financecited by 408
  12. 2021TAPEX: Table Pre-training via Learning a Neural SQL Executorcited by 235
2 more
  1. 2020Open Question Answering over Tables and Textcited by 163
  2. 2024Large Language Model for Table Processing: A Surveycited by 52

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2024Self-training Language Models for Arithmetic Reasoning
  2. 2025PREMISE: Scalable and Strategic Prompt Optimization for Efficient Mathematical Reasoning in Large Models
  3. 2026Testing LLM Arithmetic Reasoning Generalization with Automatic Numeric-Remapping Attacks
  4. 2025A Survey on Mathematical Reasoning and Optimization with Large Language Models
  5. 2025Probing for Arithmetic Errors in Language Models
  6. 2024How Numerical Precision Affects Arithmetical Reasoning Capabilities of LLMs
  7. 2026Artificial Intelligence for Mathematical Reasoning: An Integrated Survey of Language Models, Neuro-symbolic Systems, and Verified Discovery
  8. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models