使用加法顺序实验的提示工程:在生成二级部分因子设计中的应用
Prompt engineering using order-of-addition experiments: An application to generating two-level fractional factorial designs
AI总结:
针对大语言模型的顺序依赖问题,引入用加法顺序实验量化提示元素排序效应及确定最佳位置的方法,通过构建二级部分因子设计证明该方法可阐明顺序依赖,助力确定高质量提示配置。
摘要:
大语言模型在工程和科学领域日益普遍,因其能将提示转化为数据分析代码等。但许多大语言模型存在顺序依赖现象,提示中短语顺序影响任务表现。为克服此问题,引入一种系统方法,利用加法顺序实验量化提示中元素的排序效应并确定最佳位置。通过使用先进大语言模型构建二级部分因子设计来证明该方法,结果表明此实验能阐明顺序依赖并帮助确定高质量提示配置。
英文摘要:
Large language models (LLMs) are becoming ubiquitous in engineering and science because they can turn prompts into data analysis code, experimental designs, formulations of optimization problems, among other applications. However, many LLMs suffer from a phenomenon called order dependency, in which the order of phrases in the prompt affects their performance on a given task. To overcome this issue, we introduce a systematic method that uses order-of-addition experiments to quantify the ordering effect of elements in a prompt and identify their best positions. We demonstrate our methodology by constructing two-level fractional factorial designs using state-of-the-art LLMs. We show that order-of-addition experiments can elucidate order dependency in these LLMs, and can help us to identify a high-quality prompt configuration for the task.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。