NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Wasserstein discriminant analysis

Rémi Flamary, Marco Cuturi, Nicolas Courty, Alain Rakotomamonjy

Introduction

Dimensionality reduction is a cornerstone of machine learning, essential for visualizing high-dimensional data and improving classification performance. For decades, Fisher Discriminant Analysis (FDA) has been the standard for supervised linear projection. FDA aims to maximize the separation between class means while minimizing within-class variance.

However, FDA relies on a critical assumption: that classes are unimodal and "blob-like." When data is multimodal—consisting of multiple distinct clusters within a single class—FDA's reliance on global averages often fails to capture the true underlying structure. While "local" variants like Local Fisher Discriminant Analysis (LFDA) exist, they typically rely on static neighborhood graphs that may not remain valid after projection. Wasserstein Discriminant Analysis (WDA) addresses these limitations by integrating Optimal Transport into the dimensionality reduction framework.

The WDA Framework

WDA reimagines the FDA objective by replacing standard Euclidean variance with Wasserstein distances. The core idea is to maximize the ratio of inter-class distances to intra-class distances, but calculated through the lens of probability distributions.

Optimal Transport and Sinkhorn Regularization

To compute these distances, WDA utilizes Optimal Transport (OT), which measures the minimum "cost" to transform one distribution into another. Because exact OT is computationally intensive, the authors employ Sinkhorn distances—a regularized version of OT. This entropic regularization not only speeds up computation but also results in a smooth, differentiable objective function suitable for optimization.

Optimization on the Stiefel Manifold

The projection matrix $P$ is optimized on the Stiefel manifold, ensuring that the resulting projection remains orthogonal. The authors utilize a bilevel optimization approach: an "inner" loop determines the optimal transport plan for a given projection, while an "outer" loop updates the projection matrix using projected gradient descent. A significant technical contribution is the use of automatic differentiation through Sinkhorn iterations, allowing for efficient gradient calculations.

Key Insights: The Global-Local Synergy

WDA offers a unique balance between global and local data structures:

  • Dynamic Relations: Unlike LFDA, which uses fixed neighbors, WDA estimates the transport plan (the weights $t_{i,j}$ between points) in the projected space. This means the importance of specific point-to-point interactions evolves as the algorithm finds a better projection.
  • Neighborhood Preservation: Minimizing the intra-class Wasserstein distance naturally encourages the projection to preserve the local neighborhood structure of the original data.
  • Generalization of FDA: Mathematically, WDA acts as a generalization of FDA. When the regularization parameter $\lambda$ is small, WDA effectively reduces to the classical Fisher approach.

Experimental Results

The authors validated WDA across diverse datasets, including MNIST, Caltech-256, and various UCI benchmarks.

  • Visualization: On MNIST, WDA produced 2D projections where digit classes were clearly disentangled, significantly outperforming FDA and other local methods which often showed substantial overlap.
  • Classification Performance: In benchmark tests, WDA achieved the best average rank (2.2) among competitors like Large Margin Nearest Neighbor (LMNN, rank 3.4) and FDA (rank 5.2).
  • Scalability: Despite the $O(n^2)$ complexity associated with pairwise distances, WDA successfully handled high-dimensional features (e.g., 4096-dimensional DeCAF features from Caltech-256), proving more efficient than other information-theoretic methods.

Limitations and Future Directions

The primary bottleneck for WDA is its quadratic complexity relative to the number of samples, making it challenging for extremely large datasets. Future research directions include the development of stochastic versions of WDA that use mini-batches to estimate Wasserstein distances, potentially allowing the method to scale to millions of samples. Additionally, refining hyperparameter selection for the regularization strength $\lambda$ remains an area for further simplification.

Summary updated

BibTeX
@article{flamary2018wasserstein,
  author = {Rémi Flamary and Marco Cuturi and Nicolas Courty and Alain Rakotomamonjy},
  title = {{Wasserstein discriminant analysis}},
  journal = {Machine Learning},
  year = {2018},
  doi = {10.1007/s10994-018-5717-1},
}
Figure