The cover of Strangers in a Latent Space: a small figure standing at the foot of a page of alien symbols

Strangers in a
Latent Space

How language models learned our words, and then our world

Simone Scardapane

Start readingBrowse the alien web

Free interactive web edition · 5 × 8 colour paperback coming soon

You wake up stranded on an alien world, surrounded by pages of symbols you do not understand. Could you build an AI that makes sense of them? And if so, how would it work?

Strangers in a Latent Space tries to answer these questions for readers with no technical background, starting from systems that simply count symbols, all the way to AI agents that can reason and act on their own. Along the way, we stop to see how neural networks move symbols around to predict what comes next, and peek inside a trained model to discover how concepts can emerge just from looking at text.

Reader be warned: it is a strange road, with (almost) no math and a few very weird analogies. We are, after all, making sense of an entire world just by watching symbols.

Contents

  1. IntroductionWhere promises are made and machines are thankedRead
  2. ✦PreludeWhere everything goes wrong before lunchRead
  3. 1A small notebookWhere we count alien symbolsRead
  4. 2Keep countingWhere a notebook is no longer enoughRead
  5. 3Moving pointsWhere we make a weird analogySoon
  6. 4More tokens, pleaseWhere we become friends with our neural networksSoon
  7. 5Strange landsWhere we look around the latent spaceSoon
  8. 6Teaching mannersWhere we learn to ask nicelySoon
  9. 7Less talk, more actionWhere we open Pandora's boxSoon
  10. ✦Epilogue: By the seaSoon
  11. How this book was madeA note on writing a book with language modelsSoon

Interactive figures

In the web edition you can interact with most figures: try it below with one of our simplest language models (from Chapter 1), which picks each symbol based on which pairs are most probable on the web.

The alien web

Browse the alien database for yourself! Inspect symbol counts, run the Chapter 1 model on real pages, or try building your own cipher key.

Browse the alien web

A page of the alien web
Simone Scardapane

About

I’m Simone Scardapane, an associate professor at Sapienza University of Rome. I teach, do research, and generally talk endlessly about neural networks and AI. My previous book, Alice’s Adventures in a Differentiable Wonderland, was a textbook on the design of neural networks. Then I fell in love with AI agents, and this book is the result.