Papers › Unsupervised Representation Learning by Balanced Self Attention Matching

Unsupervised Representation Learning by Balanced Self Attention Matching

4 Aug 2024arXiv:2408.02014archive 2025-07-28

Daniel Shalam, Simon Korman

Many leading self-supervised methods for unsupervised representation learning, in particular those for embedding image features, are built on variants of the instance discrimination task, whose optimization is known to be prone to instabilities that can lead to feature collapse. Different techniques have been devised to circumvent this issue, including the use of negative pairs with different contrastive losses, the use of external memory banks, and breaking of symmetry by using separate encoding networks with possibly different structures. Our method, termed BAM, rather than directly matching features of different views (augmentations) of input images, is based on matching their self-attention vectors, which are the distributions of similarities to the entire set of augmented images of a batch. We obtain rich representations and avoid feature collapse by minimizing a loss that matches these distributions to their globally balanced and entropy regularized version, which is obtained through a simple self-optimal-transport computation. We ablate and verify our method through a wide set of experiments that show competitive performance with leading methods on both semi-supervised and transfer-learning benchmarks. Our implementation and pre-trained models are available at github.com/DanielShalam/BAM .

PaperPDFCode

Code

danielshalam/bam 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

Not run by Syntology. Nothing on this page verifies that the listed code works.

Tasks

Representation LearningSelf-Supervised Image ClassificationTransfer Learning

1 archive task tag without a task page not shown.

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Self-Supervised Image Classification ImageNet BAM (CAFormer-M36) Top 1 Accuracy 79.3% #36 of 144 Archive leaderboard report
Self-Supervised Image Classification ImageNet BAM (ViT-B/16) Number of Params 80M #49 of 144 Archive leaderboard report
Self-Supervised Image Classification ImageNet BAM (ViT-B/16) Top 1 Accuracy 78.1% #49 of 144 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

BAMSET

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