菜单

关于 🐙 GitHub
arXiv 提交日期: 2026-05-20
📄 Abstract - Reflective Prompt Tuning through Language Model Function-Calling

Large language models (LLMs) have become increasingly capable of following instructions and complex reasoning, making prompting a flexible interface for adapting models without parameter updates. Yet prompt design remains labor-intensive and highly sensitive to formatting, phrasing, and instruction order, motivating automated prompt optimization methods that reduce manual effort while preserving inference-time flexibility. However, existing methods often search over prompt candidates or use fixed critique-refine pipelines driven by individual examples or small batches, limiting their ability to capture systematic error patterns and make targeted edits grounded in failure history. We propose Reflective Prompt Tuning (RPT), a framework that uses LLM function calling to simulate the iterative workflow of human prompt engineers. An LLM optimizer calls a diagnostic function that evaluates the target model over an entire optimization set, summarizes recurring failure modes, and returns a structured diagnostic report. The optimizer uses this report, together with an accumulated memory of prior reports, to revise the prompt for the next iteration. RPT further supports confidence-aware optimization by using calibration signals in diagnostic feedback and final prompt selection. Across three reasoning tasks, RPT improves over initial prompts by up to 12.9 points, remains competitive with state of the art, and improves confidence calibration. Our analyses show that RPT is especially effective on multi-hop and mathematical reasoning, producing targeted prompt revisions that align with diagnosed failure patterns and lead to gains in task performance and calibration.

顶级标签: llm prompt optimization model training
详细标签: prompt tuning function calling failure diagnosis confidence calibration reasoning tasks 或 搜索:

通过语言模型函数调用实现反思性提示调优 / Reflective Prompt Tuning through Language Model Function-Calling


1️⃣ 一句话总结

本文提出了一种名为反思性提示调优(RPT)的新框架,它让语言模型像人类工程师一样,通过自动调用诊断函数分析模型在整体数据集上的错误模式,并积累历史报告来迭代优化提示词,从而显著提升模型在复杂推理任务上的准确性和置信度校准。

源自 arXiv: 2605.21781