Geometric Sparse Coding in Wasserstein Space

Marshall Mueller, Shuchin Aeron, James M. Murphy, Abiy TasissaarXiv 2022

Abstract

Wasserstein dictionary learning is an unsupervised approach to learning a collection of probability distributions that generate observed distributions as Wasserstein barycentric combinations. Existing methods for Wasserstein dictionary learning optimize an objective that seeks a dictionary with sufficient representation capacity via barycentric interpolation to approximate the observed training data, but without imposing additional structural properties on the coefficients associated to the dictionary. This leads to dictionaries that densely represent the observed data, which makes interpretation of the coefficients challenging and may also lead to poor empirical performance when using the learned coefficients in downstream tasks. In contrast and motivated by sparse dictionary learning in Euclidean spaces, we propose a geometrically sparse regularizer for Wasserstein space that promotes representations of a data point using only nearby dictionary elements. We show this approach leads to sparse representations in Wasserstein space and addresses the problem of non-uniqueness of barycentric representation. Moreover, when data is generated as Wasserstein barycenters of fixed distributions, this regularizer facilitates the recovery of the generating distributions in cases that are ill-posed for unregularized Wasserstein dictionary learning. Through experimentation on synthetic and real data, we show that our geometrically regularized approach yields sparser and more interpretable dictionaries in Wasserstein space, which perform better in downstream applications.

Introduction

In traditional signal processing, sparse coding represents data as a linear combination of a few elements from a dictionary. However, many modern datasets—such as images, word clouds, or brain activity maps—are better modeled as probability distributions. Standard Euclidean sparse coding fails to respect the underlying geometry of these distributions. Wasserstein Dictionary Learning (WDL) addresses this by using Wasserstein barycenters (geometric averages) to reconstruct data.

Despite its advantages, standard WDL often produces "dense" representations where every dictionary atom contributes to every data point. This lack of sparsity makes results difficult to interpret and the optimization problem "ill-posed," meaning there is often no unique best solution. This paper introduces Geometrically Sparse Wasserstein Dictionary Learning (GeoSWDL) to resolve these issues.

The GeoSWDL Framework

The authors propose a new optimization objective that incorporates a geometrically sparse regularizer. Unlike standard $L_1$ sparsity, which simply counts non-zero coefficients, this regularizer penalizes the Wasserstein distance between a data point and the dictionary atoms used to represent it. This forces the model to reconstruct a data point using only "nearby" atoms in the Wasserstein space.

Geometric representation of distributions and their barycenters on a geodesic in Wasserstein space.

This approach acts as a bridge between two extremes: when the regularization strength ($\rho$) is zero, the model is standard WDL; when $\rho$ is very large, the model behaves like Wasserstein K-means clustering, where each point is represented by exactly one atom. To make this computationally feasible, the authors utilize entropic regularization via the Sinkhorn algorithm and leverage automatic differentiation for simultaneous dictionary and coefficient updates.

Key Insights and Theoretical Results

  • Locality Implies Sparsity: In Wasserstein space, the most effective way to achieve sparsity is to ensure that atoms are geometrically relevant to the data they represent.
  • Solving Ill-Posedness: The authors prove (Theorem 1) that their regularizer helps identify the "true" generating distributions. Without it, infinitely many dictionaries could reconstruct the data perfectly, but most would lack physical meaning.
  • Soft K-Means Interpretation: GeoSWDL can be viewed as a "soft" version of Wasserstein K-means, allowing for smooth transitions between clusters while maintaining geometric structure.

Experimental Evaluation

The method was evaluated on two primary datasets:

  1. Synthetic MNIST: By generating 500 synthetic barycenter digits from 30 real MNIST digits, the authors tested recovery. As the regularization parameter $\rho$ increased, the learned dictionary atoms became significantly more recognizable as digits, and the coefficients showed cleaner alignment with true digit classes.
  2. BBCSPORT: In this NLP dataset, documents were treated as word distributions. Dictionaries learned via GeoSWDL consistently outperformed randomly sampled documents. Furthermore, increasing geometric regularization improved the performance of simple 1-Nearest Neighbor (1NN) classifiers, suggesting that the regularizer forces dictionary atoms to become distinct "prototypes" for data classes.

Conclusion

GeoSWDL provides a robust framework for sparse coding in non-Euclidean spaces. By favoring geometric locality, the method produces more interpretable dictionaries and improves performance in downstream tasks. While computational scaling remains a challenge, the theoretical and empirical results demonstrate that geometric sparsity is a vital component for learning meaningful representations of distributional data.

Summary updated

BibTeX
@misc{mueller2022geometric,
  author = {Marshall Mueller and Shuchin Aeron and James M. Murphy and Abiy Tasissa},
  title = {{Geometric Sparse Coding in Wasserstein Space}},
  year = {2022},
  eprint = {2210.12135},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.12135},
}
Figure