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

BlendSQL:一种用于在关系代数中统一混合问答的可扩展方言

BlendSQL: A Scalable Dialect for Unifying Hybrid Question Answering in Relational Algebra

Fidelity Investments(富达投资)

Parker Glenn, Parag Pravin Dakle, Liang Wang, Preethi Raghavan

AI总结:

本文提出BlendSQL,一种基于SQLite超集的统一方言,通过将多跳混合问答的完整推理路线图编码为单个可解释查询,在减少35% token用量的同时提升端到端系统在大规模数据上的性能。

摘要:

许多现有的面向混合问答任务的端到端系统往往可以归结为一种“提示并祈祷”的范式,用户对用于达成最终结果的中间推理步骤只有有限的控制和洞察。此外,由于许多基于Transformer的大语言模型存在上下文长度限制,期望在零样本设置中将完整的结构化和非结构化上下文放入给定提示中往往并不合理,更不用说少样本设置了。我们引入了BlendSQL,它是SQLite的一个超集,作为一种统一方言,用于在非结构化和结构化数据之间协调推理。对于涉及多跳推理的混合问答任务,我们将完整的分解推理路线图编码为单个可解释的BlendSQL查询。值得注意的是,我们表明BlendSQL可以扩展到大规模数据集,并在使用少35%的token的同时提升端到端系统的性能。我们的代码可用,并可作为软件包安装,地址为https://github.com/parkervg/blendsql。

英文摘要:

Many existing end-to-end systems for hybrid question answering tasks can often be boiled down to a "prompt-and-pray" paradigm, where the user has limited control and insight into the intermediate reasoning steps used to achieve the final result. Additionally, due to the context size limitation of many transformer-based LLMs, it is often not reasonable to expect that the full structured and unstructured context will fit into a given prompt in a zero-shot setting, let alone a few-shot setting. We introduce BlendSQL, a superset of SQLite to act as a unified dialect for orchestrating reasoning across both unstructured and structured data. For hybrid question answering tasks involving multi-hop reasoning, we encode the full decomposed reasoning roadmap into a single interpretable BlendSQL query. Notably, we show that BlendSQL can scale to massive datasets and improve the performance of end-to-end systems while using 35% fewer tokens. Our code is available and installable as a package at https://github.com/parkervg/blendsql.

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

↑