Chain-of-Rank: Enhancing Large Language Models for Domain-Specific RAG in Edge Device
Preprint
Abstract
Retrieval-augmented generation (RAG) with large language models (LLMs) is especially valuable in specialized domains, where precision is critical. To more specialize the LLMs into a target domain, domain-specific RAG has recently been developed by allowing the LLM to access the target domain early via finetuning. The domain-specific RAG makes more sense in resource-constrained environments like edge devices, as they should perform a specific task (e.g. personalization) reliably using only small-scale LLMs. While the domain-specific RAG is well-aligned with edge devices in this respect, it often relies on widely-used reasoning techniques like chain-of-thought (CoT). The reasoning step is useful to understand the given external knowledge, and yet it is computationally expensive and difficult for small-scale LLMs to learn it. Tackling this, we propose the Chain of Rank (CoR) which shifts the focus from intricate lengthy reasoning to simple ranking of the reliability of input external documents. Then, CoR reduces computational complexity while maintaining high accuracy, making it particularly suited for resource-constrained environments. We attain the state-of-the-art (SOTA) results in benchmarks, and analyze its efficacy.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Chain-of-Thought Reasoning Without Prompting2024
- Chain-of-Note: Enhancing Robustness in Retrieval-Augmented Language Models2024
- Survey of Hallucination in Natural Language GenerationACM Computing Surveys, 2023
- Chain-Of-Thought Prompting Elicits Reasoning in Large Language Models2022
- Dense Passage Retrieval for Open-Domain Question Answering2020
- HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answering2018