arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.03928cs.IR
收藏

RETAIN:面向回归测试引导的LLM迁移的交互式工具

RETAIN: Interactive Tool for Regression Testing Guided LLM Migration

Tanay Dixit, Daniel Lee, Sally Fang, Sai Sree Harsha, Anirudh Sureshan, Akash Maharaj, Yunyao Li

AI总结:

本文提出面向LLM迁移回归测试的交互式工具RETAIN,通过定制界面和错误发现模块帮助开发者识别模型行为差异并优化提示,实验显示其错误发现量翻倍、提示实验量提升75%、指标分数提高12%。

摘要:

大语言模型(LLMs)正越来越多地集成到各类应用中。LLM的快速演进为开发者持续增强应用提供了机会。然而,这种持续适配也可能在模型迁移过程中导致性能回归。尽管已有若干交互式工具被提出以简化提示工程的复杂性,但很少有工具专门解决LLM迁移中回归测试的特定需求。为弥补这一空白,我们提出了RETAIN(REgression Testing guided LLM migrAtIoN,回归测试引导的LLM迁移),一个专为LLM迁移中的回归测试而设计的工具。RETAIN包含两个关键组件:一个针对LLM迁移期间回归测试需求而定制的交互式界面,以及一个有助于理解模型行为差异的错误发现模块。该错误发现模块生成模型输出之间各种错误或差异的文本描述,为提示优化提供可操作的见解。我们的自动评估和实证用户研究表明,与人工评估相比,RETAIN使参与者能够识别出两倍数量的错误,支持多75%的提示实验,并在给定时间范围内取得高12%的指标分数。

英文摘要:

Large Language Models (LLMs) are increasingly integrated into diverse applications. The rapid evolution of LLMs presents opportunities for developers to enhance applications continuously. However, this constant adaptation can also lead to performance regressions during model migrations. While several interactive tools have been proposed to streamline the complexity of prompt engineering, few address the specific requirements of regression testing for LLM Migrations. To bridge this gap, we introduce RETAIN (REgression Testing guided LLM migrAtIoN), a tool designed explicitly for regression testing in LLM Migrations. RETAIN comprises two key components: an interactive interface tailored to regression testing needs during LLM migrations, and an error discovery module that facilitates understanding of differences in model behaviors. The error discovery module generates textual descriptions of various errors or differences between model outputs, providing actionable insights for prompt refinement. Our automatic evaluation and empirical user studies demonstrate that RETAIN, when compared to manual evaluation, enabled participants to identify twice as many errors, facilitated experimentation with 75% more prompts, and achieves 12% higher metric scores in a given time frame.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑