Tree-Sliced Entropy Partial Transport

Viet-Hoang Tran, Thanh Tran, Thanh Chu, Tam Le, Tan Minh NguyenNeurIPS 2025

Optimal Transport (OT) has become a cornerstone technique in machine learning for comparing probability distributions in a geometrically meaningful way. However, classical OT has two major "deal-breakers" for many real-world applications: it is computationally expensive (typically scaling at $O(n^3 \log n)$), and it strictly requires mass conservation. This means the source and target distributions must have the exact same total weight.

In reality, datasets are rarely perfectly balanced. They often contain noisy outliers or structural inconsistencies—like a biological sample where one cell type is far more abundant than another. While "Partial Transport" (PT) was invented to handle these imbalances by allowing the model to ignore a fraction of the data mass, it is notoriously even slower to compute than standard OT.

To solve both problems simultaneously, researchers have introduced PartialTSW (Partial Tree-Sliced Wasserstein), a novel distance metric that combines the speed of tree-sliced optimal transport with the robustness of partial transport.

The Tree-Sliced Approach

PartialTSW builds on a technique called Tree-Sliced Wasserstein (TSW). Instead of comparing distributions directly in a complex, high-dimensional space, TSW projects the data onto "tree-metric spaces."

An example of a tree structure used to define a tree-metric space, where shortest paths between nodes are unique.

Why trees? Traditional "Sliced Wasserstein" methods project data onto 1D lines, which is fast but loses a significant amount of topological information. Trees act as a structurally enriched substitute. On a tree, the shortest path between any two points is unique. This unique routing allows the complex, computationally heavy OT optimization problem to be solved with a simple, closed-form formula, capturing more complex data geometry while remaining computationally cheap.

How PartialTSW Works

The core innovation of this paper is a theoretical bridge that adapts the tree-sliced approach for unbalanced data:

  1. The "Virtual Bin" Reformulation: The authors prove that on a tree-metric space, a Partial Transport problem (where mass can be discarded) can be mathematically reformulated as a standard balanced OT problem. They achieve this by adding a virtual "auxiliary point" that acts as a bin for the discarded mass. This elegant trick means we don't need entirely new optimization solvers; we just need to pad our measures correctly.
  2. Entropy Regularization: They apply an entropy-regularized version of this transport to ensure the resulting distance is smooth and differentiable. This is a crucial property for training deep machine learning models like Generative Adversarial Networks (GANs).
  3. The Slicing Process: To capture the full geometry of the original high-dimensional space, the method samples multiple random tree structures, projects the data onto them, computes the partial transport cost for each, and averages the results.
The PartialTSW process: projecting high-dimensional data onto a tree structure, discarding outlier mass (faded points), and averaging across multiple random tree slices.

Furthermore, PartialTSW simplifies hyperparameter tuning. In many unbalanced OT methods, practitioners must tune several complex penalty parameters. In PartialTSW, the total mass of the target tree becomes the primary "knob" for controlling how much mass to ignore, making it highly practical.

Experimental Validation

The authors evaluated PartialTSW across several distinct and challenging tasks, demonstrating remarkable improvements in both speed and accuracy:

  • Massive Speedups: Because PartialTSW scales at $O(n \log n)$, it is incredibly efficient. In benchmarks with $10^5$ samples, it was roughly 1,000 times faster than standard Sinkhorn-based partial transport solvers.
  • Perfect Outlier Rejection (MNIST): In a robust generative modeling task using the MNIST dataset—where "0"s were the target and "1"s were injected as noisy outliers—PartialTSW achieved a 0.00% outlier rate. It perfectly ignored the "1" digits and only learned to generate "0"s, whereas standard OT methods suffered outlier rates as high as 16%.
  • Superior Image Translation (FFHQ): The method was tested on a high-quality face dataset for image-to-image translation (converting "Young" faces to "Adult" faces) with a severe class imbalance (38k Young vs. 10.5k Adult). PartialTSW achieved 99.11% accuracy, significantly outperforming other state-of-the-art unbalanced methods like UOT-FM (82.38%) while maintaining better image quality.

Limitations and Future Work

The primary limitation of PartialTSW is common to all "sliced" transport methods: it provides a distance value but not an explicit transport map. It can efficiently quantify how different two distributions are and handle outliers, but it does not directly output the instructions for moving an individual point from point A to point B in the original high-dimensional space.

Developing ways to construct these optimal transport plans or maps specifically within the tree-sliced framework remains a promising direction for future research. Nonetheless, PartialTSW represents a major leap forward in making robust distribution comparison viable for large-scale, real-world machine learning applications.

Summary updated

BibTeX
@inproceedings{tran2025tree,
  author = {Viet-Hoang Tran and Thanh Tran and Thanh Chu and Tam Le and Tan Minh Nguyen},
  title = {{Tree-Sliced Entropy Partial Transport}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=41ZbysfW4h},
}
Figure