PROMPTEVALS:用于定制生产级大型语言模型管道的断言与护栏数据集
PROMPTEVALS: A Dataset of Assertions and Guardrails for Custom Production Large Language Model Pipelines
AI总结:
本文提出PROMPTEVALS数据集,包含2087个LLM管道提示词和12623条断言标准,用于评估和提升LLM生成断言的能力,微调模型平均比GPT-4o高20.93%。
摘要:
大型语言模型(LLMs)越来越多地被部署在跨多个领域(如金融、营销和电子商务)的专门生产数据处理管道中。然而,当它们在生产环境中处理大量输入时,常常无法遵循指令或满足开发者的期望。为了提高这些应用中的可靠性,创建针对LLM输出的断言或护栏,并使其与管道并行运行至关重要。然而,确定能够捕捉开发者对任务需求的一组正确断言颇具挑战性。在本文中,我们介绍了PROMPTEVALS,这是一个包含2087个LLM管道提示词和12623个对应断言标准的数据集,这些数据来源于使用我们开源LLM管道工具的开发者。该数据集比之前的集合大5倍。我们使用PROMPTEVALS的留出测试集作为基准,评估了闭源和开源模型在生成相关断言方面的表现。值得注意的是,我们微调的Mistral和Llama 3模型平均比GPT-4o高出20.93%,同时降低了延迟并提高了性能。我们相信,我们的数据集能够促进LLM可靠性、对齐和提示工程方面的进一步研究。
英文摘要:
Large language models (LLMs) are increasingly deployed in specialized production data processing pipelines across diverse domains -- such as finance, marketing, and e-commerce. However, when running them in production across many inputs, they often fail to follow instructions or meet developer expectations. To improve reliability in these applications, creating assertions or guardrails for LLM outputs to run alongside the pipelines is essential. Yet, determining the right set of assertions that capture developer requirements for a task is challenging. In this paper, we introduce PROMPTEVALS, a dataset of 2087 LLM pipeline prompts with 12623 corresponding assertion criteria, sourced from developers using our open-source LLM pipeline tools. This dataset is 5x larger than previous collections. Using a hold-out test split of PROMPTEVALS as a benchmark, we evaluated closed- and open-source models in generating relevant assertions. Notably, our fine-tuned Mistral and Llama 3 models outperform GPT-4o by 20.93% on average, offering both reduced latency and improved performance. We believe our dataset can spur further research in LLM reliability, alignment, and prompt engineering.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。