lightly-ai / lightly

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

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

Open RylanSchaeffer opened 8 months ago

RylanSchaeffer commented 8 months 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 7 months ago

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

RylanSchaeffer commented 7 months 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 7 months ago

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

johnsutor commented 7 months ago

I'm working on implementing this now.

guarin commented 5 months ago

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