Evidence Hub

Domain Adaptation of Foundation Language Models for Legal Document Generation: A Systematic Review and Implications for Analogous Regulated Institutional Contexts

Ricardo Rodrigues Barcelar, Thiago Meirelles Ventura

Revista de Ciência da Computação, 2026

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…

How strong is the evidence?

Evidence Hub reads this as a systematic review. Its evidence level is 1 of 5 (Highest · pooled evidence). Pooled evidence from several studies sits at the top of the evidence pyramid.

How the five levels of evidence work. The level is assigned automatically from the abstract and can be wrong, so check the paper.

Read the paper

Related studies

Go deeper in Evidence Hub

Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.

Open this study Sign up free