[Paper Review] Monge's Optimal Transport Distance for Image Classification
This paper proposes using the Wasserstein distance, derived from Monge's optimal transport problem via a PDE formulation, as a similarity metric for image classification. Evaluated within a 1-NN framework on MNIST, it outperforms Euclidean, Pearson correlation, and Tangent Space distances, achieving 83.525% accuracy with only 25 training samples per class—demonstrating superior discriminatory power, especially in low-data regimes.
This paper focuses on a similarity measure, known as the Wasserstein distance, with which to compare images. The Wasserstein distance results from a partial differential equation (PDE) formulation of Monge's optimal transport problem. We present an efficient numerical solution method for solving Monge's problem. To demonstrate the measure's discriminatory power when comparing images, we use a $1$-Nearest Neighbour ($1$-NN) machine learning algorithm to illustrate the measure's potential benefits over other more traditional distance metrics and also the Tangent Space distance, designed to perform excellently on the well-known MNIST dataset. To our knowledge, the PDE formulation of the Wasserstein metric has not been presented for dealing with image comparison, nor has the Wasserstein distance been used within the $1$-nearest neighbour architecture.
Motivation & Objective
- To explore the use of the Wasserstein distance, derived from optimal transport theory, as a similarity measure for image comparison.
- To implement and evaluate a PDE-based numerical solution to Monge's optimal transport problem for image classification.
- To compare the Wasserstein distance against traditional metrics like Euclidean, Pearson correlation, and Tangent Space distance in a 1-NN classification framework.
- To assess the metric’s performance on small training sets, particularly in low-data machine learning scenarios.
- To demonstrate the practical viability and discriminatory power of optimal transport in image processing and classification.
Proposed method
- The paper formulates Monge’s optimal transport problem as a PDE, enabling a continuous, differentiable solution for image comparison.
- It applies a numerical PDE solver to compute the Wasserstein distance between normalized image distributions, treating pixel intensities as mass distributions.
- The distance is used as a similarity metric within a 1-Nearest Neighbour (1-NN) classification algorithm.
- The method uses a squared Euclidean cost function $ c_{ij} = |i - j|^2 $ to model transport cost between pixel locations.
- The algorithm solves a constrained linear programming problem equivalent to the discrete Kantorovich formulation, with mass conservation constraints.
- The implementation uses continuous representations with spline approximations, and the authors compare results to discrete linear programming formulations.
Experimental results
Research questions
- RQ1Can the PDE-formulated Wasserstein distance serve as an effective and efficient similarity metric for image classification?
- RQ2How does the Wasserstein distance compare to traditional metrics like Euclidean and Pearson correlation in terms of classification accuracy on MNIST?
- RQ3Does the Wasserstein distance maintain strong performance when training data is severely limited, such as 25 samples per class?
- RQ4What is the impact of using a continuous PDE-based formulation versus a discrete linear programming formulation for optimal transport in image tasks?
- RQ5Can the Wasserstein distance outperform the Tangent Space distance, known for strong MNIST performance, in a 1-NN setting?
Key findings
- With only 25 training samples per digit, the Wasserstein distance achieved 83.525% classification accuracy on MNIST, outperforming the Tangent Space distance (82.2%) and Pearson’s correlation (80.1%).
- The Euclidean distance achieved 77.375% accuracy under the same low-data condition, confirming the Wasserstein metric’s superior discriminatory power.
- The Wasserstein distance demonstrated asymptotic convergence toward higher accuracy as training set size increased, suggesting potential for even better performance on the full MNIST dataset.
- The results indicate that the Wasserstein distance is particularly effective in low-data regimes due to its ability to capture structural similarities between images.
- The PDE-based implementation of optimal transport shows strong promise for image processing and machine learning, despite higher computational cost.
- The authors suggest that future improvements via nonlinear solvers and alternative image representations (e.g., linear or cubic interpolation) could further enhance performance.
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.