Paper: arXiv 2406.03614
Authors: Alexander Bakumenko, Kateřina Hlaváčková-Schindler, Claudia Plant, Nina C. Hubig
Abstract
Detecting anomalies in general ledger data is of utmost importance to ensure 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 Models (LLMs) embeddings. To encode non-semantic categorical data from real-world financial records, we tested 3 pre-trained 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 even 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 LLM embeddings for non-semantic data in the financial context and beyond.
Complexity vs Empirical Score
- Math Complexity: 2.5/10
- Empirical Rigor: 6.5/10
- Quadrant: Street Traders — practical and empirical, lighter on theory
Why this score: The paper applies sentence-transformer LLM embeddings to non-semantic tabular accounting data to resolve sparsity and dimension heterogeneity issues in anomaly detection. While mathematically simple (focusing on applied deep learning embeddings and standard ML classifiers), it proposes a creative empirical methodology, though data confidentiality constraints reduce reproducibility.
Research Flowchart
flowchart TD
A[Research Goal: Detect Financial Anomalies & Handle Feature Sparsity] --> B[Data Input: Real-World General Ledger Journal Entries]
B --> C[Encoding: 3 Pre-trained Sentence-Transformer LLM Models]
C --> D[Downstream Classification: 5 ML Models<br>LR, RF, GBM, SVM, NN]
D --> E[Evaluation: Compare LLM Embeddings vs. Baseline Methods]
E --> F[Key Outcome: LLM Embeddings Outperform Baselines & Effectively Tackle Sparsity]
Cited References (58)
- Revolutionary text clustering: Investigating transfer learning capacity of SBERT models through pooling techniques (2024) — link
- Evaluating Embeddings from Pre-Trained Language Models and Knowledge Graphs for Educational Content Recommendation (2023) — link
- Data Augmentation for Sample Efficient and Robust Document Ranking (2023) — link
- Credit Card Analytics: A Review of Fraud Detection and Risk Assessment Techniques (2023) — link
- Frozen Transformers in Language Models Are Effective Visual Encoder Layers (2023) — link
- Large Language Models in Finance: A Survey — → 2311.10723
- Company Similarity Using Large Language Models — → 2308.08031
- Exploring the Potential of Large Language Models (LLMs)in Learning on Graphs (2023) — link
and 50 more
- Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive Survey (2023) — link
- PaLM 2 Technical Report (2023) — link
- GPT-4 Technical Report (2023) — link
- Emergent Abilities of Large Language Models (2022) — link
- Leveraging Pre-trained BERT for Audio Captioning (2022) — link
- Air quality in the New Delhi metropolis under COVID-19 lockdown (2022) — link
- Financial Fraud: A Review of Anomaly Detection Techniques and Recent Advances (2021) — link
- Intelligent financial fraud detection practices in post-pandemic era (2021) — link
- Financial Fraud Detection in Healthcare Using Machine Learning and Deep Learning Techniques (2021) — link
- AI in Finance: Challenges, Techniques, and Opportunities (2021) — link
- Intelligent Fraud Detection in Financial Statements Using Machine Learning and Data Mining: A Systematic Literature Review (2021) — link
- Financial fraud detection applying data mining techniques: A comprehensive review from 2009 to 2019 (2021) — link
- Abnormal Financial Transaction Detection via AI Technology (2021) — link
- PatentSBERTa: A deep NLP based hybrid model for patent distance and classification using augmented SBERT (2021) — link
- An intelligent unsupervised technique for fraud detection in health care systems (2021) — link
- CatBoost for Fraud Detection in Financial Transactions (2021) — link
- Quantitative Detection of Financial Fraud Based on Deep Learning with Combination of E-Commerce Big Data (2020) — link
- A structured review and theme analysis of financial frauds in the banking industry (2020) — link
- A Financial Fraud Detection Model Based on LSTM Deep Learning Technique (2020) — link
- A Case Study of Cluster-based and Histogram-based Multivariate Anomaly Detection Approach in General Ledgers (2020) — link
- Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks (2019) — link
- Detection of Accounting Anomalies in the Latent Space using Adversarial Autoencoder Neural Networks (2019) — link
- XGBoost: A Scalable Tree Boosting System (2016) — link
- Fraud Analytics : Using Descriptive, Predictive, and Social Network Techniques:A Guide to Data Science for Fraud Detection (2015)
- A Field Study on the Use of Process Mining of Event Logs as an Analytical Procedure in Auditing (2014) — link
- Representation Learning: A Review and New Perspectives (2012) — link
- A Review of ERP Research: A Future Agenda for Accounting Information Systems (2011) — link
- Forensic Analytics: Methods and Techniques for Forensic Accounting Investigations (2011) — link
- The application of data mining techniques in financial fraud detection: A classification framework and an academic review of literature (2011) — link
- Greedy function approximation: A gradient boosting machine. (2001) — link
- Support-Vector Networks (1995) — link
- Finance (1991) — link
- Credit Card Analytics: A Review of Fraud Detection and Risk Assessment Techniques (2025) — link
- Sentence-Transformers-Pretrained Models (2023)
- Scholarly Text Classification with Sentence BERT and Entity Embeddings (2021) — link
- Autoencoder Neural Networks versus External Auditors: Detecting Unusual Journal Entries in Financial Statement Audits (2020) — link
- Journal entry anomaly detection model (2020) — link
- Why 70/30 or 80/20 Relation Between Training and Testing Sets: A Pedagogical Explanation (2018)
- International Standards on Auditing 240, The Auditor’s Responsibili-ties Relating to Fraud in an Audit of Financial Statements (2018)
- Deep Learning (2016) — link
- Accounting Information Systems: Tradition and Future Directions (2013) — link
- Hoboken, NJ, USA (2013)
- Fraud Auditing and Forensic Accounting, Fourth Edition (2010)
- On the Dangers of Cross-Validation. An Experimental Evaluation (2008) — link
- CLAUDIA PLANT received the Ph.D. degree from the University for Health Sciences, Medical Informatics and Technology (UMIT), Austria (2007)
- Random Forests (2001) — link
- Detectinganomaliesin � nancial data using machine learning algorithms
- A Survey on Large Language Models: Applications, Challenges, Limitations, and Practical Usage
- Advancing Anomaly Detection: Non-Semantic Financial Data Encoding With LLMs
- Hugging Face
2 of 58 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2518 linked papers.