mlsanityData to 7 Oct 2026

RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study on Agriculture

arXiv 2401.08406 ↗First posted 16 Jan 2024cs.CL cs.LGcited by 80

On the map: Retrieval-augmented generation → Time series and agricultural RAG

Abstract (arXiv)

There are two common ways in which developers are incorporating proprietary and domain-specific data when building applications of Large Language Models (LLMs): Retrieval-Augmented Generation (RAG) and Fine-Tuning. RAG augments the prompt with the external data, while fine-Tuning incorporates the additional knowledge into the model itself. However, the pros and cons of both approaches are not well understood. In this paper, we propose a pipeline for fine-tuning and RAG, and present the tradeoffs of both for multiple popular LLMs, including Llama2-13B, GPT-3.5, and GPT-4. Our pipeline consists of multiple stages, including extracting information from PDFs, generating questions and answers, using them for fine-tuning, and leveraging GPT-4 for evaluating the results. We propose metrics to assess the performance of different stages of the RAG and fine-Tuning pipeline. We conduct an in-depth study on an agricultural dataset. Agriculture as an industry has not seen much penetration of AI, and we study a potentially disruptive application - what if we could provide location-specific insights to a farmer? Our results show the effectiveness of our dataset generation pipeline in capturing geographic-specific knowledge, and the quantitative and qualitative benefits of RAG and fine-tuning. We see an accuracy increase of over 6 p.p. when fine-tuning the model and this is cumulative with RAG, which increases accuracy by 5 p.p. further. In one particular experiment, we also demonstrate that the fine-tuned model leverages information from across geographies to answer specific questions, increasing answer similarity from 47% to 72%. Overall, the results point to how systems built using LLMs can be adapted to respond and incorporate knowledge across a dimension that is critical for a specific industry, paving the way for further applications of LLMs in other industrial domains.

Key facts. Cited by 80 papers in the map (data through 7 Oct 2026). Placed in Time series and agricultural RAG, one of 15 directions in Retrieval-augmented generation. Builds on 24 of its 53 references that are in the map. First posted on arXiv 16 Jan 2024.

Builds on

24 of 53 references.

References · 24

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  2. 2023GPT-4 Technical Reportcited by 18,132
  3. 2022Training language models to follow instructions with human feedbackcited by 15,712
  4. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
  6. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  7. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,049
  8. 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
  9. 2016SGDR: Stochastic Gradient Descent with Warm Restartscited by 4,993
  10. 2017Billion-scale similarity search with GPUscited by 2,477
  11. 2017Accurate, Large Minibatch SGD: Training ImageNet in 1 Hourcited by 1,479
  12. 2023FActScore: Fine-grained Atomic Evaluation of Factual Precision in Long Form Text Generationcited by 1,259
12 more
  1. 2017Mixed Precision Trainingcited by 1,135
  2. 2016Training Deep Nets with Sublinear Memory Costcited by 825
  3. 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 738
  4. 2023Can Large Language Models Be an Alternative to Human Evaluations?cited by 729
  5. 2023Capabilities of GPT-4 on Medical Challenge Problemscited by 630
  6. 2021Large Dual Encoders Are Generalizable Retrieverscited by 454
  7. 2023JudgeLM: Fine-tuned Large Language Models are Scalable Judgescited by 351
  8. 2023Evaluating Correctness and Faithfulness of Instruction-Following Models for Question Answeringcited by 150
  9. 2023Evaluating Open-Domain Question Answering in the Era of Large Language Modelscited by 110
  10. 2023Large Language Models for Supply Chain Optimizationcited by 61
  11. 2021Seeing Through Clouds in Satellite Imagescited by 13
  12. 2023GPT-4 as an Agronomist Assistant? Answering Agriculture Exams Using Large Language Modelscited by 12

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 45; 2025: 26; 2026: 9.

80 papers.

Sort:

By area:

  1. 2024A Survey on Large Language Models for Code Generationcited by 646
  2. 2024Evaluation of Retrieval-Augmented Generation: A Surveycited by 146
  3. 2024InstructRAG: Instructing Retrieval-Augmented Generation via Self-Synthesized Rationalescited by 100
  4. 2024Reliable, Adaptable, and Attributable Language Models with Retrievalcited by 73
  5. 2024MoRAL: MoE Augmented LoRA for LLMs' Lifelong Learningcited by 63
  6. 2024Fine Tuning vs. Retrieval Augmented Generation for Less Popular Knowledgecited by 49
  7. 2024Combining Fine-Tuning and LLM-based Agents for Intuitive Smart Contract Auditing with Justificationscited by 41
  8. 2024Telco-RAG: Navigating the Challenges of Retrieval-Augmented Language Models for Telecommunicationscited by 26
  9. 2024Exploring the Impact of Table-to-Text Methods on Augmenting LLM-based Question Answering with Domain Hybrid Datacited by 24
  10. 2024T-RAG: Lessons from the LLM Trenchescited by 23
  11. 2024A Survey on Recent Advances in Conversational Data Generationcited by 23
  12. 2024OG-RAG: Ontology-Grounded Retrieval-Augmented Generation For Large Language Modelscited by 23
38 more
  1. 2024Efficient Knowledge Injection in LLMs via Self-Distillationcited by 22
  2. 2024Prompt Perturbation in Retrieval-Augmented Generation based Large Language Modelscited by 17
  3. 2024Compressing Long Context for Enhancing RAG with AMR-based Concept Distillationcited by 16
  4. 2024METIS: Fast Quality-Aware RAG Systems with Configuration Adaptationcited by 16
  5. 2024Do Large Language Models Need a Content Delivery Network?cited by 15
  6. 2024Search Engines in an AI Era: The False Promise of Factual and Verifiable Source-Cited Responsescited by 15
  7. 2025MRAMG-Bench: A Comprehensive Benchmark for Advancing Multimodal Retrieval-Augmented Multimodal Generationcited by 15
  8. 2025AgMMU: A Comprehensive Agricultural Multimodal Understanding Benchmarkcited by 15
  9. 2024MeMemo: On-device Retrieval Augmentation for Private and Personalized Text Generationcited by 12
  10. 2025Faster, Cheaper, Better: Multi-Objective Hyperparameter Optimization for LLM and RAG Systemscited by 11
  11. 2025DeepTRACE: Auditing Deep Research AI Systems for Tracking Reliability Across Citations and Evidencecited by 10
  12. 2024ShizishanGPT: An Agricultural Large Language Model Integrating Tools and Resourcescited by 9
  13. 2024Beyond Memorization: The Challenge of Random Memory Access in Language Modelscited by 8
  14. 2024A Study on the Implementation Method of an Agent-Based Advanced RAG System Using Graphcited by 8
  15. 2024DeepNote: Note-Centric Deep Retrieval-Augmented Generationcited by 8
  16. 2025The Multi-Round Diagnostic RAG Framework for Emulating Clinical Reasoningcited by 8
  17. 2024Automated Review Generation Method Based on Large Language Modelscited by 7
  18. 2024RAGProbe: An Automated Approach for Evaluating RAG Applicationscited by 7
  19. 2024RAG4ITOps: A Supervised Fine-Tunable and Comprehensive RAG Framework for IT Operations and Maintenancecited by 7
  20. 2025Savaal: Scalable Concept-Driven Question Generation to Enhance Human Learningcited by 7
  21. 2024Evaluation of Geographical Distortions in Language Modelscited by 6
  22. 2024Meta Knowledge for Retrieval Augmented Large Language Modelscited by 6
  23. 2025LLM Web Dynamics: Tracing Model Collapse in a Network of LLMscited by 6
  24. 2025PowerChain: A Verifiable Agentic AI System for Automating Distribution Grid Analysescited by 6
  25. 2024Small Language Models for Application Interactions: A Case Studycited by 5
  26. 2024RAG Foundry: A Framework for Enhancing LLMs for Retrieval Augmented Generationcited by 5
  27. 2024Recent Advances in Attack and Defense Approaches of Large Language Modelscited by 5
  28. 2025Retrieval is Not Enough: Enhancing RAG Reasoning through Test-Time Critique and Optimizationcited by 5
  29. 2024Dynamic Q&A of Clinical Documents with Large Language Modelscited by 4
  30. 2024GPT vs RETRO: Exploring the Intersection of Retrieval and Parameter-Efficient Fine-Tuningcited by 4
  31. 2025Optimizing Retrieval Augmented Generation for Object Constraint Languagecited by 4
  32. 2025AgriRegion: Region-Aware Retrieval for High-Fidelity Agricultural Advicecited by 4
  33. 2024A + B: A General Generator-Reader Framework for Optimizing LLMs to Unleash Synergy Potentialcited by 3
  34. 2024QAEncoder: Towards Aligned Representation Learning in Question Answering Systemscited by 3
  35. 2024Synthetic Knowledge Ingestion: Towards Knowledge Refinement and Injection for Enhancing Large Language Modelscited by 3
  36. 2025A Practical Guide for Evaluating LLMs and LLM-Reliant Systemscited by 3
  37. 2025Enterprise AI Must Enforce Participant-Aware Access Controlcited by 3
  38. 2024Mafin: Enhancing Black-Box Embeddings with Model Augmented Fine-Tuningcited by 2

50 most cited of 80 All 80 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2026Towards AI Evaluation in Domain-Specific RAG Systems: The AgriHubi Case Study
  2. 2026Assessment of RAG and Fine-Tuning for Industrial Question-Answering-Applications
  3. 2025AgriGPT: a Large Language Model Ecosystem for Agriculture
  4. 2024Fine-Tuning or Fine-Failing? Debunking Performance Myths in Large Language Models
  5. 2024Fine Tuning LLM for Enterprise: Practical Guidelines and Recommendations
  6. 2024Investigating the performance of Retrieval-Augmented Generation and fine-tuning for the development of AI-driven knowledge-based systems
  7. 2023Establishing Performance Baselines in Fine-Tuning, Retrieval-Augmented Generation and Soft-Prompting for Non-Specialist LLM Users
  8. 2024Towards Understanding Systems Trade-offs in Retrieval-Augmented Generation Model Inference