In the high-stakes world of financial analysis, a single misplaced decimal point or a stale stock price isn't just a "hallucination"—it’s a substantive failure. While Large Language Models (LLMs) are excellent at writing fluent prose, they are notoriously unreliable at arithmetic, routing complex queries, and citing their sources accurately.
The paper FinVeriQA introduces an open-source multi-agent research prototype designed to solve these issues by asking a fundamental question: Which component should do each job? Instead of relying on one LLM to do everything, FinVeriQA decomposes financial question-answering into specialized tasks handled by the right tools for the job.
TL;DR
FinVeriQA is a multi-agent system that eliminates financial hallucinations by offloading math to Python, routing queries via specialized compact models, and enforcing independent verification. The researchers demonstrate that specialized components outperform massive LLMs in accuracy and reliability, particularly by identifying a "shared evidence" trap where agents confidently agree on corrupted data.
What Problem Does This Paper Address?
Financial research requires processing dense SEC filings (like Form 10-Q), which can exceed 100 pages of structured tables and narrative text. Current LLM-based assistants face three primary hurdles:
- Mathematical Incompetence: LLMs frequently miscompute ratios and growth rates.
- Routing Failures: They often send questions to the wrong tool (e.g., looking for live stock prices in static PDF filings).
- The Verification Gap: Even when an LLM cites a source, it might be citing a "corrupted" version of the evidence it was given, leading to high-confidence errors that internal validators fail to catch.
Methods
FinVeriQA employs a "separation of concerns" architecture featuring six specialized agents:
- Laya (Router): A compact (421M parameter) typed-decision model based on ModernBERT that routes questions to the correct pipeline.
- Analysis Agent: Uses Python to perform all calculations, ensuring 100% mathematical accuracy.
- Market Agent: Fetches live data via the Finnhub API to avoid stale-price hallucinations.
- Report Agent: Uses Mistral-7B solely for drafting the final answer based on provided notes.
- Shared Variable Memory (CAVM): Instead of agents "talking" to each other (which can lead to message drift), they read and write to a shared memory space.
- Validator: A code-based guardrail that ensures every number in the final answer exists in the computed notes and every citation ID is valid.
The system also utilizes the Model Context Protocol (MCP) to expose these tools to other agents in a standardized, read-only format.
Datasets
The authors evaluated FinVeriQA using several benchmarks:
- D1: A custom set of 100 labeled items for routing and sentiment analysis.
- D2: 100 financial-math problems with exact Python-derived ground truths.
- FinRank: A benchmark of 1,185 manually authored QA records over SEC filings used to test evidence verification.
- Live Market Data: Real-time quotes from 10 large-cap tickers via Finnhub.
Key Insights and Ideas
- Specialization Beats Scale: A tiny 421M parameter model (Laya) routed questions significantly better than a 12B parameter Mistral model. Scaling the LLM did not close the routing gap; specialized architecture did.
- The "Shared Evidence" Trap: The researchers discovered that if the evidence provided to an agent is corrupted, "self-consistency" (sampling the model multiple times) actually increases the model's confidence in the wrong answer.
- Independent Provenance is Mandatory: Verification must be independent of the evidence the writer saw. A check against the original source caught 77% of errors, whereas checking against the provided evidence (shared-evidence check) only caught 35%.
- Math Belongs in Code: LLMs should never do arithmetic. By moving math to Python, the system moved from 29% accuracy (Mistral-7B) to 100%.
Key Results
- Routing Accuracy: Laya achieved 0.85 accuracy compared to Mistral-7B's 0.52.
- Mathematical Precision: Python-based agents achieved 100% accuracy on financial calculations, while Mistral-7B correctly computed only 29%.
- Live Data Impact: Using a live quote tool reduced price errors from 210% (hallucinated/stale) to 0.00%.
- Verification: In a controlled study, independent provenance verification caught 77% of corrupted-evidence errors, nearly double the rate of standard internal checks.
Limitations and Future Work
The authors acknowledge that their test sets are relatively small and focused on large U.S. technology firms. Currently, the validator checks for the existence of citations but not necessarily their relevance or coverage.
Future work includes:
- Integrating full XBRL (eXtensible Business Reporting Language) data hookups.
- Implementing "what changed" views to compare consecutive filings.
- Conducting user studies with finance students to evaluate the system's utility as a research assistant.
By treating an LLM as just one component in a larger, deterministic machine, FinVeriQA provides a blueprint for building trustworthy AI in domains where "mostly right" isn't good enough.
Summary updated