Salvato in:
Dettagli Bibliografici
Autori principali: Yang, Sohee, Kim, Jonghyeon, Jang, Joel, Ye, Seonghyeon, Lee, Hyunji, Seo, Minjoon
Natura: Preprint
Pubblicazione: 2023
Soggetti:
Accesso online:https://arxiv.org/abs/2305.14877
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866911791149219840
author Yang, Sohee
Kim, Jonghyeon
Jang, Joel
Ye, Seonghyeon
Lee, Hyunji
Seo, Minjoon
author_facet Yang, Sohee
Kim, Jonghyeon
Jang, Joel
Ye, Seonghyeon
Lee, Hyunji
Seo, Minjoon
contents Previous works in prompt engineering for large language models have introduced different gradient-free probability-based prompt selection methods that aim to choose the optimal prompt among the candidates for a given task but have failed to provide a comprehensive and fair comparison between each other. In this paper, we propose a unified framework to interpret and evaluate the existing probability-based prompt selection methods by performing extensive experiments on 13 common and diverse NLP tasks. We find that each of the existing methods can be interpreted as some variant of the method that maximizes mutual information between the input and the predicted output (MI). Utilizing this finding, we develop several other combinatorial variants of MI and increase the effectiveness of the oracle prompt selection method from 87.79% to 94.98%, measured as the ratio of the performance of the selected prompt to that of the optimal oracle prompt. Furthermore, considering that all the methods rely on the output probability distribution of the model that might be biased, we propose a novel calibration method called Calibration by Marginalization (CBM) that is orthogonal to the existing methods and helps increase the prompt selection effectiveness of the best method to 96.85%, achieving 99.44% of the oracle prompt F1 without calibration.
format Preprint
id arxiv_https___arxiv_org_abs_2305_14877
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Improving Probability-based Prompt Selection Through Unified Evaluation and Analysis
Yang, Sohee
Kim, Jonghyeon
Jang, Joel
Ye, Seonghyeon
Lee, Hyunji
Seo, Minjoon
Computation and Language
Previous works in prompt engineering for large language models have introduced different gradient-free probability-based prompt selection methods that aim to choose the optimal prompt among the candidates for a given task but have failed to provide a comprehensive and fair comparison between each other. In this paper, we propose a unified framework to interpret and evaluate the existing probability-based prompt selection methods by performing extensive experiments on 13 common and diverse NLP tasks. We find that each of the existing methods can be interpreted as some variant of the method that maximizes mutual information between the input and the predicted output (MI). Utilizing this finding, we develop several other combinatorial variants of MI and increase the effectiveness of the oracle prompt selection method from 87.79% to 94.98%, measured as the ratio of the performance of the selected prompt to that of the optimal oracle prompt. Furthermore, considering that all the methods rely on the output probability distribution of the model that might be biased, we propose a novel calibration method called Calibration by Marginalization (CBM) that is orthogonal to the existing methods and helps increase the prompt selection effectiveness of the best method to 96.85%, achieving 99.44% of the oracle prompt F1 without calibration.
title Improving Probability-based Prompt Selection Through Unified Evaluation and Analysis
topic Computation and Language
url https://arxiv.org/abs/2305.14877