arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.12840cs.CLcs.CVcs.LG
收藏

分阶段回答问题:用于合同问答的提示链

Answering Questions in Stages: Prompt Chaining for Contract QA

Zuva Inc.(祖瓦公司)

Adam Roegiest, Radha Chitta

AI总结:

针对法律合同问答中长条款含无关信息导致简单零样本提示失效的问题,提出两阶段提示链方法生成结构化答案,在细微法律文本上表现更优并分析了改进方向。

摘要:

在许多法律工作流程(例如,理解市场趋势、尽职调查、风险缓解)中,找到关于合同条款的法律问题的答案是一种重要的分析形式,但更重要的是能够大规模地执行此操作。先前的工作表明,可以使用大型语言模型结合简单的零样本提示来生成问题的结构化答案,这些答案随后可以整合到法律工作流程中。这类提示虽然在简单和直接的条款上有效,但在条款较长且包含与问题无关的信息时表现不佳。在本文中,我们提出两阶段提示链来为多选和多选多答题生成结构化答案,并表明它们在更细微的法律文本上比简单提示更有效。我们分析了这种技术表现出色的情况以及需要进一步改进的领域,特别是当潜在的语言变化超出仅通过指定可能答案所能捕获的范围时。最后,我们讨论了未来的研究,旨在通过使第一阶段结果更具问题针对性来改进这一工作。

英文摘要:

Finding answers to legal questions about clauses in contracts is an important form of analysis in many legal workflows (e.g., understanding market trends, due diligence, risk mitigation) but more important is being able to do this at scale. Prior work showed that it is possible to use large language models with simple zero-shot prompts to generate structured answers to questions, which can later be incorporated into legal workflows. Such prompts, while effective on simple and straightforward clauses, fail to perform when the clauses are long and contain information not relevant to the question. In this paper, we propose two-stage prompt chaining to produce structured answers to multiple-choice and multiple-select questions and show that they are more effective than simple prompts on more nuanced legal text. We analyze situations where this technique works well and areas where further refinement is needed, especially when the underlying linguistic variations are more than can be captured by simply specifying possible answers. Finally, we discuss future research that seeks to refine this work by improving stage one results by making them more question-specific.

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

↑