Abstract
NeuSym-RAG is a hybrid retrieval framework designed to overcome the limitations of traditional Retrieval-Augmented Generation (RAG) in handling complex PDF documents. By integrating neural vector search with symbolic SQL-based retrieval and structuring PDFs into multi-view relational databases, NeuSym-RAG enables LLM agents to perform iterative, precise queries across text, tables, and figures. This approach significantly improves performance on complex academic QA benchmarks where standard "flat text" RAG systems often fail.
Introduction
The standard approach to Retrieval-Augmented Generation (RAG) typically treats PDF documents as a linear sequence of text chunks. While effective for simple semantic queries, this "flat text" paradigm ignores the inherent structural richness of academic and technical papers, which contain sections, tables, formulas, and figures. This leads to two primary issues: the isolation of retrieval paradigms and the loss of context due to single-view chunking. Neural retrieval excels at fuzzy matching but lacks precision for structured data (e.g., "How many tables are in section 3?"), while symbolic retrieval (SQL) is precise but struggles with natural language variations.
Methodology: The NeuSym-RAG Pipeline
NeuSym-RAG addresses these challenges through a three-stage pipeline that transforms unstructured PDFs into a queryable, structured environment for an LLM agent.
1. Multiview Document Parsing
The system parses PDFs into multiple hierarchical "views," including pages, sections, tables, figures, and formulas. This data is stored in a relational DuckDB database. Metadata is enriched via external APIs (e.g., arXiv), and non-textual elements are processed using OCR and vision models to generate descriptive summaries.
2. Multimodal Vector Encoding
To bridge the gap between structured data and semantic search, specific columns such as section summaries or table captions are embedded into a Milvus vectorstore. This creates a bridge, allowing the system to perform semantic lookups that point directly to structured records in the database.
3. Iterative Agent Interaction
The framework employs a ReAct-style agent equipped with a toolbox of specialized actions:
- RETRIEVEFROMVECTORSTORE: For semantic, fuzzy searches.
- RETRIEVEFROMDATABASE: For precise SQL queries.
- VIEWIMAGE: To extract and visually inspect specific crops of figures or tables.
- CALCULATEEXPR: A Python-based calculator to prevent mathematical hallucinations.
Architectural Evolution
NeuSym-RAG represents a significant shift from static RAG architectures to dynamic, agentic systems.
As shown in Figure 4, while classic RAG relies solely on embedding models and vectorstores, NeuSym-RAG integrates a full environment containing a database, vectorstore, image viewer, and calculator. This allows the LLM agent to choose the most appropriate tool for each step of a multi-turn reasoning process, enabling it to "self-correct" if a vector search returns noisy results.
Experimental Evaluation
The authors evaluated NeuSym-RAG on three benchmarks: AIRQA-REAL (a new human-annotated dataset of 553 complex questions), M3SciQA, and SciDQA.
Key results include:
- Significant Performance Gains: NeuSym-RAG outperformed "Classic RAG" by 17.3 percentage points on AIRQA-REAL.
- Superiority over Structured Baselines: It consistently beat advanced methods like GraphRAG and HybridRAG, proving that a flexible agentic approach is more robust than static structures.
- Open-Source Parity: State-of-the-art open-source models like Qwen2.5-VL-72B outperformed GPT-4o-mini in this complex agentic environment.
Conclusion
NeuSym-RAG demonstrates that structuring document data and providing agents with hybrid retrieval tools is essential for high-fidelity PDF question answering. While the pre-processing and iterative latency are higher than traditional methods, the gains in accuracy and robustness—especially for non-textual elements like tables and formulas—make it a powerful framework for document-heavy domains like research, medicine, and law.
Summary updated