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)

  1. Revolutionary text clustering: Investigating transfer learning capacity of SBERT models through pooling techniques (2024) — link
  2. Evaluating Embeddings from Pre-Trained Language Models and Knowledge Graphs for Educational Content Recommendation (2023) — link
  3. Data Augmentation for Sample Efficient and Robust Document Ranking (2023) — link
  4. Credit Card Analytics: A Review of Fraud Detection and Risk Assessment Techniques (2023) — link
  5. Frozen Transformers in Language Models Are Effective Visual Encoder Layers (2023) — link
  6. Large Language Models in Finance: A Survey — → 2311.10723
  7. Company Similarity Using Large Language Models — → 2308.08031
  8. Exploring the Potential of Large Language Models (LLMs)in Learning on Graphs (2023) — link
and 50 more
  1. Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive Survey (2023) — link
  2. PaLM 2 Technical Report (2023) — link
  3. GPT-4 Technical Report (2023) — link
  4. Emergent Abilities of Large Language Models (2022) — link
  5. Leveraging Pre-trained BERT for Audio Captioning (2022) — link
  6. Air quality in the New Delhi metropolis under COVID-19 lockdown (2022) — link
  7. Financial Fraud: A Review of Anomaly Detection Techniques and Recent Advances (2021) — link
  8. Intelligent financial fraud detection practices in post-pandemic era (2021) — link
  9. Financial Fraud Detection in Healthcare Using Machine Learning and Deep Learning Techniques (2021) — link
  10. AI in Finance: Challenges, Techniques, and Opportunities (2021) — link
  11. Intelligent Fraud Detection in Financial Statements Using Machine Learning and Data Mining: A Systematic Literature Review (2021) — link
  12. Financial fraud detection applying data mining techniques: A comprehensive review from 2009 to 2019 (2021) — link
  13. Abnormal Financial Transaction Detection via AI Technology (2021) — link
  14. PatentSBERTa: A deep NLP based hybrid model for patent distance and classification using augmented SBERT (2021) — link
  15. An intelligent unsupervised technique for fraud detection in health care systems (2021) — link
  16. CatBoost for Fraud Detection in Financial Transactions (2021) — link
  17. Quantitative Detection of Financial Fraud Based on Deep Learning with Combination of E-Commerce Big Data (2020) — link
  18. A structured review and theme analysis of financial frauds in the banking industry (2020) — link
  19. A Financial Fraud Detection Model Based on LSTM Deep Learning Technique (2020) — link
  20. A Case Study of Cluster-based and Histogram-based Multivariate Anomaly Detection Approach in General Ledgers (2020) — link
  21. Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks (2019) — link
  22. Detection of Accounting Anomalies in the Latent Space using Adversarial Autoencoder Neural Networks (2019) — link
  23. XGBoost: A Scalable Tree Boosting System (2016) — link
  24. Fraud Analytics : Using Descriptive, Predictive, and Social Network Techniques:A Guide to Data Science for Fraud Detection (2015)
  25. A Field Study on the Use of Process Mining of Event Logs as an Analytical Procedure in Auditing (2014) — link
  26. Representation Learning: A Review and New Perspectives (2012) — link
  27. A Review of ERP Research: A Future Agenda for Accounting Information Systems (2011) — link
  28. Forensic Analytics: Methods and Techniques for Forensic Accounting Investigations (2011) — link
  29. The application of data mining techniques in financial fraud detection: A classification framework and an academic review of literature (2011) — link
  30. Greedy function approximation: A gradient boosting machine. (2001) — link
  31. Support-Vector Networks (1995) — link
  32. Finance (1991) — link
  33. Credit Card Analytics: A Review of Fraud Detection and Risk Assessment Techniques (2025) — link
  34. Sentence-Transformers-Pretrained Models (2023)
  35. Scholarly Text Classification with Sentence BERT and Entity Embeddings (2021) — link
  36. Autoencoder Neural Networks versus External Auditors: Detecting Unusual Journal Entries in Financial Statement Audits (2020) — link
  37. Journal entry anomaly detection model (2020) — link
  38. Why 70/30 or 80/20 Relation Between Training and Testing Sets: A Pedagogical Explanation (2018)
  39. International Standards on Auditing 240, The Auditor’s Responsibili-ties Relating to Fraud in an Audit of Financial Statements (2018)
  40. Deep Learning (2016) — link
  41. Accounting Information Systems: Tradition and Future Directions (2013) — link
  42. Hoboken, NJ, USA (2013)
  43. Fraud Auditing and Forensic Accounting, Fourth Edition (2010)
  44. On the Dangers of Cross-Validation. An Experimental Evaluation (2008) — link
  45. CLAUDIA PLANT received the Ph.D. degree from the University for Health Sciences, Medical Informatics and Technology (UMIT), Austria (2007)
  46. Random Forests (2001) — link
    1. Detectinganomaliesin � nancial data using machine learning algorithms
  47. A Survey on Large Language Models: Applications, Challenges, Limitations, and Practical Usage
  48. Advancing Anomaly Detection: Non-Semantic Financial Data Encoding With LLMs
  49. 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.