Regularized Optimal Transport Layers for Generalized Global Pooling Operations

Hongteng Xu, Minjie Cheng
12/13/2022
cs.LGcs.CVstat.ML

Official code: SDS-Lab/ROT-Pooling (16 stars, Python, MIT, last commit 2024-03-17).

Abstract

Global pooling is one of the most significant operations in many machine learning models and tasks, which works for information fusion and structured data (like sets and graphs) representation. However, without solid mathematical fundamentals, its practical implementations often depend on empirical mechanisms and thus lead to sub-optimal, even unsatisfactory performance.

Show full abstract

In this work, we develop a novel and generalized global pooling framework through the lens of optimal transport. The proposed framework is interpretable from the perspective of expectation-maximization. Essentially, it aims at learning an optimal transport across sample indices and feature dimensions, making the corresponding pooling operation maximize the conditional expectation of input data. We demonstrate that most existing pooling methods are equivalent to solving a regularized optimal transport (ROT) problem with different specializations, and more sophisticated pooling operations can be implemented by hierarchically solving multiple ROT problems. Making the parameters of the ROT problem learnable, we develop a family of regularized optimal transport pooling (ROTP) layers. We implement the ROTP layers as a new kind of deep implicit layer. Their model architectures correspond to different optimization algorithms. We test our ROTP layers in several representative set-level machine learning scenarios, including multi-instance learning (MIL), graph classification, graph set representation, and image classification. Experimental results show that applying our ROTP layers can reduce the difficulty of the design and selection of global pooling -- our ROTP layers may either imitate some existing global pooling methods or lead to some new pooling layers fitting data better. The code is available at \url{https://github.com/SDS-Lab/ROT-Pooling}.

View on arXivView PDF

Code Implementations(1)

MIT

Learnable Global Pooling Layers Based on Regularized Optimal Transport (ROT)

162PythonMay 28, 20222 years agoMIT

Similar Papers

Cite this paper

@article{xu2022regularized,
  title  = {Regularized Optimal Transport Layers for Generalized Global Pooling Operations},
  author = {Hongteng Xu and Minjie Cheng},
  year   = {2022},
  eprint = {2212.06339},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.06339}
}

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/2212.06339.svg)](https://codeofpaper.com/paper/2212.06339)

Discussion