Why Prompt Optimization Works, and Why It Sometimes Doesn't: A Causal-Inspired Edit-Level Analysis
Not on the map. Why?
Abstract (arXiv)
Automated prompt optimization methods (e.g., DSpy, TextGrad) can substantially improve the performance of large language model (LLM), however, their generalization ability across different tasks remains underperformed. In practice, the superiority of the optimized prompt on one benchmark often fails to transfer to another, and this limitation persists even when switching across different LLM backbones. To investigate the underexplored sources of heterogeneity in prompt performance, we conduct a causal inference-inspired observational analysis of optimized prompts across a diverse set of optimization frameworks, LLM backbones, and NLP benchmarks. To achieve the goal, we build upon the propensity-adjusted associational analysis together with multiple complementary representations of prompt edits, where the consistent task-conditioned edits patterns are identified. We find that complexity-increasing and meta-instructional edits are negatively associated with mathematical and multi-hop reasoning performance, whereas step-by-step and meta-cognitive edits improve logical and sequential reasoning tasks. These effects are robust across cognitive-load annotations, surface-level text features, and edit-motif analyses, and can generalize across optimization frameworks. Overall, these results indicate that prompt optimization failures arise from systematic interactions between edit families and task characteristics rather than random optimization artifacts, providing feature-level characterization of optimizer behavior and motivating future task-conditioned optimizer design.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 33 of its 48 references that are in the map. First posted on arXiv 26 May 2026.
Builds on
33 of 48 references.
References · 33
- 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
- 2021Prefix-Tuning: Optimizing Continuous Prompts for Generationcited by 3,878
- 2021The Power of Scale for Parameter-Efficient Prompt Tuningcited by 3,769
- 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,793
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,767
- 2022Rethinking the Role of Demonstrations: What Makes In-Context Learning Work?cited by 1,413
- 2021Calibrate Before Use: Improving Few-Shot Performance of Language Modelscited by 1,371
- 2020Making Pre-trained Language Models Better Few-shot Learnerscited by 1,255
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,122
- 2023Large Language Models as Optimizerscited by 830
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 778
- 2021Did Aristotle Use a Laptop? A Question Answering Benchmark with Implicit Reasoning Strategiescited by 736
21 more
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2015Estimation and Inference of Heterogeneous Treatment Effects using Random Forestscited by 597
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2016Solving General Arithmetic Word Problemscited by 353
- 2021Do Prompt-Based Models Really Understand the Meaning of their Prompts?cited by 324
- 2019Measuring Compositional Generalization: A Comprehensive Method on Realistic Datacited by 280
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
- 2021Surface Form Competition: Why the Highest Probability Answer Isn't Always Rightcited by 256
- 2023Can Large Language Models Infer Causation from Correlation?cited by 142
- 2023Faithful Explanations of Black-box NLP Models Using LLM-generated Counterfactualscited by 44
- 2024Causal Inference with Large Language Model: A Surveycited by 31
- 2024End-To-End Causal Effect Estimation from Unstructured Natural Language Datacited by 18
- 2025Compositional Causal Reasoning Evaluation in Language Modelscited by 6
- 2025Automatic Prompt Optimization for Knowledge Graph Construction: Insights from an Empirical Studycited by 6
- 2026Optimizing Prompts for Large Language Models: A Causal Approachcited by 3
- 2026Multi-Sourced, Multi-Agent Evidence Retrieval for Fact-Checkingcited by 3
- 2026Prompt Optimization Is a Coin Flip: Diagnosing When It Helps in Compound AI Systemscited by 3
- 2026Self-Optimizing Multi-Agent Systems for Deep Researchcited by 2
- 2026TextReg: Mitigating Prompt Distributional Overfitting via Regularized Text-Space Optimizationcited by 2
- 2026A Reproducible Optimisation Protocol for Calibrating Prompt-Based Large Language Model Workflows in Evidence Synthesiscited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Eliciting Causal Abilities in Large Language Models for Reasoning Tasks
- 2024GReaTer: Gradients over Reasoning Makes Smaller Language Models Strong Prompt Optimizers
- 2025Self-Supervised Prompt Optimization
- 2025How to Auto-optimize Prompts for Domain Tasks? Adaptive Prompting and Reasoning through Evolutionary Domain Knowledge Adaptation
- 2026Modular Prompt Optimization: Optimizing Structured Prompts with Section-Local Textual Gradients
- 2025Better by Comparison: Retrieval-Augmented Contrastive Reasoning for Automatic Prompt Optimization
- 2025Cross-Lingual Prompt Steerability: Towards Accurate and Robust LLM Behavior across Languages
- 2026How Much Prompt Is Enough? A Blackbox Minimization of Few-Shots in LLMs