PaperLeet

BEiT

BEiT: BERT Pre-Training of Image Transformers

Hangbo Bao, Li Dong, Songhao Piao, Furu Wei · ICLR 2022

Read paper · arXiv:2106.08254

Tokenize images into discrete visual codes and predict labels only at masked positions.

What you will implement

Implement discrete-token cross-entropy on a sparse mask with correct reduction and gradients.