Nicholas Krimmel

Topics · Fundamentals

Understanding language models

How large language models (LLMs) work, why they hallucinate and which questions belong in every AI proposal. Explained for management, executive boards and supervisory boards, with sources for every statement.

Summary

  1. A language model produces text by calculating, word fragment by word fragment, the most probable continuations and sampling from them. It looks nothing up in the process.
  2. Its knowledge of the world is frozen in the trained weights and ends at a cutoff date. Current information and company knowledge reach the answer only through the context window.
  3. Pretraining makes a model fluent in language, behavior training with human feedback turns it into an assistant. Behavior often weighs more heavily than size.
  4. Models improve through three levers: more training, better behavior training and more computing time per answer. Assumptions about capabilities and costs therefore go out of date quickly.
  5. Hallucinations are a property of the method. They can be controlled with source grounding, human approval and continuous measurement.
  6. The capability frontier is jagged. Suitable tasks bring double-digit productivity gains, unsuitable ones make teams slower and errors more plausible.
  7. The model is the engine. Your own organization builds the car: data, processes, guardrails and skills decide on value, security and compliance.

What does a language model do?

A large language model (LLM) receives the text so far and calculates a probability for every possible next word fragment. From this distribution it samples one fragment, appends it and starts over. Every chat answer and every generated draft contract is produced in this loop. There is no database of “correct answers” involved.

The word fragments are called tokens. Frequent words are one token, rare ones are split up; the method was introduced for machine translation (Sennrich et al., 2016). As a rule of thumb, OpenAI gives roughly four characters or three quarters of a word per token for English text, Anthropic roughly 2.5 characters for its current models. The conversion therefore depends on the model and the language. Tokens are the billing unit of the providers, and the capacity of a model is also measured in tokens.

Because the model samples and looks nothing up, the same question asked twice yields two differently worded answers. This is by design and can be dampened with a setting called temperature, though it never disappears entirely. Acceptance tests therefore check against content criteria; identical wording is no meaningful yardstick.

Anyone who wants to predict the next word fragment reliably must have condensed a great deal about language and the world. As early as 2020, GPT-3 with 175 billion parameters could pick up new tasks from a few examples in the prompt without a single weight being changed (Brown et al., 2020). OpenAI, Anthropic and Google publish no official sizes for their closed frontier models; the figures in circulation are estimates. Providers of open models state the size, which now reaches into the trillions.

How does a language model work inside?

Each token becomes an embedding, a long list of numbers that can be pictured as a point in a space with very many dimensions. Proximity means related meaning: “invoice”, “bill” and the German “Rechnung” sit close together. In 2024, Anthropic showed on one of its own models that concepts exist inside a model as measurable features that work across languages. An artificially amplified feature for the Golden Gate Bridge made the model work the bridge into most of its answers and even consider itself to be the bridge (Templeton et al., 2024; Anthropic, 2024).

The second building block is self-attention. For each token, the model calculates how strongly it weights every preceding token in the text, and in “the contract that the subsidiary signed in March expires in December” it can thus assign the word “expires” to the contract. The transformer architecture of 2017 is built entirely on this mechanism and can be computed massively in parallel on graphics processors (Vaswani et al., 2017). This is what made today’s scaling possible in the first place.

Weights and context window: the two memories

A language model has two memories. The weights are the frozen result of training; they do not change during operation, and their knowledge ends at the training cutoff date. The context window is the working memory of the current request. It is volatile and the only route by which current information and company knowledge reach an answer.

The windows have become large, around one million tokens for the flagship models of the major providers (as of November 2026, according to vendor documentation). A lot of space does not yet mean good use, however: models use information at the beginning and end of a long context far more reliably than information in the middle (Liu et al., 2024). How strongly a given model is affected is best shown by a test with your own documents.

A company buys the weights from the provider. What lands in the context, it designs itself. Almost every strategic AI question, from data and data protection to sovereignty and costs, is in the end a question about these two memories.

How is a language model built, and why does it improve so quickly?

A model is created in three phases. In pretraining it learns on trillions of tokens to predict the next token; the result is a base model with a knowledge cutoff. The compute cost alone is estimated at USD 78 million for GPT-4 and USD 191 million for Gemini Ultra (Stanford AI Index, 2024). In post-training, example answers and human ratings shape it into an assistant. OpenAI showed in 2022 how strong this phase is: raters preferred a model trained this way with 1.3 billion parameters over GPT-3, which is more than a hundred times larger (Ouyang et al., 2022). In ongoing operation there is no more training; system prompts, web search, documents and tools connect the frozen model to the present.

Models improve through three levers. The first is scaling of training: prediction error falls along a smooth power law with model size, data volume and computing power (Kaplan et al., 2020), and the right ratio of data to parameters matters as well (Hoffmann et al., 2022). The second is the quality of post-training, at a fraction of the cost. The third is more computing time per answer: since OpenAI o1 in September 2024, so-called reasoning models think in intermediate steps before answering, and in early 2025 DeepSeek showed that this capability can be produced through reinforcement learning, without solution paths specified by humans (Guo et al., 2025).

For business cases, the cost side matters most. The inference cost for performance at the level of GPT-3.5 fell more than 280-fold between November 2022 and October 2024 (Stanford AI Index, 2025). A project that failed on cost eighteen months ago deserves a fresh calculation.

Why do language models hallucinate?

Research defines hallucinations as fluently worded outputs that are nonsensical or contradict the underlying source (Ji et al., 2023); in everyday use the term usually means factually wrong or made-up statements. The model has no intent to deceive and simply produces the most probable continuation. There are currently two well-described explanations for the causes, both mostly from research by AI providers.

The economics of guessing
Pretraining already creates a statistical pressure toward errors on rarely attested individual facts. Common evaluation reinforces it, because it rewards guessing: in most benchmarks “I don’t know” scores zero points, while a confident guess sometimes scores a hit. The authors, mostly from OpenAI, propose redesigning evaluations so that honest uncertainty counts (Kalai et al., 2026, Nature).
The misfire in the circuit
In intervention experiments, Anthropic found a default-on “can’t answer” pathway that a “known entity” signal inhibits. For the made-up name “Michael Batkin”, the brake stayed on; when the researchers artificially activated the familiarity signal, the model named a seemingly random sport, chess among them. At least some of the errors arise this way: the model recognizes a name but knows no facts about it (Lindsey et al., 2025, Anthropic).

Both papers show ways to reduce hallucinations. According to Kalai et al., they can be avoided if a model says “I don’t know” when uncertain; the price is that it answers fewer questions. For leadership, this makes it a process question. Four measures carry the weight: tie answers to verified sources, have a human approve wherever output reaches the outside world, measure error rates per use case and choose tasks so that errors stay cheap and visible. The right question for every proposal is: what error rate do we measure in this use case, which one is acceptable, and which process step catches the rest?

What can language models do, and what can they not do?

The capability frontier is jagged, as a field experiment with 758 consultants at Boston Consulting Group showed. On tasks inside the frontier, the group with AI completed on average 12.2% more tasks, 25.1% faster and at markedly higher quality. On a task just beyond the frontier, the staff with AI found the correct solution less often than the control group (Dell’Acqua et al., 2026).

55.8% faster
Developers with GitHub Copilot on a clearly defined programming task in a controlled experiment (Peng et al., 2023).
15% more productive
Issues resolved per hour in the real customer support of a Fortune 500 enterprise software provider, with the largest gains among less experienced and less skilled workers (Brynjolfsson, Li & Raymond, 2025).
Slower with AI
Highly experienced open-source developers working in their own codebases, grown over years, took 19% longer with AI in 2025 and still believed they had been about 20% faster. A follow-up study begun in August 2025 points to an 18% time saving for ten developers from the first study (interval from a 38% saving to 9% additional effort) and to 4% for newly recruited developers. Because of strong selection effects, the authors consider this only very weak evidence and are working on a new study design (METR, 2025 and 2026).

The range is the real message: how a task is scoped decides between gain and loss, and users’ own sense of it is a poor compass. Language models are strong at drafting, summarizing, rephrasing, translating, extracting and classifying. They are weak at factual answers without a source, at precise arithmetic and strict logic without a tool, and at anything after their knowledge cutoff. The reasoning a model outputs is no audit trail either: Anthropic documents cases in which the stated derivation did not match the internal computation (Lindsey et al., 2025). Reliability comes from checking from the outside, with source comparison, tests and spot checks.

From model to tool: prompting, RAG or fine-tuning?

In a company, four layers sit on top of the raw model. The system prompt sets role, tone and limits and is the cheapest form of control. RAG (retrieval-augmented generation) places suitable passages from verified company sources into the context window before every answer, so that the model summarizes what is written there. Tools and agents let the model carry out defined actions in loops; this is where the greatest benefit and the greatest potential for misuse lie. Fine-tuning further trains the weights with your own examples.

In its guide, OpenAI recommends starting with prompting and a small test set of typical inputs and then deciding according to the type of gap. If the model lacks knowledge, RAG helps; for injecting new knowledge it consistently outperformed unsupervised fine-tuning in a comparison (Ovadia et al., 2024). If the issue is behavior, such as tone, output format or a fixed solution path, fine-tuning helps. The two can be combined, and each step pays off only if the tests show a measurable gap. RAG has one limit, though: outdated or contradictory documents lead to confidently worded wrong answers, so the quality of the document base remains a matter for top management.

For agents, a distinction by Anthropic helps. Workflows are systems in which models and tools interact along predefined paths; agents direct their own process and tool use (Anthropic, 2024). If you can draw the solution path on a whiteboard today, build a workflow. An agent pays off where the path changes from case to case. How small teams use such agents for recurring work is described by the microteaming method.

Ten questions for every AI proposal

The following questions test an AI proposal at the points where projects actually fail. A proposal that cannot answer question 1 and question 10 is not ready for a decision.

  1. Which business problem are we solving, and how do we measure success in euros?
  2. On which data does the system work, and who is responsible for its quality and upkeep?
  3. Which risk category does the use case fall into under the EU AI Act, and which obligations follow from it?
  4. Which personal data flow into prompts, context and logs, and on what legal basis?
  5. What happens in the event of deliberate misuse, from prompt injection to data leakage, and how do we limit the damage?
  6. Who can operate and oversee the system competently, and how do we build these skills in a verifiable way?
  7. Do we build or buy, and how do we get out again, when switching providers, for data portability and on exit?
  8. How does the pilot get into regular operation: who runs, monitors and measures the system permanently, with which metrics?
  9. Which team delivers, and is it small and focused enough to deliver in weeks?
  10. At which points does a human check before an output takes effect outside the company, and how is this enforced technically?

On questions 1 and 8, see Assessing AI use cases.

Glossary

Token
Smallest processing unit: a word fragment of a few characters. Basis for billing and capacity limits.
Parameters, weights
The billions of numbers in which the result of training is stored, the model’s long-term memory. Can only be changed by training.
Context window
Working memory of a request: everything the model has in view at that moment. Volatile and measured in tokens.
Embedding
Numerical vector of a token; similar meanings sit close together.
Attention, transformer
The mechanism by which each token weights the preceding ones, and the parallelizable architecture built on it.
Pretraining
First training phase: predicting the next token on huge volumes of text. Produces the base model and the knowledge cutoff.
Post-training, RLHF
Second phase: example answers and human feedback turn the base model into an assistant that follows instructions.
Hallucination
Fluently worded output that is factually wrong or made up, a systemic side effect of the probability mechanics.
RAG
Retrieval-augmented generation: verified source passages are placed in the context before the answer, for currency and traceability.
Fine-tuning
Further training of the weights with your own examples; anchors style or specialized behavior permanently. Effective, but maintenance-intensive.
Agent
System in which a language model calls tools in loops to complete multi-step tasks. To be operated only with guardrails and logs.
Inference
Ongoing operation: every answer costs computing power and is billed per token.
Reasoning model
Model mode that generates additional intermediate steps before answering; stronger on complex tasks, more expensive per answer.
Prompt
The entire input: user question, history and system prompt.

Frequently asked questions

Why do language models make up facts?
Pretraining already favors errors on rarely attested individual facts, and common evaluations reward guessing, because an honest “I don’t know” scores zero points in most benchmarks (Kalai et al., 2026). In addition, a “known entity” signal can inhibit the built-in answer brake even though the facts are missing (Lindsey et al., 2025). Both papers come mostly from AI providers and show ways to reduce hallucinations.
RAG or fine-tuning: what does a company need?
RAG supplies the model at runtime with knowledge from verified documents; for new knowledge it consistently outperformed unsupervised fine-tuning in a comparison by Ovadia et al. (2024). Fine-tuning changes behavior, such as tone, format or a fixed solution path. OpenAI recommends starting with prompting and tests and then, depending on the gap, using RAG, fine-tuning or both.
How much productivity does AI really deliver?
That depends on the type of task. In a field experiment with 758 consultants at Boston Consulting Group, the AI group worked 25.1% faster and at markedly higher quality on suitable tasks; on a task beyond the capability frontier, it found the correct solution less often than the control group (Dell’Acqua et al., 2026).

Sources

This page summarizes the freely available dossier “LLMs für Executives” [LLMs for executives], published in German, and adds findings from two further dossiers. As of November 2026.

  1. Krimmel, N. P. (2026). LLMs für Executives: Wie große Sprachmodelle funktionieren – das Technik-Briefing für Geschäftsführung, Vorstand und Aufsichtsrat [LLMs for executives: How large language models work]. Zenodo. https://doi.org/10.5281/zenodo.23164390 PDFZenodo

More depth in the dossiers Der KI-Werkzeugkasten [The AI toolbox] (model choice, RAG, fine-tuning, sovereignty) and KI-Agenten im Unternehmen [AI agents in the enterprise], both in German.

References for this page
  1. Anthropic. Models overview (context windows and tokenizer). https://platform.claude.com/docs/en/about-claude/models/overview
  2. Anthropic (2024). Golden Gate Claude. 23 May 2024. https://www.anthropic.com/news/golden-gate-claude
  3. Anthropic (2024). Building Effective Agents. Anthropic Engineering, 19 December 2024. https://www.anthropic.com/engineering/building-effective-agents
  4. Brown, T. B. et al. (2020). Language Models are Few-Shot Learners. NeurIPS 2020. arXiv:2005.14165
  5. Brynjolfsson, E., Li, D. & Raymond, L. (2025). Generative AI at Work. The Quarterly Journal of Economics, 140(2), 889–942. https://doi.org/10.1093/qje/qjae044
  6. Guo, D. et al. (2025). DeepSeek-R1 incentivizes reasoning in LLMs through reinforcement learning. Nature, 645, 633–638. https://doi.org/10.1038/s41586-025-09422-z
  7. Dell’Acqua, F., McFowland III, E., Mollick, E., Lifshitz, H., Kellogg, K. C., Rajendran, S., Krayer, L., Candelon, F. & Lakhani, K. R. (2026). Navigating the Jagged Technological Frontier: Field Experimental Evidence of the Effects of Artificial Intelligence on Knowledge Worker Productivity and Quality. Organization Science, 37(2), 403–423. https://doi.org/10.1287/orsc.2025.21838
  8. Hoffmann, J. et al. (2022). Training Compute-Optimal Large Language Models. NeurIPS 2022. arXiv:2203.15556
  9. Ji, Z. et al. (2023). Survey of Hallucination in Natural Language Generation. ACM Computing Surveys, 55(12), Art. 248. https://doi.org/10.1145/3571730
  10. Kalai, A. T., Nachum, O., Vempala, S. S. & Zhang, E. (2026). Evaluating large language models for accuracy incentivizes hallucinations. Nature, 653, 1047–1051. https://doi.org/10.1038/s41586-026-10549-w (Preprint: Why Language Models Hallucinate, arXiv:2509.04664)
  11. Kaplan, J. et al. (2020). Scaling Laws for Neural Language Models. arXiv:2001.08361
  12. Lindsey, J. et al. (2025). On the Biology of a Large Language Model. Transformer Circuits, 27 March 2025. https://transformer-circuits.pub/2025/attribution-graphs/biology.html
  13. Liu, N. F. et al. (2024). Lost in the Middle: How Language Models Use Long Contexts. Transactions of the ACL, 12, 157–173. https://doi.org/10.1162/tacl_a_00638
  14. METR, Becker, J., Rush, N., Barnes, E. & Rein, D. (2025). Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity. arXiv:2507.09089; update of 24 February 2026: https://metr.org/blog/2026-02-24-uplift-update/
  15. OpenAI. Optimizing LLM Accuracy. https://platform.openai.com/docs/guides/optimizing-llm-accuracy
  16. OpenAI. Understanding and counting tokens. https://help.openai.com/en/articles/4936856
  17. Ouyang, L. et al. (2022). Training language models to follow instructions with human feedback. NeurIPS 2022. arXiv:2203.02155
  18. Ovadia, O., Brief, M., Mishaeli, M. & Elisha, O. (2024). Fine-Tuning or Retrieval? Comparing Knowledge Injection in LLMs. EMNLP 2024, 237–250. https://doi.org/10.18653/v1/2024.emnlp-main.15
  19. Peng, S., Kalliamvakou, E., Cihon, P. & Demirer, M. (2023). The Impact of AI on Developer Productivity: Evidence from GitHub Copilot. arXiv:2302.06590
  20. Sennrich, R., Haddow, B. & Birch, A. (2016). Neural Machine Translation of Rare Words with Subword Units. ACL 2016, 1715–1725. https://doi.org/10.18653/v1/P16-1162
  21. Stanford HAI (2024). The AI Index Report 2024. https://hai.stanford.edu/ai-index/2024-ai-index-report
  22. Stanford HAI (2025). The AI Index Report 2025. https://hai.stanford.edu/ai-index/2025-ai-index-report
  23. Templeton, A. et al. (2024). Scaling Monosemanticity: Extracting Interpretable Features from Claude 3 Sonnet. Transformer Circuits, 21 May 2024. https://transformer-circuits.pub/2024/scaling-monosemanticity/
  24. Vaswani, A. et al. (2017). Attention Is All You Need. NeurIPS 2017. arXiv:1706.03762

More topics

Contact

LinkedIn
linkedin.com/in/nicholas-krimmel
Call
Book 30 minutes via Calendly