Guardado en:
Detalles Bibliográficos
Autores principales: Errica, Federico, Siracusano, Giuseppe, Sanvito, Davide, Bifulco, Roberto
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:https://arxiv.org/abs/2406.12334
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866918129263706112
author Errica, Federico
Siracusano, Giuseppe
Sanvito, Davide
Bifulco, Roberto
author_facet Errica, Federico
Siracusano, Giuseppe
Sanvito, Davide
Bifulco, Roberto
contents 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 Preprint
id arxiv_https___arxiv_org_abs_2406_12334
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineering
Errica, Federico
Siracusano, Giuseppe
Sanvito, Davide
Bifulco, Roberto
Machine Learning
Software 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, 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.
title What Did I Do Wrong? Quantifying LLMs' Sensitivity and Consistency to Prompt Engineering
topic Machine Learning
Software Engineering
url https://arxiv.org/abs/2406.12334