Command Palette
Search for a command to run...
Shalam Daniel ; Korman Simon

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
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| few-shot-image-classification-on-cifar-fs-5 | PT+MAP+SF+BPA (transductive) | Accuracy: 89.94 |
| few-shot-image-classification-on-cifar-fs-5-1 | PT+MAP+SF+BPA (transductive) | Accuracy: 92.83 |
| few-shot-image-classification-on-cub-200-5 | PT+MAP+SF+BPA (transductive) | Accuracy: 97.12 |
| few-shot-image-classification-on-cub-200-5-1 | PT+MAP+SF+BPA (transductive) | Accuracy: 95.80 |
| few-shot-image-classification-on-mini-2 | PT+MAP+SF+BPA (transductive) | Accuracy: 85.59 |
| few-shot-image-classification-on-mini-3 | PT+MAP+SF+BPA (transductive) | Accuracy: 91.34 |
| image-clustering-on-cifar-10 | SPICE-BPA | ARI: 0.866 Accuracy: 0.933 Backbone: ResNet-18 NMI: 0.870 |
| image-clustering-on-cifar-100 | SPICE-BPA | ARI: 0.402 Accuracy: 0.550 NMI: 0.560 |
| image-clustering-on-stl-10 | SPICE-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.