mlsanityData to 7 Oct 2026

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

arXiv 2407.14482 ↗First posted 19 Jul 2024cs.CL cs.AI cs.IRcited by 52

On the map: Retrieval-augmented generation → RAG pipeline design and evaluation

Abstract (arXiv)

In this work, we introduce ChatQA 2, an Llama 3.0-based model with a 128K context window, designed to bridge the gap between open-source LLMs and leading proprietary models (e.g., GPT-4-Turbo-2024-04-09) in long context understanding and retrieval-augmented generation (RAG) capabilities. These two capabilities are complementary to each other and essential for LLMs to process large volumes of information that cannot fit into a single prompt. We present a detailed continued training recipe to extend the context window of Llama3-70B-base from 8K to 128K tokens, along with a three-stage instruction tuning process to enhance the model's instruction-following, RAG performance, and long-context understanding capabilities. Our results demonstrate that the Llama3-ChatQA-2-70B model outperforms most existing state-of-the-art models, including GPT-4-Turbo-2024-04-09, Qwen2-72B-Instruct, and Llama3.1-70B-Instruct, on ultra-long tasks beyond 100K tokens, as well as on the RAG benchmark using only a 4K context window, showing the strong long context capability across varying sequence lengths. We further provide extensive comparisons between direct long-context and RAG solutions using the same state-of-the-art long-context LLMs. Interestingly, we find that the performance of strong long-context LLMs using RAG improves when retrieving a larger number of chunks. With a large set of top-k chunks, RAG consistently outperforms direct long-context solution using the same state-of-the-art long-context models (e.g., Llama3-ChatQA-2-70B and Qwen2-72B-Instruct) on both 32K and 128K benchmarks. We open-source the model weights, training data, and the evaluation setup for the for the community: https://chatqa2-project.github.io/

Key facts. Cited by 52 papers in the map (data through 7 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 43 of its 56 references that are in the map. First posted on arXiv 19 Jul 2024.

Builds on

43 of 56 references.

References · 43

  1. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  2. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  4. 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 4,581
  5. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  6. 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
  7. 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,175
  8. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  9. 2024Qwen2 Technical Reportcited by 2,076
  10. 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
  11. 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,378
  12. 2021Improving language models by retrieving from trillions of tokenscited by 1,278
31 more
  1. 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,270
  2. 2022Text Embeddings by Weakly-Supervised Contrastive Pre-trainingcited by 1,216
  3. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
  4. 2024How Far Are We to GPT-4V? Closing the Gap to Commercial Multimodal Models with Open-Source Suitescited by 1,033
  5. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
  6. 2019Generalization through Memorization: Nearest Neighbor Language Modelscited by 788
  7. 2023Extending Context Window of Large Language Models via Positional Interpolationcited by 721
  8. 2024Yi: Open Foundation Models by 01.AIcited by 706
  9. 2023Towards General Text Embeddings with Multi-stage Contrastive Learningcited by 705
  10. 2017The NarrativeQA Reading Comprehension Challengecited by 590
  11. 2023YaRN: Efficient Context Window Extension of Large Language Modelscited by 584
  12. 2024NV-Embed: Improved Techniques for Training LLMs as Generalist Embedding Modelscited by 466
  13. 2024∞Bench: Extending Long Context Evaluation Beyond 100K Tokenscited by 360
  14. 2024DeepSeek-Coder-V2: Breaking the Barrier of Closed-Source Models in Code Intelligencecited by 325
  15. 2023Effective Long-Context Scaling of Foundation Modelscited by 301
  16. 2023Improving Text Embeddings with Large Language Modelscited by 295
  17. 2024Nomic Embed: Training a Reproducible Long Context Text Embeddercited by 255
  18. 2023LongLoRA: Efficient Fine-tuning of Long-Context Large Language Modelscited by 243
  19. 2024RankRAG: Unifying Context Ranking with Retrieval-Augmented Generation in LLMscited by 200
  20. 2024Data Engineering for Scaling Language Models to 128K Contextcited by 183
  21. 2022SCROLLS: Standardized CompaRison Over Long Language Sequencescited by 170
  22. 2024Nemotron-4 340B Technical Reportcited by 143
  23. 2023Focused Transformer: Contrastive Training for Context Scalingcited by 133
  24. 2023Scaling Laws of RoPE-based Extrapolationcited by 124
  25. 2023How to Train Your DRAGON: Diverse Augmentation Towards Generalizable Dense Retrievalcited by 116
  26. 2023Retrieval meets Long Context Large Language Modelscited by 114
  27. 2023Jina Embeddings 2: 8192-Token General-Purpose Text Embeddings for Long Documentscited by 103
  28. 2024ChatQA: Surpassing GPT-4 on Conversational QA and RAGcited by 90
  29. 2023Shall We Pretrain Autoregressive Language Models with Retrieval? A Comprehensive Studycited by 63
  30. 2023InstructRetro: Instruction Tuning post Retrieval-Augmented Pretrainingcited by 53
  31. 2023RAVEN: In-Context Learning with Retrieval-Augmented Encoder-Decoder Language Modelscited by 36

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 5; 2025: 28; 2026: 19.

52 papers.

Sort:

By area:

  1. 2025MAGI-1: Autoregressive Video Generation at Scalecited by 262
  2. 2024VisRAG: Vision-based Retrieval-augmented Generation on Multi-modality Documentscited by 237
  3. 2025FaithfulRAG: Fact-Level Conflict Modeling for Context-Faithful Retrieval-Augmented Generationcited by 27
  4. 2025U-NIAH: Unified RAG and LLM Evaluation for Long Context Needle-In-A-Haystackcited by 20
  5. 2025RAPID: Efficient Retrieval-Augmented Long Text Generation with Writing Planning and Information Discoverycited by 19
  6. 2024What are the Essential Factors in Crafting Effective Long Context Multi-Hop Instruction Datasets? Insights and Best Practicescited by 14
  7. 2024UncertaintyRAG: Span-Level Uncertainty Enhanced Long-Context Modeling for Retrieval-Augmented Generationcited by 14
  8. 2025ParallelComp: Parallel Long-Context Compressor for Length Extrapolationcited by 13
  9. 2025Shifting Long-Context LLMs Research from Input to Outputcited by 13
  10. 2025From 128K to 4M: Efficient Training of Ultra-Long Context Large Language Modelscited by 13
  11. 2026LookaheadKV: Fast and Accurate KV Cache Eviction by Glimpsing into the Future without Generationcited by 11
  12. 2024DAPE V2: Process Attention Score as Feature Map for Length Extrapolationcited by 10
38 more
  1. 2025A Survey of Scaling in Large Language Model Reasoningcited by 10
  2. 2025CLIPPER: Compression enables long-context synthetic data generationcited by 9
  3. 2025WildLong: Synthesizing Realistic Long-Context Instruction Data at Scalecited by 9
  4. 2025Artificial Hippocampus Networks for Efficient Long-Context Modelingcited by 9
  5. 2025PowerAttention: Exponentially Scaling of Receptive Fields for Effective Sparse Attentioncited by 8
  6. 2025Long-Context Modeling with Dynamic Hierarchical Sparse Attention for Memory-Constrained LLM Inferencecited by 7
  7. 2025Single-Pass Document Scanning for Question Answeringcited by 6
  8. 2025LongMagpie: A Self-synthesis Method for Generating Large-scale Long-context Instructionscited by 6
  9. 2025Optimizing Question Semantic Space for Dynamic Retrieval-Augmented Multi-hop Question Answeringcited by 6
  10. 2025HIRAG: Hierarchical-Thought Instruction-Tuning Retrieval-Augmented Generationcited by 6
  11. 2025Beyond Correctness: Rewarding Faithful Reasoning in Retrieval-Augmented Generationcited by 6
  12. 2024L-CiteEval: Do Long-Context Models Truly Leverage Context for Responding?cited by 5
  13. 2025LongRM: Revealing and Unlocking the Context Boundary of Reward Modelingcited by 5
  14. 2025Cluster-based Adaptive Retrieval: Dynamic Context Selection for RAG Applicationscited by 5
  15. 2025RAG or Fine-tuning? A Comparative Study on LCMs-based Code Completion in Industrycited by 4
  16. 2025ChatR1: Reinforcement Learning for Conversational Reasoning and Retrieval Augmented Question Answeringcited by 4
  17. 2026Elastic Attention: Test-time Adaptive Sparsity Ratios for Efficient Transformerscited by 4
  18. 2026End-to-End Context Compression at Scalecited by 4
  19. 2025Chunks as Arms: Multi-Armed Bandit-Guided Sampling for Long-Context LLM Preference Optimizationcited by 3
  20. 2025Skrull: Towards Efficient Long Context Fine-tuning through Dynamic Data Schedulingcited by 2
  21. 2025FlexRAG: A Flexible and Comprehensive Framework for Retrieval-Augmented Generationcited by 2
  22. 2026How Open Must Language Models be to Enable Reliable Scientific Inference?cited by 2
  23. 2025Efficient OpAmp Adaptation for Zoom Attention to Golden Contextscited by 1
  24. 2025When Long Helps Short: How Context Length in Supervised Fine-tuning Affects Behavior of Large Language Modelscited by 1
  25. 2026Exploring Fine-Tuning for In-Context Retrieval and Efficient KV-Caching in Long-Context Language Modelscited by 1
  26. 2026AllMem: A Memory-centric Recipe for Efficient Long-context Modelingcited by 1
  27. 2026HEBATRON: A Hebrew-Specialized Open-Weight Mixture-of-Experts Language Modelcited by 1
  28. 2026Multi-turn Conversational AI from Text to Multimodal Interaction: Data, Models, Evaluation, and Open Challengescited by 1
  29. 2025Investigating LLM Capabilities on Long Context Comprehension for Medical Question Answeringcited by 0
  30. 2026Comprehensive Comparison of RAG Methods Across Multi-Domain Conversational QAcited by 0
  31. 2026RobustVisRAG: Causality-Aware Vision-Based Retrieval-Augmented Generation under Visual Degradationscited by 0
  32. 2026Parametric Knowledge in RAG-SFT for Domain-Specific Document Generationcited by 0
  33. 2026Flux Attention: Context-Aware Hybrid Attention for Efficient LLMs Inferencecited by 0
  34. 2026SparseBalance: Load-Balanced Long Context Training with Dynamic Sparse Attentioncited by 0
  35. 2026Towards Generalization of Block Attention via Automatic Segmentation and Block Distillationcited by 0
  36. 2026The Periodic Table of LLM Reasoning: A Structured Survey of Reasoning Paradigms, Methods, and Failure Modescited by 0
  37. 2026Extending LLM Context via Associative Recurrent Memorycited by 0
  38. 2026VLZip: Unified Visual and Textual Compression for Interleaved Long-Context Modelingcited by 0

50 most cited of 52 All 52 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2024Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG
  2. 2025Tuning LLMs by RAG Principles: Towards LLM-native Memory
  3. 2025LaRA: Benchmarking Retrieval-Augmented Generation and Long-Context LLMs -- No Silver Bullet for LC or RAG Routing
  4. 2024Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approach
  5. 2024Exploring Advanced Large Language Models with LLMsuite
  6. 2024RAG-Instruct: Boosting LLMs with Diverse Retrieval-Augmented Instructions
  7. 2025A Library of LLM Intrinsics for Retrieval-Augmented Generation
  8. 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compression