Large Language Model (LLM)

What a large language model is, how it predicts text token by token, the LLMs powering AI search (Gemini, GPT-4), and what they mean for SEO.

First published: Jun 24, 2026 · Last updated: Jul 22, 2026 · Advanced
demand #1 in How Search Works#1 in AI Search#5 on the site

A large language model (LLM) generates text by predicting the next token — it isn't reasoning the way a human does, it's running a probabilistic completion. LLMs are built on the transformer architecture and split into two roles in search: understanding models like BERT help rank, while generative models like Gemini (Google AI Overviews) and GPT-4 (Bing Copilot) write the answers. They're limited by a knowledge cutoff, a finite context window, and a tendency to hallucinate — which is exactly why RAG and grounding exist. For SEOs the practical news is boring: indexing is still the prerequisite, brand mentions correlate with AI visibility more strongly than backlinks, and 'normal SEO' is what gets you cited.

TL;DR — An LLM estimates the probability of the next token and generates text autoregressively — that’s the whole engine. It runs on the transformer architecture, which processes a full sequence in parallel via attention rather than token-by-token like RNNs. In search there are two distinct jobs: understanding (BERT-style encoders that help rank) and generation (Gemini, GPT-4 writing AI answers). LLMs are bounded by a knowledge cutoff, a finite context window, and hallucination — which is precisely why RAG and grounding exist. For SEO, indexing remains the prerequisite, and in Ahrefs’ 75,000-brand study by Louise Linehan and Xibeijia Guan text-based signals like branded mentions correlated with AI Overview visibility roughly 3× more strongly than backlinks.

What an LLM actually is

An LLM is not a database of guaranteed facts, and fluent output is not evidence of accuracy. Evidence for this claim Large autoregressive language models are trained to predict tokens from preceding context and can perform varied language tasks through prompting. Scope: GPT-3 research findings; later models, training methods, and product systems differ. Confidence: high · Verified: Brown et al.: Language Models are Few-Shot Learners Search products that use LLMs may combine them with external retrieval and ranking systems. Evidence for this claim Applications can give a language model tools for web search, file search, code execution, or external functions. Scope: OpenAI API tool capabilities; tool access is configured separately and should not be conflated with the base model's stored knowledge. Confidence: high · Verified: OpenAI: Tools guide

A language model, in Google’s own words, “estimates the probability of a token or sequence of tokens occurring within a longer sequence of tokens.” That’s the foundation. An LLM is a very large version of that: a deep-learning model with billions of parameters trained to predict the next token across web-scale text.

Two things make it “large” and capable:

  • Scale. Billions of parameters, trained on enormous corpora. As models grow, capabilities like summarization, reasoning, and code generation start to emerge without being explicitly programmed in.
  • The transformer architecture. Introduced in Google’s 2017 paper Attention Is All You Need, transformers process a whole sequence at once and use an attention mechanism so each token can “look at” every other token. Google’s ML Crash Course frames the contrast directly: large language models “can evaluate the whole context at once,” unlike older recurrent neural networks that processed “token by token” and suffered the “vanishing gradient problem.”

The model is trained by next-token prediction on raw text, then typically refined with RLHF (reinforcement learning from human feedback) to make it more helpful and safer. At inference it generates autoregressively — one token at a time, each prediction fed back in as input for the next. A setting called temperature controls how random that sampling is.

It helps to keep the stages separate, because people conflate them constantly. Evidence for this claim Pretraining learns broad statistical representations, post-training changes model behavior toward instructions or preferences, and inference applies the resulting model to supplied context; prompt context does not by itself update model weights. Scope: General pipeline description across instruction-tuned LLMs; the exact post-training method (RLHF, DPO, or other) and how a given product layer handles session memory vary by provider and are not covered here. Confidence: high · Verified: Ouyang et al.: Training language models to follow instructions with human feedback Pretraining is where the weights actually get set — the model learns broad statistical patterns from next-token prediction across a huge corpus. Post-training (RLHF and similar preference-tuning steps) adjusts those same weights again, toward instructions and safety behavior. Inference — what happens when you send it a prompt — doesn’t update the weights at all; the model just applies whatever it learned in the two training stages to the text you hand it. That’s also why a long context window isn’t the model “learning” about you: the extra text is input for that one request, not a training update, and it’s gone once the session ends unless a separate product feature saves and re-feeds it as memory.

Keep the mental model honest: this is a probabilistic process. The model produces plausible completions, not verified facts.

Understanding vs. generation: two different jobs

This is the distinction that clears up most LLM-in-search confusion.

  • BERT (2019) is an encoder-only, bidirectional model. Google: it considers “the full context of a word by looking at the words that come before and after it.” BERT’s job is understanding — interpreting queries and documents to improve ranking. It doesn’t generate answers. Google said BERT would “help Search better understand one in 10 searches in the U.S. in English,” and Pandu Nayak called it “the biggest leap forward in the past five years.”
  • Gemini / GPT-4 are generative models (decoder-style, autoregressive). Their job is generation — synthesizing the AI Overview or Copilot answer text from retrieved passages.

So when an SEO asks “does the LLM rank my page?” the honest answer is: a BERT-style understanding model has long influenced ranking; a generative model like Gemini writes the AI summary over whatever the retrieval step surfaced. Different models, different stages.

A rough timeline, because the lineage matters:

  • 2017Attention Is All You Need (Google Research): the transformer paper everything else is built on.
  • 2019 — BERT: first transformer LLM in Google ranking; “one in 10 searches.”
  • 2021 — MUM: a ~110-billion-parameter, T5-based model Google billed as “1,000 times more powerful than BERT,” multimodal and trained across 75+ languages.
  • 2023 — Gemini: “built from the ground up to be multimodal,” pre-trained on multiple modalities from the start; shipped in Ultra / Pro / Nano variants. Google reported it as the first model to “outperform human experts on MMLU” (90.0%). (Benchmark numbers like that one are tied to the exact model version, test set, and evaluation date the lab used at the time — they don’t automatically carry over to later updates of the same model family.)
  • 2024 — AI Overviews (graduating from SGE): the generative layer arrives on the results page.
  • 2025 — AI Mode + Gemini 3: Elizabeth Reid described Gemini 3 in Search as bringing “state-of-the-art reasoning, deep multimodal understanding and powerful agentic capabilities,” with the system intelligently routing complex questions to Gemini 3 and simpler tasks to faster models.
  • 2026 — Gemini 3 becomes the default for AI Overviews. Per Robby Stein, “Gemini 3 is now the default model for AI Overviews.”

Bing Copilot: GPT-4 + Prometheus + the Bing index

Microsoft confirmed in March 2023 that “the new Bing is running on GPT-4, which we’ve customized for search,” and that “as OpenAI makes updates to GPT-4 and beyond, Bing benefits from those improvements.”

The piece that connects a frozen LLM to the live web is Microsoft’s Prometheus model — described as a model combining the fresh Bing index with the reasoning of GPT. The Copilot pipeline reformulates your query into search strings, retrieves from the Bing index, and has GPT synthesize a grounded, cited answer. (Note: that detailed pipeline breakdown comes from third-party technical analysis, not a first- party Microsoft spec — treat the step-by-step as industry-reported.)

How AI Overviews actually generate an answer (the RAG pipeline)

The reason these systems can answer about today’s news despite an old training cutoff is retrieval-augmented generation. Google Cloud’s own definition: RAG “combines the strengths of traditional information retrieval systems with the capabilities of generative large language models.” Conceptually:

  1. You submit a query.
  2. Complex queries get decomposed — Google’s query fan-out — into sub-queries.
  3. Each sub-query retrieves candidate passages from the index.
  4. Those passages are injected into the LLM’s context window — this is grounding, anchoring the answer to retrieved sources rather than training data alone.
  5. The LLM generates a synthesized answer with citations.
  6. Safety and quality checks run, and the answer is returned.

The SEO implication is a chain of gates. Your content has to be (a) crawlable by AI bots, (b) indexed, (c) surfaced by retrieval, (d) selected over competing passages, and (e) represented accurately in the output. Falling out at any stage means you’re not in the answer.

Limitations that matter to SEOs

LimitationWhat it means for you
Knowledge cutoffThe model knows nothing past its training date unless RAG supplies fresh content. Cutoff ≠ release date — they can differ by months. GPT-5’s training cutoff is reported as September 2024.
Context windowAn LLM can only process a finite amount of text at once, measured in tokens. This bounds how much retrieved content can be fed in — and it’s why chunking matters in retrieval.
HallucinationThe model generates plausible-sounding completions that can be wrong. It’s a statistical artifact, not lying. Ahrefs research found AI assistants send visitors to 404 pages 2.87× more often than Google Search.
JavaScript coverage riskAI-crawler rendering varies by provider, so JS-dependent content can be missed when a fetcher uses only the initial HTML.
Passage chunkingRetrieval systems break pages into passages. My research on Chrome’s processing pointed to ~200-word passages and analysis of only the first ~30 passages of a page — content buried deep may never be retrieved.

What this means for your content strategy

A few things I’m comfortable saying, separated from the things nobody outside the engines actually knows:

  • Indexing is still the prerequisite. Gary Illyes was blunt: “To get your content to appear in AI Overview, simply use normal SEO practices.” There’s no confirmed special LLM-targeting signal. And on the much-hyped llms.txt file, Illyes said “Google doesn’t support LLMs.txt and isn’t planning to,” with John Mueller comparing it to the old meta keywords tag.
  • Brand mentions beat backlinks for AI visibility. In our study of 75,000 brands, branded web mentions were the strongest correlate of AI Overview appearances (≈0.66), versus ≈0.22 for backlinks — text-based signals correlated roughly 3× more strongly than link metrics. As we put it, LLMs “derive their understanding of a brand’s authority from words on the page, from the prevalence of particular words, the co-occurrence of different terms and topics, and the context in which those words are used.”
  • It’s winner-takes-all. Brands in the top quartile for web mentions averaged 169 AI Overview mentions versus 14 for the next quartile — and 26% of studied brands had zero. High-authority, high-traffic placements compound your AI visibility.
  • Freshness helps. Across a 17-million-citation analysis, AI assistants preferred citing content meaningfully newer than what typically appears in organic results.
  • Don’t reflexively block AI crawlers. Blocking likely forfeits AI visibility with no SEO upside. And remember the JS blind spot above — if your content needs JavaScript to appear, most AI crawlers won’t see it.

And the honest caveat: the engines consistently avoid revealing how the ranking side of AI Overviews works. The confirmed story is “get indexed, do normal SEO.” Everything past that is inference — mine included.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin an expert quote first.