大语言模型(LLMs)近年来因其在各种应用中的实用性而广受欢迎。然而,它们对提示格式中的非语义变化非常敏感,提示格式的微小变化就可能导致显著的性能波动。在文献中,这一问题通常被称为提示脆弱性(prompt brittleness)。先前关于提示工程的研究主要集中在开发用于为特定任务识别最优提示的技术上。一些研究也探讨了提示脆弱性问题,并提出了量化性能变化的方法;然而,尚未找到解决这一挑战的简单方案。我们提出格式混合(Mixture of Formats,MOF),这是一种简单且高效的技术,通过多样化提示少样本示例中使用的风格来解决LLMs中的提示脆弱性问题。MOF的灵感来源于计算机视觉技术,这些技术利用多样化的风格数据集来防止模型将特定风格与目标变量相关联。实证结果表明,我们提出的技术降低了各种LLMs中由风格引起的提示脆弱性,同时提升了在不同提示变化和不同数据集上的整体性能。
英文摘要:
Large language models (LLMs) have gained popularity in recent years for their utility in various applications. However, they are sensitive to non-semantic changes in prompt formats, where small changes in the prompt format can lead to significant performance fluctuations. In the literature, this problem is commonly referred to as prompt brittleness. Previous research on prompt engineering has focused mainly on developing techniques for identifying the optimal prompt for specific tasks. Some studies have also explored the issue of prompt brittleness and proposed methods to quantify performance variations; however, no simple solution has been found to address this challenge. We propose Mixture of Formats (MOF), a simple and efficient technique for addressing prompt brittleness in LLMs by diversifying the styles used in the prompt few-shot examples. MOF was inspired by computer vision techniques that utilize diverse style datasets to prevent models from associating specific styles with the target variable. Empirical results show that our proposed technique reduces style-induced prompt brittleness in various LLMs while also enhancing overall performance across prompt variations and different datasets.
How Model Size, Temperature, and Prompt Style Affect LLM-Human Assessment Score Alignment
Harvard Graduate School of Education(哈佛教育研究生院);Munster University(穆恩斯特大学);Institute of Anatomy and Neurobiology, University of Münster(解剖与神经生物学研究所,穆恩斯特大学)
Influences on LLM Calibration: A Study of Response Agreement, Loss Functions, and Prompt Styles
Faculty of Computer Science, University of Vienna(维也纳大学计算机学院);UniVie Doctoral School Computer Science(维也纳大学计算机博士学院);Department of Computer Science, Aarhus University(奥胡斯大学计算机系);Faculty of Philological and Cultural Studies, University of Vienna(维也纳大学语文学与文化学院)
Do What I Say: A Spoken Prompt Dataset for Instruction-Following
Karlsruhe Institute of Technology, Germany(卡尔斯鲁厄理工学院,德国);Fondazione Bruno Kessler, Italy(布鲁诺·凯瑟尔基金会,意大利);ACC Cyfronet AGH, Poland(AGH计算机科学与技术学院,波兰);AGH University of Krakow, Poland(克拉科夫AGH大学,波兰);Carnegie Mellon University, U.S.(卡内基梅隆大学,美国)
Style-Aware Radiology Report Generation with RadGraph and Few-Shot Prompting
Stanford University(斯坦福大学);Jawaharlal Institute of Postgraduate Medical Education and Research (JIPMER)(贾瓦哈拉尔研究生医学教育与研究学院);Hospital Israelita Albert Einstein(以色列阿尔伯特·爱因斯坦医院);Johns Hopkins University(约翰斯·霍普金斯大学);Massachusetts General Hospital(马萨诸塞总医院);Harvard Medical School(哈佛医学院)
SETTP: Style Extraction and Tunable Inference via Dual-level Transferable Prompt Learning
Amii, University of Alberta(阿尔伯塔大学 Amii);Northeastern University(东北大学);Key Laboratory of Intelligent Computing in Medical Image of Ministry of Education, Northeastern University(东北大学医学影像智能计算教育部重点实验室);The Chinese University of Hong Kong(香港中文大学);National Frontiers Science Center for Industrial Intelligence and Systems Optimization(工业智能与系统优化全国前沿科学中心)
Unlocking Fine-Grained and Within-Utterance Speaking Style Control in Text-to-Speech Models
Department of Artificial Intelligence, Sungkyunkwan University, Korea(全州大学人工智能系);Department of Computer Science and Engineering, Sungkyunkwan University, Korea(全州大学计算机科学与工程系)