Adding rule-based guidance doubles RAG's performance in document retrieval and answer generation.
Basically, RAG gets a proper manual on how to use its knowledge.
It's like giving RAG a GPS instead of letting it wander around blindly.
π https://arxiv.org/abs/2410.22353
π― Original Problem:
Current Retrieval-Augmented Generation (RAG) frameworks face two major limitations: retrievers can't guarantee fetching the most relevant information, and LLMs lack specific guidance on using retrieved content effectively.
-----
π§ Solution in this Paper:
β Introduces RuleRAG, which uses symbolic rules to guide both retrieval and generation processes.
β Guide retrievers to fetch logically related documents following rule directions
β Help generators uniformly generate answers attributed by the same set of rules
β Use queries and rules combined as supervised fine-tuning data to improve rule-based instruction following
β RuleRAG-ICL: Uses in-context learning with rule guidance during retrieval and inference
β RuleRAG-FT: Fine-tunes both retrievers and generators using rule-guided fine-tuning
β Created five rule-aware QA benchmarks (three temporal, two static) to evaluate performance
-----
π‘ Key Insights:
β Rules can explicitly guide both document retrieval and answer generation
β Combining rules with queries improves retrieval quality significantly
β Rule-guided fine-tuning enhances both retrieval and generation performance
β The method scales well with increasing numbers of retrieved documents
-----
π Results:
β RuleRAG-ICL improved retrieval quality by +89.2% in Recall@10 scores
β Generation accuracy increased by +103.1% in exact match scores
β RuleRAG-FT achieved even better performance improvements across all benchmarks
β Method showed strong generalization ability for untrained rules










