mlsanityData to 14 Oct 2026

Advancing Anomaly Detection: Non-Semantic Financial Data Encoding with LLMs

arXiv 2406.03614 ↗First posted 5 Jun 2024cs.LG cs.CL q-fin.RMcited by 3

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 14 of its 58 references that are in the map. First posted on arXiv 5 Jun 2024.

Builds on

14 of 58 references.

References · 14

  1. 2023GPT-4 Technical Reportcited by 18,396
  2. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  3. 2016XGBoost: A Scalable Tree Boosting Systemcited by 5,166
  4. 2022Emergent Abilities of Large Language Modelscited by 2,512
  5. 2023PaLM 2 Technical Reportcited by 1,162
  6. 2023Exploring the Potential of Large Language Models (LLMs) in Learning on Graphscited by 274
  7. 2023Large Language Models in Finance: A Surveycited by 226
  8. 2023Domain Specialization as the Key to Make Large Language Models Disruptive: A Comprehensive Surveycited by 135
  9. 2021AI in Finance: Challenges, Techniques and Opportunitiescited by 81
  10. 2023Frozen Transformers in Language Models Are Effective Visual Encoder Layerscited by 39
  11. 2021PatentSBERTa: A Deep NLP based Hybrid Model for Patent Distance and Classification using Augmented SBERTcited by 24
  12. 2022Leveraging Pre-trained BERT for Audio Captioningcited by 18
2 more
  1. 2019Detection of Accounting Anomalies in the Latent Space using Adversarial Autoencoder Neural Networkscited by 13
  2. 2023Data Augmentation for Sample Efficient and Robust Document Rankingcited by 4

Built on by

Cited by year

Citing papers per year: 2024: 1; 2025: 2.

3 papers.