Skip to content

Repository containing code for blockwise SSL training

Notifications You must be signed in to change notification settings

shoaibahmed/blockwise_ssl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Blockwise SSL

A PyTorch implementation for the paper Blockwise Self-Supervised Learning at Scale.

Execution

To train the model, use train.sh script. The default hyperparameters refers to our best setting, including noise injection.

For testing based on the linear evaluation protocol, use eval.sh. The script trains 4 different linear evaluation heads, one for each of the different blocks of the model.

Pretrained Checkpoint

Our main model i.e., Simultaneous Blockwise Training (1x1 CbE + GSP), without noise addition, is available to be downloaded from here (Google Drive) or here (Dropbox).

The model achieves a final accuracy of 70.15% (from the output of block-4).

The end-to-end trained Barlow Twins model w/ GSP (300 epochs) which served as the target for our experiments can be downloaded from here (Google Drive) or here (Dropbox).

Citation

@article{
  siddiqui2024blockwise,
  title={Blockwise Self-Supervised Learning at Scale},
  author={Shoaib Siddiqui and David Krueger and Yann LeCun and Stephane Deny},
  journal={Transactions on Machine Learning Research},
  issn={2835-8856},
  year={2024},
  url={https://openreview.net/forum?id=M2m618iIPk},
  note={}
}

Credits

This code is mainly adapted from the original Barlow Twins codebase: https://github.com/facebookresearch/barlowtwins

Issues/Feedback

In case of any issues, feel free to drop me an email or open an issue on the repository.

Email: [email protected]

License

MIT

About

Repository containing code for blockwise SSL training

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published