Recent advancements in language models (LMs) have notably enhanced their ability to reason with tabular data, primarily through program-aided mechanisms that manipulate and analyze tables. However, these methods often require the entire table as input, leading to scalability challenges due to the positional bias or context length constraints. In response to these challenges, we introduce TableRAG, a Retrieval-Augmented Generation (RAG) framework specifically designed for LM-based table understanding. TableRAG leverages query expansion combined with schema and cell retrieval to pinpoint crucial information before providing it to the LMs. This enables more efficient data encoding and precise retrieval, significantly reducing prompt lengths and mitigating information loss. We have developed two new million-token benchmarks from the Arcade and BIRD-SQL datasets to thoroughly evaluate TableRAG's effectiveness at scale. Our results demonstrate that TableRAG's retrieval design achieves the highest retrieval quality, leading to the new state-of-the-art performance on large-scale table understanding.
TableQuery: Querying tabular data with natural language
Saama(萨玛);Activeloop(活跃循环);Oregon State University(俄勒冈州立大学)
本文介绍了TableQuery,这是一种使用预训练的深度学习模型来查询表格数据的新工具,用于回答自由文本的问题。针对表格数据的问答的现有深度学习方法具有各种局限性,例如必须将整个表格作为输入馈送到神经网络模型中,这使得它们不适合大多数现实世界的应用。由于真实世界的数据可能包含数百万行,因此可能无法完全放入内存中。此外,数据可以存储在实时更新的实时数据库中,并且每次更新时将整个数据库串行化为神经网络友好格式是不切实际的。在TableQuery中,我们使用针对自由文本问答预先训练的深度学习模型,将自然语言查询转换为结构化查询,可以针对数据库或电子表格运行。这种方法消除了将整个数据装入内存以及序列化数据库的需要。此外,针对自由文本问答预训练的深度学习模型可以在HuggingFace Model Hub(7)等平台上轻松获得。TableQuery不需要重新训练;当新训练的问答模型具有更好的性能时,它可以替换TableQuery中的现有模型。
Beyond Text and Tables: Vision-Language Model Integration in ComProScanner for Extracting Materials Data from Scientific Figures with High Accuracy
Energy, Materials and Environment Research Centre, London South Bank University, London SE1 0AA, UK(能源、材料与环境研究中心,伦敦南银行大学);School of Engineering and Design, London South Bank University, London SE1 0AA, UK(工程与设计学院,伦敦南银行大学);Bioscience and Bioengineering Research Centre, London South Bank University, London SE1 0AA, UK(生物科学与生物工程研究中心,伦敦南银行大学);Department of Physics, Kings College London, London WC2R 2LS, UK(物理系,伦敦国王学院)