Skip to main navigation Skip to search Skip to main content

Advancing Anomaly Detection: Non-Semantic Financial Data Encoding With Large Language Models.

Publications: Contribution to journalArticlePeer Reviewed

Abstract

Detecting anomalies in general ledger data is of utmost importance to ensure the trustworthiness of financial records. Financial audits increasingly rely on machine learning (ML) algorithms to identify irregular or potentially fraudulent journal entries, each characterized by a varying number of transactions. In machine learning, heterogeneity in feature dimensions adds significant complexity to data analysis. In this paper, we introduce a novel approach to anomaly detection in financial data using Large Language Model (LLM) embeddings. To encode non-semantic categorical data (i.e., attributes lacking inherent linguistic meaning) from real-world financial records, we tested 3 pretrained general-purpose sentence-transformer models. For the downstream classification task, we implemented and evaluated 5 optimized ML models, including Logistic Regression, Random Forest, Gradient Boosting Machines, Support Vector Machines, and Neural Networks. Our experiments demonstrate that LLMs contribute valuable information to anomaly detection as our models outperform the baselines, in selected settings by a large margin. The findings further underscore the effectiveness of LLMs in enhancing anomaly detection in financial journal entries, particularly by tackling feature sparsity. We discuss a promising perspective on using SBERT embeddings for non-semantic data in the financial context and beyond.

Original languageEnglish
Pages (from-to)146757-146771
Number of pages15
JournalIEEE Access
Volume13
DOIs
Publication statusPublished - 2025

Austrian Fields of Science 2012

  • 102033 Data mining

Fingerprint

Dive into the research topics of 'Advancing Anomaly Detection: Non-Semantic Financial Data Encoding With Large Language Models.'. Together they form a unique fingerprint.

Cite this