Steering Reasoning and Tool-Use in Black-box LLMs with Learned Prompting Policies

Ketan Todi
Ambarish Jash
Sukhdeep Sodhi
(2026)

Abstract

Natural Language Processing (NLP) has shifted full-parameter model fine-tuning to one of interaction with large, frozen "black-box" Large Language Models (LLMs). This transition, driven by the increasing computational costs of training foundation models and the limited or no access to model weights, has elevated prompt engineering from a heuristic art form to a critical, albeit fragile, optimization challenge. While manual prompt design remains the dominant mode of adaptation, it is inherently not scalable and sensitive to variations in model behavior. This paper presents an investigation into a Reinforcement Learning (RL) framework for Automatic Prompt Optimization (APO), specifically characterizing the "prompter policy" technique. In this architecture, a smaller, white-box model (the prompter) is trained via Policy Gradient methods to generate optimal natural language instructions that guide a larger, more capable, frozen, and inaccessible LLM (the worker) toward maximizing task-specific rewards. We formalize this interaction as a sequential decision-making process, demonstrating that RL can effectively distill complex reasoning strategies into discrete, interpretable tokens. Further, we augment this training with rich text feedback implemented with a contrastive experience buffer combining scalar and text gradients to improve sample efficiency.

Our experimental analysis focuses on the recently published Big Bench Extra Hard (BBEH) suite and the Tau Bench suites that cover a range of reasoning and tool-use tasks, specifically dissecting performance on Disambiguation QA (DQA), Dyck Languages, and Web of Lies etc. We report substantial improvements in accuracy metrics raising performance from baseline levels of approximately 55\% to nearly 90\% in logic intensive domains, and analyze the structural evolution of prompts from generic instructions to highly specialized, role and task based reasoning protocols and algorithms. We also show similar gains with Tau-Bench suite of tool-use tasks that require multi-step planning and tool-use. We include baselines with GEPA algorithm for all cases. Finally, we outline some extensions of this research toward multi-agent Reinforcement Learning and personalized prompt generation for further research.

Research Areas

×