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

“我们需要结构化输出”:面向以用户为中心的大语言模型输出约束研究

"We Need Structured Output": Towards User-centered Constraints on Large Language Model Output

Michael Xieyang Liu, Frederick Liu, Alexander J. Fiannaca, Terry Koo, Lucas Dixon, Michael Terry, Carrie J. Cai

AI总结:

本研究通过调查51名行业从业者,明确了大语言模型输出约束的两类共134个用例,指出其可简化开发者工作流、提升用户体验,并提出约束原型工具的初步设计方向。

摘要:

大语言模型能够生成富有创意且多样化的响应。然而,要将其融入当前的开发者工作流程,必须约束其输出以遵循特定格式或标准。本研究中,我们调查了51名资深行业从业者,从以用户为中心的视角了解驱动输出约束需求的场景范围与动机。我们识别出134个具体的约束用例,分为两个层级:低层级约束确保输出遵循结构化格式与合适长度,高层级约束要求输出遵循语义与风格规范且不产生幻觉(hallucination)。关键在于,应用输出约束不仅能简化开发者当前在大语言模型(LLM)提示词开发、测试与集成方面的重复性流程,还能提升基于LLM的功能与应用的用户体验。最后,我们讨论了用户对明确表述LLM预期约束的偏好与需求,并提出了一款约束原型设计工具的初步方案。

英文摘要:

Large language models can produce creative and diverse responses. However, to integrate them into current developer workflows, it is essential to constrain their outputs to follow specific formats or standards. In this work, we surveyed 51 experienced industry professionals to understand the range of scenarios and motivations driving the need for output constraints from a user-centered perspective. We identified 134 concrete use cases for constraints at two levels: low-level, which ensures the output adhere to a structured format and an appropriate length, and high-level, which requires the output to follow semantic and stylistic guidelines without hallucination. Critically, applying output constraints could not only streamline the currently repetitive process of developing, testing, and integrating LLM prompts for developers, but also enhance the user experience of LLM-powered features and applications. We conclude with a discussion on user preferences and needs towards articulating intended constraints for LLMs, alongside an initial design for a constraint prototyping tool.

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

↑