FIT-RAG: Black-Box RAG with Factual Information and Token Reduction

Yuren Mao, Xuemei Dong, Wenyi Xu, Yunjun Gao, Bin Wei, Ying Zhang

TL;DR

FIT-RAG is a new framework designed to make Retrieval-Augmented Generation (RAG) both more accurate and significantly cheaper. By using a dual-label scoring system to ensure factual relevance and a "self-knowledge" check to avoid unnecessary searches, it boosts LLM accuracy by up to 27% while cutting token usage—and therefore API costs—by half.

What Problem Does This Paper Address?

Retrieval-Augmented Generation (RAG) has become the standard way to keep Large Language Models (LLMs) up to date without expensive fine-tuning. However, most "black-box" RAG systems (where the LLM is accessed via API and cannot be modified) suffer from two major inefficiencies:

  1. Factual Ignorance: Current systems often rank retrieved documents based solely on "LLM preference"—what the model likes to see. Surprisingly, an LLM might prefer a document that doesn't actually contain the answer, leading to confident hallucinations.
  2. Token Waste: Standard RAG simply concatenates the top-N retrieved documents and stuffs them into the prompt. This "brute force" approach wastes massive amounts of tokens on irrelevant text, driving up latency and costs.

The authors aim to bridge this gap by creating a system that only retrieves when necessary and only provides the most factually dense snippets of information.

Methods

The authors introduce FIT-RAG, which consists of three novel components:

  • Bi-label Document Scorer: Instead of a single score, this module uses two labels: Has_Answer (is the factual answer in this text?) and LLM_Prefer (does this text actually help the LLM answer correctly?). They use a T5 model fine-tuned with LoRA to balance these often-conflicting signals. To handle the fact that most retrieved documents are "bad," they use a data-imbalance-aware learning algorithm with hypergradient descent.
  • Bi-faceted Self-Knowledge Recognizer: This module asks, "Does the LLM already know this?" It checks if a question involves "long-tail" (rare) knowledge by using Wikipedia page views as a proxy for popularity. If the LLM is likely to know the answer, the system skips the retrieval step entirely to save tokens.
  • Sub-document-level Token Reducer: Rather than sending whole documents, FIT-RAG identifies the specific "sub-documents" (small chunks) that are most likely to trigger a correct response. It uses a greedy search algorithm to find the smallest combination of snippets that allows the LLM to answer correctly.

Datasets

The framework was evaluated on three widely recognized open-domain question-answering benchmarks:

  • TriviaQA: A large-scale dataset of trivia enthusiasts' questions.
  • Natural Questions (NQ): Real, anonymized queries from Google search users.
  • PopQA: A dataset specifically designed to test "long-tail" knowledge (entities that appear infrequently in training data).

Key Insights and Ideas

  • LLM Preference $\neq$ Factual Correctness: One of the most interesting findings is that LLMs can be "misled" by documents they prefer. A document might look relevant to the model's attention mechanism but lack the actual ground-truth answer. FIT-RAG’s dual-scoring system forces the retriever to prioritize truth over "vibes."
  • The "Less is More" Prompt: By reducing documents to their most essential sub-sections, the authors found they could actually improve accuracy. Too much context can "drown out" the answer, a phenomenon often called "lost in the middle."
  • Wikipedia as a Proxy for "Memory": Since we can't see inside a black-box LLM's weights, the authors used Wikipedia traffic as a clever proxy. If a topic has very low page views, the LLM likely didn't see it enough during pre-training to "memorize" it, making retrieval mandatory.

Key Results

FIT-RAG demonstrated impressive gains across the board when tested with Llama2-13B-Chat:

  • Accuracy Boost: It improved answering accuracy by 14.3% on TriviaQA, 19.9% on NQ, and a staggering 27.5% on PopQA compared to the base model.
  • Efficiency: It saved approximately 50% of tokens on average across all datasets compared to state-of-the-art RAG methods like REFEED and AAR.
  • Competitive Edge: FIT-RAG enabled the 13B parameter Llama2 model to outperform the much larger ChatGPT (GPT-3.5) on the TriviaQA dataset.

Limitations and Future Work

While FIT-RAG is highly effective, the authors note a few areas for growth:

  • Input-Only Augmentation: The current version only optimizes the input (the prompt). The authors suggest that future versions could use retrieved documents to "edit" or refine the LLM's output dynamically.
  • Domain Specificity: The "Self-Knowledge Recognizer" relies on Wikipedia page views. This proxy might not work as well for highly specialized domains (like internal corporate legal docs or private medical data) where public traffic data doesn't exist.
  • Computational Overhead: While it saves tokens (and thus API costs), the bi-label scorer and sub-document reducer add their own small computational steps to the pipeline, which might impact total system latency in real-time applications.

Summary updated

BibTeX
@article{mao2025fit,
  author = {Yuren Mao and Xuemei Dong and Wenyi Xu and Yunjun Gao and Bin Wei and Ying Zhang},
  title = {{FIT-RAG: Black-Box RAG with Factual Information and Token Reduction}},
  journal = {ACM Trans. Information Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=wu5GYR3Ck9},
}
Figure