by janalsncm · 3y ago · 0 comments
Unless the text fits into the model’s context window, this is incorrect. The self-attention layers will train via a sliding window over the text.
Learning to attend only to previous tokens is also not correct. There are a lot of ways to train a transformer. BERT is bidirectional for example.