# About

> The history and foundations of LLMs Unplugged, from CS Unplugged to Shannon's information theory.

# About

![](../assets/images/hero-about.avif)

_LLMs Unplugged_ is a
[Cybernetic Studio](https://cybernetics.anu.edu.au/cybernetic-studio/) project
created by [Dr. Ben Swift](https://benswift.me) at the
[ANU School of Cybernetics](https://cybernetics.anu.edu.au). If you've got
questions, suggestions, or _LLMs Unplugged_ success stories then
[send Ben an email](mailto:ben.swift@anu.edu.au).

The same models also exist as hardbound books: the
[Library of Babble](https://www.llmsunplugged.org/library/) is a small conceptual-art press run of <GlossaryTerm id="n-gram-model">n-gram</GlossaryTerm> frequency tables typeset
from classic literature.

If you're interested in where these ideas came from, or where to go next, here
is the reading list.

## CS Unplugged

Since the 1990s, [CS Unplugged](https://csunplugged.org) has taught computing
concepts without computers: algorithms, data structures and binary, done with
cards, string and chalk on the playground. Leaving the screen out gets syntax
and tooling out of the way so students can see the mechanism underneath. And it
works (the
[research literature](https://scholar.google.com/scholar?q=cs%20unplugged) has
the receipts).

_LLMs Unplugged_ takes the same approach to language models. Before touching <GlossaryTerm id="transformer">transformers</GlossaryTerm> or <GlossaryTerm id="neural-network">neural networks</GlossaryTerm> in
code, participants count word patterns in a text, record them as tally marks on <GlossaryTerm id="grid">grid paper</GlossaryTerm> or paper <GlossaryTerm id="cutouts">cutouts</GlossaryTerm>, and roll dice to generate
new text from those counts.

## AI Unplugged resources

Educators have extended the unplugged approach to machine learning and AI as
well:

- [AI Unplugged](https://www.aiunplugged.org) by Lindner, Seegerer and Romeike
- Northwestern University's
  [AI Unplugged Resources](https://sites.northwestern.edu/aiunplugged/)
- [CS In Schools](https://csinschools.io/) by Toan Huynh and Hugh Williams has
  some material on AI Unplugged<sup><a href="#fn-counting-bigrams">1</a></sup>

Those collections cover classification, clustering, computer vision and neural
networks, but have very little on language models or text generation. Since
ChatGPT arrived in November 2022, text generation is what most people mean when
they say "AI", and _LLMs Unplugged_ was built to cover that part directly.

![Workshop participants building language models with pen and paper](../assets/images/workshop-1.avif)

## Historical foundations

The [n-gram language models](https://en.wikipedia.org/wiki/N-gram) in these
workshops are more than a century old.

### Markov's stochastic processes (1913)

Andrey Markov introduced the mathematics of what we now call "<GlossaryTerm id="markov-chain">Markov chains</GlossaryTerm>"
while analysing letter sequences in Pushkin's _Eugene Onegin_. His work
established that language has statistical structure you can quantify through
counting patterns and calculating probabilities. Though Markov's interest was
purely mathematical, his framework for modelling sequences of dependent random
variables became foundational to computational linguistics.

### Shannon's information theory (1948–1951)

Claude Shannon built directly on Markov's foundation, applying his new
information theory to written English. Shannon used n-gram models to measure
entropy and redundancy in language, connecting statistical patterns to
fundamental limits on compression.

Shannon was the first to systematically generate synthetic text using
these models: starting with random letters (0-gram), then letter frequencies
(1-gram), then letter pairs (2-gram), and progressively higher orders. Each
extra word of context made the generated text read more like real English, the
same trade-off you see in the [More Context](https://www.llmsunplugged.org/modules/more-context/) module.

Shannon's work was itself "unplugged". He counted transitions
by hand, calculated probabilities manually, and generated synthetic text using
hand-drawn tables and selection based on frequencies.

### Connection to modern LLMs

The activities in _LLMs Unplugged_ run the same operations as current language
models, at hand-countable scale:

- **<GlossaryTerm id="parameters">parameters</GlossaryTerm>**: dozens or hundreds in a paper model versus billions in a modern LLM
- **<GlossaryTerm id="training">training</GlossaryTerm>**: manual tallying versus gradient descent over neural networks, both estimating <GlossaryTerm id="probability-distribution">probability distributions</GlossaryTerm> from text
- **<GlossaryTerm id="generation">generation</GlossaryTerm>**: dice rolls versus GPU-accelerated sampling, both using weighted randomness to pick the next <GlossaryTerm id="token">token</GlossaryTerm>
- **<GlossaryTerm id="context-window">context windows</GlossaryTerm>**: bigrams and trigrams versus 128,000+ token windows, where more context narrows the prediction

Where a paper model counts exact word pairs, a modern LLM learns compressed representations in a neural network, building on Shannon's 1948 table-and-random-lookup experiment.

![Counting word transitions to build a statistical language model](../assets/images/workshop-2.avif)

## About the ANU School of Cybernetics

The [School of Cybernetics](https://cybernetics.anu.edu.au) at the Australian
National University takes a systems-oriented approach to understanding and
shaping technology in society. The School's
[Cybernetic Studio](https://cybernetics.anu.edu.au/cybernetic-studio/) develops
hands-on resources and runs workshops exploring the social, technical, and
political dimensions of emerging technologies.

![LLMs Unplugged workshop in action](../assets/images/workshop-3.avif)

## Acknowledgements

Thanks to Eddie Aloise King, Cole Cooney and other SoCy staff for their input
and facilitation, and to the hundreds of workshop participants (from primary
school students to senior executives in the Australian Public Service) whose
feedback shaped these materials.

## Get in touch

We encourage educators to use, adapt, and improve these resources. If you have
questions, success stories about using them in your classroom, or would like to
discuss adaptations or improvements you've made, get in touch at
[ben.swift@anu.edu.au](mailto:ben.swift@anu.edu.au). We'd
love<sup><a href="#fn-love">2</a></sup> to hear from you. And if you'd like to
be informed of more cool stuff coming out of the School of Cybernetics, then
sign up for the
[mailing list](https://cybernetics.anu.edu.au/#subscribe-to-our-mailing-list-1).

## Citation

If you use these materials in your teaching or research, please cite them as:

### APA

> Swift, B. (2025). _LLMs Unplugged: Understand how AI language models work by
> building one yourself_. Zenodo.
> [https://doi.org/10.5281/zenodo.17403824](https://doi.org/10.5281/zenodo.17403824)

### BibTeX

```bibtex
@misc{swift2025llmsunplugged,
  author       = {Swift, Ben},
  title        = {{LLMs Unplugged: Understand how AI language models work by building one yourself}},
  year         = 2025,
  publisher    = {Zenodo},
  doi          = {10.5281/zenodo.17403824},
  url          = {https://doi.org/10.5281/zenodo.17403824}
}
```

---

<ol class="footnotes">
  <li id="fn-counting-bigrams">
    There's one activity on [Generative
    AI](https://csinschools.io/courses/introduction-to-artificial-intelligence/modules/lesson-3-generative-ai/)
    worksheet that uses a similar "counting bigrams" approach to the
    [Training](https://www.llmsunplugged.org/modules/training/) module
  </li>
  <li id="fn-love">
    well, technically that's a requirement of the SA clause in the CC licence,
    but it's still true that we'd _love_ hearing about your changes :)
  </li>
</ol>

Source: <https://www.llmsunplugged.org/about/>\
Licence: [CC-BY-SA-4.0](https://creativecommons.org/licenses/by-sa/4.0/)\
Cite as: Swift, B. (2026). _LLMs Unplugged: Understand how AI language models work by building one yourself._ https://doi.org/10.5281/zenodo.17403824
