AI Chronicles · Where Language Models Came From

Counting Letters in a Poem

Andrey Markov showed that each letter of a text depends on the one before it.

In 1913 the Russian mathematician Andrey Markov took the first 20,000 letters of Pushkin’s «Eugene Onegin» and did something nobody had done with a poem: he counted. He sorted every letter into vowel or consonant and measured how often a vowel follows a vowel and a consonant follows a consonant. The numbers showed that letters are not independent - what comes next depends on what came before. The chains of dependent events he described are now called Markov chains, and a text model that predicts the next symbol from the previous ones is their direct descendant.

· Source

The rest of this branch is in the app

Way of the Agent teaches AI agent engineering level by level - and the AI Chronicles open as you go: every branch continues where this story ends.

Start learning free →

More in this branch - in full on the Path

22 more stories open as you learn.

  1. 1948-07Guess the Next LetterClaude Shannon showed that language can be treated as statistics of what comes next.
  2. 1966-01The Program That Seemed to ListenELIZA had no understanding at all - and people confided in it anyway.
  3. 1990-06Translation From StatisticsIBM learned to translate from parallel texts instead of hand-written grammar rules.
  4. 1997-11A Network That RemembersThe LSTM let neural networks carry information across long sequences.
  5. 2003-02A Network Learns WordsYoshua Bengio’s team replaced counting word sequences with a neural network.
  6. 2010-09A Recurrent Language ModelTomas Mikolov’s recurrent network beat the best word-counting models.
  7. 2013-01King Minus Man Plus Womanword2vec made word vectors cheap - and showed they capture meaning.
  8. 2014-09Sequence In, Sequence OutSequence-to-sequence learning turned translation into one network reading and writing.
  9. 2014-09Learning Where to LookAttention let a translation model look back at the right words instead of one summary.
  10. 2015-08Where Tokens Come FromByte-pair encoding split rare words into pieces - the tokens models still read.
  11. 2017-06Attention Is All You NeedThe Transformer dropped recurrence and became the base of every modern LLM.
  12. 2018-06Pre-Train First, Then SpecialiseOpenAI’s first GPT learned from thousands of books before it learned any task.
  13. 2018-10Reading in Both DirectionsBERT learned to fill in hidden words - and ended up inside Google Search.
  14. 2019-02Too Dangerous to Release?GPT-2 wrote convincing paragraphs - and OpenAI held the full model back for months.
  15. 2019-10Every Task Is TextT5 framed translation, summaries and questions alike as «text in, text out».
  16. 2020-05Learning From Examples in the PromptGPT-3 could do new tasks from a few examples, without any retraining.
  17. 2021-12A Model With a BrowserWebGPT searched the web, clicked links and quoted sources before answering.
  18. 2022-01Show Your WorkingChain-of-thought prompting: models solve harder problems when they write the steps.
  19. 2022-01From Text Continuer to AssistantInstructGPT taught a model to follow instructions; ChatGPT brought it to everyone.
  20. 2023-02A Model Learns to Use ToolsToolformer taught itself when to call a calculator, a search or a calendar.
  21. 2023-03A Report Without a RecipeGPT-4 arrived with exam scores and predictions - and no word on how it was built.
  22. 2023-12Reading Without Looking BackMamba showed that predicting the next word does not have to mean comparing every word with every other.

Start learning free →