Continuous Function
Start with Attention to Serving
Learn one route first: how attention math becomes KV-cache memory, long-context pressure, and serving tradeoffs — through concepts, runnable code, and a lab that asks for your prediction before it reveals the answer.

Route Overview
How does attention become a serving bottleneck?
Bring a paper, claim, or equation, shore up Efficient Attention, then predict which KV-cache term drives memory before the lab reveals the measurement.
Mem_KV = B * N_layers * T * H_kv * d_head * 2 * bytesPaper claims stay separate from the toy demos here and from any future benchmark results.
You leave with something saved to revisit, not just a page you read.
Where You Are
First route: Attention to Serving
A new learner should see one concrete path: map or search a claim, inspect the route graph, open Efficient Attention, predict the KV-cache lever, review the claim boundary, and leave a reproduction or repair note attached to the exact claim, equation, or demo it concerns.
Start the local trail or open the route graph.
This early version makes no benchmark, hosted-compute, automatic expert review, or live runtime-performance claims.
How every concept is taught
Intuition first, then the math, the code, and a demo you can poke
The site is not an archive of notes. It is a repeatable notebook format for turning abstract ML ideas into something you can reason through from first contact to implementation.
Start with motion, shape, and analogy.
Each concept opens with a mental model you can carry before the notation starts.
Geometry, routing, density, and flow before formalism.
Study Dot ProductWrite the objects down precisely.
Definitions, symbols, and derivations stay close to the intuition instead of replacing it.
Derivatives, KL, vector spaces, and chain rule done step by step.
Study Chain RuleMatch notation to runnable Python.
The symbols on the page become short NumPy or PyTorch fragments you can actually run.
Code mirrors the math instead of hiding it behind frameworks.
Study Adam OptimizerManipulate the system and watch it respond.
Interactive diagrams turn abstract machinery into something you can stress-test, poke, and break.
Attention, diffusion, routing, and serving concepts become explorable.
Study Scaled Dot-Product Attention & Transformer LayersCurated Entries
Start with a thread, not a random page
You can browse the full atlas, but the fastest way in is to follow one editorial thread from prerequisites to modern applications.
Foundations First
Build the minimum mathematical language needed to understand optimization and modern model training.
Browse all of Foundations FirstTransformer Systems
Move from attention mechanics to the engineering decisions that make long-context inference work.
Frontier Notebooks
Use the foundations to step into generation, alignment, and inspectable model representations.
Domain Atlas
Navigate by mathematical territory
Linear Algebra
Vectors, matrices, and linear maps: the language of representations, optimization, and modern deep learning.
Calculus
Rates of change and accumulation: the language behind gradients, optimization, continuous-time dynamics, and why backprop works as efficiently as it does.
Optimization
How we train models: gradients, learning rates, curvature, and the practical tricks that make deep nets converge.
Machine Learning
The classical supervised-learning spine: models, losses, generalization, evaluation, and the experiment habits that make modern AI results trustworthy.
Probability
Uncertainty made precise: events, random variables, expectations, and the distributions that models learn.
Information Theory
How we measure information and mismatch between distributions: entropy, cross-entropy, KL divergence, mutual information, and why they appear everywhere in ML.
Attention & Transformers
The sequence model backbone: tokenization, self-attention, positional encodings, and the transformer block that powers modern LLMs.
NLP & Speech
How models handle language and speech: count-based language models, smoothing, embeddings, tagging, parsing, translation, speech recognition, and the bridges into neural sequence models.
Representation Learning
Embeddings and the geometry of meaning: similarity, normalization, contrastive objectives, and why vector spaces become usable interfaces for models.
Generative Models
How models generate: likelihood, latent variables, diffusion/score models, flows, and the training tricks that make sampling work.
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.
Reinforcement Learning
How agents choose actions over time: states, actions, rewards, transition dynamics, value functions, exploration, and the policy-optimization ideas behind modern RL and preference learning.
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.
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.
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.
Production ML
How we keep deployed models trustworthy: evaluation pipelines, dataset and model versioning, drift monitoring, reproducibility, and the operational tradeoffs between them.
Paper Mapper
Turn a paper clue into a route, one equation, and one experiment.
Clickable equation
Mem_KV = B * N_layers * T * H_kv * d_head * 2 * bytesThe mapper turns the bottleneck into a calculator, then links the symbols back to attention and serving.
Example route note
What changed from prior work?
The paper trades exact key-value retention for a bounded decode-time memory budget. Learn attention first, test the memory curve, then inspect where retrieval quality can break.
Learner, Researcher, Professor
One atlas, different depths of use.
A guided route through prerequisites, notation, code, and demos.
Follow a path, predict what each demo will do, then ask the AI companion about the step you got wrong.
Start with linear algebraA quick way to inspect the mechanism, its assumptions, and runnable code.
Use concept pages as small, testable models before jumping back to papers or experiments.
Inspect process reward modelsA teachable sequence with visual hooks, derivation checkpoints, and failure regimes.
Teach from the page itself: intuition first, then math, code, and a demo students can drive.
Open maximum likelihoodFrom Claim to Experiment
Map AI research to a route you can test.
Move from a claim or equation to the prerequisites it leans on, a small runnable demo, an honest note on what that demo shows, and one sharper question — without losing the thread.
Map the claim
Paste a specific equation, architecture name, arXiv ID, or short excerpt to find the prerequisite path in the atlas.
Reveal prerequisites
The graph places the paper inside concepts, equations, prior work, and the ideas you should repair first.
Run a toy demo
Small authored examples turn the central mechanism into sliders, curves, tensors, and small failure cases.
Ask one sharper question
Discussion prompts attach to the exact concept, equation, lab, or paper claim so the next conversation has a clear anchor.
The Guided Route
Attention to Serving, start to finish.
One complete path through transformer inference — from the attention equation to the tradeoffs of serving it — for students, engineers, and researchers.
Open Attention to ServingAsk Beside the Notebook
Specific help attached to the route.
Concept Coach
Breaks down notation, prerequisites, equations, demos, and the current learner question.
Paper Mapper
Maps a pasted claim, equation, arXiv ID, or model-report excerpt to concepts, sources, and caveats.
Demo Guide
Points to authored browser demos and small local examples that test one mechanism at a time.
Claim Scope Review
Separates what a toy demo shows from what depends on sources, scale, or expert review.
AI Companion
Guided lessons, rigorous notes, coding practice, and a companion attached to the object you are studying.
A mathematical playground, a serious course, a code lab, and a patient tutor — in the same place. The companion helps you ask sharper questions, recover missing prerequisites, turn notation into code, and test understanding against the exact equation or live demo in view.
AI Companion
Plan beside the atlas
Choose a path, study a notebook, play with the demo — then ask the companion to explain, quiz, connect, or debug whatever you have selected.
You are my AI learning companion for Continuous Function. Current context: homepage learning atlas. Learning surface: Continuous Function atlas. What this page says: Choose a path, study a notebook, play with the demo — then ask the companion to explain, quiz, connect, or debug whatever you have selected. Suggested next step: Pick a track and ask the companion to turn it into a short plan.. Learner goal: Understand the idea. Learner comfort level: New to this. Preferred explanation style: Visual first. Task: Ask me 5 quick questions, then recommend the best Continuous Function learning path for my current level. Answer in a way that helps me learn: ask one clarifying question only if needed, use intuition before notation, and end with one thing I should try on the page.