Task Facet Learning: A Structured Approach To Prompt Optimization

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 UNIPROMPT 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.

Authors

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.findings-acl.1206
Citations
1
Primary Topic
Reservoir Engineering and Simulation Methods
Type
article
Field-Weighted Citation Impact
1.15
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Task Facet Learning: A Structured Approach To Prompt Optimization

Hua Li, Nagarajan Natarajan, Amit Kumar Sharma, Jian Jiao et al.
1 citations
Reservoir Engineering and Simulation Methods
1.15
article

Task Facet Learning: A Structured Approach To Prompt Optimization

Hua Li, Nagarajan Natarajan, Amit Kumar Sharma, Jian Jiao, Gurusha Juneja, Gautam Jajoo
article en
1 citations

Abstract

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 UNIPROMPT 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.

Openalex Percentile: Top 20%
Reservoir Engineering and Simulation Methods
1.15
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.