Unveiling the Lexical Sensitivity of LLMs: Combinatorial Optimization for Prompt Enhancement

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Zhan, Pengwei, Xu, Zhen, Tan, Qian, Song, Jie, Xie, Ru
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866911896530059264
author Zhan, Pengwei
Xu, Zhen
Tan, Qian
Song, Jie
Xie, Ru
author_facet Zhan, Pengwei
Xu, Zhen
Tan, Qian
Song, Jie
Xie, Ru
contents Large language models (LLMs) demonstrate exceptional instruct-following ability to complete various downstream tasks. Although this impressive ability makes LLMs flexible task solvers, their performance in solving tasks also heavily relies on instructions. In this paper, we reveal that LLMs are over-sensitive to lexical variations in task instructions, even when the variations are imperceptible to humans. By providing models with neighborhood instructions, which are closely situated in the latent representation space and differ by only one semantically similar word, the performance on downstream tasks can be vastly different. Following this property, we propose a black-box Combinatorial Optimization framework for Prompt Lexical Enhancement (COPLE). COPLE performs iterative lexical optimization according to the feedback from a batch of proxy tasks, using a search strategy related to word influence. Experiments show that even widely-used human-crafted prompts for current benchmarks suffer from the lexical sensitivity of models, and COPLE recovers the declined model ability in both instruct-following and solving downstream tasks.
format Preprint
id arxiv_https___arxiv_org_abs_2405_20701
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Unveiling the Lexical Sensitivity of LLMs: Combinatorial Optimization for Prompt Enhancement
Zhan, Pengwei
Xu, Zhen
Tan, Qian
Song, Jie
Xie, Ru
Computation and Language
Artificial Intelligence
Large language models (LLMs) demonstrate exceptional instruct-following ability to complete various downstream tasks. Although this impressive ability makes LLMs flexible task solvers, their performance in solving tasks also heavily relies on instructions. In this paper, we reveal that LLMs are over-sensitive to lexical variations in task instructions, even when the variations are imperceptible to humans. By providing models with neighborhood instructions, which are closely situated in the latent representation space and differ by only one semantically similar word, the performance on downstream tasks can be vastly different. Following this property, we propose a black-box Combinatorial Optimization framework for Prompt Lexical Enhancement (COPLE). COPLE performs iterative lexical optimization according to the feedback from a batch of proxy tasks, using a search strategy related to word influence. Experiments show that even widely-used human-crafted prompts for current benchmarks suffer from the lexical sensitivity of models, and COPLE recovers the declined model ability in both instruct-following and solving downstream tasks.
title Unveiling the Lexical Sensitivity of LLMs: Combinatorial Optimization for Prompt Enhancement
topic Computation and Language
Artificial Intelligence
url https://arxiv.org/abs/2405.20701