Prompt Optimization with Human Annotations Using Pairwise Comparison

The performance of Large Language Models (LLMs) is highly dependent on the input prompt, which has led to several recent studies focused on prompt optimization. Optimizing prompts for generation tasks that align with user intent is particularly challenging due to the subjective nature of these tasks and the prohibitive costs associated with the extensive human annotations required for repeated evaluations. This paper addresses the problem of optimizing prompts for LLMs in generation tasks by utilizing user pairwise comparison feedback instead of numerical scores. We propose a framework that integrates user pairwise comparison feedback into the prompt optimization process by maintaining a dynamically ranked set of prompts. In each iteration, a new prompt is generated based on previous user pairwise annotations. We evaluated our approach and an existing score-based method on 26 generation tasks based on the Big-Gen benchmark, demonstrating that our method requires only <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathrm{O}(n)$</tex> human annotations for n iterations, whereas the score-based method requires <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathrm{O}(n^{2})$</tex> annotations for the same number of iterations. Furthermore, we conducted at-test analysis, which indicated no statistically significant difference in effectiveness between our approach and the score-based method. These results suggest that our approach achieves comparable effectiveness while substantially reducing the annotation workload.

Authors

Institutions

Publication Details

Published
2024-10-11
DOI
https://doi.org/10.1109/icebe62490.2024.00012
Primary Topic
Intelligent Tutoring Systems and Adaptive Learning
Type
article
Field-Weighted Citation Impact
0.00

Funders

Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Prompt Optimization with Human Annotations Using Pairwise Comparison

Shin-Jie Lee, Yung-En Lu
Intelligent Tutoring Systems and Adaptive Learning
article

Prompt Optimization with Human Annotations Using Pairwise Comparison

Shin-Jie Lee, Yung-En Lu
article en

Abstract

The performance of Large Language Models (LLMs) is highly dependent on the input prompt, which has led to several recent studies focused on prompt optimization. Optimizing prompts for generation tasks that align with user intent is particularly challenging due to the subjective nature of these tasks and the prohibitive costs associated with the extensive human annotations required for repeated evaluations. This paper addresses the problem of optimizing prompts for LLMs in generation tasks by utilizing user pairwise comparison feedback instead of numerical scores. We propose a framework that integrates user pairwise comparison feedback into the prompt optimization process by maintaining a dynamically ranked set of prompts. In each iteration, a new prompt is generated based on previous user pairwise annotations. We evaluated our approach and an existing score-based method on 26 generation tasks based on the Big-Gen benchmark, demonstrating that our method requires only <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathrm{O}(n)$</tex> human annotations for n iterations, whereas the score-based method requires <tex xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">$\mathrm{O}(n^{2})$</tex> annotations for the same number of iterations. Furthermore, we conducted at-test analysis, which indicated no statistically significant difference in effectiveness between our approach and the score-based method. These results suggest that our approach achieves comparable effectiveness while substantially reducing the annotation workload.

National Cheng Kung University (TW)
National Cheng Kung University Hospital
Openalex Percentile: Top 79%
Intelligent Tutoring Systems and Adaptive Learning
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.