Search papers, labs, and topics across Lattice.
This paper investigates the effectiveness of flow matching techniques for unsupervised anomaly detection in financial datasets contaminated with anomalous samples. By comparing Time-Conditioned Contraction Matching (TCCM) with Forest-Flow and evaluating various anomaly scoring functions, the authors reveal that the choice of scoring function significantly impacts detection performance. Notably, trajectory-based Deviation and Reconstruction scores yield more robust results than the traditional Decision score, allowing Forest-Flow to compete with and sometimes surpass TCCM in detecting anomalies amidst contamination.
Anomaly scoring can make or break the effectiveness of flow-matching methods, with trajectory-based scores outperforming traditional approaches in contaminated datasets.
Financial anomaly detection often relies on large unlabeled transaction logs, where anomalous samples may already be present during training. Such training-set contamination violates the clean-normal data assumption underlying many anomaly detection methods. Although flow matching has demonstrated strong performance in generative modeling, its robustness in unsupervised tabular anomaly detection remains underexplored. In this work, we study flow-matching-based anomaly detection under contaminated training data by comparing Time-Conditioned Contraction Matching (TCCM) with Forest-Flow and evaluating multiple anomaly scoring functions. Our results show that the choice of anomaly score is critical. The original single-step Decision score used by TCCM is sensitive to contamination, whereas trajectory-based Deviation and Reconstruction scores provide more stable anomaly signals. With these scores, Forest-Flow becomes competitive with, and in some cases outperforms, TCCM. These findings highlight the importance of anomaly scoring for flow-matching methods in financial anomaly detection under severe class imbalance.