mlsanityData to 7 Oct 2026

Bridging Legal Knowledge and AI: Retrieval-Augmented Generation with Vector Stores, Knowledge Graphs, and Hierarchical Non-negative Matrix Factorization

arXiv 2502.20364 ↗First posted 27 Feb 2025cs.CL cs.AIcited by 8

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

also in 1 more
Abstract (arXiv)

Agentic Generative AI, powered by Large Language Models (LLMs) with Retrieval-Augmented Generation (RAG), Knowledge Graphs (KGs), and Vector Stores (VSs), represents a transformative technology applicable to specialized domains such as legal systems, research, recommender systems, cybersecurity, and global security, including proliferation research. This technology excels at inferring relationships within vast unstructured or semi-structured datasets. The legal domain here comprises complex data characterized by extensive, interrelated, and semi-structured knowledge systems with complex relations. It comprises constitutions, statutes, regulations, and case law. Extracting insights and navigating the intricate networks of legal documents and their relations is crucial for effective legal research. Here, we introduce a generative AI system that integrates RAG, VS, and KG, constructed via Non-Negative Matrix Factorization (NMF), to enhance legal information retrieval and AI reasoning and minimize hallucinations. In the legal system, these technologies empower AI agents to identify and analyze complex connections among cases, statutes, and legal precedents, uncovering hidden relationships and predicting legal trends-challenging tasks that are essential for ensuring justice and improving operational efficiency. Our system employs web scraping techniques to systematically collect legal texts, such as statutes, constitutional provisions, and case law, from publicly accessible platforms like Justia. It bridges the gap between traditional keyword-based searches and contextual understanding by leveraging advanced semantic representations, hierarchical relationships, and latent topic discovery. This framework supports legal document clustering, summarization, and cross-referencing, for scalable, interpretable, and accurate retrieval for semi-structured data while advancing computational law and AI.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Legal and financial RAG, one of 15 directions in Retrieval-augmented generation. Builds on 28 of its 65 references that are in the map. First posted on arXiv 27 Feb 2025.

Builds on

28 of 65 references.

Closest ancestors · 2

Same direction, newest first

  1. 2024LegalBench-RAG: A Benchmark for Retrieval-Augmented Generation in the Legal Domain19 Aug
  2. 2024CBR-RAG: Case-Based Reasoning for Retrieval Augmented Generation in LLMs for Legal Question Answering4 Apr

Other references · 26

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  2. 2020Language Models are Few-Shot Learnerscited by 32,199
  3. 2020Dense Passage Retrieval for Open-Domain Question Answeringcited by 3,779
  4. 2020Longformer: The Long-Document Transformercited by 3,362
  5. 2017A Broad-Coverage Challenge Corpus for Sentence Understanding through Inferencecited by 2,665
  6. 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
  7. 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
  8. 2019Evaluating the Factual Consistency of Abstractive Text Summarizationcited by 578
  9. 2020SPECTER: Document-level Representation Learning using Citation-informed Transformerscited by 426
  10. 2021SummaC: Re-Visiting NLI-based Models for Inconsistency Detection in Summarizationcited by 402
  11. 2021LexGLUE: A Benchmark Dataset for Legal Language Understanding in Englishcited by 302
  12. 2019Neural Legal Judgment Prediction in Englishcited by 208
14 more
  1. 2020LEGAL-BERT: The Muppets straight out of Law Schoolcited by 111
  2. 2022Neighborhood Contrastive Learning for Scientific Document Representations with Citation Embeddingscited by 75
  3. 2021Understanding Hard Negatives in Noise Contrastive Estimationcited by 39
  4. 2024When to Retrieve: Teaching LLMs to Utilize Information Retrieval Effectivelycited by 20
  5. 2024Domain-Specific Retrieval-Augmented Generation Using Vector Stores, Knowledge Graphs, and Tensor Factorizationcited by 15
  6. 2021Computer-Assisted Creation of Boolean Search Rules for Text Classification in the Legal Domaincited by 12
  7. 2022KALM: Knowledge-Aware Integration of Local, Document, and Global Contexts for Long Document Understandingcited by 9
  8. 2021Similar Cases Recommendation using Legal Knowledge Graphscited by 8
  9. 2021Unsupervised Identification of Relevant Prior Casescited by 4
  10. 2022Guided Semi-Supervised Non-negative Matrix Factorization on Legal Documentscited by 4
  11. 2024Automatic Knowledge Graph Construction for Judicial Casescited by 3
  12. 2024TopicTag: Automatic Annotation of NMF Topic Models Using Chain of Thought and Prompt Tuning with LLMscited by 3
  13. 2021Analysis of Legal Documents via Non-negative Matrix Factorization Methodscited by 2
  14. 2024Binary Bleed: Fast Distributed and Parallel Method for Automatic Model Selectioncited by 2

Built on by

Cited by year (2026 to 7 Oct)

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

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Domain-Partitioned Hybrid RAG for Legal Reasoning: Toward Modular and Explainable Legal AI for India
  2. 2026Falkor-IRAC: Graph-Constrained Generation for Verified Legal Reasoning in Indian Judicial AI
  3. 2024HyPA-RAG: A Hybrid Parameter Adaptive Retrieval-Augmented Generation System for AI Legal and Policy Applications
  4. 2026NyayaAI: An AI-Powered Legal Assistant Using Multi-Agent Architecture and Retrieval-Augmented Generation
  5. 2026Beyond Probabilistic Similarity: Structural, Temporal, and Causal Limitations of Retrieval-Augmented Generation in the Legal Domain
  6. 2026LegalGraphRAG: Multi-Agent Graph Retrieval-Augmented Generation for Reliable Legal Reasoning
  7. 2026From Norms to Indicators (N2I-RAG): An Agentic Retrieval-Augmented Generation Framework for Legal Indicator Computation
  8. 2024Experimenting with Legal AI Solutions: The Case of Question-Answering for Access to Justice