LLM-Orchestrated Iterative Retrieval for Contract Clause Extraction

A Controlled Study on CUAD

Master Thesis (2026)
Author(s)

A. Preda (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Contributor(s)

L. Cavalcante Siebert – Graduation committee member (TU Delft - Electrical Engineering, Mathematics and Computer Science)

C.K. Bingöl – Graduation committee member (TU Delft - Design & Construction Management)

J. Yang – Graduation committee member (TU Delft - Electrical Engineering, Mathematics and Computer Science)

Faculty
Electrical Engineering, Mathematics and Computer Science
More Info
expand_more
Publication Year
2026
Language
English
Graduation Date
01-07-2026
Awarding Institution
Delft University of Technology
Programme
Computer Science, Data Science and Artificial Intelligence Technology
Faculty
Electrical Engineering, Mathematics and Computer Science
Downloads counter
18
Reuse Rights

Other than for strictly personal use, it is not permitted to download, forward or distribute the text or part of it, without the consent of the author(s) and/or copyright holder(s), unless the work is under an open content license such as Creative Commons.

Abstract

Legal contract review requires practitioners to find specific provisions
in documents that can span hundreds of pages, and errors in this task
carry direct legal consequences.
Standard retrieve-and-extract pipelines reduce hallucination by grounding
language model outputs in retrieved document text, but their single
retrieval step cannot follow cross-references, check whether the gathered
evidence is complete, or reliably confirm that a clause is absent.
Whether having a language model actively direct each retrieval step,
rather than passively reading a fixed set of retrieved chunks, improves
clause extraction accuracy has not, to the best of our knowledge,
been tested.
This thesis provides a controlled comparison of retrieve-and-extract
and LLM-orchestrated iterative retrieval on the Contract Understanding
Atticus Dataset (CUAD), keeping all components except the retrieval
architecture constant and evaluating both systems across all 38 clause
categories under Exact Match, token-level F1, and ROUGE-L.
Iterative retrieval consistently outperforms single-pass retrieval.
The main experiment, a 5427-pair run on Gemma4~e4b, a 4-billion-parameter
model run locally via Ollama, improves Exact Match from 0.687 to 0.744, Token
F1 from 0.341 to 0.505, and ROUGE-L from 0.308 to 0.467, with every gain
statistically significant under paired tests.
A smaller balanced run on both models confirms this and shows the gain again on
the larger closed model GPT-5-mini, which improves from Exact Match 0.711 to
0.800, Token F1 0.314 to 0.538, and ROUGE-L 0.283 to 0.490.
The F1 gains substantially exceed the Exact Match gains in every case,
indicating that iterative retrieval improves the completeness of
extracted clause text, not only presence-or-absence decisions.
The comparison isolates the contribution of LLM involvement at the
retrieval step in a domain and evaluation setting where, to the best
of our knowledge, it has not previously been measured.

Files

Report-numbered.pdf
(pdf | 3.89 Mb)
License info not available