arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.13323cs.AIcs.LG
收藏

基于错误驱动的算术推理提示优化

Error-Driven Prompt Optimization for Arithmetic Reasoning

Deptartment of Data Science & Visualization, Faculty of Informatics, University of Debrecen(数据科学与可视化系,信息学院,德布勒恩大学)

Árpád Pándy, Róbert Lakatos, András Hajdu

AI总结:

提出一种错误驱动的提示优化框架,通过聚类错误预测迭代优化提示规则,使小型本地语言模型在算术推理任务中准确率达到70.8%,超越GPT-3.5 Turbo。

摘要:

人工智能的最新进展激发了人们对工业代理的兴趣,这些代理能够在表格数据工作流中支持金融和医疗等受监管领域的分析师。此类系统的关键能力是对结构化数据执行准确的算术运算,同时确保敏感信息永远不会离开安全的本地环境。在此,我们引入了一种用于算术推理的错误驱动优化框架,该框架增强了代码生成代理(CGA),特别应用于本地小型语言模型(SLM)。通过对领先的SLM(Qwen3 4B)进行系统评估,我们发现虽然基础模型在算术任务中表现出基本局限性,但我们提出的错误驱动方法通过聚类错误预测来迭代优化提示规则,显著提升了性能,将模型准确率提高到70.8%。我们的结果表明,开发可靠、可解释且可工业部署的AI助手不仅可以通过昂贵的微调实现,还可以通过系统的、错误驱动的提示优化来实现,从而使小型模型以符合隐私要求的方式超越大型语言模型(GPT-3.5 Turbo)。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑