The Atlas
Find the idea you need.
Search a concept or question. New to attention? Start with one guided calculation, then explore the full register.
Search published concepts, foundations, reference notes, and source links.
New to attention? Start here
How do comparisons become a mixture?
Follow one query through attention. Aim to explain how scores become weights, and how those weights carry information from values into an output.
One query · three sources · an unmasked worked example. No prediction gate.
Follow the calculation: vectors → compare → normalize → mix
Vectors
Query, keys, values
Give the query and each key matching coordinates. Keep the values as the information to carry.
Read Vector SpacesQuery + keys → comparisons
Compare
Scaled scores
Multiply matching query–key coordinates, add, then divide by the square root of the key dimension.
Read Dot ProductScores → normalization
Normalize
Attention weights
Softmax turns the score row into nonnegative weights whose sum is one.
Inspect Weights in the notebookWeights + values → mixture
Mix
Output vector
Multiply each value by its weight, then add those contributions. The output lives in value space.
Inspect Mixture in the notebookOne weighted output
Normalize and Mix open the same notebook. Select Weights or Mixture there; these are views of one calculation, not separate lessons. Query and key vectors share a dimension; values may have a different dimension.
Need a foundation? Repair just the missing idea
These are optional reading repairs, not a required course or a readiness score. The concept pages keep their own prerequisite lists.
- What can I add and scale?Vector Spaces
- How do two vectors become a score?Dot Product
- What does a total weight of one mean?Probability Basics
The notebook also offers Practice and transfer and Advanced demonstrations. Choose those activities inside the concept; opening a route here does not record progress or establish mastery.
Full register
51 published notes · 12 topics · 100 foundations · 4 standalone notes and references · 54 source links
Linear Algebra
Vectors, matrices, and linear maps: the language of representations, optimization, and modern deep learning. Open the topic.
Calculus
Rates of change and accumulation. Calculus is the language behind gradients, optimization, continuous-time dynamics, and why backprop works as efficiently as it does. Open the topic.
Optimization
How we train models: gradients, learning rates, curvature, and the practical tricks that make deep nets converge. Open the topic.
Probability
Uncertainty made precise: events, random variables, expectations, and the distributions that models learn. Open the topic.
Information Theory
How we measure information and mismatch between distributions: entropy, cross-entropy, KL divergence, mutual information, and why they appear everywhere in ML. Open the topic.
Attention & Transformers
The sequence model backbone: tokenization, self-attention, positional encodings, and the transformer block that powers modern LLMs. Open the topic.
Representation Learning
Embeddings and the geometry of meaning: similarity, normalization, contrastive objectives, and why vector spaces become usable interfaces for models. Open the topic.
Generative Models
How models generate: likelihood, latent variables, diffusion/score models, flows, and the training tricks that make sampling work. Open the topic.
Scaling
How loss and capability change with parameters, data, and compute; how to allocate a training budget; and why some abilities appear suddenly at scale. Open the topic.
Alignment
How we shape model behavior: preference learning, reward modeling, KL-regularized fine-tuning, and the failure modes that appear when you optimize the wrong thing. Open the topic.
Efficiency
How we make models cheaper to train and serve: quantization, distillation, low-rank adapters, sparsity, and the memory/latency tradeoffs that dominate real deployments. Open the topic.
LLM Systems
How models run in production: prefill vs decode, KV cache memory, batching and scheduling, and the techniques that make latency and throughput practical. Open the topic.
Standalone notes and references
Foundations
The mathematical objects underneath the models. Also readable as a connected map.
Areas
Five long-running storylines that thread the topics together.
Source shelf
Books, courses, papers, notebooks, codebases, and visual explanations that help orient the learning map. These are external references, not imported course material or endorsements.