Tuning LLMs by RAG Principles: Towards LLM-native Memory
On the map: Retrieval-augmented generation → RAG pipeline design and evaluation
Abstract (arXiv)
Memory, additional information beyond the training of large language models (LLMs), is crucial to various real-world applications, such as personal assistant. The two mainstream solutions to incorporate memory into the generation process are long-context LLMs and retrieval-augmented generation (RAG). In this paper, we first systematically compare these two types of solutions on three renovated/new datasets and show that (1) long-context solutions, although more expensive, shall be easier to capture the big picture and better answer queries which require considering the memory as a whole; and (2) when the queries concern specific information, RAG solutions shall be more competitive especially when the keywords can be explicitly matched. Therefore, we propose a novel method RAG-Tuned-LLM which fine-tunes a relative small (e.g., 7B) LLM using the data generated following the RAG principles, so it can combine the advantages of both solutions. Extensive experiments on three datasets demonstrate that RAG-Tuned-LLM can beat long-context LLMs and RAG methods across a wide range of query types.
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in RAG pipeline design and evaluation, one of 15 directions in Retrieval-augmented generation. Builds on 28 of its 32 references that are in the map. First posted on arXiv 20 Mar 2025.
Builds on
28 of 32 references.
Closest ancestors · 1
Same direction, newest first
Other references · 27
- 2023GPT-4 Technical Reportcited by 18,396
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2021Evaluating Large Language Models Trained on Codecited by 8,320
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2019Parameter-Efficient Transfer Learning for NLPcited by 4,236
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,455
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
15 more
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
- 2024From Local to Global: A Graph RAG Approach to Query-Focused Summarizationcited by 1,453
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,346
- 2021BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-modelscited by 1,245
- 2017The NarrativeQA Reading Comprehension Challengecited by 597
- 2024From Generation to Judgment: Opportunities and Challenges of LLM-as-a-judgecited by 494
- 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 262
- 2021QuALITY: Question Answering with Long Input Texts, Yes!cited by 208
- 2023Full Parameter Fine-tuning for Large Language Models with Limited Resourcescited by 134
- 2024HelpSteer2-Preference: Complementing Ratings with Preferencescited by 130
- 2024Make Your LLM Fully Utilize the Contextcited by 119
- 2023Attention Sorting Combats Recency Bias In Long Context Language Modelscited by 90
- 2024Instruction-tuned Language Models are Better Knowledge Learnerscited by 55
- 2023LLM as A Robotic Brain: Unifying Egocentric Memory and Controlcited by 33
- 2024AI-native Memory: A Pathway from LLMs Towards AGIcited by 12
Built on by
Citing papers per year: 2026: 2.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG
- 2024Retrieval Augmented Generation or Long-Context LLMs? A Comprehensive Study and Hybrid Approach
- 2024Retrieval Augmented Generation (RAG) and Beyond: A Comprehensive Survey on How to Make your LLMs use External Data More Wisely
- 2025When Retrieval Succeeds and Fails: Rethinking Retrieval-Augmented Generation for LLMs
- 2024Towards Understanding Systems Trade-offs in Retrieval-Augmented Generation Model Inference
- 2023Retrieval-Augmented Generation for Large Language Models: A Survey
- 2024A Survey on RAG Meeting LLMs: Towards Retrieval-Augmented Large Language Models
- 2024Fine Tuning vs. Retrieval Augmented Generation for Less Popular Knowledge