3 ms·
Lots of people transfer learn with transformers. ViT[0] originally did CIFAR with it. Then DeiT[1] introduced some knowledge transfer (note: their student is la
by stevenwalton 5y ago
Lots of people transfer learn with transformers. ViT[0] originally did CIFAR with it. Then DeiT[1] introduced some knowledge transfer (note: their student is larger than the teacher). ViT pretrained on both ImageNet21k and JFT-300m.
CCT ([1] from above) was focused on training from scratch.
There's two paradigms to be aware of. ImageNet and pre-training can often be beneficial but it doesn't always help. It really depends on the problem you're trying to tackle and if there are similar features within the target dataset and the pre-trained dataset. If there is low similarity you might as well train from scratch. Also, you might not want as large of models (like ViT and DeiT have, which ViT's has more parameters than CIFAR-10 has features).
Disclosure: Author on CCT
[0] https://arxiv.org/abs/2010.11929 https://arxiv.org/abs/2010.11929
[1] https://arxiv.org/abs/2012.12877 https://arxiv.org/abs/2012.12877
- version_five 5y agoAwesome, thanks for the reply. It's been on my list to try transformers instead of (mainly) Resnet for a while now.
- stevenwalton 5y agoSure thing. Also if you're getting into transformers I'd recommend lucidrains's GitHub[0] since it has a large collection of them with links to papers. It's nice that things are consolidated. [0] https://github.com/lucidrains/vit-pytorch https://github.com/lucidrains/vit-pytorch