What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineering

Large Language Models (LLMs) changed the way we design and interact with software systems. Their ability to process and extract information from text has drastically improved productivity in a number of routine tasks. Developers that want to include these models in their software stack, however, fac...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Veröffentlicht in:arXiv.org 2024-09
Hauptverfasser: Errica, Federico, Siracusano, Giuseppe, Sanvito, Davide, Bifulco, Roberto
Format: Artikel
Sprache:eng
Schlagworte:
Online-Zugang:Volltext
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
container_end_page
container_issue
container_start_page
container_title arXiv.org
container_volume
creator Errica, Federico
Siracusano, Giuseppe
Sanvito, Davide
Bifulco, Roberto
description Large Language Models (LLMs) changed the way we design and interact with software systems. Their ability to process and extract information from text has drastically improved productivity in a number of routine tasks. Developers that want to include these models in their software stack, however, face a dreadful challenge: debugging LLMs' inconsistent behavior across minor variations of the prompt. We therefore introduce two metrics for classification tasks, namely sensitivity and consistency, which are complementary to task performance. First, sensitivity measures changes of predictions across rephrasings of the prompt, and does not require access to ground truth labels. Instead, consistency measures how predictions vary across rephrasings for elements of the same class. We perform an empirical comparison of these metrics on text classification tasks, using them as guideline for understanding failure modes of the LLM. Our hope is that sensitivity and consistency will be helpful to guide prompt engineering and obtain LLMs that balance robustness with performance.
format Article
fullrecord <record><control><sourceid>proquest</sourceid><recordid>TN_cdi_proquest_journals_3069654385</recordid><sourceformat>XML</sourceformat><sourcesystem>PC</sourcesystem><sourcerecordid>3069654385</sourcerecordid><originalsourceid>FETCH-proquest_journals_30696543853</originalsourceid><addsrcrecordid>eNqNi8EKgkAURYcgSMp_eNCilWAzjtmqhRoFBUWB7URytJF6YzNj4N_nog9odTmcc0fEoYwtvSigdEJcYxrf92m4opwzh9yyR2EhkSXsIVGQaYX1Bs5dgVZWvcQaDoejWcBFoJFWfqTtocASYjWwsQLvPVgFJ61erYUUa4lC6OE3I-OqeBrh_nZK5tv0Gu-8Vqt3J4zNG9VpHFTO_HAd8oBFnP1XfQHhnED6</addsrcrecordid><sourcetype>Aggregation Database</sourcetype><iscdi>true</iscdi><recordtype>article</recordtype><pqid>3069654385</pqid></control><display><type>article</type><title>What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineering</title><source>Free E- Journals</source><creator>Errica, Federico ; Siracusano, Giuseppe ; Sanvito, Davide ; Bifulco, Roberto</creator><creatorcontrib>Errica, Federico ; Siracusano, Giuseppe ; Sanvito, Davide ; Bifulco, Roberto</creatorcontrib><description>Large Language Models (LLMs) changed the way we design and interact with software systems. Their ability to process and extract information from text has drastically improved productivity in a number of routine tasks. Developers that want to include these models in their software stack, however, face a dreadful challenge: debugging LLMs' inconsistent behavior across minor variations of the prompt. We therefore introduce two metrics for classification tasks, namely sensitivity and consistency, which are complementary to task performance. First, sensitivity measures changes of predictions across rephrasings of the prompt, and does not require access to ground truth labels. Instead, consistency measures how predictions vary across rephrasings for elements of the same class. We perform an empirical comparison of these metrics on text classification tasks, using them as guideline for understanding failure modes of the LLM. Our hope is that sensitivity and consistency will be helpful to guide prompt engineering and obtain LLMs that balance robustness with performance.</description><identifier>EISSN: 2331-8422</identifier><language>eng</language><publisher>Ithaca: Cornell University Library, arXiv.org</publisher><subject>Classification ; Consistency ; Failure modes ; Large language models ; Prompt engineering ; Sensitivity ; Software</subject><ispartof>arXiv.org, 2024-09</ispartof><rights>2024. This work is published under http://arxiv.org/licenses/nonexclusive-distrib/1.0/ (the “License”). Notwithstanding the ProQuest Terms and Conditions, you may use this content in accordance with the terms of the License.</rights><oa>free_for_read</oa><woscitedreferencessubscribed>false</woscitedreferencessubscribed></display><links><openurl>$$Topenurl_article</openurl><openurlfulltext>$$Topenurlfull_article</openurlfulltext><thumbnail>$$Tsyndetics_thumb_exl</thumbnail><link.rule.ids>776,780</link.rule.ids></links><search><creatorcontrib>Errica, Federico</creatorcontrib><creatorcontrib>Siracusano, Giuseppe</creatorcontrib><creatorcontrib>Sanvito, Davide</creatorcontrib><creatorcontrib>Bifulco, Roberto</creatorcontrib><title>What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineering</title><title>arXiv.org</title><description>Large Language Models (LLMs) changed the way we design and interact with software systems. Their ability to process and extract information from text has drastically improved productivity in a number of routine tasks. Developers that want to include these models in their software stack, however, face a dreadful challenge: debugging LLMs' inconsistent behavior across minor variations of the prompt. We therefore introduce two metrics for classification tasks, namely sensitivity and consistency, which are complementary to task performance. First, sensitivity measures changes of predictions across rephrasings of the prompt, and does not require access to ground truth labels. Instead, consistency measures how predictions vary across rephrasings for elements of the same class. We perform an empirical comparison of these metrics on text classification tasks, using them as guideline for understanding failure modes of the LLM. Our hope is that sensitivity and consistency will be helpful to guide prompt engineering and obtain LLMs that balance robustness with performance.</description><subject>Classification</subject><subject>Consistency</subject><subject>Failure modes</subject><subject>Large language models</subject><subject>Prompt engineering</subject><subject>Sensitivity</subject><subject>Software</subject><issn>2331-8422</issn><fulltext>true</fulltext><rsrctype>article</rsrctype><creationdate>2024</creationdate><recordtype>article</recordtype><sourceid>ABUWG</sourceid><sourceid>AFKRA</sourceid><sourceid>AZQEC</sourceid><sourceid>BENPR</sourceid><sourceid>CCPQU</sourceid><sourceid>DWQXO</sourceid><recordid>eNqNi8EKgkAURYcgSMp_eNCilWAzjtmqhRoFBUWB7URytJF6YzNj4N_nog9odTmcc0fEoYwtvSigdEJcYxrf92m4opwzh9yyR2EhkSXsIVGQaYX1Bs5dgVZWvcQaDoejWcBFoJFWfqTtocASYjWwsQLvPVgFJ61erYUUa4lC6OE3I-OqeBrh_nZK5tv0Gu-8Vqt3J4zNG9VpHFTO_HAd8oBFnP1XfQHhnED6</recordid><startdate>20240905</startdate><enddate>20240905</enddate><creator>Errica, Federico</creator><creator>Siracusano, Giuseppe</creator><creator>Sanvito, Davide</creator><creator>Bifulco, Roberto</creator><general>Cornell University Library, arXiv.org</general><scope>8FE</scope><scope>8FG</scope><scope>ABJCF</scope><scope>ABUWG</scope><scope>AFKRA</scope><scope>AZQEC</scope><scope>BENPR</scope><scope>BGLVJ</scope><scope>CCPQU</scope><scope>DWQXO</scope><scope>HCIFZ</scope><scope>L6V</scope><scope>M7S</scope><scope>PIMPY</scope><scope>PQEST</scope><scope>PQQKQ</scope><scope>PQUKI</scope><scope>PRINS</scope><scope>PTHSS</scope></search><sort><creationdate>20240905</creationdate><title>What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineering</title><author>Errica, Federico ; Siracusano, Giuseppe ; Sanvito, Davide ; Bifulco, Roberto</author></sort><facets><frbrtype>5</frbrtype><frbrgroupid>cdi_FETCH-proquest_journals_30696543853</frbrgroupid><rsrctype>articles</rsrctype><prefilter>articles</prefilter><language>eng</language><creationdate>2024</creationdate><topic>Classification</topic><topic>Consistency</topic><topic>Failure modes</topic><topic>Large language models</topic><topic>Prompt engineering</topic><topic>Sensitivity</topic><topic>Software</topic><toplevel>online_resources</toplevel><creatorcontrib>Errica, Federico</creatorcontrib><creatorcontrib>Siracusano, Giuseppe</creatorcontrib><creatorcontrib>Sanvito, Davide</creatorcontrib><creatorcontrib>Bifulco, Roberto</creatorcontrib><collection>ProQuest SciTech Collection</collection><collection>ProQuest Technology Collection</collection><collection>Materials Science &amp; Engineering Collection</collection><collection>ProQuest Central (Alumni)</collection><collection>ProQuest Central UK/Ireland</collection><collection>ProQuest Central Essentials</collection><collection>ProQuest Central</collection><collection>Technology Collection</collection><collection>ProQuest One Community College</collection><collection>ProQuest Central Korea</collection><collection>SciTech Premium Collection (Proquest) (PQ_SDU_P3)</collection><collection>ProQuest Engineering Collection</collection><collection>Engineering Database</collection><collection>Publicly Available Content Database (Proquest) (PQ_SDU_P3)</collection><collection>ProQuest One Academic Eastern Edition (DO NOT USE)</collection><collection>ProQuest One Academic</collection><collection>ProQuest One Academic UKI Edition</collection><collection>ProQuest Central China</collection><collection>Engineering collection</collection></facets><delivery><delcategory>Remote Search Resource</delcategory><fulltext>fulltext</fulltext></delivery><addata><au>Errica, Federico</au><au>Siracusano, Giuseppe</au><au>Sanvito, Davide</au><au>Bifulco, Roberto</au><format>book</format><genre>document</genre><ristype>GEN</ristype><atitle>What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineering</atitle><jtitle>arXiv.org</jtitle><date>2024-09-05</date><risdate>2024</risdate><eissn>2331-8422</eissn><abstract>Large Language Models (LLMs) changed the way we design and interact with software systems. Their ability to process and extract information from text has drastically improved productivity in a number of routine tasks. Developers that want to include these models in their software stack, however, face a dreadful challenge: debugging LLMs' inconsistent behavior across minor variations of the prompt. We therefore introduce two metrics for classification tasks, namely sensitivity and consistency, which are complementary to task performance. First, sensitivity measures changes of predictions across rephrasings of the prompt, and does not require access to ground truth labels. Instead, consistency measures how predictions vary across rephrasings for elements of the same class. We perform an empirical comparison of these metrics on text classification tasks, using them as guideline for understanding failure modes of the LLM. Our hope is that sensitivity and consistency will be helpful to guide prompt engineering and obtain LLMs that balance robustness with performance.</abstract><cop>Ithaca</cop><pub>Cornell University Library, arXiv.org</pub><oa>free_for_read</oa></addata></record>
fulltext fulltext
identifier EISSN: 2331-8422
ispartof arXiv.org, 2024-09
issn 2331-8422
language eng
recordid cdi_proquest_journals_3069654385
source Free E- Journals
subjects Classification
Consistency
Failure modes
Large language models
Prompt engineering
Sensitivity
Software
title What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineering
url https://sfx.bib-bvb.de/sfx_tum?ctx_ver=Z39.88-2004&ctx_enc=info:ofi/enc:UTF-8&ctx_tim=2025-01-22T16%3A13%3A28IST&url_ver=Z39.88-2004&url_ctx_fmt=infofi/fmt:kev:mtx:ctx&rfr_id=info:sid/primo.exlibrisgroup.com:primo3-Article-proquest&rft_val_fmt=info:ofi/fmt:kev:mtx:book&rft.genre=document&rft.atitle=What%20Did%20I%20Do%20Wrong?%20Quantifying%20LLMs'%20Sensitivity%20and%20Consistency%20to%20Prompt%20Engineering&rft.jtitle=arXiv.org&rft.au=Errica,%20Federico&rft.date=2024-09-05&rft.eissn=2331-8422&rft_id=info:doi/&rft_dat=%3Cproquest%3E3069654385%3C/proquest%3E%3Curl%3E%3C/url%3E&disable_directlink=true&sfx.directlink=off&sfx.report_link=0&rft_id=info:oai/&rft_pqid=3069654385&rft_id=info:pmid/&rfr_iscdi=true