Stabilizing Black-Box Prompt Optimization with Textual Regularization and Signal Aggregation
Not on the map. Why?
Abstract (arXiv)
An increasing number of NLP applications interact with large language models (LLMs) through black-box APIs, making prompt engineering critical for controlling model behavior. Recent Automatic Prompt Optimization (APO) methods iteratively refine prompts using model-generated critiques (often called textual gradients), but they predominantly optimize from failures and underutilize information contained in correct predictions, leading to instability and semantic drift. We propose TRAS (Textual Regularization with Aggregated Signals), a feedback-centric framework that is plug-and-play with existing APO search backbones. It retains the standard textual gradient signal from prior work for error correction and introduces a complementary textual regularizer derived from successful predictions to preserve beneficial prompt components. Because both signals are stochastic and can be noisy, we further introduce Monte Carlo Signal Aggregation (MCSA), which samples multiple gradients or regularizers and aggregates them into a single actionable directive, emphasizing consistent, actionable advice while filtering out outliers. Motivated by rapid model churn, we also formalize Automatic Prompt Migration (APM), the practical problem of adapting an expert prompt across model versions or API providers without losing critical instructions. Across standard APO and APM scenarios, our approach consistently outperforms strong baselines, yielding higher accuracy, faster convergence, and lower query cost, while substantially reducing the degradation observed under naive prompt migration.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 50 of its 64 references that are in the map. First posted on arXiv 14 Jul 2025.
Builds on
50 of 64 references.
References · 50
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2023GPT-4 Technical Reportcited by 18,132
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
- 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
38 more
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
- 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
- 2019Similarity of Neural Network Representations Revisitedcited by 1,695
- 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
- 2023Teaching Large Language Models to Self-Debugcited by 963
- 2023Large Language Models as Optimizerscited by 830
- 2020A Primer in BERTology: What we know about how BERT workscited by 807
- 2023TIES-Merging: Resolving Interference When Merging Modelscited by 795
- 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 679
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2022BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Miningcited by 531
- 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
- 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 339
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 329
- 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 226
- 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 220
- 2022Optimizing Prompts for Text-to-Image Generationcited by 204
- 2023Model Breadcrumbs: Scaling Multi-Task Model Merging with Sparse Maskscited by 130
- 2023Multitask Prompt Tuning Enables Parameter-Efficient Transfer Learningcited by 115
- 2022Reliability of CKA as a Similarity Measure in Deep Learningcited by 82
- 2022Probing Representation Forgetting in Supervised and Unsupervised Continual Learningcited by 74
- 2023InstructZero: Efficient Instruction Optimization for Black-Box Large Language Modelscited by 68
- 2022TEMPERA: Test-Time Prompting via Reinforcement Learningcited by 50
- 2025A Survey of Automatic Prompt Engineering: An Optimization Perspectivecited by 41
- 2023Prototype-Sample Relation Distillation: Towards Replay-Free Continual Learningcited by 34
- 2023When do you need Chain-of-Thought Prompting for ChatGPT?cited by 34
- 2024Symbolic Prompt Program Search: A Structure-Aware Approach to Efficient Compile-Time Prompt Optimizationcited by 29
- 2023Let's Do a Thought Experiment: Using Counterfactuals to Improve Moral Reasoningcited by 20
- 2023ToxBuster: In-game Chat Toxicity Buster with BERTcited by 5
- 2019Toponym Identification in Epidemiology Articles - A Deep Learning Approachcited by 1
Built on by
Citing papers per year: 2025: 1.
1 paper.
- 2025UniAPO: Unified Multimodal Automated Prompt Optimizationcited by 1
- 2025UniAPO: Unified Multimodal Automated Prompt Optimization25 Aug 2025