Introduction to Machine Learning for SEO
- Practical: Methods for search intent classification – Rule-based and ML-enabled Classification
- Practical: Clustering of page content with BERTopic
- Marketing and SEO implementations of ML Clustering
NEW: AI Search Optimisation and Agentic SEO Course by Beatrice Gamba -> Immediate start, on-demand learning for how to optimise for discovery in agentic search ✨ ✨
Generative AI & LLMs
In shortThe neural network architecture behind BERT, GPT, Gemini and most modern language models, built around attention instead of reading text word by word.
The transformer is a Neural Network architecture introduced by Google researchers in the 2017 paper “Attention Is All You Need”. Instead of processing text one word after another, it looks at all the words in a passage at once and learns how much each word should influence the others. Almost every model SEOs meet today, from BERT to ChatGPT and Gemini, is built on it.
Text is first split into tokens (see Tokenization) and each token becomes a vector. The core step is self-attention: for every token, the model scores how relevant every other token in the sequence is and blends their information together. Stacking many attention layers lets the model capture context, so “bank” next to “river” ends up with a different representation from “bank” next to “loan”.
There are three main families:
Because the architecture processes tokens in parallel, it trains efficiently on very large datasets, which is what made today’s large language models possible. The same idea has been applied to images: the Vision Transformer cuts an image into small patches and treats them like words.
In MLforSEO’s sentiment benchmark on 2,000 tweets, a transformer model (Twitter RoBERTa) scored 0.71 macro-F1 against 0.58 for a TF-IDF and logistic regression model and 0.52 to 0.53 for lexicon methods. The post also points out the transformer had a home advantage, because it was fine-tuned on similar tweets.