mlsanityData to 7 Oct 2026

Stabilizing Black-Box Prompt Optimization with Textual Regularization and Signal Aggregation

arXiv 2507.09839 ↗First posted 14 Jul 2025cs.LGcited by 1

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

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  4. 2024The Llama 3 Herd of Modelscited by 14,192
  5. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  6. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  8. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  9. 2019BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehensioncited by 5,874
  10. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  11. 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
  12. 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
38 more
  1. 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
  2. 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
  3. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  4. 2022Constitutional AI: Harmlessness from AI Feedbackcited by 2,950
  5. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
  6. 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
  7. 2019SuperGLUE: A Stickier Benchmark for General-Purpose Language Understanding Systemscited by 1,718
  8. 2019Similarity of Neural Network Representations Revisitedcited by 1,695
  9. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  10. 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
  11. 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
  12. 2023Teaching Large Language Models to Self-Debugcited by 963
  13. 2023Large Language Models as Optimizerscited by 830
  14. 2020A Primer in BERTology: What we know about how BERT workscited by 807
  15. 2023TIES-Merging: Resolving Interference When Merging Modelscited by 795
  16. 2023Language Models are Super Mario: Absorbing Abilities from Homologous Models as a Free Lunchcited by 679
  17. 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
  18. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  19. 2022BioGPT: Generative Pre-trained Transformer for Biomedical Text Generation and Miningcited by 531
  20. 2021Learning How to Ask: Querying LMs with Mixtures of Soft Promptscited by 376
  21. 2023StructGPT: A General Framework for Large Language Model to Reason over Structured Datacited by 339
  22. 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 329
  23. 2023PromptAgent: Strategic Planning with Language Models Enables Expert-level Prompt Optimizationcited by 226
  24. 2023Better Zero-Shot Reasoning with Role-Play Promptingcited by 220
  25. 2022Optimizing Prompts for Text-to-Image Generationcited by 204
  26. 2023Model Breadcrumbs: Scaling Multi-Task Model Merging with Sparse Maskscited by 130
  27. 2023Multitask Prompt Tuning Enables Parameter-Efficient Transfer Learningcited by 115
  28. 2022Reliability of CKA as a Similarity Measure in Deep Learningcited by 82
  29. 2022Probing Representation Forgetting in Supervised and Unsupervised Continual Learningcited by 74
  30. 2023InstructZero: Efficient Instruction Optimization for Black-Box Large Language Modelscited by 68
  31. 2022TEMPERA: Test-Time Prompting via Reinforcement Learningcited by 50
  32. 2025A Survey of Automatic Prompt Engineering: An Optimization Perspectivecited by 41
  33. 2023Prototype-Sample Relation Distillation: Towards Replay-Free Continual Learningcited by 34
  34. 2023When do you need Chain-of-Thought Prompting for ChatGPT?cited by 34
  35. 2024Symbolic Prompt Program Search: A Structure-Aware Approach to Efficient Compile-Time Prompt Optimizationcited by 29
  36. 2023Let's Do a Thought Experiment: Using Counterfactuals to Improve Moral Reasoningcited by 20
  37. 2023ToxBuster: In-game Chat Toxicity Buster with BERTcited by 5
  38. 2019Toponym Identification in Epidemiology Articles - A Deep Learning Approachcited by 1

Built on by

Cited by year

Citing papers per year: 2025: 1.

1 paper.