AI basics

From statistics to AGI: the ideas behind today's AI, explained from the beginning and in order.

From statistics to AGI

  1. What is statistics? A gentle guide to learning from dataWhat statistics is, told through samples, confidence intervals, p-values, and regression, with a small Python example and why AI starts here.
  2. What is machine learning? Learning rules from dataWhat machine learning is, how it differs from writing rules by hand, and how training, testing, and overfitting work, with a small scikit-learn example.
  3. What is deep learning? How neural networks learn from dataWhat deep learning is, how layers of artificial neurons learn from data, why it took off after 2012, and when a simpler model still does the job better.
  4. What is an LLM? How large language models write textAn LLM is a large neural network trained to predict the next token. How that works, how chat models are made from it, and what it does well or poorly.
  5. What is AI? Artificial intelligence and where LLMs fit inWhat artificial intelligence means, how the field began at Dartmouth in 1956, and how machine learning, deep learning, and LLMs fit inside it, with an example.
  6. What is generative AI? How AI makes text, images, and soundWhat generative AI is, how it differs from models that classify, how text and image generators work, why one question gets different answers, and the risks.
  7. What is AGI? How people define, measure, and forecast itAGI is the goal of AI that does a wide range of work at human level, yet no definition is agreed. Compare four, try an ARC puzzle, and see why forecasts differ.

How LLMs work

  1. What is a token in AI? How LLMs read and write textWhat a token is in an LLM, how tokenizers split text into subwords, why Korean often needs more tokens, and how tokens set context limits and prices.
  2. What are embeddings? How AI turns meaning into numbersWhat embeddings are, how cosine similarity measures closeness in meaning, where they're used, and how to pick a model, with a small example I ran myself.
  3. What is a transformer? How the model behind LLMs worksWhat a transformer is, how self-attention lets tokens borrow meaning from one another, how BERT and GPT differ, and where it falls short, with code I ran.
  4. What is AI hallucination? Why AI confidently makes things upAI hallucination is when a model states something untrue as if it were fact. Why it happens, the main kinds, a real court case, and ways to reduce it.
  5. What is a context window? How much an LLM can see at onceA context window is the most tokens an LLM can handle at once. What fills it, what happens when it overflows, and why longer inputs cost more.
  6. What is a reasoning model? AI that thinks before it answersA reasoning model is an LLM trained to think at length before answering. How the idea spread, how it differs from chain-of-thought prompting, and when it fits.
  7. What is multimodal AI? How models read images and textMultimodal AI handles more than one kind of data, like text and images. How images become tokens, how CLIP links pictures and words, and where it falls short.