News for hackers. Stuff that matters.
Re:Transformers, originally designed to handle language, are... by stevenwalton on Thursday March 10, 2022 @04:51PM (#30632956)
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

[1] https://arxiv.org/abs/2012.12877

Re:Transformers, originally designed to handle language, are... by version_five on Thursday March 10, 2022 @05:13PM (#30633223)
Awesome, thanks for the reply. It's been on my list to try transformers instead of (mainly) Resnet for a while now.
Re:Transformers, originally designed to handle language, are... by stevenwalton on Thursday March 10, 2022 @06:02PM (#30633809)
Sure 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