Papers › A Trainable Optimal Transport Embedding for Feature Aggregation and its Relationship...

A Trainable Optimal Transport Embedding for Feature Aggregation and its Relationship to Attention

22 Jun 2020ICLR 2021 1arXiv:2006.12065archive 2025-07-28

Grégoire Mialon, Dexiong Chen, Alexandre d'Aspremont, Julien Mairal

We address the problem of learning on sets of features, motivated by the need of performing pooling operations in long biological sequences of varying sizes, with long-range dependencies, and possibly few labeled data. To address this challenging task, we introduce a parametrized representation of fixed size, which embeds and then aggregates elements from a given input set according to the optimal transport plan between the set and a trainable reference. Our approach scales to large datasets and allows end-to-end training of the reference, while also providing a simple unsupervised learning mechanism with small computational cost. Our aggregation technique admits two useful interpretations: it may be seen as a mechanism related to attention layers in neural networks, or it may be seen as a scalable surrogate of a classical optimal transport-based kernel. We experimentally demonstrate the effectiveness of our approach on biological sequences, achieving state-of-the-art results for protein fold recognition and detection of chromatin profiles tasks, and, as a proof of concept, we show promising results for processing natural language sequences. We provide an open-source implementation of our embedding that can be used alone or as a module in larger learning models at https://github.com/claying/OTK.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2006.12065")

Code

Syntology Ran 5 of 13 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 3 ran · fixture could not drive it; 1 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

claying/OTK officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 5 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
3ran · fixture could not drive it
1ran
8unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from claying/OTK. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

log_sinkhorn claying/OTK/otk/layers.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 6a5b264a00dc40db · report
multihead_attn claying/OTK/otk/layers.py official repository ran fingerprinted no licence file found · pointer only · 0ad8efb4913866f6 · report
normalize claying/OTK/otk/layers.py official repository ran · our draft was wrong fingerprinted no licence file found · pointer only · ea90720465da3345 · report
sinkhorn claying/OTK/otk/layers.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 55a8cdfd0f911b6a · report
spherical_kmeans claying/OTK/otk/layers.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 838829b61cf82bd2 · report
OTKernel claying/otk/otk/layers.py official repository unverified no licence file found · pointer only · 8713f1365af9fd76 · report
OTKernel claying/OTK/otk/layers.py official repository unverified no licence file found · pointer only · c195abdcd448e5a0 · report
multihead_attn claying/otk/otk/layers.py official repository unverified no licence file found · pointer only · 210485a16a60a08e · report
normalize claying/otk/otk/layers.py official repository unverified no licence file found · pointer only · c956cbab65499a05 · report
spherical_kmeans claying/otk/otk/layers.py official repository unverified no licence file found · pointer only · fb854c01aaabc359 · report
wasserstein_barycenter claying/OTK/otk/layers.py official repository unverified no licence file found · pointer only · c6f00e8b22fa76ed · report
wasserstein_kmeans claying/otk/otk/layers.py official repository unverified no licence file found · pointer only · a95baa30738e561e · report
wasserstein_kmeans claying/OTK/otk/layers.py official repository unverified no licence file found · pointer only · 2e43b81b2901488c · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections