What is the standard pretraining objective for a GPT-style (decoder-only) large language model?
- Predicting the next token given all previous tokens
- Predicting randomly masked tokens using both directions
- Classifying whether two sentences are consecutive or not
- Reconstructing the input from a compressed latent vector
Why
Decoder-only LMs use causal (autoregressive) language modeling — predict token t from tokens 1..t-1 by minimizing cross-entropy. Masked-token prediction is BERT's objective, next-sentence classification is an auxiliary BERT task, and latent reconstruction describes autoencoders.