TasksSotADatasetsPapersMethodsSubmitAbout
Papers With Code 2

A community resource for machine learning research: papers, code, benchmarks, and state-of-the-art results.

Explore

Notable BenchmarksAll SotADatasetsPapersMethods

Community

Submit ResultsAbout

Data sourced from the PWC Archive (CC-BY-SA 4.0). Built by the community, for the community.

Papers/The Balanced-Pairwise-Affinities Feature Transform

The Balanced-Pairwise-Affinities Feature Transform

Daniel Shalam, Simon Korman

2024-06-25Image ClusteringFew-Shot Image ClassificationPerson Re-Identification
PaperPDFCode(official)

Abstract

The Balanced-Pairwise-Affinities (BPA) feature transform is designed to upgrade the features of a set of input items to facilitate downstream matching or grouping related tasks. The transformed set encodes a rich representation of high order relations between the input features. A particular min-cost-max-flow fractional matching problem, whose entropy regularized version can be approximated by an optimal transport (OT) optimization, leads to a transform which is efficient, differentiable, equivariant, parameterless and probabilistically interpretable. While the Sinkhorn OT solver has been adapted extensively in many contexts, we use it differently by minimizing the cost between a set of features to $itself$ and using the transport plan's $rows$ as the new representation. Empirically, the transform is highly effective and flexible in its use and consistently improves networks it is inserted into, in a variety of tasks and training schemes. We demonstrate state-of-the-art results in few-shot classification, unsupervised image clustering and person re-identification. Code is available at \url{github.com/DanielShalam/BPA}.

Results

TaskDatasetMetricValueModel
Image ClusteringCIFAR-10ARI0.866SPICE-BPA
Image ClusteringCIFAR-10Accuracy0.933SPICE-BPA
Image ClusteringCIFAR-10NMI0.87SPICE-BPA
Image ClusteringCIFAR-100ARI0.402SPICE-BPA
Image ClusteringCIFAR-100Accuracy0.55SPICE-BPA
Image ClusteringCIFAR-100NMI0.56SPICE-BPA
Image ClusteringSTL-10ARI0.879SPICE-BPA
Image ClusteringSTL-10Accuracy0.943SPICE-BPA
Image ClusteringSTL-10NMI0.88SPICE-BPA
Image ClassificationCUB 200 5-way 5-shotAccuracy97.12PT+MAP+SF+BPA (transductive)
Image ClassificationCUB 200 5-way 1-shotAccuracy95.8PT+MAP+SF+BPA (transductive)
Image ClassificationCIFAR-FS 5-way (1-shot)Accuracy89.94PT+MAP+SF+BPA (transductive)
Image ClassificationMini-Imagenet 5-way (5-shot)Accuracy91.34PT+MAP+SF+BPA (transductive)
Image ClassificationMini-Imagenet 5-way (1-shot)Accuracy85.59PT+MAP+SF+BPA (transductive)
Image ClassificationCIFAR-FS 5-way (5-shot)Accuracy92.83PT+MAP+SF+BPA (transductive)
Few-Shot Image ClassificationCUB 200 5-way 5-shotAccuracy97.12PT+MAP+SF+BPA (transductive)
Few-Shot Image ClassificationCUB 200 5-way 1-shotAccuracy95.8PT+MAP+SF+BPA (transductive)
Few-Shot Image ClassificationCIFAR-FS 5-way (1-shot)Accuracy89.94PT+MAP+SF+BPA (transductive)
Few-Shot Image ClassificationMini-Imagenet 5-way (5-shot)Accuracy91.34PT+MAP+SF+BPA (transductive)
Few-Shot Image ClassificationMini-Imagenet 5-way (1-shot)Accuracy85.59PT+MAP+SF+BPA (transductive)
Few-Shot Image ClassificationCIFAR-FS 5-way (5-shot)Accuracy92.83PT+MAP+SF+BPA (transductive)

Related Papers

Weakly Supervised Visible-Infrared Person Re-Identification via Heterogeneous Expert Collaborative Consistency Learning2025-07-17WhoFi: Deep Person Re-Identification via Wi-Fi Channel Signal Encoding2025-07-17Try Harder: Hard Sample Generation and Learning for Clothes-Changing Person Re-ID2025-07-15Mind the Gap: Bridging Occlusion in Gait Recognition via Residual Gap Correction2025-07-15ViT-ProtoNet for Few-Shot Image Classification: A Multi-Benchmark Evaluation2025-07-12KeyRe-ID: Keypoint-Guided Person Re-Identification using Part-Aware Representation in Videos2025-07-10CORE-ReID V2: Advancing the Domain Adaptation for Object Re-Identification with Optimized Training and Ensemble Fusion2025-07-04Following the Clues: Experiments on Person Re-ID using Cross-Modal Intelligence2025-07-02