This paper shows how LLMs can retrieve knowledge directly while generating text, no separate retriever needed.
RetroLLM unifies retrieval and generation into a single process, enabling LLMs to directly generate evidence from knowledge sources while reducing deployment costs and token usage.
-----
https://arxiv.org/abs/2412.11919
π€ Original Problem:
Traditional Retrieval-Augmented Generation (RAG) systems require separate retrievers, consume excessive tokens, and lack joint optimization between retrieval and generation components.
-----
π§ Solution in this Paper:
β RetroLLM integrates retrieval directly into the generation process through hierarchical FM-Index constraints
β The system first generates corpus-constrained clues to identify relevant document subsets
β It employs forward-looking constrained decoding that considers future sequence relevance when generating evidence
β The model autonomously decides how much evidence to retrieve and when to generate the final response
-----
π‘ Key Insights:
β Unified frameworks eliminate the need for separate retrievers and enable true joint optimization
β Hierarchical constraints help reduce false pruning during evidence generation
β Forward-looking strategies improve evidence accuracy by considering future relevance
-----
π Results:
β Uses 2.1x fewer tokens than traditional RAG methods
β Achieves superior R@1 scores compared to dense retrievers
β Outperforms existing methods across both in-domain and out-of-domain tasks on 5 QA datasets
β Uses only 3.29 passages on average versus 5 for baselines










