lightly-ai / lightly

A python library for self-supervised learning on images.
https://docs.lightly.ai/self-supervised-learning/
MIT License
3.19k stars 286 forks source link

New SSL algorithm called Maximum Manifold Capacity Representations (NeurIPS 2023) #1423

Open RylanSchaeffer opened 1 year ago

RylanSchaeffer commented 1 year ago

This is a NeurIPS 2023 paper with a new SSL vision method: https://neurips.cc/virtual/2023/poster/70447

It'd be great if Lightly could add it.

guarin commented 1 year ago

This looks interesting, will have a closer look later :)

RylanSchaeffer commented 1 year ago

Sounds good!

The loss is quite straightforward. Suppose x has shape (batch size, number of views/transformations e.g., 2, 4, 32, projection output dimension). MMCR proposes the following loss:

avg_over_views = torch.mean(x, dim=1)
loss = - torch.linalg.matrix_norm(avg_over_views, ord="nuc")
guarin commented 11 months ago

Arxiv link: https://arxiv.org/abs/2303.03307

johnsutor commented 11 months ago

I'm working on implementing this now.

guarin commented 10 months ago

Remaining issues that we have to do before this issue is complete: