Reflective Prompt Tuning through Language Model Function-Calling
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 18 of its 39 references that are in the map. First posted on arXiv 20 May 2026.
Builds on
18 of 39 references.
Closest ancestors · 1
Same direction, newest first
Other references · 17
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2023Can LLMs Express Their Uncertainty? An Empirical Evaluation of Confidence Elicitation in LLMscited by 946
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
- 2024ProSA: Assessing and Understanding the Prompt Sensitivity of LLMscited by 145
- 2024Agent-Pro: Learning to Evolve via Policy-Level Reflection and Optimizationcited by 93
- 2024Learning to Route LLMs with Confidence Tokenscited by 66
5 more
- 2025A Systematic Survey of Automatic Prompt Optimization Techniquescited by 61
- 2019Dynamic Evaluation of Transformer Language Modelscited by 23
- 2025FinLoRA: Benchmarking LoRA Methods for Fine-Tuning LLMs on Financial Datasetscited by 11
- 2026Are LLM Decisions Faithful to Verbal Confidence?cited by 6
- 2025ClusterFusion: Hybrid Clustering with Embedding Guidance and LLM Adaptationcited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.
- 2026Adaptive-GEPA: Make Your Harness Fit Heterogeneous Requests30 Sep 2026
Similar, not cited
Close in wording, no citation either way
- 2026Modular Prompt Optimization: Optimizing Structured Prompts with Section-Local Textual Gradients
- 2024GReaTer: Gradients over Reasoning Makes Smaller Language Models Strong Prompt Optimizers
- 2025PromptBridge: Cross-Model Prompt Transfer for Large Language Models
- 2025Self-Supervised Prompt Optimization
- 2025Rethinking Prompt Optimizers: From Prompt Merits to Optimization
- 2024PRompt Optimization in Multi-Step Tasks (PROMST): Integrating Human Feedback and Heuristic-based Sampling
- 2025Tournament of Prompts: Evolving LLM Instructions Through Structured Debates and Elo Ratings
- 2025Reflection-Enhanced Meta-Optimization Integrating TextGrad-style Prompt Optimization with Memory-Driven Self-Evolution