AI4Contracts: LLM & RAG-Powered Encoding of Financial Derivative Contracts
Abstract
Large Language Models (LLMs) and Retrieval Augmented Generation (RAG) are reshaping how AI systems extract and organize information from unstructured text. A key challenge is designing AI methods that can incrementally extract, structure, and validate information while preserving hierarchical and contextual relationships. We introduce CDMizer, a template driven, LLM, and RAG-based framework for structured text transformation. By leveraging depth-based retrieval and hierarchical generation, CDMizer ensures a controlled, modular process that aligns generated outputs with predefined schemas. Its template-driven approach guarantees syntactic correctness, schema adherence, and improved scalability, addressing key limitations of direct generation methods. Additionally, we propose an LLM-powered evaluation framework to assess the completeness and accuracy of structured representations. Demonstrated in the transformation of Over-the-Counter (OTC) financial derivative contracts into the Common Domain Model (CDM), CDMizer establishes a scalable foundation for AI-driven document understanding, structured synthesis, and automated validation in broader contexts.
Cite
Text
Mridul et al. "AI4Contracts: LLM & RAG-Powered Encoding of Financial Derivative Contracts." International Joint Conference on Artificial Intelligence, 2025. doi:10.24963/IJCAI.2025/1034Markdown
[Mridul et al. "AI4Contracts: LLM & RAG-Powered Encoding of Financial Derivative Contracts." International Joint Conference on Artificial Intelligence, 2025.](https://mlanthology.org/ijcai/2025/mridul2025ijcai-ai/) doi:10.24963/IJCAI.2025/1034BibTeX
@inproceedings{mridul2025ijcai-ai,
title = {{AI4Contracts: LLM & RAG-Powered Encoding of Financial Derivative Contracts}},
author = {Mridul, Maruf Ahmed and Sloyan, Ian and Gupta, Aparna and Seneviratne, Oshani},
booktitle = {International Joint Conference on Artificial Intelligence},
year = {2025},
pages = {9305-9312},
doi = {10.24963/IJCAI.2025/1034},
url = {https://mlanthology.org/ijcai/2025/mridul2025ijcai-ai/}
}