AIIRMay 25, 2025

Weaver: Interweaving SQL and LLM for Table Reasoning

arXiv:2505.18961v29 citationsh-index: 7EMNLP
Originality Incremental advance
AI Analysis

This addresses the problem of complex table reasoning for users needing to query mixed structured and unstructured data, representing an incremental improvement over existing hybrid approaches.

The paper tackles the challenge of querying tables with unstructured data by introducing Weaver, a modular pipeline that dynamically integrates SQL and LLMs for table-based question answering, resulting in consistent outperformance of state-of-the-art methods across four datasets with reduced API calls and error rates.

Querying tables with unstructured data is challenging due to the presence of text (or image), either embedded in the table or in external paragraphs, which traditional SQL struggles to process, especially for tasks requiring semantic reasoning. While Large Language Models (LLMs) excel at understanding context, they face limitations with long input sequences. Existing approaches that combine SQL and LLMs typically rely on rigid, predefined work-flows, limiting their adaptability to complex queries. To address these issues, we introduce Weaver , a modular pipeline that dynamically integrates SQL and LLMs for table-based question answering (TableQA). Weaver generates a flexible, step-by-step plan that combines SQL for structured data retrieval with LLMs for semantic processing. By decomposing complex queries into manageable subtasks, Weaver improves accuracy and generalization. Our experiments show that Weaver consistently outperforms state-of-the-art methods across four TableQA datasets, reducing both API calls and error rates. The code, along with other associated scripts, are available at https://coral-lab-asu.github.io/weaver.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes