Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport

Siqi Zeng, Sixian Du, Makoto Yamada, Han Zhao
10/1/2024

No official code found. Best implementation: uiuctml/OTCPCC (3 stars, MIT, last commit 2025-04-19).

Abstract

To embed structured knowledge within labels into feature representations, prior work [Zeng et al., 2022] proposed to use the Cophenetic Correlation Coefficient (CPCC) as a regularizer during supervised learning. This regularizer calculates pairwise Euclidean distances of class means and aligns them with the corresponding shortest path distances derived from the label hierarchy tree. However, class means may not be good representatives of the class conditional distributions, especially when they are multi-mode in nature. To address this limitation, under the CPCC framework, we propose to use the Earth Mover's Distance (EMD) to measure the pairwise distances among classes in the feature space. We show that our exact EMD method generalizes previous work, and recovers the existing algorithm when class-conditional distributions are Gaussian. To further improve the computational efficiency of our method, we introduce the Optimal Transport-CPCC family by exploring four EMD approximation variants. Our most efficient OT-CPCC variant, the proposed Fast FlowTree algorithm, runs in linear time in the size of the dataset, while maintaining competitive performance across datasets and tasks. The code is available at https://github.com/uiuctml/OTCPCC.

View on arXivView PDF

Code Implementations(1)

uiuctml/OTCPCCCommunity100%
MIT

[ICLR '25] Code repo for the paper entitled "Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport" at ICLR 2025

31Shell, PythonFeb 27, 20251 years agoMIT
optimal-transportrepresentation-learning

Similar Papers

Cite this paper

@article{zeng2024learning,
  title  = {Learning Structured Representations by Embedding Class Hierarchy with Fast Optimal Transport},
  author = {Siqi Zeng and Sixian Du and Makoto Yamada and Han Zhao},
  year   = {2024},
  eprint = {2410.03052},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.03052},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.03052.svg)](https://codeofpaper.com/paper/2410.03052)

Discussion