Translation language modeling and cross-lingual knowledge sharing
So far, you have learned about Masked Language Modeling (MLM) as a cloze task. However, language modeling using neural networks is divided into three categories based on the approach itself and its practical usage, as follows:
- MLM
- Causal Language Modeling (CLM)
- Translation Language Modeling (TLM)
It is also important to note that there are other pre-training approaches such as Next Sentence Prediction (NSP) and Sentence Order Prediction (SOP) too, but we just considered token-based language modeling. These three are the main approaches that are used in the literature. MLM, described and detailed in previous chapters, is a very close concept to a cloze task in language learning.
CLM is defined by predicting the next token, which is followed by some previous tokens. For example, if you see the following context, you can easily predict the next token:
<s>...