[Paper Review] SimplyRetrieve: A Private and Lightweight Retrieval-Centric Generative AI Tool
SimplyRetrieve is an open-source, lightweight, and privacy-preserving tool that enables Retrieval-Centric Generation (RCG) using large language models (LLMs) without fine-tuning. By separating context interpretation (handled by the LLM) from knowledge memorization (managed by a retriever), RCG improves factual accuracy, reduces hallucinations, and accelerates inference—achieving a 36% reduction in response tokens and a 30% speedup over baseline LLMs, with Rouge-L scores rising from 0.186 (ROG) to 0.413 (RCG).
Large Language Model (LLM) based Generative AI systems have seen significant progress in recent years. Integrating a knowledge retrieval architecture allows for seamless integration of private data into publicly available Generative AI systems using pre-trained LLM without requiring additional model fine-tuning. Moreover, Retrieval-Centric Generation (RCG) approach, a promising future research direction that explicitly separates roles of LLMs and retrievers in context interpretation and knowledge memorization, potentially leads to more efficient implementation. SimplyRetrieve is an open-source tool with the goal of providing a localized, lightweight, and user-friendly interface to these sophisticated advancements to the machine learning community. SimplyRetrieve features a GUI and API based RCG platform, assisted by a Private Knowledge Base Constructor and a Retrieval Tuning Module. By leveraging these capabilities, users can explore the potential of RCG for improving generative AI performance while maintaining privacy standards. The tool is available at https://github.com/RCGAI/SimplyRetrieve with an MIT license.
Motivation & Objective
- To democratize access to Retrieval-Centric Generation (RCG) by providing a user-friendly, locally deployable platform for developers and researchers.
- To address the limitations of standard LLMs in memorizing long-tail factual knowledge and reducing hallucinations through explicit separation of roles between LLMs and retrievers.
- To enable private, on-device deployment of generative AI systems using a private knowledge base and retrieval tuning, avoiding reliance on cloud-based LLMs.
- To explore the performance, efficiency, and interpretability benefits of RCG compared to traditional retrieval-augmented generation (RAG) and zero-shot prompting.
- To support the development of safer, more responsible AI by facilitating prompt engineering and retrieval optimization in a controlled, privacy-preserving environment.
Proposed method
- Implementing a GUI and API-based interface for end-to-end RCG workflow, enabling users to interact with LLMs via retrieved knowledge without model fine-tuning.
- Introducing a Private Knowledge Base Constructor to allow users to build and manage domain-specific, locally stored knowledge repositories.
- Incorporating a Retrieval Tuning Module to optimize retrieval quality and relevance, improving downstream generation performance.
- Supporting Mixtures-of-Knowledge-Bases (MoKB) mode to dynamically combine multiple knowledge sources for improved coverage and accuracy.
- Applying Explicit Prompt-Weighting (EPW) to control how much retrieved knowledge is injected into the prompt, with 50% EPW shown to maintain factual consistency.
- Using Llama-2-13B-chat as the LLM backbone and evaluating performance via Rouge-L scores and inference time on a self-generated dataset.
Experimental results
Research questions
- RQ1Can a retrieval-centric approach significantly reduce hallucinations in LLM-generated responses compared to standard zero-shot prompting?
- RQ2How does RCG compare to traditional RAG and direct LLM prompting (ROG) in terms of factual accuracy, response length, and inference speed?
- RQ3To what extent can a 13B-parameter LLM generate accurate, factual responses on unseen knowledge without fine-tuning when using RCG?
- RQ4How effective is Explicit Prompt-Weighting (EPW) in balancing retrieval influence and generation quality in RCG?
- RQ5Can a lightweight, locally hosted RCG system achieve competitive performance while maintaining data privacy and reducing computational overhead?
Key findings
- RCG achieved a Rouge-L score of 0.413, significantly outperforming the baseline ROG (0.186) and RAG (0.359), demonstrating superior factual generation accuracy.
- Despite longer prompts due to injected knowledge, RCG reduced average response token count by 36% compared to ROG, indicating more concise and focused generation.
- RCG reduced average inference time to 11.67 seconds per query, a 32% improvement over ROG (17.22s), indicating higher efficiency despite longer input context.
- With 50% Explicit Prompt-Weighting (RCG-EPW), the model maintained factual accuracy while producing partial responses, suggesting a trade-off between completeness and reliability.
- The RCG approach effectively mitigated hallucinations—ROG generated a hallucinatory response about Kioxia’s image classification work, while RCG correctly attributed it to high-capacity storage development.
- Even a 13B-parameter LLM demonstrated strong performance in RCG on unseen factual knowledge without fine-tuning, indicating feasibility for real-world deployment in privacy-sensitive environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.