Abstract
We present a comprehensive framework for enhancing Retrieval-AugmentedGeneration (RAG) systems through dynamic retrieval strategies and reinforcementfine-tuning. This approach significantly improves large language models onknowledge-intensive tasks, including opendomain question answering and complexreasoning. Our framework integrates two complementary techniques:Policy-Optimized RetrievalAugmented Generation (PORAG), which optimizes the useof retrieved information, and Adaptive Token-Layer Attention Scoring (ATLAS),which dynamically determines retrieval timing and content based on contextualneeds. Together, these techniques enhance both the utilization and relevance ofretrieved content, improving factual accuracy and response quality. Designed asa lightweight solution compatible with any Transformer-based LLM withoutrequiring additional training, our framework excels in knowledge-intensivetasks, boosting output accuracy in RAG settings. We further propose CRITIC, anovel method to selectively compress key-value caches by token importance,mitigating memory bottlenecks in long-context applications. The framework alsoincorporates test-time scaling techniques to dynamically balance reasoningdepth and computational resources, alongside optimized decoding strategies forfaster inference. Experiments on benchmark datasets show that our frameworkreduces hallucinations, strengthens domain-specific reasoning, and achievessignificant efficiency and scalability gains over traditional RAG systems. Thisintegrated approach advances the development of robust, efficient, and scalableRAG systems across diverse applications.