TL;DR
This paper introduces SRAG, a novel framework for Multi-Entity Question Answering (MEQA) that tackles the challenge of consolidating scattered information across multiple documents. SRAG structures retrieved entity information into relational tables, enabling LLMs to perform more effective table-based reasoning and significantly outperforming existing methods with a 29.6% accuracy improvement.
What Problem Does This Paper Address?
Large Language Models (LLMs) often struggle with Multi-Entity Question Answering (MEQA) tasks, where questions require synthesizing information from numerous, disparate sources. Existing Retrieval-Augmented Generation (RAG) methods, while improving knowledge access, are limited by LLMs' difficulty in aggregating insights from many documents. This is particularly problematic for questions that involve identifying and reasoning about multiple entities and their properties, a common scenario in real-world knowledge bases like Wikipedia. The core challenge is to move beyond simple text aggregation and enable more structured, analytical reasoning over complex, interconnected information.
Methods
The proposed SRAG framework consists of two main components:
- Multi-entity Semantic Retrieval: This module enhances traditional retrieval by integrating LLMs with structured databases (specifically, Wikipedia's knowledge graph). It uses LLMs to generate more precise SPARQL queries, leveraging semantic parsing and Wikipedia's API to accurately identify and retrieve relevant entities and web pages. This process aims to improve retrieval accuracy by combining the contextual understanding of LLMs with the rigor of structured data validation.
- Structured Question Answering (SQA): This module takes the retrieved information and structures it for better reasoning.
- Schema Generation: An LLM (GPT-4) analyzes the question to determine a suitable table schema, identifying critical entities, attributes, and their relationships. This schema is then refined to avoid oversimplification, missing elements, or redundancy.
- Entity Information Extraction: An information extraction module (using Mistral-7B) populates the generated table by extracting relevant data from the retrieved Wikipedia pages. Each row represents a unique entity, and columns represent its properties.
- Executor: Finally, GPT-4 generates SQL queries based on the question and the populated table to derive the final answer. This decouples the reasoning process from raw text aggregation, allowing LLMs to focus on structured data analysis.
Datasets
The paper introduces MEBench, a specialized benchmark for MEQA. MEBench is curated from Wikipedia and comprises 4,780 methodically structured questions, divided into training (3,406 questions) and test (1,374 questions) sets. These questions are categorized into three primary types (Comparison, Statistics, Relationship) and further subdivided into eight distinct types to ensure broad coverage of real-world MEQA scenarios.
Key Insights and Ideas
- Structuring is Key: The fundamental insight is that organizing unstructured information into structured relational tables is crucial for enabling LLMs to perform complex reasoning, especially in multi-entity scenarios.
- Decoupling Retrieval and Reasoning: SRAG effectively separates the retrieval of information from the reasoning process. This allows LLMs to specialize in structured data analysis rather than being overwhelmed by raw text aggregation.
- Leveraging Wikipedia's Graph Structure: The framework effectively utilizes the inherent structure of Wikipedia's knowledge graph, combining it with LLM capabilities for more precise retrieval.
- Schema-Driven Reasoning: The explicit generation and use of a table schema before information extraction and query execution provide a robust framework for consistent and accurate answers.
Key Results
SRAG significantly outperforms state-of-the-art long-context LLMs and RAG solutions on the MEBench benchmark, achieving an overall accuracy of 88.9%. This represents a 29.6% improvement over the best baseline (GPT-4 + RAG).
- SRAG shows remarkable improvements in statistical query types (46% increase).
- It also outperforms baselines in relational and comparative query types by 11.6% and 17.1%, respectively.
- For specific sub-tasks like variance analysis and aggregation, SRAG achieves superior accuracy of 87.3% and 97.9%, respectively, where other methods struggle.
Limitations and Future Work
The authors acknowledge several limitations:
- Relation Semantic Parsing: The semantic parsing model in SPARQL retrieval sometimes struggles with accurately identifying relationships between entities, leading to errors in graph retrieval and subsequent reasoning.
- Insufficient Information Extraction: Errors can occur during table-filling, primarily due to omissions. Additionally, handling multi-word synonyms within the same column (e.g., "US" and "America") can negatively affect SQL execution.
- Ambiguous Queries: The system's ability to handle highly ambiguous queries, which require advanced semantic inference to grasp user intent, is a challenge. Balancing precision and recall for diverse query handling remains an area for improvement.
- Comparison with Simpler Techniques: The paper did not compare the SQL query-based table method with simpler techniques like keyword extraction and summarization, which could offer valuable insights.
Future work could focus on improving relation semantic parsing, enhancing information extraction robustness, developing better handling of ambiguous queries, and exploring comparisons with simpler text-based reasoning methods.
Summary updated