IC-352RAG with sufficient retrieved tokens outperforms direct long-context for Qwen2-72b-instruct on >100k tasks, while at 32k the default RAG setting underperforms direct long-context for GPT-4-turbo-2024-04-09, Qwen2-72b-instruct, and Llama-3.1-70b-instruct

Peng Xu, Wei Ping, Xianchao Wu, Chejian Xu, Zihan Liu, Mohammad Shoeybi, Bryan Catanzaro

SourceChatQA 2: Bridging the Gap to Proprietary LLMs in Long Context and RAG Capabilities

The paper compares RAG (using E5-Mistral retriever) against direct long-context prompting for the same released models. At 32k context, the default RAG setting (top-5 chunks, 1200 tokens each, 6000 total) underperforms: GPT-4-turbo-2024-04-09 drops from 51.93 to 49.84, Qwen2-72b-instruct from 49.94 to 48.08, and Llama-3.1-70b-instruct from 49.92 to 47.63. However, at >100k context, RAG with more chunks (top-20 for Qwen2-72b-instruct) outperforms direct long-context: 52.95 vs 52.22. The paper also shows that increasing total retrieved tokens from 3000 to 24000 monotonically improves RAG accuracy on 32k tasks.

Evidence
correlational
Key metric
32k: GPT-4-turbo RAG 49.84 vs long-context 51.93; Qwen2 RAG 48.08 vs 49.94; Llama-3.1-70b RAG 47.63 vs 49.92. >100k: Qwen2 RAG (k=20) 52.95 vs long-context 52.22
Caveat
The RAG comparison at >100k uses only en.qa and en.mc tasks, as RAG is not directly applicable to en.sum and en.dia. The 32k RAG setting uses a fixed top-5 with 1200-token chunks, which the authors note is not optimized.
Model
GPT-4 / ChatGPT4 / GPT-4 Code Interpreter / GPT-4 Technical Report GPT-4-turbo-20240409, Qwen 2 Qwen2-72B-Instruct, Llama 3.1 70B Instruct
Datasets
LongBench [eval], Scrolls [eval]
Methods
E5-Mistral [primary]
Related findings
IC-351, IC-353
Extraction
automatic-extraction