Flatness-Aware Prompt Selection Improves Accuracy and Sample Efficiency

With growing capabilities of large language models, prompting them has become the dominant way to access them. This has motivated the development of strategies for automatically selecting effective language prompts. In this paper, we introduce prompt flatness, a new metric to quantify the expected u...

Full description

Saved in:
Bibliographic Details
Published inarXiv.org
Main Authors Shen, Lingfeng, Tan, Weiting, Zheng, Boyuan, Khashabi, Daniel
Format Paper
LanguageEnglish
Published Ithaca Cornell University Library, arXiv.org 23.10.2023
Subjects
Online AccessGet full text

Cover

Loading…
Abstract With growing capabilities of large language models, prompting them has become the dominant way to access them. This has motivated the development of strategies for automatically selecting effective language prompts. In this paper, we introduce prompt flatness, a new metric to quantify the expected utility of a language prompt. This metric is inspired by flatness regularization in statistical learning that quantifies the robustness of the model towards its parameter perturbations. We provide theoretical foundations for this metric and its relationship with other prompt selection metrics, providing a comprehensive understanding of existing methods. Empirically, we show that combining prompt flatness with existing metrics improves both performance and sample efficiency. Our metric outperforms the previous prompt selection metrics with an average increase of 5% in accuracy and 10% in Pearson correlation across 6 classification benchmarks.
AbstractList With growing capabilities of large language models, prompting them has become the dominant way to access them. This has motivated the development of strategies for automatically selecting effective language prompts. In this paper, we introduce prompt flatness, a new metric to quantify the expected utility of a language prompt. This metric is inspired by flatness regularization in statistical learning that quantifies the robustness of the model towards its parameter perturbations. We provide theoretical foundations for this metric and its relationship with other prompt selection metrics, providing a comprehensive understanding of existing methods. Empirically, we show that combining prompt flatness with existing metrics improves both performance and sample efficiency. Our metric outperforms the previous prompt selection metrics with an average increase of 5% in accuracy and 10% in Pearson correlation across 6 classification benchmarks.
Author Shen, Lingfeng
Zheng, Boyuan
Khashabi, Daniel
Tan, Weiting
Author_xml – sequence: 1
  givenname: Lingfeng
  surname: Shen
  fullname: Shen, Lingfeng
– sequence: 2
  givenname: Weiting
  surname: Tan
  fullname: Tan, Weiting
– sequence: 3
  givenname: Boyuan
  surname: Zheng
  fullname: Zheng, Boyuan
– sequence: 4
  givenname: Daniel
  surname: Khashabi
  fullname: Khashabi, Daniel
BookMark eNqNi0ELgjAYQEcUZOV_GHQW5pa5jhJa3QK7y1jfQJmbbbPw3-ehH9DpHd57G7Q01sACRZSxNOEHStco9r4jhNBjTrOMRehSaREMeJ8UH-EA353th4Br0CBDaw2-9YOzb_C4kHJ0Qk5YmCeuRT9owKVSrWzByGmHVkpoD_GPW7Svysf5msz3awQfms6OzsyqoTzNOMvJibP_qi9PJT1f
ContentType Paper
Copyright 2023. This work is published under http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
Copyright_xml – notice: 2023. This work is published under http://creativecommons.org/licenses/by/4.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.
DBID 8FE
8FG
ABJCF
ABUWG
AFKRA
AZQEC
BENPR
BGLVJ
CCPQU
DWQXO
HCIFZ
L6V
M7S
PIMPY
PQEST
PQQKQ
PQUKI
PRINS
PTHSS
DatabaseName ProQuest SciTech Collection
ProQuest Technology Collection
Materials Science & Engineering Collection
ProQuest Central (Alumni Edition)
ProQuest Central
ProQuest Central Essentials
ProQuest Central
Technology Collection
ProQuest One Community College
ProQuest Central Korea
SciTech Premium Collection
ProQuest Engineering Collection
Engineering Database
Publicly Available Content Database
ProQuest One Academic Eastern Edition (DO NOT USE)
ProQuest One Academic
ProQuest One Academic UKI Edition
ProQuest Central China
Engineering Collection
DatabaseTitle Publicly Available Content Database
Engineering Database
Technology Collection
ProQuest Central Essentials
ProQuest One Academic Eastern Edition
ProQuest Central (Alumni Edition)
SciTech Premium Collection
ProQuest One Community College
ProQuest Technology Collection
ProQuest SciTech Collection
ProQuest Central China
ProQuest Central
ProQuest Engineering Collection
ProQuest One Academic UKI Edition
ProQuest Central Korea
Materials Science & Engineering Collection
ProQuest One Academic
Engineering Collection
DatabaseTitleList Publicly Available Content Database
Database_xml – sequence: 1
  dbid: 8FG
  name: ProQuest Technology Collection
  url: https://search.proquest.com/technologycollection1
  sourceTypes: Aggregation Database
DeliveryMethod fulltext_linktorsrc
Discipline Physics
EISSN 2331-8422
Genre Working Paper/Pre-Print
GroupedDBID 8FE
8FG
ABJCF
ABUWG
AFKRA
ALMA_UNASSIGNED_HOLDINGS
AZQEC
BENPR
BGLVJ
CCPQU
DWQXO
FRJ
HCIFZ
L6V
M7S
M~E
PIMPY
PQEST
PQQKQ
PQUKI
PRINS
PTHSS
ID FETCH-proquest_journals_28158370983
IEDL.DBID BENPR
IngestDate Thu Oct 10 15:07:40 EDT 2024
IsOpenAccess true
IsPeerReviewed false
IsScholarly false
Language English
LinkModel DirectLink
MergedId FETCHMERGED-proquest_journals_28158370983
OpenAccessLink https://www.proquest.com/docview/2815837098?pq-origsite=%requestingapplication%
PQID 2815837098
PQPubID 2050157
ParticipantIDs proquest_journals_2815837098
PublicationCentury 2000
PublicationDate 20231023
PublicationDateYYYYMMDD 2023-10-23
PublicationDate_xml – month: 10
  year: 2023
  text: 20231023
  day: 23
PublicationDecade 2020
PublicationPlace Ithaca
PublicationPlace_xml – name: Ithaca
PublicationTitle arXiv.org
PublicationYear 2023
Publisher Cornell University Library, arXiv.org
Publisher_xml – name: Cornell University Library, arXiv.org
SSID ssj0002672553
Score 3.4969137
SecondaryResourceType preprint
Snippet With growing capabilities of large language models, prompting them has become the dominant way to access them. This has motivated the development of strategies...
SourceID proquest
SourceType Aggregation Database
SubjectTerms Accuracy
Flatness
Large language models
Perturbation
Regularization
Title Flatness-Aware Prompt Selection Improves Accuracy and Sample Efficiency
URI https://www.proquest.com/docview/2815837098
hasFullText 1
inHoldings 1
isFullTextHit
isPrint
link http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwfV1LSwMxEB7sLoI3n_ioJaDXYDf77Emq7LYILYtV6K2M2exJtN1sES_-dmfWrR6EHkMgISH5Zr7J5BuAawzIRnloJBZeSQQFE4l9v5AJq9WRw1AWyAH9yTQaPwcP83DeBtxsm1a5wcQGqIt3zTHyG5V4IQu1DJLb5Upy1Sh-XW1LaHTAVcQU-g64d-k0f_yNsqgoJp_Z_we0jfXI9sHNcWmqA9gxb4ew2yRdansEo-yV82utlcMPrIzIK7qctZg1pWlov8QP4zdWDLVeV6g_BfF-MUNW9BVpI_7APyeP4SpLn-7HcjP7oj0hdvG3Hv8EHKL65hREoOJ-pNUgVCYMSk3eV1wiEQCvLFgqPTyD7raRzrd3X8AeF0tn5FV-F5y6WptLMqn1Sw86STbqtbtHrclX-g2qZICy
link.rule.ids 783,787,12777,21400,33385,33756,43612,43817
linkProvider ProQuest
linkToHtml http://utb.summon.serialssolutions.com/2.0.0/link/0/eLvHCXMwfV1LT8MwDLZgFWI3nuIxIBJcI9b0uRMaqKXAVlVsSLtVIU1PCEbTCe3fY5cODkg7R0oUK_nsz3E-A1xJF32ULTWXhV0iQZEhl32n4CGp1WHAUBaSEvrj1E9e3MeZN2sTbqYtq1xhYgPUxYeiHPm1CG2PhFoG4c38k1PXKHpdbVtobIJFUlVIvqzbKM2ef7Mswg8wZnb-AW3jPeIdsDI519UubOj3Pdhqii6V2Yf7-I3qa43hwy9ZaZZVeDlrNmla06C92A_j14YNlVpUUi0Z8n42kaToy6JG_IF-Th7AZRxN7xK-Wj1vT4jJ__bjHEIHqb4-AuaKoO8rMfCE9txSYfQVlBIJgF0WJJXuHUNv3Uwn64cvYDuZjkf56CF9OoUuNU4nFBZODzp1tdBn6F7r1_PWht_WnoGV
openUrl ctx_ver=Z39.88-2004&ctx_enc=info%3Aofi%2Fenc%3AUTF-8&rfr_id=info%3Asid%2Fsummon.serialssolutions.com&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Ajournal&rft.genre=article&rft.atitle=Flatness-Aware+Prompt+Selection+Improves+Accuracy+and+Sample+Efficiency&rft.jtitle=arXiv.org&rft.au=Shen%2C+Lingfeng&rft.au=Tan%2C+Weiting&rft.au=Zheng%2C+Boyuan&rft.au=Khashabi%2C+Daniel&rft.date=2023-10-23&rft.pub=Cornell+University+Library%2C+arXiv.org&rft.eissn=2331-8422