Giter Club home page Giter Club logo

ttt-plus-plus's Introduction

TTT++

This is an official implementation for the paper

TTT++: When Does Self-supervised Test-time Training Fail or Thrive? @ NeurIPS 2021
Yuejiang Liu, Parth Kothari, Bastien van Delft, Baptiste Bellot-Gurlet, Taylor Mordan, Alexandre Alahi

TL;DR: Online Feature Alignment + Strong Self-supervised Learner 🡲 Robust Test-time Adaptation

  • Results
    • reveal limitations and promise of TTT, with evidence through synthetic simulations
    • our proposed TTT++ yields state-of-the-art results on visual robustness benchmarks
  • Takeaways
    • both task-specific (e.g. related SSL) and model-specific (e.g. feature moments) info are crucial
    • need to rethink what (and how) to store, in addition to model parameters, for robust deployment

Synthetic

Please check out the code in the synthetic folder.

CIFAR10/100

Please check out the code in the cifar folder.

Citation

If you find this code useful for your research, please cite our paper:

@inproceedings{liu2021ttt++,
  title={TTT++: When Does Self-Supervised Test-Time Training Fail or Thrive?},
  author={Liu, Yuejiang and Kothari, Parth and van Delft, Bastien Germain and Bellot-Gurlet, Baptiste and Mordan, Taylor and Alahi, Alexandre},
  booktitle={Thirty-Fifth Conference on Neural Information Processing Systems},
  year={2021}
}

Contact

yuejiang [dot] liu [at] epfl [dot] ch

ttt-plus-plus's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ttt-plus-plus's Issues

Pretraining code

Dear authors,

I am trying to the link you provided to access the pretraining code you used, but clicking on the link gives me the Page not found error.

Would you mind double-checking whether this link is still valid? Thank you!

Clarification on how test time accuracy is calculated

Dear Authors,
Many thanks for the great work. While going through the paper I could not understand how you compute the final accuracy on the test samples. Is the accuracy computed in an online manner (evaluate the model on the current batch as it trains on) or offline manner (evaluate the whole test set after training is finished)?

Thanks.

Can you release the training code?

Thank you for your good work. Can you release the training code for the pre-trained model on CIFAR10/100 (the checkpoint of pre-trained Resnet-50 can be downloaded (214MB)…………)

Multi-epoch training was performed on the test set.

There is a discrepancy about test-time adaptation in this code that has me wondering.

When adaptation operation runs on the test set, TTT and Tent perform only one epoch instead of hundreds of epochs. As I understand it, this code performs multiple epochs of adaptation to the network on the test set, which often does not make sense in practice in my opinion.

About weight sharing of models

Hello
Thank you for your great work!
Because load_state_dict is kind of deepcopy which gives the model an independant memory space. I am wondering if the weight of models (net, head, ssh) still sync after net.load_state_dict(net_dict) and head.load_state_dict(head_dict) in function load_resnet50() in test_helper.py.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.