English

Detecting Toxic Flow

Trading and Market Microstructure 2026-01-19 v2 Machine Learning

Abstract

This paper develops a framework to predict toxic trades that a broker receives from her clients. Toxic trades are predicted with a novel online learning Bayesian method which we call the projection-based unification of last-layer and subspace estimation (PULSE). PULSE is a fast and statistically-efficient Bayesian procedure for online training of neural networks. We employ a proprietary dataset of foreign exchange transactions to test our methodology. Neural networks trained with PULSE outperform standard machine learning and statistical methods when predicting if a trade will be toxic; the benchmark methods are logistic regression, random forests, and a recursively-updated maximum-likelihood estimator. We devise a strategy for the broker who uses toxicity predictions to internalise or to externalise each trade received from her clients. Our methodology can be implemented in real-time because it takes less than one millisecond to update parameters and make a prediction. Compared with the benchmarks, online learning of a neural network with PULSE attains the highest PnL and avoids the most losses by externalising toxic trades.

Keywords

Cite

@article{arxiv.2312.05827,
  title  = {Detecting Toxic Flow},
  author = {Álvaro Cartea and Gerardo Duran-Martin and Leandro Sánchez-Betancourt},
  journal= {arXiv preprint arXiv:2312.05827},
  year   = {2026}
}

Comments

27 pages, 18 figures

R2 v1 2026-06-28T13:46:15.658Z