mlsanityData to 14 Oct 2026

Document Retrieval Augmented Fine-Tuning (DRAFT) for safety-critical software assessments

arXiv 2505.01307 ↗First posted 2 May 2025cs.SE cs.AIcited by 2

On the map: Retrieval-augmented generation → RAG for code

Abstract (arXiv)

Safety critical software assessment requires robust assessment against complex regulatory frameworks, a process traditionally limited by manual evaluation. This paper presents Document Retrieval-Augmented Fine-Tuning (DRAFT), a novel approach that enhances the capabilities of a large language model (LLM) for safety-critical compliance assessment. DRAFT builds upon existing Retrieval-Augmented Generation (RAG) techniques by introducing a novel fine-tuning framework that accommodates our dual-retrieval architecture, which simultaneously accesses both software documentation and applicable reference standards. To fine-tune DRAFT, we develop a semi-automated dataset generation methodology that incorporates variable numbers of relevant documents with meaningful distractors, closely mirroring real-world assessment scenarios. Experiments with GPT-4o-mini demonstrate a 7% improvement in correctness over the baseline model, with qualitative improvements in evidence handling, response structure, and domain-specific reasoning. DRAFT represents a practical approach to improving compliance assessment systems while maintaining the transparency and evidence-based reasoning essential in regulatory domains.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in RAG for code, one of 15 directions in Retrieval-augmented generation. Builds on 20 of its 42 references that are in the map. First posted on arXiv 2 May 2025.

Builds on

20 of 42 references.

References · 20

  1. 2020Language Models are Few-Shot Learnerscited by 32,419
  2. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
  3. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
  4. 2024GPT-4o System Cardcited by 4,588
  5. 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
  6. 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 671
  7. 2024LoRA+: Efficient Low Rank Adaptation of Large Modelscited by 377
  8. 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 354
  9. 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 262
  10. 2024When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning Methodcited by 204
  11. 2024Seven Failure Points When Engineering a Retrieval Augmented Generation Systemcited by 139
  12. 2024ChatQA: Surpassing GPT-4 on Conversational QA and RAGcited by 90
8 more
  1. 2024RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study on Agriculturecited by 81
  2. 2024Fine Tuning vs. Retrieval Augmented Generation for Less Popular Knowledgecited by 50
  3. 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptationcited by 42
  4. 2024UDA: A Benchmark Suite for Retrieval Augmented Generation in Real-world Document Analysiscited by 40
  5. 2025LLM-based event log analysis techniques: A surveycited by 16
  6. 2025GoRA: Gradient-driven Adaptive Low Rank Adaptationcited by 12
  7. 2024Hybrid RAG-empowered Multi-modal LLM for Secure Data Management in Internet of Medical Things: A Diffusion-based Contract Approachcited by 7
  8. 2024Investigating the performance of Retrieval-Augmented Generation and fine-tuning for the development of AI-driven knowledge-based systemscited by 4

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026SafeLLM: Extraction as a Hallucination-Resistant Alternative to Rewriting in Safety-Critical Settings
  2. 2025RAGuard: A Novel Approach for in-context Safe Retrieval Augmented Generation for LLMs
  3. 2026CTRAG: An In-Context Retrieval-based Framework for Automated Compliance Checking using LLMs
  4. 2024Fine Tuning LLM for Enterprise: Practical Guidelines and Recommendations
  5. 2025Evaluating Retrieval Augmented Generative Models for Document Queries in Transportation Safety
  6. 2026RAG-Safety-Bench: Reliable Evaluation of Retrieval-Augmented LLM Safety
  7. 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automation
  8. 2025A Hybrid Approach to Information Retrieval and Answer Generation for Regulatory Texts