Domain Adaptation of Foundation Language Models for Legal Document Generation: A Systematic Review and Implications for Analogous Regulated Institutional Contexts
Open Access
- 20 May 2026
- journal article
- review article
- Published by Universidade Estadual do Sudoeste da Bahia/Edicoes UESB in Revista de Ciência da Computação
- Vol. 8 (1) , e19945
Abstract
The adaptation of foundation language models for legal document generation has become a relevant problem in Legal Natural Language Processing, particularly because generated texts must preserve factuality, normative coherence, traceability and control over sensitive information. This systematic literature review maps, classifies and critically analyzes primary studies on domain adaptation techniques for foundation language models applied to legal and normative-argumentative document generation. It also examines the implications of the resulting evidence for analogous regulated institutional contexts that share requirements related to reliability, privacy, auditability and institutional control. The review followed guidelines for systematic reviews in Software Engineering and the applicable items of PRISMA 2020. Searches were conducted in Scopus, Web of Science, IEEE Xplore and ACM Digital Library, covering studies published from January 2021 to December 2025 and complemented by backward snowballing. From 200 initial records, 32 primary studies were included. The corpus is predominantly concentrated in the legal domain, with only one study directly addressing document production in Public Security. The results show a recurrent use of hybrid adaptation strategies involving parameter-efficient fine-tuning, retrieval-augmented generation and structured inference, although the literature does not establish a universally superior combination. Data engineering is marked by a trade-off between scale and control, with frequent use of semi-synthetic datasets. Traditional Natural Language Processing metrics remain useful as initial indicators, but are insufficient to assess factuality, normative validity and argumentative consistency. Ethical safeguards, privacy controls and bias mitigation metrics remain underdeveloped. The findings indicate that the institutional adoption of foundation language models for legal document generation should be treated as a problem of architecture, evaluation and governance, rather than only textual performance. These conclusions are directly grounded in the Legal NLP literature, while their transfer to analogous regulated institutional contexts should be understood as a functionally motivated implication requiring domain-specific empirical validation.Keywords
This publication has 34 references indexed in Scilit:
- Large Language Models in Legal Systems: A SurveyHumanities and Social Sciences Communications, 2025
- Legal AI for All: Reducing Perplexity and Boosting Accuracy in Normative Texts With Fine-Tuned LLMs and RAGIEEE Access, 2025
- Legal text summarization via judicial syllogism with large language modelsJournal of King Saud University Computer and Information Sciences, 2025
- FairCauseSyn: Towards Causally Fair LLM-augmented Synthetic Data GenerationAnnual International Conference of the IEEE Engineering in Medicine and Biology Society, 2025
- Alkafi-llama3: fine-tuning LLMs for precise legal understanding in PalestineDiscover Artificial Intelligence, 2025
- Synthetically generated text for supervised text analysisPolitical Analysis, 2025
- Large language models in law: A surveyAI Open, 2024
- Large Legal Fictions: Profiling Legal Hallucinations in Large Language ModelsJournal of Legal Analysis, 2024
- Lawformer: A pre-trained language model for Chinese legal long documentsAI Open, 2021
- Cochrane Handbook for Systematic Reviews of Interventions2019