mlsanityData to 7 Oct 2026

Enhancing Legal LLMs through Metadata-Enriched RAG Pipelines and Direct Preference Optimization

arXiv 2603.19251 ↗First posted 25 Feb 2026cs.CLcited by 0

On the map: Retrieval-augmented generation → Legal and financial RAG

also in 1 more
Abstract (arXiv)

Large Language Models (LLMs) perform well in short contexts but degrade on long legal documents, often producing hallucinations such as incorrect clauses or precedents. In the legal domain, where precision is critical, such errors undermine reliability and trust. Retrieval Augmented Generation (RAG) helps ground outputs but remains limited in legal settings, especially with small, locally deployed models required for data privacy. We identify two failure modes: retrieval errors due to lexical redundancy in legal corpora, and decoding errors where models generate answers despite insufficient context. To address this, we propose Metadata Enriched Hybrid RAG to improve document level retrieval, and apply Direct Preference Optimization (DPO) to enforce safe refusal when context is inadequate. Together, these methods improve grounding, reliability, and safety in legal language models.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Legal and financial RAG, one of 15 directions in Retrieval-augmented generation. Builds on 3 of its 4 references that are in the map. First posted on arXiv 25 Feb 2026.

Builds on

3 of 4 references.

Closest ancestors · 1

Same direction, newest first

  1. 2025Towards Reliable Retrieval in RAG Systems for Large Legal Datasets8 Oct

Other references · 2

  1. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  2. 2025Fine-tuning Large Language Models for Improving Factuality in Legal Question Answeringcited by 28

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024LegalBench-RAG: A Benchmark for Retrieval-Augmented Generation in the Legal Domain
  2. 2026Fine-grained Claim-level RAG Benchmark for Law
  3. 2025All for law and law for all: Adaptive RAG Pipeline for Legal Research
  4. 2025ASVRI-Legal: Fine-Tuning LLMs with Retrieval Augmented Generation for Enhanced Legal Regulation
  5. 2025LRAGE: Legal Retrieval Augmented Generation Evaluation Tool
  6. 2026Building Legal Reward Models for Grounding and Abstention
  7. 2026RAG-Safety-Bench: Reliable Evaluation of Retrieval-Augmented LLM Safety
  8. 2025LexRAG: Benchmarking Retrieval-Augmented Generation in Multi-Turn Legal Consultation Conversation