LEXI: How Large Language Models Can Support End-to-End Legal Due Diligence in M&A

LEXI uses LLMs to connect the four stages of legal due diligence while preserving lawyers' substantive judgment and review responsibilities.
LEXI is an LLM-assisted system for M&A legal due diligence that breaks the process into document classification, target entity identification, predefined information extraction, and report preparation, connected via structured outputs. It attaches page-level provenance to extraction results for verification and requires lawyer review while preserving responsibility for legal assessments and final report wording.
Legal due diligence in M&A transactions has long been one of the most burdensome tasks for legal teams: sifting through heterogeneous documents in massive virtual data rooms, extracting deal-relevant information, and compiling review results into a due diligence report. A recent working paper proposes the LEXI (Legal Extraction and Intelligence) system, demonstrating how large language models can span the entire workflow from document ingestion to report preparation, while preserving lawyers' control over substantive legal judgment.

The Pain Points of Legal Due Diligence and LEXI's Positioning
The core challenge of legal due diligence lies in the high heterogeneity of information and the fragmented nature of the process. Documents in data rooms vary in format and structure, and lawyers must read each one, classify it, extract key clauses, and note the source. Traditionally, this work is done manually—time-consuming and prone to omissions.
LEXI is not positioned to replace lawyers, but rather to serve as a process support tool. It breaks the due diligence workflow into several stages that can be assisted by the model: document classification, target entity identification, predefined information extraction, and report content preparation. The stages are connected through structured outputs, allowing model-generated results to flow through the workflow in a controlled form.
Virtual Data Room (VDR) is an online platform used in M&A transactions for buyers and sellers to exchange sensitive documents. It typically contains decades of accumulated contracts, financial statements, intellectual property files, litigation records, and more from the target company. VDRs often hold thousands to tens of thousands of documents in formats ranging from scanned PDFs, Word, and Excel to email archives, with no unified naming conventions. Lawyers must complete a comprehensive review within limited time—this is the structural reason why due diligence is so intensive and prone to oversight. LEXI addresses precisely this kind of unstructured, highly heterogeneous document collection.
A Four-Stage Workflow: From Classification to Reporting
LEXI's workflow can be summarized in four stages, each emphasizing reviewability and traceability.
Document Classification and Entity Identification
The system first classifies documents according to a configurable due diligence taxonomy and assigns each document a relevant target entity. The configurability of the taxonomy means lawyers can adjust categories based on the specific deal type rather than being constrained by a fixed template. Entity identification helps associate documents with specific parties in the transaction, providing context for subsequent extraction.
Information Extraction and Provenance Tracking
Building on classification, LEXI extracts predefined information fields and attaches supporting passages and page-level provenance to each extracted result. This design directly addresses the legal field's requirement for verifiability: lawyers can not only see what the model extracted but also quickly locate the original text for verification.
Predefined information extraction differs from open-ended question answering in that the system locates and extracts content from documents according to a pre-set field list (e.g., contract term, change-of-control clauses, material adverse effect definitions). This approach is particularly suited to due diligence because the deal type determines a relatively fixed set of information dimensions, allowing field templates to be customized per transaction. Field-level structured outputs also facilitate subsequent aggregation, comparison, and import into report templates, sparing lawyers from repeatedly copying excerpts from free text.
Report Content Preparation
Findings reviewed by lawyers are then used by the system to prepare report content. Structured outputs play a key role here—they allow model-generated results to pass between stages in a controlled form rather than flowing freely as unstructured text.
Lawyers Remain in the Loop: Clear Boundaries of Responsibility
In LEXI's design, the lawyer's role is explicitly preserved. The system requires lawyers to review and correct classification and extraction results, and to remain responsible for legal assessments, recommendations, risk ratings, and the final wording of the report.
This division of labor reflects a pragmatic approach to legal AI: the model handles information organization and preliminary extraction, while lawyers retain substantive judgment. The paper's authors describe LEXI as work-in-progress and note that preliminary evaluations of the classification and extraction components provide initial evidence that the approach is feasible.
Human-in-the-loop in the context of legal AI is not merely an interaction design choice—it involves professional responsibility and practice standards. Lawyers have professional obligations regarding due diligence conclusions; directly accepting model outputs without verification could constitute professional negligence. LEXI therefore positions the model as a screening and organization tool, requiring lawyers to confirm or correct each classification and extraction result, while substantive judgments (such as whether a clause constitutes a material risk or whether the deal pricing should be adjusted) remain with the lawyer. This allocation of responsibility also affects the system's audit design: lawyer review records must be retained for traceability.
Implications for the Deployment of Legal AI
The value of LEXI lies not in a breakthrough in any single technology, but in demonstrating an end-to-end integration approach: using structured outputs to connect stages, provenance tracking to support verifiability, and human-in-the-loop to safeguard the boundaries of responsibility. For legal teams considering AI adoption, this process-centric, controllability-first design offers more practical reference value than fully automated solutions.
Of course, as a working paper, LEXI's evaluation remains preliminary. The performance of the classification and extraction components at real transaction scale, as well as the actual efficiency gains in report preparation, remain to be further validated. But the "data room to report" workflow framework it outlines already points to a direction worth watching for AI-assisted legal due diligence.
One-line Summary
LEXI uses large language models to connect the four stages of legal due diligence while preserving lawyers' substantive judgment and review responsibilities.
Paragraph Summary
LEXI is a large language model-assisted system for M&A legal due diligence that breaks the process into four stages—document classification, target entity identification, predefined information extraction, and report content preparation—connected through structured outputs. The system attaches supporting passages and page-level provenance to each extraction result for easy verification against the original text, and explicitly requires lawyers to review classification and extraction results while retaining responsibility for legal assessments, risk ratings, and final report wording. The paper positions it as work-in-progress; preliminary evaluation suggests the approach is feasible, but effectiveness at real transaction scale remains to be validated. Its value lies in demonstrating a process-centric, end-to-end integration approach premised on verifiability and human-in-the-loop.
Related articles

Michael Nielsen Takes Down His Classic Neural Network Textbook, Sparking Community Discussion
Michael Nielsen's classic free textbook Neural Networks and Deep Learning has been taken offline, sparking discussion on Hacker News about the reasons and impact.

Inside the AI Training Data Market: The Trade-off Between Exclusivity and Discounts
G2i founder Gabe Greenberg reveals the dual-track pricing of the AI training data market: labs pay a premium for exclusive data or accept discounts that allow others to buy it.

SessionGraph: Unifying All Coding Agent Sessions in One Interactive Graph
SessionGraph aggregates coding agent sessions into an interactive graph, helping developers review, debug, and manage AI coding workflows across sessions. This article examines its positioning, value, and open questions.