Beyond masked word prediction, BERT's pre-training also incorporated Next Sentence Prediction (NSP), a task where it learned to predict if two sentence segments logically followed each other, enhancing its understanding of discourse and long-range dependencies.