Introduction: The "Double Hurdle" of Financial QA
Large Language Models (LLMs) frequently struggle with financial question answering (QA) due to two primary challenges: dense industry-specific jargon and the requirement for complex, multi-step numerical reasoning. For instance, terms like "fair value" or "vested shares" carry specific meanings within a 10-K filing that general-purpose training data may not fully capture. Furthermore, answering a financial query often involves more than simple fact retrieval; it requires identifying relevant data points across text and tables and performing a sequence of mathematical operations.
Existing models often hallucinate figures or fail to map financial concepts to the necessary calculations. This paper addresses these gaps by introducing a Retrieval-Augmented Generation (RAG) system that provides models with "non-parametric memory"—a digital financial dictionary consulted dynamically during inference.
Methods: A Modular RAG Architecture
The researchers developed a modular architecture that integrates two specialized retrievers with dual generation paths to ensure both contextual relevance and mathematical precision.
1. Specialized Retrievers
- Internal Retriever: Utilizes a fine-tuned BERT-family model (specifically SecBERT, pre-trained on financial 10-K filings) to scan reports and extract the most pertinent sentences and table rows.
- External Retriever: Employs a Dense Passage Retrieval (DPR) system with FAISS to query an external dictionary. This provides precise definitions for technical terms found within the user's query, bridging the domain knowledge gap.
2. Dual Generators
- Neural Symbolic Generator: A hybrid RoBERTa + LSTM model that generates a "program"—a structured sequence of mathematical steps (e.g.,
divide(9413, 20.01)). This program is executed to produce a final numerical answer, minimizing calculation errors common in pure language models. - Prompt-based LLM Generator: Leverages state-of-the-art models like Google’s Gemini 1.5 Pro. By using retrieved context and definitions through few-shot prompting, these models reason through answers in natural language.
Datasets and Benchmarking
The system was evaluated using two key datasets:
- FinQA: A benchmark featuring 8,281 financial QA pairs from S&P 500 reports, complete with expert-annotated "gold standard" programs.
- FinRAD: A knowledge base of over 13,000 financial definitions. The authors used Gemini 1.0 Pro to condense these into concise, one-sentence definitions for more efficient retrieval.
Key Insights
- Domain-Specific Encoders: SecBERT significantly outperformed general-purpose BERT in retrieval tasks, demonstrating the value of domain-specific pre-training for identifying relevant information in dense financial reports.
- The Knowledge vs. Hallucination Trade-off: While adding external definitions improved performance for larger models like Gemini, it occasionally hindered smaller models due to context truncation or "distraction" from the extra text.
- Few-Shot Learning in Gemini 1.5 Pro: Unlike Gemini 1.0 Pro, which sometimes conflated example numbers with context data, Gemini 1.5 Pro showed a substantial performance boost with few-shot prompting, indicating superior reasoning capabilities.
Results and Performance
The integrated system achieved a new state-of-the-art (SOTA) execution accuracy of 69.37% using the SecBERT Internal + DPR External + Gemini 1.5 Pro configuration. This represents a >7% improvement over previous benchmarks. Notably, the neural symbolic model reached 63.48% accuracy with significantly less training (20 vs. 300 epochs) than prior top models, validating the efficiency of the retrieval strategy. Performance was consistently higher on "Table-only" questions (~68-71%) compared to mixed or text-only queries, as tables offer a more structured format for numerical extraction.
Limitations and Future Directions
Despite these advancements, a gap remains between AI performance and human expert accuracy (~91%).
- Unit Confusion: Over 65% of errors stemmed from "unit confusion" (e.g., failing to convert millions to billions).
- Context Constraints: Fixed token limits sometimes caused external knowledge to displace critical internal facts.
- Future Work: The authors propose fine-tuning Named Entity Recognition (NER) systems to selectively trigger external retrieval only for necessary financial terms, reducing noise and improving efficiency.
Summary updated