HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

The Balanced-Pairwise-Affinities Feature Transform

Shalam Daniel ; Korman Simon

The Balanced-Pairwise-Affinities Feature Transform

Abstract

The Balanced-Pairwise-Affinities (BPA) feature transform is designed toupgrade the features of a set of input items to facilitate downstream matchingor grouping related tasks. The transformed set encodes a rich representation ofhigh order relations between the input features. A particular min-cost-max-flowfractional matching problem, whose entropy regularized version can beapproximated by an optimal transport (OT) optimization, leads to a transformwhich is efficient, differentiable, equivariant, parameterless andprobabilistically interpretable. While the Sinkhorn OT solver has been adaptedextensively in many contexts, we use it differently by minimizing the costbetween a set of features to $itself$ and using the transport plan's $rows$ asthe new representation. Empirically, the transform is highly effective andflexible in its use and consistently improves networks it is inserted into, ina variety of tasks and training schemes. We demonstrate state-of-the-artresults in few-shot classification, unsupervised image clustering and personre-identification. Code is available at \url{github.com/DanielShalam/BPA}.

Code Repositories

danielshalam/bpa
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
few-shot-image-classification-on-cifar-fs-5PT+MAP+SF+BPA (transductive)
Accuracy: 89.94
few-shot-image-classification-on-cifar-fs-5-1PT+MAP+SF+BPA (transductive)
Accuracy: 92.83
few-shot-image-classification-on-cub-200-5PT+MAP+SF+BPA (transductive)
Accuracy: 97.12
few-shot-image-classification-on-cub-200-5-1PT+MAP+SF+BPA (transductive)
Accuracy: 95.80
few-shot-image-classification-on-mini-2PT+MAP+SF+BPA (transductive)
Accuracy: 85.59
few-shot-image-classification-on-mini-3PT+MAP+SF+BPA (transductive)
Accuracy: 91.34
image-clustering-on-cifar-10SPICE-BPA
ARI: 0.866
Accuracy: 0.933
Backbone: ResNet-18
NMI: 0.870
image-clustering-on-cifar-100SPICE-BPA
ARI: 0.402
Accuracy: 0.550
NMI: 0.560
image-clustering-on-stl-10SPICE-BPA
ARI: 0.879
Accuracy: 0.943
Backbone: ResNet-34
NMI: 0.880

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp