Open-RAG: Enhanced Retrieval-Augmented Reasoning with Open-Source Large Language Models

Shayekh Bin Islam, Md Asib Rahman, K S M Tozammel Hossain, Enamul Hoque, Shafiq Joty +1 more
10/2/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: ShayekhBinIslam/openrag (147 stars, CC-BY-4.0, last commit 2025-02-20).

Abstract

Retrieval-Augmented Generation (RAG) has been shown to enhance the factual accuracy of Large Language Models (LLMs), but existing methods often suffer from limited reasoning capabilities in effectively using the retrieved evidence, particularly when using open-source LLMs. To mitigate this gap, we introduce a novel framework, Open-RAG, designed to enhance reasoning capabilities in RAG with open-source LLMs. Our framework transforms an arbitrary dense LLM into a parameter-efficient sparse mixture of experts (MoE) model capable of handling complex reasoning tasks, including both single- and multi-hop queries. Open-RAG uniquely trains the model to navigate challenging distractors that appear relevant but are misleading. As a result, Open-RAG leverages latent learning, dynamically selecting relevant experts and integrating external knowledge effectively for more accurate and contextually relevant responses. In addition, we propose a hybrid adaptive retrieval method to determine retrieval necessity and balance the trade-off between performance gain and inference speed. Experimental results show that the Llama2-7B-based Open-RAG outperforms state-of-the-art LLMs and RAG models such as ChatGPT, Self-RAG, and Command R+ in various knowledge-intensive tasks. We open-source our code and models at https://openragmoe.github.io/

View on arXivView PDF

Code Implementations(1)

CC-BY-4.0

Official Code for Oᴘᴇɴ-RAG: Enhanced Retrieval Augmented Reasoning with Open-Source Large Language Models (EMNLP Findings 2024)

14714PythonAug 9, 20241 years agoCC-BY-4.0

Similar Papers

Cite this paper

@article{islam2024openrag,
  title  = {Open-RAG: Enhanced Retrieval-Augmented Reasoning with Open-Source Large Language Models},
  author = {Shayekh Bin Islam and Md Asib Rahman and K S M Tozammel Hossain and Enamul Hoque and Shafiq Joty and Md Rizwan Parvez},
  year   = {2024},
  eprint = {2410.01782},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.01782v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.01782.svg)](https://codeofpaper.com/paper/2410.01782)

Discussion