From BM25 to Corrective RAG: Benchmarking Retrieval Strategies for Text-and-Table Documents
This paper benchmarks ten retrieval strategies on a large-scale financial text-and-table QA dataset, revealing that a hybrid retrieval pipeline with neural reranking outperforms single-stage methods and that BM25 often surpasses dense retrieval for financial documents, while offering actionable insights on the limited utility of query expansion for precise numerical queries.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are a detective trying to solve a complex financial mystery. You have a massive library of documents (annual reports, earnings statements) that are a mix of stories (text) and spreadsheets (tables). Your goal is to find the exact page and the exact number that answers a specific question, like "How much profit did Company X make in 2023?"
This paper is essentially a grand experiment to figure out the best way for a computer (an AI) to search through this library to find that needle in the haystack. The researchers tested 10 different "search strategies" to see which one works best for these tricky documents.
Here is the breakdown of their findings using simple analogies:
1. The Problem: The "Text vs. Table" Trap
Most AI search tools are great at finding stories. If you ask, "Tell me about the company's history," a standard AI search works like a librarian who knows exactly which book to pull off the shelf based on keywords.
But financial documents are tricky. They contain tables full of numbers.
- The Issue: If you ask, "What was the revenue growth?", a standard AI might get confused. It might look for the word "revenue" in the text but miss the number hidden in a spreadsheet cell. Or, it might understand the concept of growth but miss the specific year because the wording was slightly different.
- The Analogy: It's like trying to find a specific ingredient in a recipe. A "keyword search" finds the word "sugar," but a "semantic search" (understanding meaning) might find "sweetener." But in finance, you need the exact gram amount. If you get the wrong number, the whole recipe fails.
2. The Contenders: Who Did They Test?
The researchers pitted different search strategies against each other:
- The Old School (BM25): This is like a very strict librarian who only finds books if you use the exact words written on the spine. It doesn't understand synonyms, but it's incredibly good at finding specific terms like "Company Name" or "2023."
- The Modern AI (Dense Retrieval): This is like a smart assistant who understands the vibe and meaning of your question. It can find documents even if you use different words, but it sometimes gets fuzzy on exact numbers.
- The Hybrid (RRF): This is hiring both the strict librarian and the smart assistant, then letting them vote on which book is best.
- The "Guess the Answer" (HyDE): This strategy asks the AI to pretend it already knows the answer, write a fake document, and then search for that. (Think of it like a detective drawing a sketch of a suspect before finding them).
- The "Second Opinion" (Reranking): This is a senior editor who looks at the top 50 books the search found and re-sorts them to make sure the absolute best one is at the top.
3. The Big Surprises (The Results)
🏆 The Winner: The "Two-Stage Pipeline"
The absolute best strategy wasn't just one tool; it was a teamwork approach.
- Step 1: Use the Hybrid method (Librarian + Smart Assistant) to cast a wide net and grab the top 50 most likely documents.
- Step 2: Pass those 50 documents to a Super-Editor (a "Cross-Encoder Reranker") who reads the question and the document together to pick the single best match.
- Why it won: It combined the speed of casting a wide net with the precision of a deep dive. It found the right document 81.6% of the time, beating everyone else by a huge margin.
🚫 The Loser: "Guess the Answer" (HyDE)
The researchers tried the strategy where the AI guesses the answer first.
- The Result: It actually made things worse.
- The Analogy: Imagine a detective drawing a sketch of a suspect based on a vague description. In finance, if the AI "hallucinates" (guesses) a number like "$50 million" when the real number is "$48 million," the search gets confused and looks in the wrong place. For precise numbers, guessing is dangerous.
🤔 The Surprise: The Old School Librarian Won (Sometimes)
Everyone thought the "Smart Assistant" (Dense AI) would beat the "Strict Librarian" (BM25) because AI is supposed to be smarter.
- The Result: On financial documents, the Strict Librarian (BM25) actually beat the Smart Assistant.
- Why? Financial reports are full of specific jargon (ticker symbols, exact metric names). The AI sometimes gets too "chatty" and misses the exact match, while the librarian just matches the words perfectly.
4. What Should You Do? (The Takeaway)
If you are building an AI system to read financial reports or documents with tables, here is the recipe the authors suggest:
- Don't rely on just one search method. Combine the "keyword" search with the "meaning" search.
- Add a "Second Opinion" step. Always have a powerful AI re-check the top results to ensure the best one is on top. This is the single biggest upgrade you can make.
- Add "Context" before you search. Before indexing the documents, have an AI write a short summary of what the document is about (e.g., "This is Apple's 2023 report") and attach it to the file. This helps the search engine understand the document better.
- Stop guessing. Do not use strategies that try to "hallucinate" an answer to help the search. In finance, precision is king.
- Test on your own data. Don't just trust general AI benchmarks. Financial documents are unique; what works for news articles might fail for spreadsheets.
Summary
The paper proves that for complex documents mixing text and numbers, brute force isn't enough, and pure AI intuition isn't enough either. The secret sauce is hybrid teamwork: cast a wide net, then have a super-smart editor pick the winner. And remember, when dealing with money, exact words matter more than vague meanings.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.