mlsanityData to 14 Oct 2026

LegalGuardian: A Privacy-Preserving Framework for Secure Integration of Large Language Models in Legal Practice

arXiv 2501.10915 ↗First posted 19 Jan 2025cs.CL cs.CR cs.IRcited by 2

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) hold promise for advancing legal practice by automating complex tasks and improving access to justice. However, their adoption is limited by concerns over client confidentiality, especially when lawyers include sensitive Personally Identifiable Information (PII) in prompts, risking unauthorized data exposure. To mitigate this, we introduce LegalGuardian, a lightweight, privacy-preserving framework tailored for lawyers using LLM-based tools. LegalGuardian employs Named Entity Recognition (NER) techniques and local LLMs to mask and unmask confidential PII within prompts, safeguarding sensitive data before any external interaction. We detail its development and assess its effectiveness using a synthetic prompt library in immigration law scenarios. Comparing traditional NER models with one-shot prompted local LLM, we find that LegalGuardian achieves a F1-score of 93% with GLiNER and 97% with Qwen2.5-14B in PII detection. Semantic similarity analysis confirms that the framework maintains high fidelity in outputs, ensuring robust utility of LLM-based tools. Our findings indicate that legal professionals can harness advanced AI technologies without compromising client confidentiality or the quality of legal documents.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 10 of its 34 references that are in the map. First posted on arXiv 19 Jan 2025.

Builds on

10 of 34 references.

References · 10

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2019Advances and Open Problems in Federated Learningcited by 3,046
  3. 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 412
  4. 2023GLiNER: Generalist Model for Named Entity Recognition using Bidirectional Transformercited by 88
  5. 2018Privacy-preserving Neural Representations of Textcited by 54
  6. 2023Hide and Seek (HaS): A Lightweight Framework for Prompt Privacy Protectioncited by 38
  7. 2024Privacy Preserving Prompt Engineering: A Surveycited by 25
  8. 2023Protecting User Privacy in Remote Conversational Systems: A Privacy-Preserving framework based on text sanitizationcited by 23
  9. 2023Large Language Model Prompt Chaining for Long Legal Document Classificationcited by 7
  10. 2020Practical Privacy-Preserving Data Science With Homomorphic Encryption: An Overviewcited by 1

Built on by

Cited by year (2026 to 14 Oct)

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

2 papers.