LaRA: Benchmarking Retrieval-Augmented Generation and Long-Context LLMs - No Silver Bullet for LC or RAG Routing

标杆管理 背景(考古学) 银弹 布线(电子设计自动化) 计算机科学 历史 业务 社会学 营销 计算机网络 考古 人类学
作者
Kuan Li,Liwen Zhang,Yong Jiang,Pengjun Xie,Fei Huang,Shuai Wang,M. Cheng
出处
期刊:Cornell University - arXiv
标识
DOI:10.48550/arxiv.2502.09977
摘要

Effectively incorporating external knowledge into Large Language Models (LLMs) is crucial for enhancing their capabilities and addressing real-world needs. Retrieval-Augmented Generation (RAG) offers an effective method for achieving this by retrieving the most relevant fragments into LLMs. However, the advancements in context window size for LLMs offer an alternative approach, raising the question of whether RAG remains necessary for effectively handling external knowledge. Several existing studies provide inconclusive comparisons between RAG and long-context (LC) LLMs, largely due to limitations in the benchmark designs. In this paper, we present LaRA, a novel benchmark specifically designed to rigorously compare RAG and LC LLMs. LaRA encompasses 2,326 test cases across four practical QA task categories and three types of naturally occurring long texts. Through systematic evaluation of seven open-source and four proprietary LLMs, we find that the optimal choice between RAG and LC depends on a complex interplay of factors, including the model's parameter size, long-text capabilities, context length, task type, and the characteristics of the retrieved chunks. Our findings provide actionable guidelines for practitioners to effectively leverage both RAG and LC approaches in developing and deploying LLM applications. Our code and dataset is provided at: \href{https://github.com/likuanppd/LaRA}{\textbf{https://github.com/likuanppd/LaRA}}.

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
Agernon应助杨杨杨采纳,获得10
刚刚
能干冰露完成签到,获得积分10
1秒前
1秒前
灵巧的雁易完成签到,获得积分10
1秒前
所所应助嘿嘿采纳,获得10
1秒前
Leslie完成签到 ,获得积分10
1秒前
1秒前
敬老院N号发布了新的文献求助30
2秒前
科研通AI5应助铁柱采纳,获得10
2秒前
3秒前
小程同学发布了新的文献求助10
3秒前
3秒前
4秒前
4秒前
安安发布了新的文献求助10
4秒前
4秒前
4秒前
5秒前
小木林完成签到 ,获得积分10
5秒前
hj发布了新的文献求助10
6秒前
6秒前
研友_VZG7GZ应助DC采纳,获得10
6秒前
BLUEness完成签到,获得积分10
6秒前
马66完成签到 ,获得积分10
6秒前
7秒前
曾经冰凡发布了新的文献求助10
7秒前
韩永利发布了新的文献求助10
7秒前
TJway发布了新的文献求助10
8秒前
怕黑紫伊发布了新的文献求助10
8秒前
9秒前
9秒前
9秒前
nanshaokuingh发布了新的文献求助10
10秒前
科目三应助dj采纳,获得10
10秒前
虚幻芷文发布了新的文献求助10
10秒前
11秒前
Zn应助科研通管家采纳,获得10
11秒前
共享精神应助科研通管家采纳,获得10
11秒前
Zn应助科研通管家采纳,获得10
11秒前
wanci应助科研通管家采纳,获得10
11秒前
高分求助中
Continuum Thermodynamics and Material Modelling 3000
Production Logging: Theoretical and Interpretive Elements 2700
Mechanistic Modeling of Gas-Liquid Two-Phase Flow in Pipes 2500
Kelsen’s Legacy: Legal Normativity, International Law and Democracy 1000
Conference Record, IAS Annual Meeting 1977 610
The Laschia-complex (Basidiomycetes) 600
Interest Rate Modeling. Volume 3: Products and Risk Management 600
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 基因 遗传学 物理化学 催化作用 量子力学 光电子学 冶金
热门帖子
关注 科研通微信公众号,转发送积分 3541333
求助须知:如何正确求助?哪些是违规求助? 3118565
关于积分的说明 9336428
捐赠科研通 2816508
什么是DOI,文献DOI怎么找? 1548438
邀请新用户注册赠送积分活动 721530
科研通“疑难数据库(出版商)”最低求助积分说明 712720