Document Retrieval Augmented Fine-Tuning (DRAFT) for safety-critical software assessments
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
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,380
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2024GPT-4o System Cardcited by 4,588
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2020Intrinsic Dimensionality Explains the Effectiveness of Language Model Fine-Tuningcited by 671
- 2024LoRA+: Efficient Low Rank Adaptation of Large Modelscited by 377
- 2024Retrieval-Augmented Generation for AI-Generated Content: A Surveycited by 354
- 2024RAFT: Adapting Language Model to Domain Specific RAGcited by 262
- 2024When Scaling Meets LLM Finetuning: The Effect of Data, Model and Finetuning Methodcited by 204
- 2024Seven Failure Points When Engineering a Retrieval Augmented Generation Systemcited by 139
- 2024ChatQA: Surpassing GPT-4 on Conversational QA and RAGcited by 90
8 more
- 2024RAG vs Fine-tuning: Pipelines, Tradeoffs, and a Case Study on Agriculturecited by 81
- 2024Fine Tuning vs. Retrieval Augmented Generation for Less Popular Knowledgecited by 50
- 2025SaLoRA: Safety-Alignment Preserved Low-Rank Adaptationcited by 42
- 2024UDA: A Benchmark Suite for Retrieval Augmented Generation in Real-world Document Analysiscited by 40
- 2025LLM-based event log analysis techniques: A surveycited by 16
- 2025GoRA: Gradient-driven Adaptive Low Rank Adaptationcited by 12
- 2024Hybrid RAG-empowered Multi-modal LLM for Secure Data Management in Internet of Medical Things: A Diffusion-based Contract Approachcited by 7
- 2024Investigating the performance of Retrieval-Augmented Generation and fine-tuning for the development of AI-driven knowledge-based systemscited by 4
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026SafeLLM: Extraction as a Hallucination-Resistant Alternative to Rewriting in Safety-Critical Settings
- 2025RAGuard: A Novel Approach for in-context Safe Retrieval Augmented Generation for LLMs
- 2026CTRAG: An In-Context Retrieval-based Framework for Automated Compliance Checking using LLMs
- 2024Fine Tuning LLM for Enterprise: Practical Guidelines and Recommendations
- 2025Evaluating Retrieval Augmented Generative Models for Document Queries in Transportation Safety
- 2026RAG-Safety-Bench: Reliable Evaluation of Retrieval-Augmented LLM Safety
- 2026Enhancing Large Language Models with Retrieval Augmented Generation for Software Testing and Inspection Automation
- 2025A Hybrid Approach to Information Retrieval and Answer Generation for Regulatory Texts