[Paper Review] (Martingale) Optimal Transport And Anomaly Detection With Neural Networks: A Primal-dual Algorithm
This paper introduces a primal-dual neural network algorithm for solving (martingale) optimal transport problems under the twist condition, leveraging stochastic gradient descent and Arrow-Hurwicz-type updates. It achieves fast convergence and stable performance in high dimensions, outperforming entropic relaxation and cutting-plane methods, and enables effective anomaly detection by learning transport maps between distributions.
In this paper, we introduce a primal-dual algorithm for solving (martingale) optimal transportation problems, with cost functions satisfying the twist condition, close to the one that has been used recently for training generative adversarial networks. As some additional applications, we consider anomaly detection and automatic generation of financial data.
Motivation & Objective
- To develop a scalable, differentiable algorithm for solving (martingale) optimal transport problems in high-dimensional settings.
- To address the limitations of existing methods—such as entropic relaxation and cutting-plane algorithms—by introducing a stochastic primal-dual framework using neural networks.
- To enable practical applications in anomaly detection by learning a transport map from a reference distribution to real data.
- To ensure convergence and stability in high-dimensional OT problems through a neural network-based implementation of the Arrow-Hurwicz method.
- To demonstrate the method’s effectiveness in computing Wasserstein distances and solving MOT problems with verified numerical benchmarks.
Proposed method
- The algorithm uses a primal-dual formulation based on the Monge-Kantorovich duality, where the dual variables are parameterized by neural networks.
- It applies stochastic gradient descent to update the dual variables (u_θ, h_θ) and the transport map T_ω, using a stochastic Arrow-Hurwicz scheme.
- The method enforces the twist condition on the cost function, ensuring the existence of a unique optimal transport map.
- The primal objective is maximized via gradient ascent on the transport map T_ω, while the dual constraints are enforced through penalty terms and gradient updates.
- The algorithm alternates between updating the dual variables and the transport map, with periodic refinement of the transport map using stochastic gradient descent.
- The framework is extended to anomaly detection by training a transport map from a base distribution to real data, then generating anomalies by perturbing the latent space.
Experimental results
Research questions
- RQ1Can a primal-dual neural network algorithm efficiently solve high-dimensional (martingale) optimal transport problems under the twist condition?
- RQ2How does the proposed algorithm compare in convergence speed and stability to entropic relaxation and cutting-plane methods?
- RQ3Can the learned transport map be used to detect anomalies by perturbing the latent space of a reference distribution?
- RQ4Does the algorithm maintain accuracy and stability when computing Wasserstein distances in high dimensions (d=10,20)?
- RQ5To what extent does the stochastic Arrow-Hurwicz update scheme ensure convergence to the true optimal transport solution?
Key findings
- The primal-dual algorithm converges significantly faster than entropic relaxation, with convergence speed improved by a factor of 10^4 in d=1 and 10^3 in d=10,20.
- For the 2-Wasserstein distance in d=2, the algorithm achieves stable convergence, while entropic relaxation exhibits instability due to sensitivity to the choice of ε.
- In the MOT setting with c(s₁,s₂) = (s₁+s₂)³, the algorithm converges to the exact solution of 9.19, matching the simplex benchmark.
- The algorithm successfully learns a transport map from a normal to a log-normal distribution, reducing the 2-Wasserstein distance to zero over iterations.
- Anomaly detection experiments show that perturbed samples (G + 3×sign(G)) lie on the edge of the real data distribution, confirming effective anomaly localization.
- The method demonstrates robustness and scalability in high-dimensional settings (d=20), maintaining fast convergence and accurate estimation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.