Task Facet Learning: A Structured Approach to Prompt Optimization
Not on the map. Why?
Abstract (arXiv)
Given a task in the form of a basic description and its training examples, prompt optimization is the problem of synthesizing the given information into a text prompt for a large language model. Humans solve this problem by also considering the different facets that define a task (e.g., counter-examples, explanations, analogies) and including them in the prompt. However, it is unclear whether existing algorithmic approaches, based on iteratively editing a given prompt or automatically selecting a few in-context examples, can cover the multiple facets required to solve a complex task. In this work, we view prompt optimization as that of learning multiple facets of a task from a set of training examples. We exploit structure in the prompt optimization problem and break down a prompt into loosely coupled semantic sections. The proposed algorithm, UniPrompt, (1) clusters the input space and uses clustered batches so that each batch likely corresponds to a different facet of the task, and (2) utilizes a feedback mechanism to propose adding, editing or deleting a section, which in turn is aggregated over a batch to capture generalizable facets. Empirical evaluation on multiple datasets and a real-world task shows that prompts generated using shortname obtain higher accuracy than human-tuned prompts and those from state-of-the-art methods. In particular, our algorithm can generate long, complex prompts that existing methods are unable to generate. Code for UniPrompt is available at https://aka.ms/uniprompt.
Key facts. Cited by 17 papers in the map (data through 7 Oct 2026). Builds on 33 of its 56 references that are in the map. First posted on arXiv 15 Jun 2024.
Builds on
33 of 56 references.
References · 33
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2021Training Verifiers to Solve Math Word Problemscited by 9,743
- 2021Evaluating Large Language Models Trained on Codecited by 8,053
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2022Large Language Models are Zero-Shot Reasonerscited by 4,323
- 2021Program Synthesis with Large Language Modelscited by 3,509
- 2021Pre-train, Prompt, and Predict: A Systematic Survey of Prompting Methods in Natural Language Processingcited by 2,222
- 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
- 2020What Disease does this Patient Have? A Large-scale Open Domain Question Answering Dataset from Medical Examscited by 1,324
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,020
21 more
- 2023Large Language Models as Optimizerscited by 830
- 2017Crowdsourcing Multiple Choice Science Questionscited by 742
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
- 2022RLPrompt: Optimizing Discrete Text Prompts with Reinforcement Learningcited by 361
- 2023Can Generalist Foundation Models Outcompete Special-Purpose Tuning? Case Study in Medicinecited by 319
- 2022Active Example Selection for In-Context Learningcited by 195
- 2022Self-Adaptive In-Context Learning: An Information Compression Perspective for In-Context Example Selection and Orderingcited by 158
- 2020ETHOS: an Online Hate Speech Detection Datasetcited by 66
- 2023Coverage-based Example Selection for In-Context Learningcited by 58
- 2022TEMPERA: Test-Time Prompting via Reinforcement Learningcited by 50
- 2023On Robustness of Prompt-based Semantic Parsing with Large Pre-trained Language Model: An Empirical Study on Codexcited by 41
- 2017Global optimization of Lipschitz functionscited by 39
- 2023Use Your INSTINCT: INSTruction optimization for LLMs usIng Neural bandits Coupled with Transformerscited by 29
- 2023PREFER: Prompt Ensemble Learning via Feedback-Reflect-Refinecited by 28
- 2022TextGrad: Advancing Robustness Evaluation in NLP by Gradient-Driven Optimizationcited by 21
- 2023Auto-Instruct: Automatic Instruction Generation and Ranking for Black-Box Language Modelscited by 21
- 2023Automatic Engineering of Long Promptscited by 14
- 2023Learning to Initialize: Can Meta Learning Improve Cross-task Generalization in Prompt Tuning?cited by 11
- 2023Evoke: Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editingcited by 11
- 2024NICE: To Optimize In-Context Examples or Not?cited by 9
- 2024Effective In-Context Example Selection through Data Compressioncited by 2
Built on by
Citing papers per year: 2024: 3; 2025: 9; 2026: 5.
17 papers.
Sort:
By area:
- 2025A Systematic Survey of Automatic Prompt Optimization Techniquescited by 61
- 2024Efficient and Accurate Prompt Optimization: the Benefit of Memory in Exemplar-Guided Reflectioncited by 18
- 2024A LLM-Powered Automatic Grading Framework with Human-Level Guidelines Optimizationcited by 16
- 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithmcited by 6
- 2025Model Performance-Guided Evaluation Data Selection for Effective Prompt Optimizationcited by 5
- 2025Unlabeled Data Improves Fine-Grained Image Zero-shot Classification with Multimodal LLMscited by 5
- 2026Modular Prompt Optimization: Optimizing Structured Prompts with Section-Local Textual Gradientscited by 5
- 2026Adaptive Prompt Structure Factorization: A Framework for Self-Discovering and Optimizing Compositional Prompt Programscited by 5
- 2024STACKFEED: Structured Textual Actor-Critic Knowledge Base Editing with FeedBackcited by 4
- 2025FedPOB: Sample-Efficient Federated Prompt Optimization via Banditscited by 3
- 2025Reasoning with Preference Constraints: A Benchmark for Language Models in Many-to-One Matching Marketscited by 0
- 2025The Impact of Role Design in In-Context Learning for Large Language Modelscited by 0
5 more
- 2025ELPO: Ensemble Learning Based Prompt Optimization for Large Language Modelscited by 0
- 2025PromptTailor: Multi-turn Intent-Aligned Prompt Synthesis for Lightweight LLMscited by 0
- 2026Towards Spec Learning: Inference-Time Alignment from Preference Pairscited by 0
- 2026SEPO: Evidence-Grounded Prompt Optimization via Structural Editingcited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptationscited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026SEPO: Evidence-Grounded Prompt Optimization via Structural Editing28 Aug 2026
- 2026Towards Spec Learning: Inference-Time Alignment from Preference Pairs22 Jun 2026
- 2026Adaptive Prompt Structure Factorization: A Framework for Self-Discovering and Optimizing Compositional Prompt Programs8 Apr 2026
- 2026Modular Prompt Optimization: Optimizing Structured Prompts with Section-Local Textual Gradients7 Jan 2026
- 2025PromptTailor: Multi-turn Intent-Aligned Prompt Synthesis for Lightweight LLMs20 Nov 2025
- 2025ELPO: Ensemble Learning Based Prompt Optimization for Large Language Models20 Nov 2025
- 2025FedPOB: Sample-Efficient Federated Prompt Optimization via Bandits29 Sep 2025
- 2025The Impact of Role Design in In-Context Learning for Large Language Models27 Sep 2025
- 2025Reasoning with Preference Constraints: A Benchmark for Language Models in Many-to-One Matching Markets16 Sep 2025
- 2025Unlabeled Data Improves Fine-Grained Image Zero-shot Classification with Multimodal LLMs1 Jun 2025
- 2025Model Performance-Guided Evaluation Data Selection for Effective Prompt Optimization15 May 2025
5 more
- 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithm26 Feb 2025
- 2025A Systematic Survey of Automatic Prompt Optimization Techniques24 Feb 2025
- 2024Efficient and Accurate Prompt Optimization: the Benefit of Memory in Exemplar-Guided Reflection12 Nov 2024
- 2024STACKFEED: Structured Textual Actor-Critic Knowledge Base Editing with FeedBack14 Oct 2024
- 2024A LLM-Powered Automatic Grading Framework with Human-Level Guidelines Optimization3 Oct 2024
- 2026Modular Prompt Optimization: Optimizing Structured Prompts with Section-Local Textual Gradientscited by 5
- 2026Adaptive Prompt Structure Factorization: A Framework for Self-Discovering and Optimizing Compositional Prompt Programscited by 5
- 2025Reasoning with Preference Constraints: A Benchmark for Language Models in Many-to-One Matching Marketscited by 0
- 2026Adaptive Prompt Structure Factorization: A Framework for Self-Discovering and Optimizing Compositional Prompt Programs8 Apr 2026
- 2026Modular Prompt Optimization: Optimizing Structured Prompts with Section-Local Textual Gradients7 Jan 2026
- 2025Reasoning with Preference Constraints: A Benchmark for Language Models in Many-to-One Matching Markets16 Sep 2025
- 2025A Systematic Survey of Automatic Prompt Optimization Techniquescited by 61
- 2024Efficient and Accurate Prompt Optimization: the Benefit of Memory in Exemplar-Guided Reflectioncited by 18
- 2024A LLM-Powered Automatic Grading Framework with Human-Level Guidelines Optimizationcited by 16
- 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithmcited by 6
- 2025Model Performance-Guided Evaluation Data Selection for Effective Prompt Optimizationcited by 5
- 2025FedPOB: Sample-Efficient Federated Prompt Optimization via Banditscited by 3
- 2025The Impact of Role Design in In-Context Learning for Large Language Modelscited by 0
- 2025ELPO: Ensemble Learning Based Prompt Optimization for Large Language Modelscited by 0
- 2025PromptTailor: Multi-turn Intent-Aligned Prompt Synthesis for Lightweight LLMscited by 0
- 2026SEPO: Evidence-Grounded Prompt Optimization via Structural Editingcited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptationscited by 0
- 2026Efficient Task Adaptation in Large Language Models: A Survey of Weight-Based, Prompt-Based, and Embedding-Based Adaptations1 Oct 2026
- 2026SEPO: Evidence-Grounded Prompt Optimization via Structural Editing28 Aug 2026
- 2025PromptTailor: Multi-turn Intent-Aligned Prompt Synthesis for Lightweight LLMs20 Nov 2025
- 2025ELPO: Ensemble Learning Based Prompt Optimization for Large Language Models20 Nov 2025
- 2025FedPOB: Sample-Efficient Federated Prompt Optimization via Bandits29 Sep 2025
- 2025The Impact of Role Design in In-Context Learning for Large Language Models27 Sep 2025
- 2025Model Performance-Guided Evaluation Data Selection for Effective Prompt Optimization15 May 2025
- 2025A Survey of Automatic Prompt Optimization with Instruction-focused Heuristic-based Search Algorithm26 Feb 2025
- 2025A Systematic Survey of Automatic Prompt Optimization Techniques24 Feb 2025
- 2024Efficient and Accurate Prompt Optimization: the Benefit of Memory in Exemplar-Guided Reflection12 Nov 2024
- 2024A LLM-Powered Automatic Grading Framework with Human-Level Guidelines Optimization3 Oct 2024