Self-Renewal Prompt Optimizing with Implicit Reasoning

Zihan Liang, Ben Chen, Zhuoran Ran, Zihan Wang, Huangyu Dai, Yufei Ma, Dehong Gao, Xiaoyan Cai, Libin YangEMNLP 2024

Abstract

Prompt Optimization with Implicit Reasoning (POIR) is a novel framework that enables Large Language Models (LLMs) to autonomously refine user prompts to align with human intentions. By integrating a self-recirculating data collection loop with a training objective that encourages implicit reasoning about prompt-response relationships, POIR significantly outperforms existing alignment methods like Black-box Prompt Optimization (BPO) and Reinforcement Learning from Human Feedback (RLHF). Crucially, it achieves these gains without requiring expensive human-annotated data, leveraging model-specific self-improvement to bridge the "alignment gap."

Introduction: Bridging the Alignment Gap

Even state-of-the-art Large Language Models (LLMs) often struggle to interpret the nuances of human intent, leading to generic or off-target responses. This "alignment gap" is typically addressed through two primary avenues:

  1. Output Alignment: Techniques like RLHF or Direct Preference Optimization (DPO) tune model responses but require massive amounts of high-quality, human-labeled preference data.
  2. Input Alignment (Prompt Optimization): Secondary models rewrite user prompts to improve clarity and instruction following. However, existing methods like BPO often rely on rigid supervision from a teacher model (e.g., GPT-4), which may not generalize well to different architectures or unseen tasks.

POIR posits that a "one-size-fits-all" optimized prompt is suboptimal; optimization should be model-specific. By allowing a model to act as its own coach, POIR creates a self-improving system independent of external experts.

Paradigm Comparison and Performance Overview

Methodology: Self-Renewal and Implicit Reasoning

POIR introduces a two-stage "self-renewal" process designed to generate model-specific training data and optimize prompts through functional understanding.

The POIR Data Collection Pipeline and Optimizer Training Architecture

1. Self-Recirculating Data Collection Pipeline

Instead of relying on human annotators, the model generates its own training data through a multi-step process:

  • Prompt Generation: Starting from "seed" prompts, the model uses few-shot learning to generate thousands of diverse new prompts.
  • Self-Evaluation Loop: The model generates a response, critiques it using a multi-dimensional scale (accuracy, safety, etc.), and rewrites the prompt to address identified flaws. This continues until a high-quality threshold is met.
  • Preference Pair Construction: This process yields "good" and "bad" versions of prompts and responses, creating a rich, model-specific dataset for training.

2. Prompt Optimization with Implicit Reasoning

Standard optimizers learn a simple mapping from an original prompt to an optimized one. POIR adds Implicit Reasoning: during training via DPO, the model is tasked with generating the {Optimized Prompt + Expected Response} pair. By forcing the model to predict the final answer while rewriting the prompt, it implicitly learns the functional relationship between prompt modifications and output quality, acting as a form of "Chain-of-Thought" for the optimization process.

Experimental Evaluation

The authors evaluated POIR across four diverse benchmarks: Dolly Eval, Vicuna Eval, Self-Instruct Eval, and BPO-test Eval. Training was conducted across five model families: Qwen (7B/14B), Vicuna (7B/14B), and Mistral-7B.

Key Insights

  • The Homogeneity Advantage: Models perform best when trained on data they generated themselves. Cross-model training (e.g., Vicuna trained on Qwen-optimized data) resulted in lower performance, confirming that prompt optimization is highly model-dependent.
  • Implicit Reasoning as a Catalyst: Predicting the response during the prompt-writing phase acts as a powerful regularizer, preventing the model from merely memorizing stylistic changes and forcing an understanding of functional impact.
  • Scaling Benefits: The advantages of POIR scale with model size. For example, the win rate improvement over BPO increased from 9.2% on Qwen-7B to 25.6% on Qwen-14B.

Results

Using GPT-4 as a blind judge, POIR-aligned models achieved significant win rate increases ranging from 9.2% to 36.2% compared to BPO and standard DPO. Notably, POIR often outperformed BPO despite using no GPT-4 data for training. Furthermore, POIR improved scores on standard reasoning benchmarks like MMLU, ARC-C, and HellaSwag, suggesting that better prompting unlocks deeper latent capabilities.

Conclusion and Future Work

While POIR demonstrates significant gains, it remains dependent on high-quality initial "seed" prompts. Additionally, the self-evaluation loop is computationally intensive during the one-time data collection phase. Future research will explore distilling these "metacognitive" capabilities into models smaller than 7B, which currently struggle with accurate self-critique.

Summary updated

BibTeX
@inproceedings{liang2024self,
  author = {Zihan Liang and Ben Chen and Zhuoran Ran and Zihan Wang and Huangyu Dai and Yufei Ma and Dehong Gao and Xiaoyan Cai and Libin Yang},
  title = {{Self-Renewal Prompt Optimizing with Implicit Reasoning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.171},
}
Figure