Introduction to Machine Learning for SEO
- Practical: Keyword Clustering with KeyBERT
- Practical: Clustering of page content with BERTopic
- The difference between AI and ML
ML Models & Algorithms
In shortGoogle's 2018 transformer language model that reads text in both directions to produce context-aware embeddings; the basis of many SEO NLP tools.
BERT (Bidirectional Encoder Representations from Transformers) is a language model published by Google researchers in 2018. It reads every word in the context of the words on both sides of it, so the same word gets a different numerical representation depending on the sentence. That contextual understanding made BERT the base for a generation of NLP tools SEOs use, from KeyBERT to BERTopic, and Google has used it in Search since 2019.
BERT is an encoder built on the transformer architecture. It splits text into sub-word tokens and passes them through stacked attention layers, where each token “looks at” every other token. It was pre-trained on unlabelled text (BooksCorpus and English Wikipedia) with two tasks: masked language modelling, where 15% of tokens are hidden and the model predicts them, and next-sentence prediction. The original paper released two sizes, BERT-Base (110 million parameters) and BERT-Large (340 million).
After pre-training, BERT is fine-tuned with a small labelled dataset for a specific job such as classification, named entity recognition or question answering. Because it is an encoder, it is built to understand text and produce embeddings, not to generate long answers the way GPT-style models do.
Lazarina’s meta description tutorial began in 2021 with BERT extractive summarisation, then the most accessible way to summarise pages at scale. The 2026 refresh keeps that method alongside small LLMs: BERT picks the sentences that best represent the page, which gives you a draft grounded in your own copy rather than newly generated text.