Skip to main content
QUICK REVIEW

[Paper Review] Detection of Accounting Anomalies in the Latent Space using Adversarial Autoencoder Neural Networks

Marco Schreyer, Timur Sattarov|Alexandria (UniSG) (University of St.Gallen)|Aug 2, 2019
Anomaly Detection Techniques and ApplicationsComputer Science37 references17 citations
TL;DR

This paper proposes an adversarial autoencoder (AAE)-based approach to detect accounting anomalies by learning a semantic, disentangled representation of journal entries in ERP systems. By combining the learned latent representation with reconstruction error, the method generates an interpretable, unsupervised anomaly score that effectively identifies both global and local accounting irregularities with high precision and auditor-validated relevance.

ABSTRACT

The detection of fraud in accounting data is a long-standing challenge in financial statement audits. Nowadays, the majority of applied techniques refer to handcrafted rules derived from known fraud scenarios. While fairly successful, these rules exhibit the drawback that they often fail to generalize beyond known fraud scenarios and fraudsters gradually find ways to circumvent them. In contrast, more advanced approaches inspired by the recent success of deep learning often lack seamless interpretability of the detected results. To overcome this challenge, we propose the application of adversarial autoencoder networks. We demonstrate that such artificial neural networks are capable of learning a semantic meaningful representation of real-world journal entries. The learned representation provides a holistic view on a given set of journal entries and significantly improves the interpretability of detected accounting anomalies. We show that such a representation combined with the networks reconstruction error can be utilized as an unsupervised and highly adaptive anomaly assessment. Experiments on two datasets and initial feedback received by forensic accountants underpinned the effectiveness of the approach.

Motivation & Objective

  • To address the limitations of rule-based fraud detection methods that fail to generalize beyond known fraud patterns.
  • To overcome the poor interpretability of deep learning-based anomaly detection in forensic accounting.
  • To develop an unsupervised, adaptive anomaly detection method that supports auditors in selecting representative, defensible samples for detailed audit.
  • To enable forensic accountants to interpret detected anomalies in the context of regular journal entry semantics.
  • To demonstrate that AAEs can learn meaningful, disentangled representations of real-world accounting data that reflect underlying generative processes.

Proposed method

  • The method employs an adversarial autoencoder (AAE) to learn a compact, disentangled latent representation of journal entries from real-world ERP systems.
  • The AAE architecture imposes a prior distribution (e.g., mixture of Gaussians) on the latent code vector z, encouraging the encoder to produce a posterior that matches this prior.
  • The discriminator network is trained to distinguish between the aggregated posterior and the prior, forcing the latent space to conform to the desired distribution.
  • Anomaly scores are computed as a weighted combination of the reconstruction error and the latent code's distance from the prior, using a hyperparameter α to balance the two components.
  • The anomaly score (AS) is defined as AS = α × reconstruction_error + (1−α) × ||z − z_prior||², enabling adaptive detection of both global and local anomalies.
  • The model is trained on two real-world datasets of journal entries, with hyperparameters (τ for mixture components, α, and training epochs) tuned for optimal anomaly detection.

Experimental results

Research questions

  • RQ1Can adversarial autoencoders learn a semantic, disentangled representation of real-world journal entries that reflects underlying accounting processes?
  • RQ2Can the combination of reconstruction error and latent space regularization produce an interpretable and adaptive anomaly score for unsupervised fraud detection?
  • RQ3How well can the proposed anomaly score distinguish between regular, global, and local accounting anomalies in real ERP data?
  • RQ4Can the detected anomalies be meaningfully interpreted by forensic accountants in terms of accounting semantics and irregularities?
  • RQ5Does the method reduce sampling risk by enabling auditors to select representative, defensible entries for detailed audit?

Key findings

  • The AAE model successfully learned a disentangled, semantic representation of journal entries, enabling clear separation between regular, global, and local anomaly classes.
  • The anomaly score (AS) achieved distinct separation between anomaly types: global anomalies had a mean AS of 0.508 (τ=5) in dataset A, while regular entries had only 0.045.
  • Local anomalies showed a moderate anomaly score of 0.248 (τ=5), indicating they are semantically close to regular entries but deviate in rare attribute combinations.
  • Increasing the α parameter (weight on reconstruction error) improved detection of local anomalies, demonstrating the method’s adaptability to different fraud types.
  • Auditor feedback confirmed the relevance and interpretability of detected anomalies, particularly for entries involving unusual general ledger combinations or departmental transfers.
  • The method demonstrated robustness across different hyperparameter settings (τ=5,10,15; epochs=5k–15k), with consistent performance and low variance in anomaly score estimates.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.