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

Halo:面向长上下文问题回答的领域感知查询优化

Halo: Domain-Aware Query Optimization for Long-Context Question Answering

Amazon Web Services(亚马逊云科技);Georgia Institute of Technology(佐治亚理工学院);Cisco(思科)

Pramod Chunduri, Francisco Romero, Ali Payani, Kexin Rong, Joy Arulraj

AI总结:

Halo通过自动提取领域知识并应用于多阶段查询流程,提升长上下文问题回答的准确性和效率,实验表明其在金融、文献和科学数据集上准确率提升13%,成本降低4.8倍。

摘要:

长上下文问题回答(QA)在长文档上至关重要,应用于金融分析、法律审查和科学研究。当前方法如单次LLM调用处理整个文档或通过RAG检索相关片段有两个缺点:第一,随着上下文增大,响应质量下降影响准确性;第二,迭代处理数百个输入文档会导致API调用成本过高。为提高响应质量和减少迭代次数,用户倾向于将领域知识添加到提示中。然而,现有系统未能系统地捕获和利用这些知识来指导查询处理。领域知识被视为提示标记与文档并列:LLM可能或可能不遵循它,没有减少计算成本,当输出错误时,用户必须手动迭代。我们提出了Halo,一个长上下文QA框架,能够自动从用户提示中提取领域知识,并将其作为可执行操作符应用于多阶段查询执行流程。Halo识别了三种常见的领域知识形式——在文档中查找的位置、需要忽略的内容以及如何验证答案,并在最有效的流程阶段应用每种知识:在分块选择前修剪文档,推理前过滤无关分块,生成后对候选响应进行排名。为处理不精确或无效的领域知识,Halo包含一个回退机制,可以在运行时检测低质量的操作符并选择性地禁用它们。我们在金融、文献和科学数据集上的评估表明,Halo在准确率上比基线高13%,成本降低4.8倍,并使轻量级开源模型在78倍更低的成本下接近前沿LLM的准确性。

英文摘要:

Long-context question answering (QA) over lengthy documents is critical for applications such as financial analysis, legal review, and scientific research. Current approaches, such as processing entire documents via a single LLM call or retrieving relevant chunks via RAG have two drawbacks: First, as context size increases, response quality can degrade, impacting accuracy. Second, iteratively processing hundreds of input documents can incur prohibitively high costs in API calls. To improve response quality and reduce the number of iterations needed to get the desired response, users tend to add domain knowledge to their prompts. However, existing systems fail to systematically capture and use this knowledge to guide query processing. Domain knowledge is treated as prompt tokens alongside the document: the LLM may or may not follow it, there is no reduction in computational cost, and when outputs are incorrect, users must manually iterate. We present Halo, a long-context QA framework that automatically extracts domain knowledge from user prompts and applies it as executable operators across a multi-stage query execution pipeline. Halo identifies three common forms of domain knowledge - where in the document to look, what content to ignore, and how to verify the answer - and applies each at the pipeline stage where it is most effective: pruning the document before chunk selection, filtering irrelevant chunks before inference, and ranking candidate responses after generation. To handle imprecise or invalid domain knowledge, Halo includes a fallback mechanism that detects low-quality operators at runtime and selectively disables them. Our evaluation across finance, literature, and scientific datasets shows that Halo achieves up to 13% higher accuracy and 4.8x lower cost compared to baselines, and enables a lightweight open-source model to approach frontier LLM accuracy at 78x lower cost.

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

↑