arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2509.02241cs.AI
收藏

面向大语言模型的大语言模型:长法律文档的结构化提示方法

LLMs for LLMs: A Structured Prompting Methodology for Long Legal Documents

Department of Computer Science, Durham University, Stockton Road, Durham, DH1 3LE, United Kingdom.(计算机科学系,杜伦大学)

Strahinja Klem, Noura Al Moubayed

AI总结:

本研究针对法律领域大语言模型应用的可靠性与透明度问题,提出结构化提示方法,结合分块增强、QWEN-2模型及两种启发式策略处理CUAD长文档信息检索,性能提升9%达SOTA,凸显结构化提示工程在法律AI问责中的潜力。

摘要:

大语言模型(LLMs)的兴起已对诸多领域产生了深远的变革性影响。然而,由于可靠性与透明度的重要问题,大语言模型在法律领域的应用更具挑战性。本研究提出一种结构化提示方法,作为成本通常较高的微调的可行替代方案,能够处理CUAD数据集中的长法律文档,完成信息检索任务。首先通过分块与增强系统将每份文档拆分为多个块,解决长文档问题;随后结合精心设计的提示,将输入送入QWEN-2模型,为每个问题生成一组答案;最后引入基于分布的定位(Distribution-based Localisation)和逆基数加权(Inverse Cardinality Weighting)启发式策略,解决候选答案选择问题。该方法利用通用模型保障长期可扩展性,通过提示工程提升可靠性,借助两种启发式策略降低黑箱效应的影响。我们的模型性能比此前提出的方法最高提升9%,达到当前最优水平,同时也凸显了现有问答自动评估指标的局限性,为未来研究提出了行动倡议。不过,本研究的核心目标是强调结构化提示工程作为一种实用却未被充分探索的工具,在确保法律领域及其他领域AI的可问责性与责任性方面的潜力。

英文摘要:

The rise of Large Language Models (LLMs) has had a profoundly transformative effect on a number of fields and domains. However, their uptake in Law has proven more challenging due to the important issues of reliability and transparency. In this study, we present a structured prompting methodology as a viable alternative to the often expensive fine-tuning, with the capability of tacking long legal documents from the CUAD dataset on the task of information retrieval. Each document is first split into chunks via a system of chunking and augmentation, addressing the long document problem. Then, alongside an engineered prompt, the input is fed into QWEN-2 to produce a set of answers for each question. Finally, we tackle the resulting candidate selection problem with the introduction of the Distribution-based Localisation and Inverse Cardinality Weighting heuristics. This approach leverages a general purpose model to promote long term scalability, prompt engineering to increase reliability and the two heuristic strategies to reduce the impact of the black box effect. Whilst our model performs up to 9\% better than the previously presented method, reaching state-of-the-art performance, it also highlights the limiting factor of current automatic evaluation metrics for question answering, serving as a call to action for future research. However, the chief aim of this work is to underscore the potential of structured prompt engineering as a useful, yet under-explored, tool in ensuring accountability and responsibility of AI in the legal domain, and beyond.

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

↑