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

PromptAid:面向大语言模型的、使用视觉分析的提示探索、扰动、测试与迭代

PromptAid: Prompt Exploration, Perturbation, Testing and Iteration using Visual Analytics for Large Language Models

Aditi Mishra, Utkarsh Soni, Anjana Arunkumar, Jinbin Huang, Bum Chul Kwon, Chris Bryan

AI总结:

针对非专业用户难以优化LLM提示的问题,该研究提出视觉分析系统PromptAid,支持通过关键词扰动、释义扰动等策略交互迭代优化提示,经评估其性能优于现有同类界面。

摘要:

大语言模型(LLM)凭借仅需简单自然语言提示即可执行临时自然语言处理(NLP)任务的能力,已获得广泛普及。LLM的部分吸引力在于其对普通大众的可及性,包括此前没有NLP技术相关经验的人群。然而,自然语言提示在语言结构、上下文及其他语义层面可能存在显著差异。调整其中一个或多个方面会导致任务表现出现大幅波动。非专业用户可能很难确定改进提示所需的调整方向,尤其是在他们缺乏领域特定知识、也没有适当反馈的情况下。为解决这一挑战,我们提出了PromptAid,这是一款视觉分析系统,旨在通过探索、扰动、测试和迭代,以交互方式创建、优化和测试提示。PromptAid采用多个协同联动的可视化组件,支持用户通过三种策略优化提示:关键词扰动、释义扰动,以及获取最优的上下文少样本示例集。PromptAid是通过包含NLP专家参与的迭代原型设计流程开发的,并通过针对LLM的定量和定性评估完成了验证。我们的研究结果表明,PromptAid能够帮助用户以更低的认知负担迭代调整提示模板,在推荐功能的协助下生成多样化的提示,还能分析生成提示的性能,且表现优于现有的最先进提示交互界面。

英文摘要:

Large Language Models (LLMs) have gained widespread popularity due to their ability to perform ad-hoc Natural Language Processing (NLP) tasks with a simple natural language prompt. Part of the appeal for LLMs is their approachability to the general public, including individuals with no prior technical experience in NLP techniques. However, natural language prompts can vary significantly in terms of their linguistic structure, context, and other semantics. Modifying one or more of these aspects can result in significant differences in task performance. Non-expert users may find it challenging to identify the changes needed to improve a prompt, especially when they lack domain-specific knowledge and lack appropriate feedback. To address this challenge, we present PromptAid, a visual analytics system designed to interactively create, refine, and test prompts through exploration, perturbation, testing, and iteration. PromptAid uses multiple, coordinated visualizations which allow users to improve prompts by using the three strategies: keyword perturbations, paraphrasing perturbations, and obtaining the best set of in-context few-shot examples. PromptAid was designed through an iterative prototyping process involving NLP experts and was evaluated through quantitative and qualitative assessments for LLMs. Our findings indicate that PromptAid helps users to iterate over prompt template alterations with less cognitive overhead, generate diverse prompts with help of recommendations, and analyze the performance of the generated prompts while surpassing existing state-of-the-art prompting interfaces in performance.

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

↑