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

注入还是导航?用于交易法律文件大语言模型分析的令牌高效检索

Inject or Navigate? Token-Efficient Retrieval for LLM Analysis of Transactional Legal Documents

Syntheia Pty Ltd(合成有限公司)

Mahmoud Hany, Mourad ElSheraey, Mahmoud Said, Peter Naoum

AI总结:

研究如何在交易法律文件分析中高效检索,对比全语料库注入与两种结构化检索模式(NAVEMBED和NAVINDEX),发现NAVINDEX在令牌占用、上下文及成本方面优势明显,还得出缓存交叉规则。

摘要:

在一组交易法律文件上回答问题,最简单的方法是在每次查询时将整个语料库注入大语言模型的上下文窗口。该基线方法可最大化检索召回率,但其令牌占用量随语料库而非问题扩展,长上下文退化也随之增加。我们报告了在法律文件分析系统中取代全语料库注入所需的条件,并将其与基于我们专有的结构感知分块的两种结构化检索模式进行比较:嵌入检索(NAVEMBED)和在紧凑结构化索引上的大语言模型导航(NAVINDEX)。在一个有20个问题且答案经过验证的基准测试中,一个位置偏差控制、参考锚定的成对评判器对语义检索重排与注入进行评分,在18个与文档相关的问题中,有16个两者得分相同(2个问题中注入更优),同时处理的输入令牌减少了17.3倍(通用文本嵌入(GTE)配置在较低平局率下达到29.9倍);在2个范围外控制问题上,两种模式得分相同。NAVINDEX在所有18个问题上得分相同,总令牌占用量小1.61倍,回答上下文小约56倍,成本低25%。我们得出了一个封闭形式的缓存交叉规则:只有当语料库低于检索有效负载的大约十倍时,缓存注入在成本上才更便宜。第8节对范围和不确定性进行了量化。

英文摘要:

Answering questions over a set of transactional legal documents is most simply done by injecting the whole corpus into the LLM's context window on every query. That baseline maximises retrieval recall, but its token footprint scales with the corpus rather than the question, and long-context degradation scales with it. We report what it took to replace full-corpus injection in a legal-document analysis system, comparing it against two structured retrieval modes over our proprietary structure-aware chunking: embedding retrieval (NAVEMBED) and LLM navigation over a compact structured index (NAVINDEX). On a 20-question benchmark with verified ground-truth answers, a position-bias-controlled, reference-anchored pairwise judge scored semantic retrieval with reranking tied with injection on 16 of 18 document-bound questions (injection preferred on 2) while attending to 17.3x fewer input tokens (a general-text-embedding (GTE) configuration reaches 29.9x at a lower tie rate); both modes were judged tied on the 2 out-of-scope controls. NAVINDEX was judged tied on all 18 at a 1.61x smaller total token footprint, a ~56x smaller answering context, and 25% lower dollar cost. We derive a closed-form caching-crossover rule: cached injection is cheaper in dollars only while the corpus stays below roughly ten times the retrieval payload. Scope and uncertainty are quantified in Section 8.

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

↑