In-Context Symmetries: Self-Supervised Learning through Contextual World Models

Sharut Gupta, Chenyu Wang, Yifei Wang, T. Jaakkola, Stefanie Jegelka
5/1/2024
contrastive-ssl

No confident code implementation found for this paper.

Abstract

At the core of self-supervised learning for vision is the idea of learning invariant or equivariant representations with respect to a set of data transformations. This approach, however, introduces strong inductive biases, which can render the representations fragile in downstream tasks that do not conform to these symmetries.

Show full abstract

In this work, drawing insights from world models, we propose to instead learn a general representation that can adapt to be invariant or equivariant to different transformations by paying attention to context -- a memory module that tracks task-specific states, actions, and future states. Here, the action is the transformation, while the current and future states respectively represent the input's representation before and after the transformation. Our proposed algorithm, Contextual Self-Supervised Learning (ContextSSL), learns equivariance to all transformations (as opposed to invariance). In this way, the model can learn to encode all relevant features as general representations while having the versatility to tail down to task-wise symmetries when given a few examples as the context. Empirically, we demonstrate significant performance gains over existing methods on equivariance-related tasks, supported by both qualitative and quantitative evaluations.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{gupta2024incontext,
  title  = {In-Context Symmetries: Self-Supervised Learning through Contextual World Models},
  author = {Sharut Gupta and Chenyu Wang and Yifei Wang and T. Jaakkola and Stefanie Jegelka},
  year   = {2024},
  eprint = {2405.18193},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2405.18193},
  url    = {https://arxiv.org/abs/2405.18193},
  journal = {NEURIPS 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.18193.svg)](https://codeofpaper.com/paper/2405.18193)

Discussion