Matching Bilateral Trades Using Deep Learning : Leveraging AI for Efficient Trade Reconciliation
Year: 2024
Type: dissertation
Abstract: Banks and other institutions deal in bilateral trades consisting of OTC (over-the-counter) derivatives. The trades are agreed upon by both parties producing their own contract which states the details of the trade, but discrepancies due to errors or miscommunications may arise. OSTTRA offers a centralized platform where contracts can be submitted and reconciled, but discrepancies pose problems for efficiently matching contracts to a trade. The aim of this thesis is to evaluate a machine learning implementation to find tabular contract pairs containing discrepancies and assess whether they belong to the same trade or not. Three different siamese encoders (MLP, ResNet and, TinyBERT) are trained using contrastive learning to create expressive embedding vectors, robust to discrepancies. This allows efficient search algorithms which are utilized to find candidates for the correct opposing contract. A classifier is then trained using supervised learning on embeddings, utilizing a nearest neighbour sampling strategy to determine if an embedding pair belongs to the same trade or not. MLP and ResNet are simpler models, requiring different preprocessing of data compared to TinyBERT, which is a Transformer model intended to be used on NLP (natural language processing) tasks. The models were evaluated and compared. It was found that problems inherent to tabular data make a classification in this manner suboptimal for matching trades. The TinyBERT architecture produced embeddings which could retrieve the correct opposing contract with the highest accuracy, while also being the most computationally heavy. Furthermore, using embeddings for efficient retrieval and search appears promising, but further improvements are needed to be applicable to realistic scenarios. It was also found that corrupting features by sampling from their marginal distributions serves as a beneficial data augmentation in contrastive learning with neural networks like MLP and ResNet, supporting previous research. A more extensive and balanced training dataset, larger NLP model architectures and modifications to how numerical values are processed could further improve this method.
Author: Forsman, Fonzie
Language: English
Topic: Data Quality and Management
Subfield: Information Systems
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7030006787
