[Paper Review] Hybrid-RACA: Hybrid Retrieval-Augmented Composition Assistance for Real-time Text Prediction
HybridRAG combines a cloud LLM with a small client model via retrieval-augmented memory and asynchronous updates to enable real-time text prediction with reduced latency and improved utility over client-only baselines.
Large language models (LLMs) enhanced with retrieval augmentation has shown great performance in many applications. However, the computational demands for these models pose a challenge when applying them to real-time tasks, such as composition assistance. To address this, we propose Hybrid Retrieval-Augmented Composition Assistance (Hybrid-RACA), a novel system for real-time text prediction that efficiently combines a cloud-based LLM with a smaller client-side model through retrieval augmented memory. This integration enables the client model to generate better responses, benefiting from the LLM's capabilities and cloud-based data. Meanwhile, via a novel asynchronous memory update mechanism, the client model can deliver real-time completions to user inputs without the need to wait for responses from the cloud. Our experiments on five datasets demonstrate that Hybrid-RACA offers strong performance while maintaining low latency.
Motivation & Objective
- Motivate real-time composition assistance and address latency/cost challenges of retrieval-augmented LLMs.
- Propose a hybrid cloud–edge framework that uses asynchronous memory augmentation to aid a small client model.
- Demonstrate memory generation via retrieval and LLM compression to concise takeaways for the client.
Proposed method
- Four-component HybridRAG architecture: augmentation coordinator (client), memory-augmented client (client), retriever (cloud), memory generator (cloud).
- Asynchronous memory updates: the coordinator sends async requests; memory is compressed into concise takeaways by an LLM.
- Retrieval: Dense Passage Retrieval (DPR) selects top-k documents from a corpus for memory generation.
- Memory generation: an LLM extracts key takeaways from retrieved documents to form memory; memory is merged with existing memory on the client.
- Client model finetuning: instruction-tuning the client to leverage memory via a cross-entropy loss against LLM-generated references.
- Evaluation setup: compare OPT-125M and OPT-350M against Vanilla OPT, RAG, and variants of HybridRAG on multiple datasets; measure utility and latency.
Experimental results
Research questions
- RQ1Can HybridRAG improve utility of small client models for text prediction by leveraging cloud-generated memory?
- RQ2What is the latency impact of asynchronous memory augmentation vs. synchronous cloud usage?
- RQ3How does memory representation (concise takeaways) affect client model performance compared to feeding full retrieved text?
- RQ4How does instruction-tuning of the client model affect the ability to utilize memory?
- RQ5What is the effect of memory freshness (edit distance threshold) on predictive quality?
Key findings
- HybridRAG with memory augmentation consistently outperforms client-only and RAG baselines on multiple datasets and metrics.
- Asynchronous memory updates yield substantial latency gains vs. synchronous cloud usage (e.g., 138.3x faster in a cited comparison).
- Using LLM-generated concise memory takeaways improves utility over directly feeding retrieved text (HybridRAG w/o FT vs. RAG).
- Instruction-tuning the client model (HybridRAG IT) yields the largest gains across datasets and metrics.
- Larger client models (OPT-350M) generally outperform smaller ones (OPT-125M) across the reported results.
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.