Build intuition from absolute zero. Every concept from first principles, with interactive simulations, step-by-step math, and quizzes. No prerequisites beyond curiosity.
From absolute zero to understanding every line of Karpathy's 243-line GPT.
Self-attention, multi-head, KV cache, MoE — the architecture behind everything.
Every object in the attention equation, then the same mechanism in masks, heads, the KV cache and FlashAttention.
Split an image into patches, treat them as tokens, run a Transformer. How ViT unified vision and language architectures.
Why one design rules everything — retrofitting patterns, cross-attention, conditioning zoo, composition.
Linear recurrence, selective scan — the O(n) alternative to attention.
Add noise, learn to reverse it. The dominant generative paradigm.
Straight paths from noise to data — simpler, faster than diffusion.
A 2.4B music model you can jam with in ~200 ms on a laptop — frame-level codec LM, attention sinks, pianoroll & style control.
Replace the U-Net with a Transformer. adaLN-Zero conditioning, scaling laws, and how DiT powers SD3, FLUX, and Sora.
The secret plumbing — variational inference, codebooks, tokenization.
Generator vs discriminator — the adversarial game.
The glue connecting images and text in a shared space.
Teaching language models to see — vision encoder + LLM fusion.
The data layer under every vision model: trace one image from raw bytes through layout, resize, normalization, and patchify all the way to the tokens a VLM reads — and the silent bugs at each step.
Foundation models that physically act in the world.
Learning to imagine before acting — prediction as intelligence.
Reconstructing 3D worlds from 2D photographs.
RLHF, DPO, Constitutional AI — making AI do what we want.
From vibe checks to rigorous testing. Graders, pass@K/pass^K, τ-bench, Terminal-Bench, the Swiss cheese model.
Scaling without paying for it: experts & routing, top-k gating, the collapse problem & load-balancing loss, capacity/token-dropping, Switch, Mixtral & DeepSeek, expert parallelism.
Letting the model think longer: self-consistency, best-of-N & verifiers, chain-of-thought as compute, tree search, o1-style reasoning RL, the train-vs-test tradeoff, and the overthinking trap.
Seeing every pixel: encoder-decoder, the bottleneck blur, skip connections (the one big idea), upsampling & checkerboards, Dice loss, and why it became the backbone of diffusion models.
Escaping the quadratic wall: where the n² comes from, the kernel/associativity trick, the recurrent dual form, the recall catch, RWKV’s decay & gating, the Mamba/RetNet family, and hybrid models.
The LSTM reborn: the two fatal flaws, saturating sigmoids, exponential gating + normalizer (sLSTM), matrix memory (mLSTM), parallelizability, the revision lab, the block, and the recurrent-revival family.
One vector of memory: build the recurrence, watch its gradients die, then fix it with two gates — and train a GRU live.
The impossible triangle: retention (attention minus softmax plus decay), and one mechanism computed three equivalent ways — parallel to train, recurrent to deploy, chunkwise to scale. Multi-scale heads & the family.
Attention by convolution: a sequence-length filter, made practical by implicit filters (any length, few params), the FFT (n log n), and data-controlled gating — plus the recurrence=convolution duality.
The hybrid that works: interleave mostly-Mamba layers with a few attention layers (for recall) plus MoE (for cheap capacity) — why a few attention layers suffice, the KV-cache memory win, and the hybrid era.
Google DeepMind’s RNN-speed transformers: a gated linear recurrence (RG-LRU) for cheap global memory + local attention for sharp recall. Linear recurrence → parallel scan → stability → gating → the hybrid stack → constant-size inference.
Yann LeCun’s Joint Embedding Predictive Architecture: stop predicting pixels, predict meaning. Why pixel loss blurs → latent prediction → collapse & the EMA fix → predictor + mask tokens → masking → the full I-JEPA loop → world models.
One architecture for any modality: funnel a huge input through a small latent bottleneck with cross-attention. The n² wall → latent workspace → cross-attention → latent thinking → Fourier position → iteration → arbitrary outputs via query arrays.
Networks with infinite, continuous depth. A residual block is one Euler step — take the limit and depth becomes a flow field solved by an ODE solver: adaptive computation, O(1)-memory adjoint gradients, and the continuous-normalizing-flow ancestor of diffusion.
Kolmogorov–Arnold Networks: flip the MLP — put learnable 1-D functions (splines) on the edges, let nodes just sum. The result is a network you can read, prune, refine, and turn into a symbolic formula.
Continuous-time neurons with input- and state-dependent dynamics. Leaky neurons, conditional stability, neural circuit policies, and closed-form CfC — including the 19-neuron steering controller behind a separate visual feature extractor. Test the trade-offs in a live tracking experiment.
How machines learned to hear: turn sound into a log-mel picture, run a vanilla transformer encoder-decoder over it, control the task with prompt tokens, and train on 680,000 hours of the messy internet. The audio front-end behind all modern speech models.
Sora-style spacetime diffusion: compress video into a spacetime latent, chop it into patches spanning space and time, and denoise the whole clip with a diffusion transformer whose attention crosses frames — coherence by construction, plus emergent world-model behavior.
The denoising that paints images can drive a robot. Instead of regressing one action (and averaging multimodal demos into a crash), it generates an action chunk from noise — committing to a mode, conditioned on observations, replanned in a closed loop. The action head behind modern VLAs.
Thinking Machines' 594B MoE with 17B active: NVFP4 pretraining, four training stages, one joint async RL run.
A 26B looped MoE for laptops: the middle layers run three times, experts pruned then healed, trained in 4-bit.
Run the same layers several times per token: depth without parameters, gated messages, and test-time depth.
Replace the plain residual sum: each layer attends over earlier layer outputs and learns its own mix.
The FP4 number line, block scales, MXFP4 against NVFP4, stochastic rounding, and why you train in what you ship.
Cut a mixture of experts by usage, see what breaks, then heal it with distillation from a larger teacher.
The journey from a raw pressure wave to the log-mel spectrogram every audio model eats: sampling & Nyquist, the Fourier transform, the STFT, the spectrogram, and the mel/log perceptual scales — plus MFCCs and learned front-ends.
How EnCodec/SoundStream turn sound into discrete tokens a language model can generate: conv autoencoder, vector quantization, residual codebooks (coarse→fine, scalable bitrate), and the GAN that keeps it crisp. The bridge to AudioLM, MusicGen, VALL-E.
From robotic to human: text frontend (G2P), acoustic model, vocoder, the alignment problem, and the one-to-many trick — through Tacotron, FastSpeech, VITS, and modern diffusion & codec-token TTS, plus voice cloning.
BERT for audio: Wav2Vec 2.0 & HuBERT learn speech from unlabeled sound by masking spans and predicting discrete speech units — so ten minutes of transcripts can train a recognizer. Pretrain+fine-tune, contrastive vs cluster-predict.
From text prompt to song: tokenize audio, model long-range structure with semantic + acoustic tokens, the AudioLM hierarchy and MusicGen delay pattern, joint text-music embeddings, and diffusion approaches (Stable Audio). The capstone of the Audio track.
It is 2008: no GPUs, no AudioSet. Design every feature by hand — MFCCs, spectral shape, zero crossings — then feed GMMs, HMMs and SVMs.
Encoder, adapter, language model: one system that listens to any sound and answers questions about it — plus the audio-as-tokens rival.
Hearing the place from the soundscape: log-mel spectrograms, device mismatch, tiny edge models, PaSST distillation.
Classic ASR: HMM sequences, GMM→DNN emissions, the posterior/prior trick, Viterbi forced alignment.
Deciding when the human is done talking is the hardest product problem in voice — energy VAD up to full-duplex models that dissolve the question.
Rebuild recognition and synthesis under a stopwatch: causality, chunked attention masks by hand, incremental decoding, time-to-first-audio.
Deep learning on unordered 3D point sets: permutation invariance via max pooling (PointNet), hierarchical local features (PointNet++), point transformers, and ICP registration. Where convolutions can’t go.
Learning on nodes and edges via message passing: each node gathers neighbor messages, aggregates symmetrically, and updates. GCN, GAT, over-smoothing, and the unifying view (a transformer is a GNN on a full graph).
The city was always a graph, not a table: buildings, streets, POIs and transit as typed nodes and edges, built with real GeoPandas-to-PyG pipelines a hetero-GNN can learn from.
Predicting the future with its uncertainty: lookback→horizon, trend/seasonality decomposition, probabilistic (quantile) forecasts, global models, N-BEATS, the Temporal Fusion Transformer, PatchTST, and zero-shot foundation models.
Fit a distribution over functions, not one curve — getting calibrated uncertainty for free. Kernels, conditioning, error bars, the n³ wall, and the broader uncertainty toolkit (deep ensembles, MC dropout, conformal prediction).
The engines behind Netflix/Amazon/YouTube: matrix factorization, user & item embeddings, the two-tower retrieval model, the retrieve-then-rank funnel, DLRM, and hard problems (cold start, feedback loops). Personalization at billion-item scale.
How text becomes the integers a model sees: the word-vs-character trade-off, byte-pair encoding built from scratch, encoding by merge-replay, WordPiece & Unigram, byte-level BPE (no OOV ever), and SentencePiece’s ▁ spaces. Why models can’t count the r’s in “strawberry.”
The model outputs a distribution, not a word — decoding turns it into text. Logits & softmax, greedy’s repetition trap, temperature, top-k, top-p (nucleus), beam search, and the modern penalty pipeline. The dial between robotic and unhinged.
Fine-tune a 70B model by training under 1% of it. The low-rank insight (the update is low-rank), LoRA’s frozen-W + B·A adapter, parameter counting, the B=0 zero-start, merge-vs-swap deployment, QLoRA’s 4-bit base, and the wider PEFT family.
MSE, cross-entropy, KL divergence, Huber, contrastive, triplet, InfoNCE — every loss derived from scratch with interactive comparisons.
SGD, momentum, AdaGrad, RMSProp, Adam, AdamW, Lion, Sophia — every update rule derived, hand-computed, and raced head-to-head.
BatchNorm, LayerNorm, RMSNorm, GroupNorm, InstanceNorm, Pre-LN vs Post-LN — every variant derived, hand-computed, and raced in the Arena.
MHA, MQA, GQA, sliding window, linear attention, FlashAttention — every variant derived with memory arithmetic and raced in the Arena.
Sinusoidal, RoPE, ALiBi, then the group theory proving only a few encodings exist, GRAPE, and how to ship one.
Sigmoid, ReLU, GELU, SiLU/Swish, SwiGLU, Mish — every nonlinearity derived with dead neuron analysis and racing arena.
Warmup, step decay, cosine annealing, 1cycle, WSD — every schedule derived with loss landscape simulations and racing arena.
Xavier, He/Kaiming, orthogonal, transformer recipes — every method derived from variance preservation with deep network explorer.
Vanishing/exploding gradients, clipping, accumulation, mixed precision, loss scaling, checkpointing — the complete stability toolkit.
ResNet residuals, Pre-LN vs Post-LN, DenseNet, Highway — why every modern architecture uses shortcuts and how to choose.
Max, average, GAP, CLS, mean, attention, GeM pooling — how to collapse features into fixed-size vectors for any task.
Token, position, segment, patch embeddings — tied weights, scaling, subword effects, and the lookup tables behind every model.
Epochs, batches, DataLoaders, shuffling, the 6-step training loop, eval mode, common bugs — the complete anatomy of training.
Flips, crops, color jitter, RandAugment, Mixup, CutMix, text augmentation, TTA — synthetic variations that prevent overfitting.
Difficulty scoring, Bengio’s classical curriculum, pacing functions, self-paced learning, teacher-student bandits, DoReMi data mixing — and when ordering doesn’t help.
Self-supervised vision without labels: InfoNCE, temperature, the projection head you throw away, MoCo’s queue, and how BYOL & DINO dodge collapse with no negatives.
Teaching a small model to think like a giant: dark knowledge, temperature softening, the KD loss, feature & attention matching, self-distillation, DistilBERT, and the capacity-gap trap.
Co-adaptation, the mask & inverted-dropout scaling, the ensemble view, spatial dropout, DropConnect, stochastic depth/DropPath, DropBlock — breaking your network on purpose to make it generalize.
LLM-guided evolutionary search over programs. Cap sets, bin packing, scoring functions, best-shot sampling, islands model.
Hands-on: implement the FunSearch loop end-to-end. Prompt design, sandbox execution, evolutionary selection, scaling experiments.
Every matrix in every model. Hand calculations, from-scratch Python, PyTorch, and 19 interactive visualizations. Scalars to SVD to backprop to numerical stability.
Why order matters, gimbal lock's exact failure point, Rodrigues' formula, quaternions and slerp, and chaining frames with SE(3) — with a live frame-chain lab.
Self-similar problems solved by a function that calls itself: base cases, the call stack pushing and popping frames, and even_factorial derived and hand-traced — with a live Python Code Lab.
The directions a matrix only stretches. The characteristic equation by hand, the triangular shortcut, power iteration, and why eigenvalues decide the stability of dynamical systems.
From a mass-spring-damper to first-order state-space: the four damping regimes, the matrix form, and the discovery that the regimes are the eigenvalues hiding inside it. With an RK4 Code Lab.
Second derivatives that tell a bowl from a dome from a saddle. The symmetric Hessian, the second-derivative test, and how Newton's method uses curvature to take a smarter step.
A curved sensor looks flat once you zoom in close enough. The polar to Cartesian Jacobian by hand, a finite difference check, and a live lab comparing true versus linearized uncertainty.
Updating belief with evidence, from zero. The disease-test trap (a positive test is only fifty-fifty, not eighty), the base-rate effect, and a live posterior Code Lab.
A GPS fix is a blob, not a dot. The covariance ellipse from a 2×2 matrix by hand, Mahalanobis distance, conditioning as a Kalman update in disguise, and a live two-sensor fusion lab.
Three noisy beacon ranges that never quite agree. Normal equations by hand, a hand-worked Gauss-Newton iteration, the Levenberg-Marquardt damping knob, Huber outlier rejection, and a live trilateration lab.
Estimate the impossible by random sampling: the law of large numbers, the unavoidable square-root error law, why it shrugs off high dimensions, variance reduction — and how it prices options, traces light, and powers modern AI.
Sample from a proposal you can afford, then reweight to the truth — and watch a one-in-a-million event become reachable. The optimal proposal, effective sample size, rare-event tilting, off-policy RL, and importance-sampled rendering.
Stop scattering points at random — place them deterministically to fill space evenly, and watch integration error fall from one-over-root-N toward one-over-N. Discrepancy, van der Corput, Halton & Sobol, Koksma–Hlawka, effective dimension, and randomized QMC.
When you can’t sample a distribution, build a random walk that visits its points in the right proportions — then just average. Metropolis–Hastings, Gibbs, detailed balance, burn-in & mixing, autocorrelation & R-hat, and the Ising lattice where it was born.
Stop wandering — use the gradient of the log-probability to glide across high-dimensional distributions in long, high-acceptance jumps. The score, momentum & leapfrog, NUTS, Langevin & MALA — and how score-based diffusion models are Langevin sampling in disguise.
When one proposal isn’t enough: march a weighted swarm of particles through a ladder of distributions, resampling to survive — and read off the normalizing constant nobody else can. Degeneracy & resampling, tempering, annealed importance sampling, and Bayesian model evidence.
When you can’t evaluate every move, search only the promising ones — grow a tree by playing the game out at random, then let the wins steer where you look next. The four phases, UCT exploration, AlphaGo → AlphaZero → MuZero, and LLM reasoning as search (Tree of Thoughts, rStar-Math).
The average salary is $68k and almost nobody earns near it. What a percentile actually is, mean vs median, IQR, the CDF/ECDF, box & violin plots, and why heavy tails make the average lie — descriptive statistics from absolute zero.
Is that benchmark delta real or a coin flip? Standard errors, confidence intervals, the bootstrap, McNemar, power, and multiplicity — the statistics that separate signal from sampling noise.
A 99%-accurate fraud detector that catches no fraud is a metric you designed badly. Confusion matrices, ROC/PR, calibration, NDCG, aggregation traps, and Goodhart’s law.
The same numbers can be plotted into opposite conclusions. Histogram traps, honest error bars, log-log scaling fits, and a lie-detector toolkit for every eval plot you read or make.
Your feature ‘improved’ retention — because it launched before a holiday. Randomization, power & MDE, the peeking problem, CUPED, switchbacks, and why offline wins vanish online.
Your tests are green and your model is broken. Golden sets, statistical release gates, PSI/KS drift alarms, canary & shadow, and the rollback machinery that stops bad models from shipping.
Two Kalman filters, identical RMSE — one is lying about its confidence. NEES & NIS consistency, the Cramér–Rao bound, SLAM ATE/RPE, and honest robot success-rate intervals.
Classification has an answer key; generation has a taste problem. pass@k, Bradley–Terry & Elo, FID from scratch, judge-bias quantified, and inter-rater kappa — for LLMs, VLMs, and diffusion.
Your model gained 2 points and revenue dropped. Climb from module metric to P&L: driver trees, guardrails & SLOs, funnels, error analysis, and exec-ready launch memos.
The first ML algorithm done right. Fit a line, score it with squared error, then minimize two ways: roll downhill with the LMS rule (batch & SGD) and jump to the exact answer with the normal equations — and discover least squares is maximum likelihood under Gaussian noise.
How a line learns to say yes/no. Squash a score into a probability with the sigmoid, derive cross-entropy from maximum likelihood, meet the update rule that's identical to LMS, then extend to the perceptron, softmax for many classes, and Newton's method.
Re-fit a fresh classifier around every query point, trusting nearby data more. The Gaussian kernel, Newton's method, and the bandwidth as a bias/variance knob — the showcase Code Lab repaints the decision boundary as you turn it.
One recipe that produces linear regression, logistic regression, softmax, and Poisson regression. The exponential family, why the sigmoid is forced not chosen, the three-line GLM recipe, and the single gradient every GLM shares. The framework that explains the mystery.
The other half of classification: model what each class looks like, then flip with Bayes. Gaussian Discriminant Analysis (its posterior is secretly a sigmoid), generative vs discriminative trade-offs, and the Naive Bayes spam filter that defined an era — plus Laplace smoothing.
Why a model that fits perfectly can predict garbage — and why making it even bigger can fix it. Test error decomposed into bias, variance, and noise; the classical U-curve and its sweet spot; then double descent and the implicit regularization behind modern deep learning, simulated live in your browser.
How to actually find the sweet spot without cheating. The golden rule (train/validation/test), the cross-validation family (hold-out, k-fold, leave-one-out), regularization as a continuous complexity dial, L1 vs L2 (shrink vs select), and the Bayesian view where regularization is a prior.
Finding hidden groups when nobody labeled them — the first unsupervised algorithm. The assign/average two-step dance, the distortion it minimizes, why it always converges (and to a local minimum), choosing k with the elbow, and where its spherical assumption breaks.
k-means, leveled up: soft probabilistic clustering with stretchable elliptical groups. The mixture model, the chicken-and-egg problem, the E-step (Bayes’ responsibilities) and M-step (weighted re-fit), why it converges, and how k-means is just EM with hard assignments and fixed spheres.
Squeeze high-dimensional data down to the few directions that matter, via one eigenvector calculation. Centering, the max-variance projection, the covariance matrix, principal components as its eigenvectors, reduction & reconstruction, and applications from eigenfaces to noise removal.
Unmix what was blended — the cocktail party problem. The mixing model x=As, finding the unmixing W, independence as the criterion, why ICA needs non-Gaussian sources, a live un-mixing lab, and how ICA differs from PCA (independence beats uncorrelatedness).
From-scratch LM motivation, the CS336 pipeline, and building BPE tokenizers from character/byte/word up.
Tensors, fp32/bf16/fp8, FLOP counting, the 6ND rule, optimizer & activation memory, the training loop.
Pre-norm, RMSNorm, SwiGLU, RoPE, GQA, FFN ratios — every modern LLM architecture choice, derived.
Mixture of Experts: top-k gating, load-balance loss, expert capacity, router z-loss. DeepSeek, Mixtral, Llama 4.
Arithmetic intensity, the roofline model, memory coalescing, tiling, and fusion — why GPUs idle and how to fix it.
HBM traffic, kernel fusion, writing a fused Triton kernel, and FlashAttention's online-softmax recurrence.
Collective ops, data parallelism, ZeRO 1–3, ring all-reduce, tensor parallelism, and memory accounting.
Pipeline parallelism, the bubble formula, GPipe vs 1F1B, FSDP/ZeRO-3, and sequence parallelism.
Compute-optimal scaling: C=6ND, the loss law, IsoFLOP curves, Chinchilla, and the D=20N rule.
Prefill vs decode, KV-cache sizing, the roofline, KV compression, speculative decoding, and quantization.
Parametric loss fits, IsoFLOP profiling, the three Chinchilla methods, WSD, muP transfer, data-limited scaling.
Perplexity, multiple-choice scoring, majority vote, best-of-N, Elo, and contamination across MMLU, GPQA, Arena.
Where LLM corpora come from: Common Crawl, WARC vs WET, HTML→text extraction, the data-mix problem, copyright.
Cleaning web text: KenLM & fastText filtering, DSIR, Bloom filters, MinHash, and LSH deduplication.
Post-training: SFT, Bradley-Terry preferences, the RLHF KL objective, PPO, and the DPO loss derived.
RLVR with verifiable rewards: REINFORCE, baselines, GRPO group advantage. DeepSeek-R1, Kimi, Qwen 3.
Policy gradients from scratch: the PG theorem, REINFORCE variance, baselines, GAE, PPO clip, GRPO. Series capstone.
The four-module autonomy stack and the perception–action loop that ties it together — map representations, finite-state-machine executives, and a full gridworld stack you can break.
From “turn 30°” to wheel speeds: rotation matrices, SE(2) frames, holonomic vs nonholonomic constraints, and the unicycle & differential-drive models you integrate yourself.
Turn a robot+obstacles into a point searching a graph: C-space inflation, Dijkstra, admissible heuristics, and A* — run by hand on a grid, then built and flooded yourself.
When grids explode in high dimensions, sample instead: build a roadmap, grow a rapidly-exploring tree, and rewire it to optimality — you implement nearest, steer, and choose-parent yourself.
A planner gives waypoints; a robot needs a smooth, timed, dynamically-feasible trajectory. Polynomial trajectories, differential flatness (recover v & ω from the path), and the min-snap QP.
Open-loop drifts; feedback corrects. Error dynamics, P/PI/PID, pole placement, and LQR via the Riccati equation — build the controllers and watch them track a path through a disturbance.
What robots measure and how it goes wrong: encoder odometry, gyro drift, LiDAR scans, line extraction, and Iterative Closest Point — you integrate a biased gyro and align two scans with SVD.
How a camera turns 3D into pixels: the pinhole model, intrinsics K, extrinsics, the full projection P=K[R|t], lens distortion, and calibration — you project a cube and calibrate from correspondences.
Recover 3D from images: Harris corners, descriptor matching, epipolar geometry, RANSAC robust fitting (N=log(1−p)/log(1−wₛ)), triangulation and stereo depth Z=fB/d — built by hand.
From corners to meaning: template matching, IoU & non-max suppression, convolution as a learned filter, detectors and segmentation — and how a detection becomes an FSM input that stops the robot.
Build a map and localize in it at once: EKF-SLAM and its growing correlations, factor graphs, Gauss-Newton on a pose graph, sparsity, and loop closure that snaps drift away — built by hand.
Build a free/occupied map from noisy range scans via log-odds and ray-casting, then explore autonomously: detect frontiers, score them by information gain vs cost, and cover the unknown.
Fuse a noisy prediction with a noisy measurement: the Bayes filter, Gaussians, the Kalman gain as a trust dial, EKF Jacobians for nonlinear models, EKF-localization, and the unscented transform.
When the belief is multimodal a Gaussian can't capture, use a cloud of weighted samples: predict, weight, resample. Monte Carlo Localization, the kidnapped robot, and Neff — built from scratch.
Series capstone. Behavior cloning & the O(εT²) distribution-shift trap, DAgger, diffusion policies, Vision-Language-Action models, 3D Gaussian Splatting, and world models — where the classical stack meets learning.
Why one long-lived daemon owns the stateful provider connections, and everything else — operator clients, capability nodes, seven chat surfaces — is a thin client of it.
A typed request/response/event grammar over one WebSocket: the handshake, discovery, idempotent retries, and gap-detecting sequence numbers.
Capability-based trust: keypair device identity, challenge-nonce signing, role/scope RBAC, pairing approval — and what auth actually protects.
The run as a serialized state machine — intake to context to inference to tools to stream to persist — with hooks, timeouts, and four ways to end.
What the model sees and how you see it back: layered prompt assembly under a cache boundary, and block-and-preview reply streaming.
Lane-aware concurrency: per-session FIFO plus global caps, and the steer / followup / collect / interrupt modes for messages that arrive mid-run.
State partitioning and routing at scale: session keying and isolation, lifecycle and pruning, and the most-specific-wins agent router.
How a stateless model gets durable memory: a file-backed hierarchy, hybrid vector-plus-keyword search, and a dreaming process that consolidates what matters.
Treat failure as normal: retries with backoff and jitter, model failover chains, context-overflow compaction, and diagnostics that recover on their own.
The hard enforcement fence: the five-mode exec ladder, the allowlist, exec-approval flow, and sandbox modes that decide whether a command runs.
The four extension surfaces: skills loaded on demand, plugins, hooks that fire on events with precedence, and cron jobs on a schedule. The finale.
Turn noise into data by simulating a differential equation: vector fields, flows, Euler's method, Brownian motion, SDEs and the Ornstein–Uhlenbeck process — built and run by hand.
Where do the arrows come from? Train the vector field — conditional & marginal probability paths, the marginalization trick, and the simulation-free flow matching loss.
The score bridges the ODE and SDE samplers, gives denoising score matching, and powers classifier-free guidance — how a model is made to obey a prompt.
The vector field is a neural net: sinusoidal time embeddings, U-Nets, Diffusion Transformers, and diffusing in a VAE latent space — Stable Diffusion 3 and Movie Gen.
Text is discrete, so Gaussian noise won't do: continuous-time Markov chains, masking/absorbing states, and the parallel un-masking sampler behind diffusion language models.
The complete rigorous companion — the full 84-page 6.S184 notes as one interactive reference: every definition, theorem and derivation across all five lectures.
Sequential decisions in the physical world: the closed loop, the compounding-error trap that breaks naive imitation, the robot data problem, the four pillars, and a preview of the whole course.
The agent–environment loop and the reward hypothesis, a policy as a state→action map, the ladder of methods from imitation to RL, known vs learned worlds, and high-level plans over low-level skills.
Supervised learning, loss & empirical risk, linear and logistic regression by hand, gradient descent and the learning rate, overfitting, the bias–variance tradeoff, and regularization.
Why depth and nonlinearity, the MLP and backprop by hand, optimizers from SGD to Adam, CNNs, attention and Transformers, generative models, and knowing when the model is uncertain.
The MDP tuple, policies and trajectories, discounted return and value functions, the Bellman idea, and behavior cloning — plus why copying an expert is not standard supervised learning.
DAgger and how it beats the quadratic cost, privileged teachers, GAIL as distribution matching with a discriminator, and Diffusion Policy for multimodal demonstrations.
Value and Q functions, the Bellman expectation and optimality equations derived, dynamic programming — policy evaluation, policy improvement, policy iteration and value iteration — worked by hand on a gridworld.
Model-free control from samples: Monte Carlo vs TD, SARSA vs Q-learning and the off-policy max, ε-greedy exploration, the cliff, and DQN's replay buffer and target network that tame the deadly triad.
Optimize the policy directly: the log-derivative trick, the policy gradient theorem, REINFORCE, why the estimator is unbiased but high-variance, and reward-to-go and baselines that calm it down.
A learned critic cuts policy-gradient variance: the advantage function, the TD error, two networks in one loop, and the n-step / GAE dial that trades bias against variance.
The biggest safe step: natural gradients and the KL trust region, PPO's clipped surrogate, deterministic off-policy control with DDPG/TD3, and maximum-entropy RL with SAC — mapped on one 2×2 grid.
When you know the physics: state-space models, feedback, PID, stability from eigenvalues, and LQR — the optimal linear controller — with the Riccati recursion worked by hand.
Plan a whole control sequence: shooting vs collocation, the LQR backward pass derived line by line, and iLQR / DDP — linearize, solve LQR, repeat — plus sequential convex programming.
When you can't write the equations: MPC and replanning, random shooting, the cross-entropy method and MPPI, and learned-model RL — PILCO, PETS ensembles, and MBPO.
Learn a latent world model from pixels and plan inside it: Dreamer's learning-in-imagination, TD-MPC's plan-in-latent with a learned value, and how model error compounds over a rollout.
Guest lecture: model dough, beans, and fluids as particles plus relations and learn the dynamics with a graph network — message passing, permutation-equivariance, and planning with a learned simulator.
Guest lecture: learn from a fixed log with no new interaction — the out-of-distribution overestimation death spiral, and the fixes: policy constraints, conservatism (CQL), in-sample IQL, and Diffuser.
Recover the reward from demonstrations: why it's ambiguous, feature matching, max-margin, and the maximum-entropy principle — the least-committal reward that explains the expert.
The cleanest explore–exploit problem: regret, ε-greedy, UCB optimism, Thompson sampling, and dueling bandits / preference learning — the foundation under RLHF.
When rewards are sparse and random actions never stumble onto them: count-based bonuses, curiosity as prediction error, the noisy-TV trap, and Random Network Distillation.
The reality gap: why a sim-perfect policy falls on the real robot, domain randomization (reality is just sim #10,001), system identification, and champion-level drone racing.
When you can't learn from the crash: constrained MDPs, safe exploration, control barrier functions, and safety filters that project any unsafe action onto the nearest safe one.
Adapt within a step: teacher–student distillation, RMA inferring terrain from recent motion, and Neural-Fly's online residual adaptation for agile flight in wind.
Guest lecture: borrow the web's common sense — SayCan's say×can grounding, CLIPort, RT-1's tokenized actions, Code-as-Policies, and the move toward vision-language-action models.
The capstone: the two hard problems revisited, one map from imitation to foundation models, a method-selection decision tree, honest tradeoffs, and the open frontier.
Why no single sensor is enough: complementary vs competitive vs cooperative fusion, the fusion levels, and the reliability paradox — more sensors isn't always more robust.
Where and how to combine: the JDL levels, centralized vs distributed vs decentralized, and the double-counting trap — correlated estimates that fool the fused covariance into overconfidence.
The seed of all fusion: the inverse-variance weighted average. Trust each source by its precision; the fused estimate is always sharper — and it's secretly the Kalman update.
Fusion over time: keep a belief, predict it forward (it blurs), then fuse each new measurement via Bayes' rule (it sharpens). The recursive engine behind every filter that follows.
The Bayes filter for linear-Gaussian worlds: fuse a model prediction with a measurement, each weighted by its uncertainty. The Kalman gain is the trust dial — recursive inverse-variance fusion.
The cheapest fusion: blend a fast-but-drifty gyro with a slow-but-stable accel/mag by frequency — high-pass the gyro, low-pass the reference. Madgwick & Mahony attitude estimators.
Nonlinear fusion: linearize the model with its Jacobian, then run the Kalman machinery — fusing IMU motion with range/bearing GPS. The workhorse of real navigation.
Skip the Jacobian: pick a few sigma points, push them through the true nonlinearity, and recover the fused mean and covariance. More accurate than the EKF, derivative-free.
The Kalman filter inside-out: track information (inverse covariance) instead of covariance. Fusion becomes simple addition — the key that unlocks decentralized, multi-sensor networks.
When the world isn't Gaussian: represent the belief with a swarm of weighted samples. Predict, weight by the measurement, resample — non-parametric fusion that powers Monte Carlo Localization.
Fusing estimates that secretly share information: when the correlation is unknown, naive fusion grows overconfident and diverges. CI stays consistent for any correlation — the key to decentralized fusion.
The dodged half of fusion: which measurement updates which track? Validation gating, global nearest-neighbor, JPDA and MHT — because one wrong correspondence makes the best filter fuse garbage and diverge.
The sensor everything fuses with: what gyros and accelerometers really measure (specific force, not acceleration), strapdown mechanization, and why an unaided IMU's position error explodes as t³.
Bounding inertial drift with absolute fixes: loose vs tight vs deep coupling, and the error-state Kalman filter that fuses a high-rate IMU with low-rate GNSS — coasting through tunnels, snapping back on reacquisition.
The silent prerequisite for all fusion: get the sensor-to-sensor transform (hand-eye AX=XB) or the clock offset wrong and your optimal filter quietly diverges. Spatial + temporal calibration, observability, Kalibr.
The complementary masterpiece: a camera and an IMU cover each other's blind spots — and the IMU's metric acceleration resolves the monocular scale. MSCKF, VINS-Mono, and IMU preintegration.
Fusing precise 3-D LiDAR with the IMU that de-skews it — and the factor graph that unifies it all. Point-to-plane registration, LIO-SAM vs FAST-LIO2, iSAM2, and degeneracy detection.
Camera, LiDAR, and radar in a self-driving stack: their complementary blind spots, the early/mid/late fusion question, PointPainting, and the Bird's-Eye-View revolution (Lift-Splat-Shoot).
When attention learns where to fuse: BEVFormer, BEVFusion, and TransFusion replace hand-designed projection with soft cross-modal attention — gracefully down-weighting a blinded or miscalibrated sensor.
The frontier: keep the Bayesian filter's structure but learn the parts you don't know. KalmanNet learns the gain, BackpropKF learns the measurement uncertainty — model-based deep learning.
The capstone skill: how to know your fusion works. NEES/NIS chi-square tests, innovation whiteness, and robust costs (Huber, DCS, switchable constraints) that catch the silent killer — overconfidence.
The ultimate map: an interactive concept graph wiring all 21 methods together, a 1960–2024 historical timeline, and the full curated reference library. One page for the whole journey.
Frames, rotation matrices SO(3), Euler angles & gimbal lock, axis-angle, quaternions, and SE(3) transforms.
Lie groups for optimizing over rotations: so(3), hat/vee, the exp & log maps, the SE(3) Jacobian, BCH, retraction.
Control: state-space stability, PID, LQR via Riccati, quadrotor dynamics, and geometric attitude control on SO(3).
Minimum-snap trajectories: smoothness as derivative minimization, the QP formulation, and differential flatness.
Pinhole projection (x=fX/Z), intrinsic matrix K, extrinsics [R|t], full pipeline P=K[R|t], back-projection, and lens distortion.
Corners vs edges, structure tensor G, Harris & Shi-Tomasi, SIFT descriptors, ratio-test matching, KLT optical flow.
Epipolar constraint, essential matrix E=[t]×R, fundamental matrix F, 8-point algorithm, 4-fold R,t ambiguity, cheirality, triangulation, scale ambiguity.
Minimal sample → fit → count inliers → keep best → refit; iteration formula N=log(1−p)/log(1−ws); threshold tradeoffs; sample sizes line=2/homography=4/E=8.
MLE → weighted LS; normal equations (ATA)x=ATb; Jacobian as sensitivity matrix; Gauss-Newton linearize-and-step; LM damping λI trust-region; covariance = (JTΩJ)−1.
SO(3)/SE(3) as curved surfaces; tangent space; retraction R·exp(δ); ⊞/⊝ operators; on-manifold GN: perturb in tangent → solve → retract; rotation averaging; singularity-free local coords.
VO pipeline: track → relative pose → chain SE(3); drift & why it compounds; monocular scale ambiguity; IMU accelerometer & gyro; bias double-integration; VIO fusion; IMU preintegration ΔR/v/p; tight vs loose coupling.
Image retrieval framing; visual vocabulary via k-means; BoW histogram; TF-IDF weighting; vocab tree + inverted index; cosine similarity ranking; geometric verification (RANSAC); precision-over-recall; perceptual aliasing; DBoW2/FAB-MAP.
Factor graph = poses + landmarks + factors; MAP → sparse NLLS; odometry, landmark, loop-closure factors; sparsity from local measurements; Hessian block pattern; sparse Cholesky & variable ordering; bundle adjustment; smoothing vs filtering; marginalization & Schur complement fill-in.
M-estimators (Huber, Cauchy, TLS), influence functions, IRLS, non-convexity & local minima, GNC annealing, switchable constraints, PCM, SE-Sync certifiability; frontiers: NeRF/Gaussian maps, learned features, semantic SLAM, multi-robot, LiDAR, event cameras; full VNAV series cheat sheet.
Where the two halves meet: differentiable filters, neural nets inside Kalman skeletons, KalmanNet's learned gain, transformers that filter in their forward pass, and FoundationStereo front-ends on factor-graph back-ends — gated by chi-squared consistency.
The whole arc — Kalman filters to robot foundation models — plus a build ladder of 8 runnable in-browser Python labs: implement a Kalman filter, EKF Jacobian, unscented transform, particle filter, pose-graph SLAM, VIO bias estimation, Q-learning vs SARSA, and a diffusion policy yourself.
A 175 billion parameter model needs 350 GB at 16 bits, and a phone has 4 GB.
AlexNet holds 61 million weights but does 724 million multiply-adds, and the two live in different layers.
Han et al. cut AlexNet from 61 M to 6.7 M weights, 9× fewer. Yet a GPU only runs faster when the zeros follow a pattern it can skip.
Prune each layer by its own amount, found by search, and MobileNet does half the work for 0.1 points of accuracy.
Store a network's weights in 2 bits, not 32, and a layer shrinks 3.2 times.
One scale for a whole layer sinks MobileNetV1 from 70.9% to 0.1% at 8 bits. A scale per channel lifts it to 59.1%.
A tiny search space already holds 3.2 × 1011 networks. A search tries a few hundred of them and returns one that fits your budget.
Designing a fresh network for every phone, GPU and chip costs 40,000 GPU hours each.
A hard label says cat 1, dog 0. A teacher says cat 0.971, dog 0.018, car 0.011, and the small gaps hold what it knows.
MobileNetV2 needs 1,372 kB of working memory. A tiny chip has 256 kB.
A plain matrix multiply takes 24,296 ms. Reorder three loops and it takes 1,979 ms, 12 times faster, with the same arithmetic.
Every new word an LLM writes re-reads a cache of all earlier words.
A 7B model's weights take 3.4 GB in 4 bits instead of 13.4 GB, so decoding can run about 4 times faster.
Teaching a base model new manners costs one full 13.5 GB copy per task.
A chatbot can talk forever if its memory stays small.
Why ViTs get costly at high resolution, and the fixes: window, linear and sparse attention, then parallel image generation.
Add noise in a thousand steps, train a network to undo it, then cut the bill: fewer steps, a smaller latent, linear attention.
Make video diffusion fast: sparse attention, 4-bit weights with a low-rank branch, a 2-bit cache, and a few sampling steps.
GPT-3 would take about 355 years on one GPU. Split the data, the layers and the tensors, and shard the state so each GPU holds a slice.
Training keeps every activation for the backward pass. Train biases, update a few layers, use 8-bit gradients, and fit in 256 KB.
SP+ML overview, applications, course roadmap, full pipeline demo.
x[n], δ[n], periodicity theorem, Nyquist sampling, aliasing.
Bennett’s theorem, SQNR, 6 dB/bit rule, proof sketch.
Non-uniform, centroid/boundary conditions, 1/3 power law, NF4 for LLMs.
Linearization, subtractive dither, NVFP4, gradient accumulation.
Fourier basis, orthogonality, DFT/IDFT, FFT butterfly.
Centroid, spread, kurtosis, entropy, flatness, flux.
Windowed DFT, spectrogram, uncertainty principle, overlap-add.
NN classifier, Hilbert spaces, Parseval, template matching.
CWT, DWT filter bank, Haar, Daubechies, multi-resolution.
Denoising, JPEG2000, wavelet families, Fourier vs wavelet.
LTI, convolution theorem, eigenvectors, circulant matrices.
Log trick, mel scale, mel filter bank, MFCC pipeline.
Bayes risk, likelihood ratio, ROC curves, Neyman-Pearson.
Stationarity, autocorrelation, Gaussian classification, LDA/QDA.
J(w) criterion, scatter matrices, simultaneous diagonalization.
Maximum margin, hard/soft margin, slack variables, multi-class.
Lagrangian, KKT, primal→dual derivation, dual SVM.
Feature maps, kernel trick, RBF, Mercer, representer theorem.
Least squares, ridge, LASSO, autoregressive models, Yule-Walker.
Bayesian regression, kernel regression, Gaussian processes.
Wiener filter, LMS algorithm, noise cancellation, echo cancel.
Hidden layers, activations, backprop, universal approximation.
Convolutional layers, spectrograms+CNN, BatchNorm, ResNets.
QKV, scaled dot-product, multi-head, transformer blocks.
Signal tokenization, causal masking, GPT-style prediction.
Forward/reverse process, noise prediction, WaveGrad.
Pilanci’s reformulation, group LASSO, double descent.
VAE, nuclear norm, Robust PCA, matrix separation.
Multiplicative updates, source separation, deep MF.
K-SVD, OMP, matching pursuit, LASSO, sparse coding.
The survey and prerequisite layer: MCU fundamentals, C, hardware design and interfacing, RTOS, embedded Linux. For the deep systems-engineering tracks built on top of it (real-time Linux, firmware, silicon, edge inference), see Physical AI Systems below.
MCU vs MPU, registers & memory map, GPIO, timers, interrupts, communication protocols, software patterns.
Bitwise ops, pointers, dynamic memory, recursion, data structures, sorting, state machines, storage maps.
SPI/I²C/UART, MCU selection, sensors, wireless (BLE/WiFi/LoRa), PCB layout, firmware testing.
Software stack, clock trees, DMA, peripheral drivers, power management, optimization, IoT case study.
STM32L475 registers, ARM assembly, timer deep dive, NVIC interrupts, ISR patterns, low-power tickless.
Rate Monotonic Analysis, scheduling algorithms, FreeRTOS, semaphores/mutexes, priority inversion.
IoT stacks, MQTT, Azure IoT Hub, sensor edge computing, BLE/LoRa, security, 5G applications.
GPIO circuits, ADC/Nyquist, UART/SPI/I²C waveforms, USB enumeration, BLE GATT, RF options.
Cross-compilation, daemons/systemd, kernel modules, device drivers, device tree, kernel building.
The systems engineering under robots, AR/VR and edge AI: firmware and buses, embedded Linux and drivers, real-time pipelines, tracing, camera and video, edge inference, silicon. New lessons land here wave by wave.
The Machine Underneath
Firmware, Buses and Motion
Real-Time Pipelines
A robot arm needs a command every millisecond. Learn why Linux is sometimes late, and how real-time Linux keeps the worst case small.
A robot that speaks, listens and moves runs loops hundreds of times a second on one shared computer. One late cycle is a stutter. Learn to find it, co
A sensor reading is only useful if it has the right units and the right time. A 12 ms delay turns a swinging arm into a 3.6 degree error. Bring a part
A robot’s voice must leave a speaker the size of a coin. Most of a 120 Hz voice never makes it out. Pick a speaker and watch which parts survive.
Four microphones can pick one voice out of a room and ignore a loud TV. Sound reaches each microphone a fraction of a millisecond apart, and that gap
A robot that talks hears its own voice come back from the room. A small adaptive filter learns that path and subtracts it, cutting the echo by about 3
Noise cancellation plays the mirror image of a sound, but the mirror must arrive on time. At 50 µs late it still helps up to about 3 kHz, and above th
A showroom is not a chamber. Measure how a room answers one click and you can predict, tune and correct how a robot sounds and hears inside it.
A robot hears your voice and the room at the same time. Pick a cleaner, push the noise up, and watch which cells of the sound each method keeps and wh
People leave a gap of about 200 ms before they answer. Learn how a robot earns that: eyes that follow, gestures that fit the words, and layers of moti
A robot feels alive only in the minds of people, so we measure the people: with scales, votes, reply gaps near 200 ms, behaviour, A/B tests and a chec
A camera frame is not one instant: its rows are read over tens of milliseconds. Stamp it at the exposure midpoint and the camera-IMU offset stays fixe
Turning off B-frames and lookahead can cut over a second from a “low-latency” stream, because the encoder was holding frames back. A faster network wo
Asynchronous timewarp cuts head-turn lag to about one scan-out, because a fast compositor re-aims the last frame just before vsync. It cannot fix tran
A board prints a few lines, then goes quiet. The last line names which of six stages stopped, and what to measure next. Break the chain and read where
Your interrupt handler asks an I2C sensor for a reading, and the kernel stops with BUG: scheduling while atomic. Move the read into a threaded handler
A driver feeds an accelerator by writing commands to a ring and ringing a doorbell. Ring it once per batch and the ring runs 5 times faster. Train the
A bbappend named for the right recipe version changes your Linux image. One named for the wrong version changes nothing. BitBake picks by name, versio
A signed boot chain refuses a flipped bit, and an A/B update that waits for a confirm cannot brick, even when the power dies mid-write. Break each sta
The same Jetson board can run at full clock or at half, and your code never says which. Pick a power mode, add a fan, and watch ten minutes of heat de
A camera driver hands your code frames through a queue of buffers. Every buffer left waiting is a frame of delay. Drain the queue to the newest frame
One coax cable carries a camera fifteen metres where a ribbon cable fails at thirty centimetres. Pick the link by bandwidth, distance and ports, then
One operator the accelerator cannot run splits a model in three. Move it to the edge of the graph and you cut the damage about in half.
A camera chip sends a dim, green, mosaic-patterned grid of numbers. Nine small stages turn it into a picture, and three loops keep it steady. Quantise
A night camera frame can break an INT8 model that scored fine all day. Learn to quantise, compile with TensorRT, and prove layer by layer that the bin
A detector’s datasheet says 2.30 ms. The camera to box loop around it takes 12. Flip the switches and watch two thirds of the loop vanish while the ne
A 3-billion-parameter robot policy cannot decode faster than 11 ms per token on Jetson Thor, whatever the 2070 TFLOPS headline says, and a sealed box
A robot arm needs a new command every 20 ms, but a VLA takes 44 to 94 ms to think. Overlap the next chunk’s thinking with the current chunk’s motion,
A matrix multiply can leave its compute units idle two thirds of the time, waiting for data. Overlap the copy with the maths and the same chip, at the
A laptop NPU rated 80 TOPS can run your model slower than a 6 TOPS board. Pick two engines and watch memory, operators and runtimes shrink the headlin
A sensor works for 30 seconds after boot, then dies. No driver fix helps; one line in the device tree does. Match a node to a driver, feed it resource
Acknowledge a level-triggered interrupt and a storm that pins one CPU stops. Leave it unacknowledged and the kernel disables the line after 99,900 unh
On Wi-Fi you do not own, one 150 ms stall can make a video sender cut its rate by a third. A bit-rate floor and a separate control flow keep the robot
A control frame that is 20 microseconds late for its slot waits almost a whole 1 ms cycle. Time-aware shaping, LaunchTime and PTP clocks keep it on ti
A robot that loses its Wi-Fi can find its own root cause, fail over to cellular and keep reporting, where a monitoring alert can only page a human at
A control packet can wait 40 ms for no reason a faster link would fix. Follow one packet from the network card to your code, and learn the knob at eve
INT8/INT4 quantization, pruning, GPTQ/AWQ, profiling, post-training vs QAT, compression pipelines.
Depthwise separable convs, MobileNet, EfficientNet, NAS, hardware co-design, mobile deployment.
KV cache, Flash/MQA/GQA attention, continuous batching, speculative decoding, TP/PP parallelism.
The complete inference stack: tokenization, prefill/decode, GPU hardware, metrics, batching, FlashAttention, speculative decoding, quantization, parallelism, production serving.
Stanford CS 229s Fall 2023. Hardware-aware algorithm design, transformer efficiency, FlashAttention, sparsity & quantization, finetuning, parallelism, efficient architectures, cluster scheduling.
CPU vs GPU, memory hierarchy, arithmetic intensity, roofline model, tiling, operator fusion.
Training FLOPs, backward pass costs, memory analysis, prefill vs decode, KV cache, speculative decoding.
Attention taxonomy, SRAM vs HBM, tiled computation, online softmax derivation, FlashAttention-2.
Pruning (structured/unstructured), INT8/INT4, PTQ, QAT, SmoothQuant, knowledge distillation.
Zero/few-shot, CoT, instruction tuning, RLHF pipeline, reward modeling, Constitutional AI, LoRA.
SFT loss, REINFORCE derivation, PPO clipped objective, reward modeling, the full RLHF loop.
Data parallelism, AllReduce, tensor parallelism, pipeline parallelism, ZeRO stages, 3D parallelism.
State space models, discretization, HiPPO, S4, Mamba selective SSMs, convolution-recurrence duality.
Job queues, FIFO/SJF, GPU cluster analysis, Gavel heterogeneity-aware scheduling, placement, fairness.
Memory layout, strides, views vs copies, broadcasting, dtypes, GPU transfer — the byte-level foundation.
Computation graphs, chain rule, backward pass, gradient accumulation, custom functions — build micrograd.
Forward → loss → backward → step. Optimizers, dataloaders, schedulers — train a network live in-browser.
Parameter registration, hooks, containers, the __call__ protocol, JIT — what happens inside model(x).
Build a full training pipeline by hand — raw tensors to MNIST classifier — then show torch.nn does the same thing.
Gaussian, Student-t, Laplace, Beta, Gamma, Exponential, Weibull, Chi-Squared, Von Mises + 5 more.
Bernoulli, Categorical, Binomial, Poisson, Geometric, Hypergeometric, Multinomial + 2 more.
MVN, Dirichlet, Wishart, Gaussian Process, Dirichlet Process, Von Mises-Fisher + 4 more.
GMM, Particle, Horseshoe, Spike-and-Slab, Gumbel, Kumaraswamy + 4 more.
Softmax/Gibbs, SO(3)/SE(3), Normalizing Flows, Copulas, Hawkes, Diffusion + 6 more.
The quals-level layer above the filtering core — estimation-theoretic bounds, smoothing, adaptation, multiple models, and multi-platform fusion. Grows with the Fusion and Estimation path.
How much can any estimator possibly know? The score, Fisher information, and the hard floor under every covariance.
Run the filter forward, then sweep belief backward — RTS, fixed-lag, and two-filter smoothing for hindsight-optimal estimates.
When Q and R are wrong the filter lies. Innovation tests, covariance matching, fading memory, and square-root numerics.
One motion model is never enough. Run a bank of filters, mix them by mode probability, and catch the maneuver.
Fusing estimates across platforms without double counting: information form, track-to-track, federated filters, consensus.
Discrete chains tick on a clock; real systems jump whenever they like. The generator matrix, exponential clocks racing to jump, the transition function, equilibrium, and Gillespie simulation — built from zero.
A hidden state that drifts in continuous time, watched only at scattered moments — the gap between observations becomes part of the math. Forward-backward with the matrix exponential, smoothing, and continuous-time EM.
Estimation by a cloud of weighted guesses — for multimodal, nonlinear beliefs the Kalman filter can’t represent. Predict, weight, resample; Monte Carlo Localization; the curse of dimensionality.
The modern SLAM back-end: optimize the whole trajectory + map at once as a sparse least-squares problem. Smoothing vs filtering, variables & factors, Gauss-Newton, the loop closure that snaps a drifted map straight, and bundle adjustment.
One bad measurement wrecks least squares. The two great cures: down-weight outliers (M-estimators, Huber, IRLS) and vote them out (RANSAC). Influence functions, breakdown points, and the robust kernels behind every SLAM back-end and SfM pipeline.
The mother of all filters — recursive belief update from first principles.
Track a moving object through noise — the most elegant algorithm in engineering.
When the world is nonlinear — linearize with Jacobians.
Beyond linearization — sigma points capture nonlinearity directly.
Sequences with hidden causes — Forward, Viterbi, Baum-Welch.
Prior × likelihood = posterior. The foundation of all inference.
Variables with dependencies — DAGs, d-separation, message passing.
Frames, rotations, transforms, Jacobians, IK, noise, feedback and least squares, all on one robot arm.
2R/6R robot arms, geometric subproblems, 3D IK solvers, singularities, workspace — heavy 3D & 2D sims.
The chicken-and-egg problem — EKF-SLAM, particle filters, graph-based.
IMU + camera fusion — preintegration, MSCKF, tightly-coupled.
Deep features, neural implicit maps, Gaussian splatting SLAM.
Learned inertial models, transformer odometry, foundation models.
Homework as a forge: implement BC/MSE and watch it collapse a bimodal expert into the wall, then flow matching and DAgger fix it — on a live Flappy Bird you build yourself.
One Bellman recursion, three realizations: tabular Q-learning on a gridworld where one number flips the optimal goal, then PPO, then a stabilized off-policy actor-critic — build every function yourself.
Offline RL that stitches suboptimal trajectories to the goal: build AWAC's advantage-weighted actor-critic and IQL's expectile value regression yourself — every function, no out-of-distribution blow-ups.
Every symbol explained, every step derived. From REINFORCE to off-policy IS to KL constraints → PPO.
Learn to estimate what’s good vs bad. MC, bootstrapping, N-step returns, PPO, SAC — the complete guide.
The practical algorithms. Clipping, GAE, replay buffers, Q-functions — from theory to real robots.
Train policies without environment interaction. AWR, AWAC, IQL — data stitching, expectile regression, and implicit policy improvement.
Where do rewards come from? Goal classifiers, adversarial training, human preferences, Bradley-Terry, RLHF, and Constitutional AI.
No policy needed. Bellman optimality, target networks, double Q-learning, N-step returns — value-based RL.
Behavioral cloning, expressive policies, diffusion policies, compounding errors, DAgger — learning from demos.
Every derivation, every proof. MDPs → Policy Gradients → TRPO → PPO → SAC → DQN → Offline RL → DPO.
Learn a simulator of the world, then practice inside it. Dyna, MBPO, MPC, CEM, value-augmented planning, AlphaGo as MBRL.
One policy, many tasks. Task conditioning, goal-conditioned rewards, HER — turning failures into free training data.
Complete midterm prep: every algorithm, every equation, 36+ practice questions, interactive exam simulator, cheat sheet.
Noam Brown’s approach: search, self-play, and RL for superhuman reasoning in language models.
The post-training frontier: reward models, PPO alignment, direct preference optimization, and beyond.
Learning to learn new tasks from a handful of episodes. Black-box architectures, exploration strategies, task inference as POMDP.
Decompose long-horizon tasks into subtask hierarchies. HL/LL policies, goal representations, DAgger for hierarchy, HIRO, skill discovery.
Crossing the reality gap: domain randomization, privileged teacher–student adaptation, real2sim residuals & actuator nets, learning from human data, and the Sim2Real 1.0→4.0 map.
Pushing a vision-language-action model past the 80% imitation plateau with RL: offline-RL-as-supervised-learning, diffusion steering, and small edit policies. When the model is too big, too weird, too expensive for textbook RL.
The capstone: deep RL as a unified toolbox, the four data settings, the seven open frontiers (no reward, prior knowledge, world models, scaling, safety, errors, evaluation) — and how to actually pick problems, front-load risk, and do research.
Why PPO and TRPO may reuse old samples: the performance difference identity, the drift bound, KL penalties and the natural gradient.
What theory can promise: the policy-evaluation inverse, projected contraction, concentration, the simulation lemma, fitted Q error.
Latent policies, the ELBO and its gap, the reparameterised gradient, VAEs inside RL, and diffusion as a chain of latents.
Optimality as evidence: backward messages are soft value iteration, the policy is e to the advantage, and SAC falls out.
Recover the reward, not the actions: MaxEnt IRL gradients, importance weights, IRL as a GAN, and why GAIL is the same thing.
Pretrain on the log, then practise: why fine-tuning dips, RLPD half-and-half batches, flow actors, and model-based penalties.
Where the policy will be, as a map: the SR and its Bellman backup, successor features, GPI transfer and C-learning.
Explore with no reward: coverage and control in bits, DIAYN skills, goal-conditioned policies and Skew-Fit goal proposals.
When observations are not states: random memoryless policies, biased critics, models that lie, and giving the agent a history.
Plan under every model: epistemic vs aleatoric doubt, ensembles, pathwise gradients that explode, short rollouts, latent models.
Practise imitation with action chunks: why an MSE chunk policy averages into the wall, and how a flow policy samples whole chunks.
Practise REINFORCE end to end: reward-to-go, baselines, GAE in one backward pass, advantage normalisation and tuning.
Practise DQN and SAC: replay, target copies, the done mask, double Q, the reparameterised actor and auto-temperature.
Practise RL on token sequences: log-probs and masks, the KL estimate, group advantages, GRPO against GR-REINFORCE, reward hacks.
Practise offline RL: SAC+BC and its weight, the IQL expectile critic and actor, flow policies and FQL one-step distillation.
Four eras of NLP: rule-based translation, hand-built AI, statistical methods, neural revolution. Understanding vs pattern matching.
One-hot limitations, distributional hypothesis, Word2Vec (CBOW & Skip-gram), GloVe, negative sampling, word analogies, embedding bias.
Neurons, activations, forward pass, loss functions, chain rule, backprop algorithm, gradient descent playground, practical tips.
N-grams, neural LMs, recurrent networks, BPTT, vanishing gradients, LSTM & GRU, live text generation, attention preview.
Self-attention, scaled dot-product, multi-head attention, positional encoding, encoder-decoder, build a Transformer piece by piece.
Debugging, hyperparameter tuning, regularization, training diagnostics dashboard, evaluation & error analysis.
BERT vs GPT paradigms, masked LM, autoregressive LM, data pipelines, scaling laws, Chinchilla, Llama 3 architecture.
SFT, reward modeling, PPO with KL constraint, DPO, alignment data, evaluation, safety guardrails.
In-context learning, prompt engineering, chain-of-thought, lottery tickets, adapters, LoRA, PEFT playground.
Retrieval-augmented generation, dense retrieval, ReAct reasoning loops, Toolformer, agent simulator.
MMLU, HELM, LLM-as-judge, benchmark explorer dashboard, data contamination, metric saturation.
Chain-of-thought, self-consistency, zero-shot CoT, process rewards, DeepSeek-R1, GRPO & DAPO.
Process reward models, best-of-N, speculative decoding, RoPE, context extension, test-time compute scaling.
BPE, WordPiece, SentencePiece, multilingual fertility, XLM-R cross-lingual transfer, tokenizer explorer.
Linear probes, attention visualization, sparse autoencoders, agentic interpretability, concept discovery.
Bias, toxicity, misinformation, privacy, environmental cost, governance & policy.
Vision encoders, early/late fusion, Chameleon, Transfusion, scaling mixed-modal, retrieval-augmented multimodal.
When LoRA fails, regularization in PEFT, merging adapters, QLoRA, DoRA, future of adaptation.
Reasoning, grounding, efficiency, safety, multimodal frontier, interactive research map.
Parity-aware BPE tokenizer fairness, the Gini coefficient, and Chameleon’s kernel ridge leverage scores for domain-mixing pretraining data.
E5-Mistral turns a decoder-only LLM into a state-of-the-art embedder: last-token pooling, LoRA, synthetic contrastive data, and the MMTEB benchmark.
DeepSeek-V2’s Multi-head Latent Attention compresses the KV cache via low-rank projection; NV-Embed adapts it into a bidirectional embedding backbone.
Sparsely-gated Mixture-of-Experts: noisy top-k routing and load-balancing loss, and how DeepSeekMoE and OLMoE turn conditional compute into embeddings.
BIRD casts LLM chain-of-thought as abduction plus deduction over a Bayesian network, turning free-text guesses into calibrated probabilities.
Direct Preference Optimization replaces the RLHF reward model with a closed-form Bradley-Terry loss; Paprika trains agents to explore out of curiosity.
Agent Workflow Memory induces reusable routines from past trajectories; the OpenHands SDK shows how sandboxing, delegation, and event loops compose a harness.
StreamingLLM explains why keeping a handful of initial attention-sink tokens lets a rolling KV cache stream infinite context without retraining.
TransMLA converts a GQA checkpoint into Multi-Head Latent Attention after the fact; DeepSeek-V3.2’s lightning indexer then makes 128k-token attention sparse.
GRPO strips the value network out of PPO for group-relative advantages; DAPO fixes its clip-higher, dynamic sampling, and length bias to reproduce R1-Zero.
Optimas derives exactly when tuning a retriever, reranker, generator, and verifier locally also improves the compound system’s global reward.
Code World Model trains on Python execution traces instead of text alone, learning to simulate program state rather than just predict the next token.
Absolute Zero trains a proposer and solver via pure self-play, grading itself with a code executor instead of any human-written question.
SPICE grounds self-play in real corpus documents; Self-Play SWE-RL grounds it in bug injection and repair on real, breakable codebases.
Compute-optimal test-time scaling spends inference compute where question difficulty says it will pay off, via process reward models and search.
Mode collapse measures how twenty-five different chatbots converge on the same handful of answers across 26,000 real user questions.
Attention is secretly a fast weight programmer reprogramming its own weights one token at a time; DeltaNet’s delta rule fixes its capacity limit.
Diffusion-LM and LLaDA throw away left-to-right generation for iterative denoising, trading the KV cache for parallel, any-order token refinement.
Safety Head Importance Score locates and ablates the attention heads carrying refusal; insecure code finetuning shows misalignment emerging without intent.
Sparse autoencoders decompose the residual stream into a sparser basis where each direction means one thing; crosscoders span every layer and model at once.
Expected calibration error and active task disambiguation teach a model when to trust its own answer and when to ask a clarifying question instead of guessing.
Chinchilla’s compute-optimal law meets precision-aware scaling: quantizing weights and activations adds its own effective-parameter tax to the loss.
The research skills behind frontier post-training: synthetic data, environments, graders, ablations, agentic RL, audio and vision.
Seed tasks, evolved instructions, rejection sampling, execution checks, dedup and mixtures: the data factory behind agentic post-training.
LLM judges as instruments: biases, kappa and alpha, ambiguous ground truth, calibrated escalation and over-optimization.
The reset, step and reward contract, task generators, state verifiers and difficulty curves for tool-use and long-horizon agents.
Seed variance, paired tests, power and minimum detectable effect, small-scale proxies and the write-up a colleague trusts.
SWE-bench to SWE-smith: repo sandboxes, test rewards, flaky tests, contamination and the shortcuts graders must catch.
Reward hacking, over-optimization, entropy collapse, GRPO length bias and spurious rewards: an investigation playbook.
Async rollouts, staleness versus throughput, partial rollouts and the retry, quarantine or drop choice for every failure.
Label errors, contamination checks, saturation, agreement between benchmarks and an audit report template.
Simulated users, dual control, world-state grading, pass^k and cross-harness generalization for agentic evals.
From user feedback to eval to data to training: usage mining, targeted evals, Arena ratings, personalization and sycophancy.
VAD, segmentation, diarization, pseudo-labels, CTC forced alignment and quality filtering for speech training data.
Audio token rates, full-duplex design, speech LM scaling laws, interleaving with text and time to first audio.
Filtering and balancing image-text data, DataComp, and building vision benchmarks that text alone cannot answer.
Follow-along of MIT MMAI (Spring 2026, Paul Liang): every lecture walked slide by slide, plus every assigned paper as its own lesson.
Scramble five items and the right model gives the same answer. A plain model must see all 120 orderings to learn that. The wiring you choose decides h
Doctors read scans, notes, charts and vital signs together. A fusion model does the same: it joins every source into one patient vector, then explains
A language model that only reads text can learn to see by training one small adapter while its own weights stay frozen. Switch the adapter on and watc
A model can learn to reason from a reward alone, with no worked examples. Choose how the answers are checked, press Train, and watch the probabilities
A hospital model can score a patient well and still say nothing a doctor can check. xHAIM summarises each chart, lifts pneumonia AUC from 76.3 to 96.7
A web agent can read a page as text, as a screenshot, or as a screenshot with numbered marks. Pick one: text finishes 7.25% of tasks, marks 16.37%, pe
A hospital has two heart valves and one patient. A prescriptive model picks the valve with the lower chance of a pacemaker. Add scans and reports, and
Words alone say “wow, great.” A face alone says “annoyed.” Together they say sarcasm, a meaning neither one holds. That gap is what multimodal AI is b
Five challenges sort every multimodal system: representation, translation, alignment, fusion and co-learning. Pick any of 12 tasks and see which of th
A multimodal task is a recipe: choose the signals that go in and the thing that comes out. Build one yourself and see which real dataset from the lect
Most failed AI projects fail before the model: in the data, then in the loss curve. Learn the order to look, and the one fix each symptom points to.
Two signals can say more together than apart. A sum of them cannot see it. A product can. Slide the pairing and watch four fusion rules score the same
Kosmos-2 teaches a language model to answer with places as well as words. It writes a box as two tokens from a grid of 1,024 location tokens, learned
Apple tested every choice in a seeing language model. Bigger pictures won: 224 to 336 pixels added about 3 points. A new connector between eye and bra
Teach two encoders to put a picture and its caption in the same place. After 40 training steps all four images find their own caption, and that one pu
Two views of a scene can teach a model the right thing or the wrong thing. Share too much and it learns noise. Share too little and it loses the task.
A transformer built around the symmetries of 3D space reaches about half the test loss of a plain transformer at every compute budget tested, from 10¹
Type a sentence and a model hands back a picture. One recipe writes the picture as a row of tokens, one at a time. The other starts from noise and cle
A generative model turns pure noise into data by walking along a learned velocity field. One big step gives a blurry average. Thirty-two small steps g
A noisy sensor can learn from a clean one that will not be there at test time. Train with both, deploy with one, and watch the lone sensor get better.
Picture a city at rush hour and ask which district needs more buses. The answer hides in four kinds of record: numbers, a network, pictures and words.
An AI told bus drivers when to hold at the terminal. Where drivers followed it, the longest waits fell 40%. Drag how many follow, and watch the buses
An agent that never changes repeats its mistakes. An agent that keeps what worked gets better. On the lecture’s GPU speed task, four agents sharing no
A sensor board sniffs a jar of cumin and a model names it. A wearable puffs a drop of chemical at your face and the air feels cool. Pick a sense and w
One survey sorts all of multimodal machine learning into 3 principles and 6 challenges with 19 subchallenges. Pick a challenge and see what it asks an
A good description makes a hard problem easy. Two rings of dots cannot be split by one straight cut, until you describe each dot by its distance from
Reorder a graph’s nodes and a plain network changes its answer, though the graph is the same. A layer built from the graph’s symmetry does not. This p
A set has no order, so a model for sets must give the same answer in every order. Deep Sets proves that adding up a code for each item, then reading t
Two inputs can tell you the same thing, different things, or something only the two of them tell you together. This paper measures all three in bits,
Picture a web page with a jam recipe and two photos. A normal model spends the same weights on every word and every picture piece. MoMa gives each kin
A vision-language model like CLIP can match a photo to its caption, yet it often cannot tell “the horse is eating the grass” from “the grass is eating
Two witnesses study a robbery alone. Both saw the car, but only one saw the thief’s face. Their notes can match on the car and never on the face. Two
A 70 billion parameter model trained on 1.4 trillion tokens beat Gopher, four times its size, for the same compute. Slide the model size and find the
Train a model on 757 tasks written as plain instructions and it can follow a new instruction it never saw. The 11B version beats 175B InstructGPT by 9
In a toy memory, 40 chatter tokens bury a stored fact (0.14 times the clutter). A gate that chooses what to forget keeps it at 1.5 times. This paper s
Alignment teaches a model what people prefer. This paper asks which people. Step through training and watch US English gain far more than Indian or Ni
A reviewer frowns two seconds before the word that explains the frown. Crossmodal attention lets each word go and find that frown, so nobody lines up
Hide three quarters of a photo, show the encoder only the rest, and let a small decoder repaint the gaps. That one trick trains a vision model about 3
Bolting a vision encoder onto a language model is not better than training one transformer on images and text from scratch. Across 457 trained models,
A frozen multimodal model can steer an image painter. Hand it a few learnable queries, and the painter draws what the model worked out, not just the w
LLaMA-Adapter teaches a frozen 7B language model to follow instructions by training only 1.2 million new numbers, and a gate that starts at zero keeps
Cobra swaps the transformer inside a vision-language model for Mamba, which keeps a fixed-size memory. It writes 256 tokens in 1.54 s where MobileVLM
Ask for a picture of the animal that made a sound. ModaVerse trains 40 million parameters in one stage and lets the language model write plain orders
Spider answers one request with text, an image, audio and a video together, because its language model writes a separate signal prompt for every decod
You photograph a receipt and ask a model for the total. Can it read the small print? One recipe, SPHINX-X, trains four model sizes, from 1.1B to 8×7B
InternVL 1.5 cuts a big page into 448 pixel tiles, so an open 26 billion parameter model can read small print. Cut the page below and watch the words
NExT-GPT lets one language model take in and answer with any mix of text, image, video and audio, while training only 1% of its weights. Pick a reques
A model that hears and sees often learns only to hear. AMSS mutes part of the loud sense’s learning, and lifts Kinetics-Sound accuracy from 64.55% to
Train small models on the pieces, then multiply their probabilities. The product can draw combinations that no model ever saw, and it needs far less d
Meta’s Movie Gen writes a 16 second HD video from one sentence. A plain 30 billion parameter transformer starts from pure noise and walks to a clip in
A 256 by 256 colour picture is 196,608 numbers. Its latent code is 4,096. Teach the flow to draw the small code, and every one of its 89 steps writes
A language model that writes a whole answer at once: start fully masked, fix the surest words first, and match LLaMA3 8B on many tests.
Flow Matching trains a network to name the velocity that carries random noise to real data, by regressing on one straight line at a time. No simulatio
A model that turns a sentence into a human motion. It learns to predict the clean motion, not the velocity, so the figure stops shivering: jitter 39.5
Give MusFlow a photo, a story or a plain caption and it composes a short music clip. Each input is mapped into the sound space of CLAP, and flow match
Steer a frozen flow-matching model toward any condition with no retraining: find the diffusion score hidden inside its velocity, then borrow posterior
Diffusion and flow matching look like two recipes. Under Generator Matching they are one family, and one dial mixes them. Run the sampler below and tu
A web agent that clicks its first idea fails most tasks. Let it search, look ahead and back up, and GPT-4o rises from 18.9% to 26.4% on VisualWebArena
Nobody can write down a score for “carry the cup well”, but anyone can pick the better of two attempts. RLHF turns thousands of such picks into a rewa
MEM1 trains an agent to rewrite one short memory every turn. On a 16-question research task it peaks at 1,040 tokens of context, where a 14B model tha
A 7-billion-parameter model writes each robot move as seven words from a 256-word vocabulary, and beats a 55-billion-parameter rival by 20 points of s
A web agent reads a page, then clicks. With only text it finishes 7 of 100 visual tasks. With a screenshot and numbered boxes it finishes 16. A person
OS-Atlas teaches an open model to find the right spot on a screenshot. Its 7B grounding model hits 82.47% of ScreenSpot targets, where the Qwen2-VL-7B
A real web page has over 1,000 elements, far too many to show a model. Mind2Web filters them first, then asks for one choice. Run 100 steps and see wh
One model reads ten kinds of input, from words to robot forces. It measures which inputs behave alike and shares weights only there: 71.0 average accu
Three small language models debate a maths problem. Left alone, they get worse each turn. Trained together on a verifier’s score, they climb from 0.67
LLaVA-Med turns a general picture-chatting model into a biomedical assistant in under 15 hours on eight GPUs, by letting text-only GPT-4 write the les
DreamLLM writes a document and draws its own pictures, deciding where each one goes. It trains by asking a frozen Stable Diffusion to grade its notes,
A language model that can see and act: PaLM-E feeds camera images and robot states into a language model as if they were words, and plans robot tasks
Four coding agents that share one notebook cut a GPU kernel from 1,363 to 1,103 cycles. Fixed evolutionary search stalled at 2,740. Press Run, then sw
It is eleven at night and a student is stuck on an integral. A tutor that draws. It writes code to make an exact diagram, gives one hint at a time, an
Describe a smell in words. A language model returns 12 numbers, and a neck-worn device sprays them as pulses. People then picked the generated smell i
Six cheap gas sensors, 50 foods, 68 hours of readings. Teach a Transformer to watch how the signal changes, and it names the food 63.3% of the time. G
A glove can feel a push that a camera never sees. OpenTouch records touch, video and hand pose together, then teaches a model to match them: 7.15% rig
Safety training teaches a model what words mean, not what letters look like. Draw one word as ASCII art and the average attack success on five models
A rule you write by hand stays frozen. A rule learned from examples gets better as the examples grow. Move the slider and watch both try to catch the
A model that sees a picture and its caption together may score no better than two models that each see one. EMAP removes the combining and measures: o
A picture and its caption can agree, clash or say nothing to each other. Three simple questions sort any pair into one of eight classes, and a network
A laser melts metal powder layer by layer, and each sensor sees only part of what can go wrong. Switch sensors on and watch the confusion shrink as th
A good design starts by asking what the thing must do, never how it will do it. Split the two, and a faucet, a hospital and an AI agent all get easier
Eighteen plain rules for building AI that people can use, distilled from over 150 ideas and tested by 49 designers on 20 products. Switch them on and
Follow-along of MIT MAS.S62 AI4AI (Fall 2026): context, harness, model and environment evolution, lecture by lecture as the course proceeds.
An agent that gets better by itself: it tries a task, reads the result, and keeps the changes that help. Run three agents on one task and see when tha
An AI can improve by editing the text it reads, with no weight updates. Rewrite its notes every round and they collapse. Add small deltas and they kee
A model alone is an engine. The harness is the rest of the car: memory, tools, skills and loops. Let the model rewrite more of that harness, and the s
Ask a model to fix a bug and it writes a neat paragraph, then nothing runs. An agent is a model plus a harness, the code that runs its loop. Same mode
A model learns from a copy, a score or a critic. Let it write one wrong answer. The copy never sees the mistake, the score hides it, and the teacher m
A model can write its own practice questions and grade its own answers, but only if the questions sit at the edge of what it can solve. Choose the que
Show a model its past attempts with their scores and it proposes a better one. On the same budget of tries that beats blind guessing, and the same loo
A language model reads a few examples, writes many candidate instructions, scores each one, and keeps the best. This search matched human prompts on 2
TextGrad treats a pipeline of language model calls like a neural network: it backpropagates written criticism instead of numbers. It lifted GPT-4o on
One line, dspy.ChainOfThought(“question -> answer”), scores 50.0% on math word problems with GPT-3.5. Compile that same line and it scores 80.3%, with
Cut words out of a clean prompt and its accuracy can rise: a pruned prompt of 10 words scores 86.7% on MultiArith, where the 18-word original scored 8
An agent that writes down its own lessons beats one that starts blank every time. On 187 shopping tasks it solves 49.7%, where no memory solves 39.0%.
A language model can search for the best instruction by reading a scoreboard of its own past tries. Within six steps it found “Let’s do the math!”, wh
Blind expert reviewers scored an AI agent’s research ideas as more novel than ideas from 49 NLP experts: 5.64 against 4.84. They scored them slightly
An AI system that dreams up an idea, codes it, runs the tests, writes the paper and reviews it. Give it 32 experiment nodes, not 4, and its paper scor
Treat a huge prompt as a variable the model reads with code, not as input it must swallow. On 6M to 11M tokens, GPT-5 alone scores 0.0 and an RLM arou
An agent’s context fills up. Let the model edit its own context as a file and it scored 59.4% on BrowseComp-Plus at a 32K limit, 11.4% above the best
An agent plays Pokémon Emerald with only a screen and buttons. Every few steps it rewrites its own prompt, skills and memory. On Gemini 3 Pro that cut
Change the model that writes an agent’s harness updates and the agent’s score hardly moves. Change the agent and it moves by tens of points. Try the e
The same model solves about the same share of coding tasks in two different agent harnesses, yet one bill is double the other: $1.33 a task against $0
A model that tries one path gets stuck at the first broken API. ToolLLM lets it back up and try another, and a 7B model learns to call 16,464 real API
Give an AI agent a folder of expert instructions and it passes more tests: 33.9% of 87 tasks without the folder, 50.5% with it. Let the agent write it
Voyager is a GPT-4 agent that plays Minecraft without end. It sets its own goals, writes code to reach them, and keeps every working program. It reach
A model with no answer key can still grade itself: let it vote, call the winning answer correct, and reward the rest. On AIME 2024 that took Qwen2.5-M
A language model writes answers, scores them itself, and trains on its own scores. Three models in a row, M1 to M3, took Llama 2 70B from a 9.94% win
A model tuned on only 1,000 reasoning examples gets smarter when you stop it from stopping: append “Wait” and AIME24 accuracy climbs from 50.0% to 56.
Reinforcement learning lifts a model's first-try accuracy from 9.9% to 42.5%. Yet give the untrained model enough tries, and it solves more problems t
Standard GRPO divides each answer’s learning signal by its length, so long wrong answers are pushed down less. Dr. GRPO deletes that division and reac
Teach a model one new skill and it can forget the rest. This paper finds that reinforcement learning forgets less than supervised fine-tuning, because
One model reads the answer, then grades its own attempt token by token. On AIME25 (a set of hard maths contest problems), a 1.7B model rises from 36.7
A model writes code, fails a test, and gets back one number. SDPO lets the same model read the error message and blame the exact tokens that broke the
A model can think longer in two ways: copy expert traces, or learn from a verifier’s yes or no. As the token budget grows, copying falls behind by abo
A model writes its own hard questions, answers them, and learns from its own vote. This lifts Qwen3-4B-Base from 42.57 to 49.93 on math, with no human
A model writes its own coding problems, solves them, and learns only from programs a formal checker proved correct. That lifted pass@1 on Dafny2Verus
From the spike to the brain foundation model: neuroscience, signal processing for neural data, decoding and estimation, and the landmark BCI papers, each its own lesson.
One neuron says almost nothing in 200 ms. Forty-eight of them point at a reach within about eight degrees. Move the reach, resample the spikes, and wa
Every brain sensor listens from a different distance. Move from one neuron out to the scalp and watch two nearby signals merge into one: the same brai
Record every sample from 3,072 channels and you push 571 megabits per second out of a head that can barely warm up. Recording hardware is the craft of
Record a few dozen neurons during a reach and every trace looks different. Treat the whole population as one point, and that point turns in a clean lo
A raw electrode trace hides its spikes under hum and slow waves. A filter carves them out, but a filter that peeks at the future cannot run inside a l
One electrode hears 30,000 numbers a second. A threshold set from the median of the noise, not its spread, turns them into the spike events a brain-co
One electrode hears several neurons at once. Sorting cuts out each spike, turns its shape into a point, and groups the points. Add noise and the group
Picture a chip the size of a coin under your skull, listening to 1,024 wires in the brain. Recorded raw, they make 491.5 Mbit/s, which is 491.5 millio
A raw EEG is mostly not brain. Blinks, jaw muscle, mains hum and a loose electrode bury the signal. Switch each fix on and watch the leftover junk fal
Your brain makes a small bump when the letter you want flashes. Add up enough flashes and the bump beats the noise, so a computer can read the one let
Every scalp electrode hears the whole brain at once. A spatial filter is a weighted sum of electrodes that listens to one part. Common spatial pattern
Spike counts from a few dozen neurons become a moving hand through one line of linear algebra. See when that line works, when it fails, and what ridge
A cursor must glide, but spike counts jitter. The Kalman decoder fuses a physics prior with 70 ms of spikes and turns noisy counts into a smooth path.
The brain talks in voltage blips, each about one millisecond wide. Drive a model neuron with current, watch four gates open and close, and see why eve
A neural spike is about 100 microvolts, riding on millivolts of mains hum and a drifting electrode offset. Five parts lift it out. Each one can also d
A neuron’s spike train is a coin flipped every few milliseconds. A stimulus filter and a spike-history filter set how the coin is weighted.
Train a network to do a job, never show it a single neuron, and real neurons can still agree with it. The better the network does the job, the better
Imagining a movement does not add a signal to the EEG. It removes one: the 8 to 13 Hz mu rhythm over the matching side of the head drops, and a decode
A man who cannot move his hand imagines writing letters, and a recurrent network turns his motor cortex activity into text at 90 characters per minute
One trial of spikes is a noisy dice roll. LFADS learns the hidden dynamics behind it and returns smooth rates, so a decoder reads hand velocity at R²
Brain signals drift, so a decoder tuned on Monday misreads the brain by Friday. Drag the days and watch a cursor lose its way, then fix it by realigni
One typing session, three honest scores. A brain interface that picks the right target 9 times in 10 is not a 9 out of 10 interface in bits. Count the
A man with ALS cannot speak clearly. Electrodes in his cortex, a neural network and a language model turn his attempted words into text at 62 words pe
Every brain-computer interface company sells a place to listen: outside the skull, on the brain, or inside it. The closer the sensor sits, the cleaner
One recorded trial gives you thousands of spikes and one hidden signal behind them. Factor analysis and Gaussian-process smoothing recover that signal
Four teams improved one speech-BCI decoder. The winner cut word errors from 9.7% to 5.77% by merging ten decoders with a fine-tuned language model.
Your silent inner voice leaves the same word pattern in motor cortex as spoken effort, only smaller. A decoder can read it on purpose and stay silent
A decoder that scores well on recorded data can still steer a cursor badly. Retrain it on what the user meant, and in this toy a 31% hit rate becomes
POYO turns every spike into a token, so one model learns from many monkeys and sessions, then reads a brand-new session by learning only one small vec
A brain implant only helps if the cursor answers fast. A public Neuralink description aims for 15 ms from neural stream to device control. Pick a bin
A man with ALS tries to speak. Four electrode arrays, a transformer and a vocoder turn his brain activity into his voice every 10 milliseconds, so he
A transformer reads 70 bins of spikes at once and recovers the hidden firing rates as well as a recurrent network does, in 3.9 ms instead of 26 ms.
A decoder pretrained on 2,000 hours of other people’s brain spikes learns your brain from far less of your data, until you hand it 1.5 hours of your o
Fit one linear map from a language model’s features to a brain recording, and the model predicts the brain almost as well as the noise allows. What do
One model, pretrained on seven brains, redraws what a new person saw after just one hour of their scan. Forty hours of data bought a better picture, b
A Parkinson’s implant that stimulates only when a brain rhythm rises, and a spine implant that turns the thought of stepping into steps. Both close th
A volunteer types a memorized sentence on a hidden keyboard while a MEG scanner listens. The decoder writes it back with 32% character error on averag
Every 20 ms, an electrode array reports how many spikes each motor neuron fired, and a decoder must say how the hand is moving. MINT asks which stored
Show a mouse a movie type it never trained on, and a model fitted to other mice can still guess each neuron. Wang et al. (2025): 0.65 accuracy in unde
An fMRI decoder writes English from a brain scan: a language model proposes words, a brain model scores each guess against the scan, and a beam keeps
Change one line of software in a brain implant and a chain wakes up: hazards, safeguards, tests. In our toy system a label fix reruns 1 of 13 tests. A
EEG caps differ in channels and length. LaBraM cuts every recording into 1-second patches, learns to name hidden ones, and lifts TUEV balanced accurac
A random network of 300 chaotic units can learn to draw a clean wave in a few seconds. Train only its readout, with recursive least squares, and the w
CEBRA draws a map of brain activity by pulling together moments that share a behavior and pushing the rest apart. It read a rat’s position to within 5
One place to learn firmware from a blank chip to shipping products: datasheets, startup, interrupts, DMA, RTOS, bootloaders, debugging, testing, security, Zephyr and Rust, then tracks for audio, camera, lidar, IMUs, BLE wearables, motors, edge ML, time sync and biopotential front ends.
An accelerometer sends two bytes, 0xFF then 0x9C. Read them in one order and the board sits still at −0.006 g. Read them in the other and it claims −1
A sensor on a wire is only a promise until a driver keeps it. Write one IMU driver three ways and watch the CPU load fall from 11.8% to 3.3% when DMA
A chip has one pool of RAM, and the stack, the heap and your globals share it. Learn to measure each, fix what fragments, and make an overflow stop lo
Anyone who can plug in a cable can run their own code on your device, unless the chip checks who signed it. Break a toy lock three ways, then switch o
One devicetree line moves a blinking LED to another pin. One Kconfig line decides whether a driver exists at all. See how Zephyr turns small text file
Two interrupts and one UART. In C the build passes and your message sometimes arrives torn. In Rust the build refuses until you say who owns the port.
One bit in a sensor’s control register wakes the chip, and the datasheet says which. Flip the bits, send the write, and read the chip’s reply to every
Take a blank STM32 chip to a battery sensor node that must pass six tests: fast response, one year on a cell, a power cut, an update, injected faults
Cut the power while a setting is saved. Overwrite it in place and the chip wakes up holding a number you never saved. A journal or copy-on-write keeps
A chip crashed and its screen is dark. Read two registers and one map, and the crash names the function that failed and the kind of mistake. Then we a
One new line of C made a gripper’s firmware 40 KB bigger, and it stopped fitting. The linker’s map file shows which line did it, and a few flags and c
One bug in a sensor driver costs about 10 minutes per try on a board and about 2 seconds on your laptop. Pick where you test, then count the tries.
Your board is powered and your code compiles, yet the LED stays dark. Four hidden gates stand between main() and the light: a clock, a pin mode, a mux
A hardware timer ticks at an exact rate. Let it start the ADC and every sample lands on the tick. Read the ADC inside an interrupt, and busy code shif
A codec turns a microphone’s tiny voltage into numbers, and numbers back into sound. Set its gain, its power-up order or its control bytes wrong, and
A firmware update rewrites the only program that runs the device. Cut the power at the wrong moment and you have a brick. Pick a design, pull the plug
Two crystals never run at exactly the same speed. At 50 ppm on a 48 kHz stream, the buffer gains 2.4 samples every second, and sooner or later you hea
Light travels 15 cm in one nanosecond, so a sensor that times an echo can measure distance. Three ways to time it: a pulse, a phase, and a chirp.
A PC and a USB speaker run on two separate clocks. One tiny feedback number keeps the buffer between them from running dry, and Bluetooth LE Audio sol
A camera sensor stays silent until power, clock and reset arrive in the right order. Bring up a virtual sensor, fix its init table, and make the test
Anti-noise must reach your ear at the same moment as the noise. Slide the loop delay and hear silence turn into a louder hum.
A camera sensor boots only if the driver powers it in the right order. Fill in a driver, bind it with a device tree, and watch one stream start after
A single-photon lidar pixel catches at most one photon per laser shot, so it builds a histogram of thousands of shots. Sunlight arrives first and hide
A 640 by 480 RGB565 frame is 614,400 bytes, almost five times the SRAM an STM32F407 lets the DMA reach. Plan where every frame lives before the first
A webcam works on any computer because its firmware answers a few fixed questions in a fixed format. Pick a picture size and rate, and see which USB b
A spinning lidar finds a peak in a photon histogram, packs it into 12 bytes, and sends 254 million bits every second. Turn the knobs and see where the
Three wires carry sound between two chips. Move the data one clock tick, flip a channel, or pick the wrong slot width, and one ear turns to noise. Fix
A microcontroller hears 16,000 samples a second all day. Every 20 ms it turns the newest ones into 40 numbers, scores them, and sleeps. One threshold
A spinning lidar fires its laser about twenty thousand times a second. Each shot that is late by a few microseconds slides a dot sideways by centimetr
A 168 MHz Cortex-M4 has 3,500 cycles to spend on every audio sample at 48 kHz. Learn to spend them well: Q15 maths, filters, the FFT, SIMD and the bud
A wearable takes one reading a second. You walk out of Bluetooth range for 20 seconds. Without a plan, 20 readings vanish or arrive twice.
A spinning lidar needs 100 ms to draw one picture, so every point has its own moment. Give a point the wrong time and a moving robot sees its wall ben
In our model, a cover glass in front of a time-of-flight sensor makes a wall look 18 mm away. Learn the driver, the crosstalk calibration and the offs
An IMU never reports motion. It reports motion plus an offset plus noise, clipped to a range and sampled at a rate. Leave one still and its datasheet
Watching a motion sensor with the main processor drains a battery in hours. A tiny always-on chip does the same watching on tens of microamps and wake
A CR2032 holds 240 mAh and a year has 8,760 hours. Divide them and the design is one number: 27 microamps, averaged over every sleep, burst and sag.
A neural network is a recipe that needs memory at every step. See how a chip with 320 KB of SRAM runs one: the arena, the planner and the kernels that
A tiny chip must add up 144 small products to get one output of a neural network. Keep the running total in a 32-bit register and it matches the float
A motion sensor keeps its own clock and its own queue. Read the queue late and samples vanish. Stamp it carelessly and every sample lies about when it
A cheap motion sensor is wrong in four ways, and its compass can point nearly 50 degrees off. Turn it through every direction, fit the errors away, an
Two Bluetooth devices must agree on a secret while a stranger listens, and maybe stands in between. One check, six digits on two screens, separates a
A brain signal is about 20 millionths of a volt, and the mains wiring around you can push in far more. Switch the bias drive on and watch the hum fall
A Bluetooth LE ring sleeps almost all the time. It wakes for a few milliseconds each interval to swap packets with a phone. Change the interval, radio
Three chips, three crystals, one recording. Left alone, the always-on chip drifts 186 ms in ten minutes. A two-way exchange and a Kalman filter hold a
A keyword spotter needs 1.49 million multiply-adds per answer. In our model of one chip family, a Cortex-M4 takes 7.8 ms, a Cortex-M55 1.9 ms, and an
A model that runs is not a model that ships. Pick a chip, set an energy budget, and see which of five models still fit in flash, fit in RAM, and stay
A brushless motor has no brushes to switch its coils. Your firmware does it, six times per turn of the magnetic field, using three Hall sensors. Get t
Cut the cable to a robot joint and a naive joint keeps turning at 0.8 rad/s into its hard stop. A guarded joint notices in 30 ms and brakes itself. Bu
Two recorders each started at zero and each kept their own clock. After an hour, a flash and a click let you line them up to under 1 millisecond, and
Wi-Fi, Bluetooth LE and Thread share one slice of 2.4 GHz air. Their frames collide, unless something decides who talks next. Here you play that somet
An EEG chip hands your microcontroller 250 frames every second. Lose one and nothing complains: the recording just gets 4 ms shorter. A counter byte i
Mains hum is hundreds of times bigger than the brain signal you want. Run one recording through three filters and watch each trade delay against ringi
A radio drops packets and never tells you. Number every packet, stamp every sample from a clock you trust, and you can rebuild the exact timeline of a
A watchdog kicked from a timer interrupt never catches a hung program, because the interrupt keeps running. Move the kick to a health check and the ha
A microphone sends 16,000 numbers a second, but a model wants 1,960. Cut the stream into windows, boil each to 40 numbers, and keep the delay and the
Three ways to turn gyro and accelerometer readings into a tilt cost from 113 to 894 cycles a sample on a Cortex-M4F. Run all three on one motion, then
Three tasks share one chip’s memory, and nothing stops one stack from growing into the next. Size each stack from its measured high-water mark plus an
A chip tells time by counting the ticks of a crystal, and no two crystals tick at the same speed. Two clocks that are each 20 parts per million off dr
An edge on a pin happens once. A stamp taken inside an interrupt arrives 0.1 to 40 µs late, and the delay changes every time. Let the timer hardware r
A robot joint must land where you tell it. An encoder reports the angle, and three nested loops turn that report into motor current. Switch the tuning
A Cortex-M chip starts a handler in 12 cycles, yet a low-priority handler still waits for every handler above it. Fire three interrupts and watch the
Nine clock pulses free an I2C bus that a reset could not, because the peripheral is still waiting to finish its byte. Break the bus below, then fix it
A tiny classifier on a chip reads brain signals four times a second and guesses what you intend. Learn how it decodes, and the safety rules that stop
A coin cell lasts 98 days at 100 µA of sleep current and 2.7 years at 10 µA. A faster CPU cannot fix that: below 1% duty, the sleep floor is the whole
A logic analyser said the bus was clean, yet the bytes were wrong. A scope showed ringing the analyser could not see. Root cause is a short chain of m
Two CAN nodes start talking in the same microsecond, and the lower identifier wins without losing a single bit. EtherCAT gets the same order the other
A torque command becomes one number, the current that makes torque, and a small loop runs 20,000 times a second to hold it. Run that loop too slowly a
Follow-along of Jonathan Pillow's NEU 560 (Spring 2024): linear algebra to GLMs, latent variable models, VAEs and dynamical systems for neural data.
Many neurons fire together, yet the activity of a population often moves along a few directions. PCA finds those directions and gives each one a numbe
Sixteen neurons over 48 moments make a table of 768 numbers. Any such table is a rotation, a stretch and another rotation, and its few strongest stret
A neuron in your eye does not report light. It reports a difference, centre minus surround, as a rate of spikes. Move both lights and count the spikes
Two neurons fire together, so their activity has one joint shape. Squash it to forget a neuron, slice it to learn from one, and flip the slice with Ba
A neuron fires 0 to 7 spikes in a window. How many yes/no questions does it take to learn the count? A quiet neuron needs fewer than a bursty one.
Motor cortex can plan a reach while the muscles stay still, because the muscles read only one direction of the population. Least squares and PCA find
One knob sets how strongly a model neuron fires. Turn it until the recorded spikes look least surprising. That setting is the maximum likelihood estim
You recorded one neuron and fitted a filter of 100 weights to it. Pull the weights toward a prior and the filter calms down. Pull too hard and it goes
Spikes from two neurons arrive mixed together with no labels. Expectation-Maximization guesses the labels, refits both neurons, and repeats until the
A neuron fires more as contrast rises. Choose the line that predicts its spike counts with the smallest total squared miss, and see how one formula fi
A neuron’s spikes are a code. Information theory counts the yes/no questions that code can answer, and shows why the best neurons use every spike coun
A neuron’s filter hides inside noisy data, and plain least squares returns a scribble. Add a prior, a belief about the filter’s shape, and the same da
You fit one neuron and get one number for its weight. The Laplace approximation adds the error bar: a bell curve whose width comes from how sharply yo
Forty neurons fire with no stimulus, yet they rise and fall together. One hidden signal drives them all, and with 40 neurons we recover it almost exac
Sort the spikes of two hidden neurons without being told which is which. Expectation maximization guesses the labels, refits the model, and repeats. E
Six neurons share one hidden driver, and one of them is loud and noisy. Factor analysis still finds the driver’s loadings where PCA chases the noise.
A spike count can never be negative, yet a straight line happily predicts minus two spikes. Swap the line for an exponential and the noise for a Poiss
A neuron model with 100 knobs and only 100 noisy samples fits the noise, not the neuron. A small penalty on the knobs pulls the estimate back toward t
A neuron fires 4 spikes on one trial and 12 on the next, and a hidden drive you cannot record explains part of the gap. To score a model of it, you mu
A variational autoencoder fits a hidden-variable model of neural activity by climbing a lower bound it can compute, because the exact likelihood is ou
A neuron drifts between a quiet state and a busy state, and you only see its spikes. A hidden Markov model reads the state back out of the counts.
A few hidden numbers drive hundreds of noisy neurons. A linear dynamical system tracks them, and the Kalman filter turns jittery readings into an esti
Hundreds of neurons fire, yet a few hidden numbers steer them all. Give a model only the spikes and it can recover that hidden path.
The deterministic layer around learned perception on robots and vehicles: tracking, real-time C++, safety architecture, runtime monitors and active safety.
The deterministic C++ layer around a learned detector: what it catches, how to build it, how to lead it.
Sensors report dots, not names. Gate, assign and manage tracks so crossing objects keep their identities.
The average hides the cycle that misses. Pools, cache layout, bounded work and lock-free queues.
Watchdogs, message checks, voting and degraded modes decide whether a fault is noticed in time.
Small, simple checks catch the ghost, the teleport and the frozen frame before the planner acts.
Brake in time for the stopped car, and do not brake for a plastic bag.
Training one model across scattered clusters: the prerequisites in plain words, then every paper the Core Automation post links, each its own lesson.
A GPU cluster is one machine made of thousands of chips. Its speed depends on how fast they talk, and its size depends on power. Stretch it across an
Many GPUs train one model by agreeing on one set of numbers after every step. That agreement is the all-reduce, and its price depends on the wire.
Spread a model over a thousand machines and they spend their time talking. This paper sums their results up a tree, and trained on 16 billion ad examp
Training a big model means cutting the work across many GPUs. Each way of cutting sends different bytes over the wire, and only a few still work when
A 32B model weighs 64 GB. A 25 Gbps link moves 3.1 GB a second. So one sync takes 20 seconds while the GPUs wait. Drag the link and the sync gap to se
Train one model on far-apart clusters by syncing every 500 steps, not every step. DiLoCo sends 500 times fewer bytes and still matches fully synchrono
Scattered GPU clusters sit idle because a training job wants one big block. A 32B model trained across two clusters 9,000 miles apart, on a 25 Gbps li
Four hikers start on the same foggy slope, and each follows a different rule for the next step. Drag the step slider and watch: at the same pace setti
Workers that sync rarely save waiting but lose accuracy. SlowMo adds one momentum step per sync and wins it back: Local SGD on ImageNet goes from 69.9
Thousands of phones each train a little, and the server averages the results. Give the server Adam’s memory and it takes smarter steps, so rare words
A 32-billion-number update needs 20.5 seconds to cross a 25 Gbps link. Squeeze it 100 times and it needs 0.2 seconds. Try four ways to squeeze, and se
Training machines swap gradients every step, and on a slow wire the swap takes longer than the work. This paper sends 0.1% of each gradient and keeps
Eight copies of a model learn apart. Then the copies average in pairs, one partner per round. After three rounds all eight agree, with no all-reduce a
A network too big for one machine can still learn if hundreds of copies share one set of weights and never wait for each other. Each copy is called a
Many machines can train one model with no boss. Each machine swaps updates only with its two neighbours, so no single link jams. Turn the network down
Lock-step training moves at the speed of its slowest machine. Make one of eight workers 4 times slower and the machines sit idle 65% of the time. Deci
Eight PCs on slow home links must train one network together. In a chain, every batch waits for every link, and one dead PC stops all. Learning@home g
Shampoo steers each training step with two small matrices instead of one huge one. In the paper it halves the steps a Transformer needs, and fewer ste
Let each worker train alone for H steps, then average the weights. See how much talking you save, and where the average starts to drift away from the
Train k copies of a model on k machines with no talking until the end, then average them. The average misses the best answer by about 1 over the squar
Four workers train one model but may talk only every τ steps. The standard method, DOWNPOUR, blows up once τ reaches 16. Elastic Averaging SGD ties ea
Phones hold the data and uploads are slow. FedAvg lets each phone train for many steps before the server averages. On MNIST it cut 626 rounds to 18.
Let eight workers train alone and meet only now and then. Stich proves they still learn as fast as workers that meet at every step, with far fewer mee
Sixteen GPUs can share work without talking after every step. Train in big batches first, then let each GPU walk alone: 93% test accuracy with about h
Train one model across devices that each hold different data and accuracy collapses. Add momentum on the server and the worst case climbs from 30.1% t
PowerSGD sends two thin matrices instead of every gradient number. On ResNet-18, rank 2 sends 136 times less data per epoch, runs 23% faster per batch
Sending every gradient to every GPU costs 636.9 MB per step at 300M parameters. DeMo sends 7.49 MB, 85 times less, by moving only the fast part of eac
A swarm of unreliable computers must agree on one average. Moshpit All-Reduce splits the swarm into small groups that reshuffle every round, so a cras
Strangers with mixed GPUs and home internet can train one model together. DeDLOC splits the averaging work by bandwidth, and finished sahajBERT in 8 d
A rigid training pipeline stops when one worker dies. SWARM sends every batch through whichever workers are alive, and trained a 1B-parameter model on
Two far-apart clusters share a slow wire, so training one model across them stalls. DiLoCo lets each cluster train alone for 500 steps, then meet. On
Four GPU machines on two continents, joined by slow internet, trained one 1.1 billion parameter model. They shared their work every 500 steps instead
Four sites, thin internet links, one 7B model. Averaging local training instead of syncing every step cuts a 7B run from 147.9 to 95.6 hours at 10 Gbp
Streaming DiLoCo keeps GPUs busy on a link about 100 times slower than usual: it sends the model in slices, trains while they travel, and shrinks each
Eight GPUs must tell each other 62 million numbers after every step, and the cable between them is slow. QSGD rounds each number up or down at random,
A training step normally ships every GPU’s whole gradient to every other GPU: 74.4 GB here. DisTrO reports 86.8 MB, the same loss, and a step a home i
A 72-billion-parameter model learned from about 1.1 trillion tokens while strangers’ machines joined and left over ordinary internet links, and its GP
Strangers trained an 8.6-billion-parameter model on home internet links. Agora shrinks the signal between model pieces 100 times and shares only 5% of
Ten billion parameters, one trillion tokens, GPUs on three continents joined by ordinary internet: INTELLECT-1 spent 83% of its time computing by talk
Two buildings full of chips share one thin cable, and together they train one AI model. Ordinary training makes the chips wait on that cable. Pick how
A 107-billion-parameter model trained over a plain 1 Gbps link ran 357 times faster than the textbook method. Pick a model and a training time. See ho
SparseLoCo trains a language model while sending only 3% of each update, at 2 bits per value, and still reaches a lower loss (2.70) than DiLoCo, which
At 1.2 million chips, one chip fails about every 26 seconds, and even an elastic job keeps only 58% of its time. Split into eight learners, it keeps 8
On slow home internet, GPUs sit idle while they wait to average their work. Factored Gossip DiLoCo hides most of that wait: at 200 Mbps it keeps GPUs
Three supercomputers on two continents train one model while sites crash and join. No data block is lost or trained twice. The price is perplexity 34.
Penn's Fall 2026 course on world models (Jiatao Gu), followed lecture by lecture as the slides are posted.
What a world model is: observation, state, transition, memory, prediction, simulation and planning. CIS 6280 Lecture 1.
Trajectory distributions, latent state, partial observability and one-step versus rollout objectives. CIS 6280 Lecture 2.
Environment interfaces, reset and step, physics inside a simulator, and collecting rollouts. CIS 6280 Lecture 3.
Transition and emission models, filtering, smoothing, observability and belief states. CIS 6280 Lecture 4.
Probes, reconstruction, masked and autoregressive prediction, and contrastive learning. CIS 6280 Lecture 5.
Joint-embedding prediction, target encoders, collapse and how to stop it, action-conditioned JEPA. CIS 6280 Lecture 6.
VAEs, the ELBO, posterior collapse, GANs, explicit versus implicit generation. CIS 6280 Lecture 7.
Autoregressive latent prediction, action conditioning, compounding error and World Models (2018). CIS 6280 Lecture 8.
MPC, CEM, MPPI and gradient planning with learned dynamics, and their limits. CIS 6280 Lecture 9.
LeWM, RSSM and CEM revisited, then policy and value learning in imagination with Dreamer. CIS 6280 Lecture 10.
Dreamer's imagined experience, VAE to diffusion, DDIM and flow matching. CIS 6280 Lecture 11.
Guidance, U-Net and DiT video backbones, latent versus pixel, text and image to video. CIS 6280 Lecture 12.
Action-conditioned video, diffusion forcing, flow maps, consistency models and MeanFlow. CIS 6280 Lecture 13.
One-step generation with DMD and MeanFlow, and steerable video rollouts with Self Forcing. CIS 6280 Lecture 14.
A flow bends hard data into a plain Gaussian and back, so it scores every outcome exactly and samples new ones with the same map. Drag a point and rea
A 3D world can be stored as points, a mesh, a grid of cells or soft blobs. Each one answers different questions, and adding time adds a new one: which
Pointmaps, VGGT, NeRF and splats, spatial generation, 4D tracking and PointWorld: learning to predict a moving 3D world.
A policy that only reacts walks into the wall. A planner that imagines 20 steps ahead walks around it, while its model is right.
Pixels and words straight to actions, or actions plus the future frames: what each design can learn from, and what it costs to run.
A language model can predict the next state of a room. Chain twelve actions and one early slip spreads; a state tracker stops it.
Stanford's Fall 2026 course, followed lecture by lecture as it proceeds.
Agent loops, ReAct, memory, tool use, RAG, MCP, compound AI systems, reliability, evaluation and safety: CS 329Z Lecture 1.
Automated AI research, execution grounding, evolutionary search, GRPO, mode collapse, Stanford CS 329Z
Next-token sampling, attention, training stages, inference, test-time scaling and context engineering: CS 329Z Lecture 2.
Grounding, embeddings and vector search, chunking, hybrid search, rerankers and ColBERT late interaction: CS 329Z Lecture 3.
The REPL, function calling, MCP, designing good tools, code sandboxes, errors and retries: CS 329Z Lecture 4.
DSPy signatures, modules and optimizers, LangGraph and LlamaIndex, and how much framework a project needs: CS 329Z Lecture 5.
Workflows versus agents, the five workflow patterns, ReAct, Reflexion, CodeAct and ReWOO, and context management: CS 329Z Lecture 6.
Python as the action space: 74.4% against 52.4% for JSON on multi-tool tasks, in fewer turns.
Four kinds of memory, skill libraries, MemGPT tiers, memory streams and when to write, retrieve and forget: CS 329Z Lecture 7.
One blueprint for language agents: four kinds of memory, four kinds of action, one decision loop.
The memory stream, retrieval by recency, importance and relevance, reflection and planning in Smallville.
Single versus multi-agent, orchestrator, swarm and hybrid, handoffs and A2A, and the failure modes: CS 329Z Lecture 8.
Conversable agents and conversation programming: 69.48% on MATH against 55.18% for plain GPT-4.
MAST: 14 failure modes in 3 families from 1,642 multi-agent traces, and what interventions fix.
260 controlled setups: more agents helped one task by 80.8% and hurt another by 70.0%; the task decides.
Prompt and program optimization (MIPROv2, OPRO, TextGrad, GEPA) and weight optimization (SFT, PPO, GRPO): CS 329Z Lecture 9.
Optimize every module's instructions and demos from the end metric alone: 6% to 23.3% on HotPotQA Conditional.
An agent’s score is only as honest as the test that grades it. See one terminal task graded by nine checks, and watch a cheat fool the grader.
An AI agent sits at a blank terminal with a job: rebuild an old program, train a model, break a puzzle. Terminal-Bench 2.0 sets 89 such jobs. The best
An agent learns from two kinds of data: a recorded trajectory it can imitate, and an environment with a checker it can practice against. Run both here
Which tasks and trajectories to keep: broken-task checks, run-to-verify, difficulty filters, LIMA, SWE-smith and validator alignment.
Break working code, keep the breaks that fail a test: 50,137 tasks for $1,360 and a 40.2% SWE-bench Verified agent.
EvalGen: grade a few outputs yourself, keep the LLM checks that agree, and watch your criteria drift as you grade.
One agent, three scores on the same 100 tasks: the four parts of an eval, benchmark design, and how many tasks you need.
A do-nothing agent passes 38% of tau-bench airline tasks. The Agentic Benchmark Checklist catches flaws like this.
A judge model agrees with humans over 80% of the time, and still favors the first and the longer answer. Fix the prompt, then validate it.
GPT-4 agrees with human experts on 85% of decided votes, yet swapping the two answers can flip its verdict.
From under 100 thumbs up or down, generate metrics, retrieve more, and fit one weighted evaluator that tracks human judgment.
A real issue, a real repository, and its own tests as the judge. In the first results the best model resolved 1.96% of 2,294 tasks.
One agent with three tools has three ways to cause harm: accidents, attacks and misuse. No single defense cuts all three.
A model can say a flow of information is wrong, then leak it when it acts with tools. One seed, three levels, one gap.
A search improves the attacker, then the defender, in turn. The leak climbs to 76.0%, then falls to 7.1% by the last round.
A few harmless details narrow a crowd to one person. What the paper measured on an anonymized release, and what a publisher should do.
The 17 problems of Assignment 1, explained part by part, each with exercises on toy data: pipelines, BM25, tools, the loop, compaction, memory.
What a task is, how a verifier lies in both directions, and how to design a task that is hard for the right reason. With exercises.
Why graphs? Node/edge/graph-level tasks. AlphaFold, PinSage, drug interactions, antibiotic discovery.
Encoder-decoder framework, DeepWalk, node2vec (biased walks with p,q), negative sampling, matrix factorization view.
Message passing, computation graphs, GCN (mean aggregation), GNNs generalize CNNs, transformers as GNNs.
Message + aggregation framework. GCN vs GraphSAGE vs GAT. Multi-head attention. Skip connections, over-smoothing.
Feature/structure augmentation, virtual nodes, neighbor sampling, prediction heads, loss functions, dataset splitting.
How powerful are GNNs? WL test, multiset injectivity, why GCN/GraphSAGE fail, GIN achieves maximum expressiveness.
Beyond WL: Laplacian eigenvectors, structural features, position-aware GNNs, anchor sets, higher-order k-WL.
Self-attention on graphs, positional encodings (Laplacian, random walk), Graphormer, GPS hybrid architecture.
Multiple node/edge types. RGCN (relation-specific weights), basis decomposition, HGT, metapaths.
TransE, TransR, DistMult, ComplEx, RotatE. Relation patterns: symmetry, composition, 1-to-N. KG completion.
Bipartite graphs, NGCF, LightGCN, BPR loss, PinSage scalability, cold start, GNN vs LLM.
Databases ARE graphs. Foreign keys as edges, GNNs on relational data, RelBench, vs XGBoost.
Temporal message passing, multi-hop aggregation, Griffin universal encoder, schema-specific vs universal.
Graph foundation models, pre-training, explainability, equivariant GNNs, dynamic graphs, practical tips.
Inductive KG reasoning, ULTRA, cross-schema transfer, foundation models for knowledge graphs.
LLMs as feature encoders, GNNs as structure encoders, joint pipelines, graph-augmented LLMs.
ReAct, Reflexion, graph-grounded agents traversing KGs step by step. Tool use, PPO/DPO optimization, STaRK benchmarks.
GraphRNN two-RNN sequential generation, GCPN RL-guided design, JT-VAE motifs, diffusion on graphs, molecular benchmarks.
Full arc from node embeddings to graph foundation models. Open problems, research frontiers, practical advice for GNN practitioners.
Build a neural-net library from modular layers up to ConvNets: affine/ReLU, softmax, the optimizers, BatchNorm, Dropout, convolution and pooling — every function yourself, with live gradient checks.
RNN and LSTM captioning, multi-head attention, saliency and fooling images, GANs, and the SimCLR contrastive loss — build every function yourself on live instruments.
k-NN, L1/L2 distance, hyperparameter tuning, cross-validation.
Score function Wx+b, hinge loss, cross-entropy, regularization.
MSE, cross-entropy, KL divergence, Huber, contrastive, triplet, InfoNCE — every loss derived from scratch with interactive comparisons.
Gradients, SGD, chain rule, computation graphs, gate patterns.
Neurons, activation functions, layers, representational power.
Data preprocessing, weight init, batch norm, dropout.
Loss curves, learning rates, momentum, Adam, hyperparameter search.
Build a 2-layer net from scratch. Live training visualization.
Convolution, filters, pooling, LeNet to ResNet.
Feature extraction vs fine-tuning, freezing layers.
RNNs, LSTM, BPTT, vanishing gradients, char-level LM.
Perception-action loop, model-based planning, imitation learning, diffusion policies, VLAs & foundation models.
Two arms, a torso and wheels driven by one learned policy: the action vector, chunks, many steps and the data loop.
How a robot fleet logs, labels and curates its own failures; Dyna reports 35 napkins an hour rising to 95.
CLIP, LLaVA, Flamingo, Molmo, SAM — contrastive learning, VLMs, promptable segmentation, model chaining.
Point clouds, meshes, SDFs, PointNet, NeRF, 3D Gaussian Splatting — from representations to neural rendering.
L1/L2, cross-entropy, SGD, momentum, Adam, learning rate schedules, weight initialization.
Computational graphs, chain rule, gate patterns, Jacobians — backprop from first principles.
Convolution operation, stride, padding, pooling, receptive field, depthwise separable convolutions.
Data augmentation, batch norm, dropout, AlexNet → VGG → ResNet → EfficientNet → ConvNeXt.
Vanilla RNN, BPTT, vanishing gradients, LSTM gates, GRU, char-level LM, image captioning.
Bahdanau attention, self-attention, multi-head, transformer blocks, positional encoding, ViT.
FCN, U-Net, R-CNN family, YOLO, Mask R-CNN, GradCAM, adversarial examples.
Naming the whole place, not the parts: Places365, holistic context, CNN→ViT→InternImage, top-1 vs top-5.
Conv locality + attention globality on a phone: MobileViT, FastViT reparameterization, EfficientViT, the latency-accuracy Pareto.
Land-use from orbit: multispectral tiles, NDVI, SatMAE/SpectralGPT foundation models, and the multi-label sigmoid shift.
Indoor scenes with depth: SUN RGB-D, why geometry disambiguates layout, two-stream RGB+depth fusion.
How accuracy scales with params, data, compute: power laws, ViT-G, compute-optimal, the label-noise ceiling.
Vision on a phone: depthwise-separable conv, inverted residuals, SE, compound scaling, hardware-aware NAS.
Kill the flicker: linear-chain CRF, Viterbi, HSMM durations, smoothing frame-level predictions into stable segments.
Two-branch scenes: a holistic CNN fused with an object-relation GNN — the recipe that broke 90% on Indoor67.
Two-stream networks, 3D convolutions, I3D, SlowFast, TSM, video transformers, VideoMAE.
Single-frame to SlowFast to video transformers. Two-stream, 3D conv, skeleton-based, temporal detection.
Brightness constancy, Lucas-Kanade, Horn-Schunck, FlowNet, RAFT. Dense motion estimation from zero.
GPU hardware, data/pipeline/tensor parallelism, FSDP, ring all-reduce, 3D parallelism — training at scale.
Pretext tasks, MAE, InfoNCE, SimCLR, MoCo, CPC, DINO — learning without labels.
Density functions, MLE, autoregressive models, PixelCNN, autoencoders, VAEs — the full ELBO derivation.
GANs, rectified flow, classifier-free guidance, latent diffusion, DiT, text-to-image & video generation.
Research-backed system design lessons. Real architectures, real numbers, real tradeoffs — with interactive Canvas simulations that trace requests, visualize scale, and simulate failures.
How 192 engineers serve 2.5M images/day on 10,000 GPUs — architecture, queue orchestration, GPU inference pipeline, and the TPU-to-GPU migration.
One Postgres box melts at 5,000 QPS. Derive the read wall by hand, then stack replicas, pooling, and caches until it survives 500,000.
A million ad-click writes a second. Derive the fsync ceiling by hand, then close the gap with sharding, batching, and multi-leader writes.
One comment during a knockdown must reach a million browsers in a second. Derive the fan-out, then push it through SSE, WebSockets, and a sharded pub/sub connection tier.
A video upload has ten minutes of transcoding behind a 200ms API. Derive the worker-pool math by hand, then build the queue, retries, and idempotency that make it disappear.
From first token to production fleet — how vLLM, SGLang, and TensorRT-LLM turn a memory-bound GPU into a shared, scheduled, paged production system. Every mechanism derived from worked arithmetic, not vendor slides.
Continuous batching, PagedAttention, RadixAttention, chunked prefill, kernel fusion, disaggregated fleets — one idle GPU turned into 156 users.
GPU utilization lies about full replicas. Derive the real scaling signals, the cold-start bill, and the scale-to-zero break-even, then race two policies against a 50× spike.
What does the AI feature cost, and why? Derive it from GPU-hour price and throughput, rank five cost levers, and price a routing cascade.
The GPU sits idle 90% of decode. Prove rejection sampling keeps output exact, then build Medusa, EAGLE, and lookahead decoding.
Practical distributed systems engineering — networking, consensus, CRDTs, transactions, caching, load balancing, resiliency patterns, observability, and deployment. Interview-grade depth with interactive simulations.
TCP, TLS, flow control, congestion control, QUIC — the networking layer.
DNS, REST APIs, gRPC, idempotency — how services find and talk to each other.
Failure detection, physical/logical/vector clocks, HLC — time in distributed systems.
Raft, state machine replication, consistency models, chain replication.
CRDTs, gossip protocols, Dynamo, CALM theorem, causal consistency.
ACID, isolation levels, 2PC, sagas, outbox pattern.
HTTP caching, reverse proxies, CDN architecture, cache invalidation.
Range/hash partitioning, consistent hashing, blob storage.
DNS, L4, L7 load balancing — distributing traffic across servers.
Replication, NoSQL taxonomy, caching patterns, eviction policies.
Microservices, API gateways, service mesh, control/data planes.
Message queues, pub/sub, Kafka, exactly-once, backpressure.
Cascading failures, redundancy, shuffle sharding, cellular architecture.
Timeouts, retries, circuit breakers, rate limiting, load shedding.
Test pyramid, chaos engineering, CI/CD, canary deploys, rollbacks.
Metrics, SLIs/SLOs, alerting, logs, distributed tracing, dashboards.
Deep interactive lessons from foundational distributed systems papers. Every definition derived, every algorithm implemented, every proof traced.
Chapter-by-chapter deep dive into the classic algorithms textbook. Each chapter is a standalone interactive lesson with interview-grade depth, Canvas simulations, coding drills, and mastery challenges.
Insertion sort, merge sort, algorithm analysis — the foundations of algorithmic thinking.
Big-O, Omega, Theta — the language of algorithm efficiency.
Max subarray, Strassen, Master theorem — breaking problems into pieces.
Binary heaps, heapsort, priority queues — scheduling and selection.
Partition, randomize, conquer — the fastest practical sorting algorithm.
Counting sort, radix sort, bucket sort — breaking the O(n log n) barrier.
Hashing, chaining, open addressing, perfect hashing — O(1) lookup.
Search, insert, delete, traverse — ordered data made fast.
Self-balancing BSTs — guaranteed O(log n) with coloring rules.
Rod cutting, LCS, edit distance, knapsack — the paradigm that dominates interviews.
Activity selection, Huffman, fractional knapsack — locally optimal = globally optimal.
Aggregate, accounting, potential — the true cost of operation sequences.
BFS, DFS, topological sort, SCCs — the foundation of every graph question.
Kruskal, Prim, Union-Find — connecting everything at minimum cost.
Dijkstra, Bellman-Ford, DAG shortest paths — optimal routes through graphs.
Ford-Fulkerson, max-flow min-cut, bipartite matching — optimizing network flow.
Quickselect, median of medians — finding the k-th element in linear time.
Disk-optimized search trees — billions of keys with just 2-3 disk reads.
Amortized O(1) decrease-key — the theoretical champion for graph algorithms.
O(log log u) predecessor queries — when the universe is your friend.
Union-Find — nearly O(1) connected component queries with path compression.
Floyd-Warshall, Johnson's — shortest paths between every pair of vertices.
Fork-join, work/span, parallel merge sort — harnessing multiple cores.
LU decomposition, least squares, Cholesky — the linear algebra engine.
Simplex, duality, LP reductions — the universal optimization framework.
DFT, FFT, convolution — O(n log n) polynomial multiplication.
GCD, modular arithmetic, RSA, primality — the math behind cryptography.
KMP, Rabin-Karp, finite automata — finding patterns in text efficiently.
Convex hull, closest pair, line intersection — algorithms in 2D space.
P vs NP, reductions, SAT, TSP — the limits of efficient computation.
Vertex cover, TSP, set cover — good-enough solutions with guarantees.
Databases, ML, compilers, networking, crypto, graphics — where every CLRS chapter shows up.
Chapter-by-chapter deep dive into Martin Kleppmann's DDIA. Each chapter is a standalone interactive lesson with interview-grade depth, Canvas simulations, design challenges, debug scenarios, and mastery components.
Reliability, scalability, maintainability — the vocabulary of systems design interviews.
SLAs, percentiles, capacity planning, load testing — quantifying system quality.
Relational, document, graph — choosing how to structure and query your data.
B-trees, LSM-trees, column stores — how databases actually store and find your data.
JSON, Protobuf, Avro, schema evolution — how data survives change.
Leader-follower, multi-leader, leaderless — keeping copies consistent across machines.
Hash partitioning, range partitioning, rebalancing — splitting data across machines.
ACID, isolation levels, MVCC, serializability — the guarantees that keep your data correct.
Network faults, clock drift, process pauses — everything that can go wrong, will.
Linearizability, Raft, Paxos — how distributed nodes agree on the truth.
MapReduce, Spark, dataflow engines — processing massive datasets efficiently.
Kafka, Flink, event sourcing, windowing — processing data as it arrives.
Streaming philosophy, bias, privacy, responsibility — the human side of data systems.
Tokenization, FLOP/memory accounting, architecture, MoE, GPUs, parallelism, scaling laws, inference, alignment — derive every number.
70 exercises over the whole course: MACs, pruning, quantization, NAS, distillation, MCU memory, LLMs, diffusion, distributed training.
SE(3), camera projection, features, epipolar geometry, RANSAC, Gauss-Newton, manifold retraction, VIO drift, BoW, robust SLAM.
54 hands-on exercises covering scaling laws, chinchilla, compute-optimal training, loss prediction, data mixing, emergent abilities.
52 exercises across 5 modes: derive, trace, build, design, debug. Parameter counts, attention FLOPs, memory budgets, KV caches, throughput estimation.
Chain rule by hand, gradient shapes, cross-entropy, Adam optimizer, batch norm, learning rate schedules, mixed precision, training diagnostics.
Bayes rule, distributions, MLE, MAP estimation, Kalman filter math, HMM forward/Viterbi, information theory, sensor fusion.
Bellman equations, value iteration, Q-learning updates, policy gradients, advantage estimation, PPO clipping, exploration strategies.
Forward process, noise schedules, DDPM loss, score functions, sampling, classifier-free guidance, latent diffusion, flow matching, ODE/SDE.
Tensor/pipeline/data parallelism, continuous batching, PagedAttention, speculative decoding, quantization, cost optimization.
Rotation matrices, homogeneous transforms, EKF predict/update, SLAM graphs, inverse kinematics, Jacobians, PID control.
Implement softmax, linear layers, attention, layer norm, positional encoding, BPE tokenizer, cross-entropy, Adam, KV cache, sampling.
Asymptotic analysis, recurrences, sorting, hash tables, BSTs, dynamic programming, greedy, graph algorithms, shortest paths, MST.
Multi-dimensional KF, EKF Jacobians, range-bearing updates, UKF sigma points, particle filters, sensor fusion, observability, noise tuning.
EKF-SLAM, landmark observation, data association, loop closure, graph SLAM, visual odometry, RANSAC, factor graphs, occupancy grids.
Graph basics, node embeddings, GCN/SAGE/GAT, over-smoothing, spectral theory, knowledge graphs, link prediction, graph generation.
Word vectors, Word2Vec gradients, dependency parsing, perplexity, attention, subword tokenization, pretraining, PEFT, evaluation metrics.
Discrete signals, DFT by hand, quantization, Lloyd-Max, STFT, wavelets, MFCC pipeline, Bayes classifiers, SVM margins.
Ring AllReduce, ZeRO stages, gradient accumulation, LR scaling, pipeline parallelism, tensor parallelism, checkpointing, mixed precision.
Convolution math, receptive fields, pooling, anchors/IoU, NMS, ResNet, segmentation, stereo vision, homography.
Matrix operations, Gaussian elimination, eigenvalues, SVD, PCA, matrix calculus, least squares, norms, positive definiteness.
Floating point, catastrophic cancellation, condition numbers, iterative methods, Newton's method, gradient descent, integration, sparse matrices.
Entropy, joint/conditional entropy, KL divergence, cross-entropy loss, source coding, channel capacity, rate-distortion, VAE connection.
Convexity, gradient descent, SGD variants, constrained optimization, KKT conditions, duality, proximal operators, convergence rates, Newton's method.
Reward modeling, RLHF objective, PPO for RLHF, DPO loss, CQL, IQL, model-based RL, reward shaping, multi-agent RL.
Mode collapse, flow matching arithmetic, REINFORCE credit assignment, actor-critic n-step returns, Q-learning TD targets, offline RL, IQL expectile loss, goal-conditioned RL.
Bayesian networks, Dirichlet inference, value of information, Bellman backups, kernel smoothing, MCTS/UCB1, policy gradients, POMDPs, alpha vectors.
Quantization (PTQ, QAT, STE), pruning (magnitude, structured, lottery ticket), knowledge distillation, LoRA, mixed precision, compression pipelines.
Deep-dive lessons built around real engineering roles. Classical foundations, modern tools, real papers, interactive sims. Built for interview prep with real depth.
Scope a customer deployment in numbers, map their data, evaluate on their documents, budget cost and latency, roll out in steps.
Choose a model by expected cost, budget the prompt, measure retrieval, put error bars on evals, stack checks, stream, cache and route.
BM25 and vector retrieval, staged ranking, fleet sizing, tail latency, caching, GPU batching, cost per request and A/B launches.
API contracts, retries and idempotency keys, pagination, indexes, caching, rate limits, connection pools, latency tails and SLOs.
Requests in flight, pooled waits with Erlang C, KV cache sizing, decode limits, GPU scheduling, all-reduce cost, autoscaling, error budgets.
Quickstarts and docs that get used, SDK errors, sample apps that keep working, activation and retention, A/B tests and feedback loops.
Sprints of experiments, velocity as a spread, Monte Carlo forecasts, eval noise, flow limits, data lead times and risk burndown.
Testing robot AI: pass rates as ranges, trial counts for A/B, flaky tests, regression gates, sim to real, hardware in the loop.
Camera models, epipolar geometry, SfM, bundle adjustment, SLAM, dense reconstruction, point tracking, DUSt3R/VGGT — the full stack for robotics perception.
GPU architecture, profiling, mixed precision, distributed training, model compression, TensorRT, serving at scale, real-time autonomous driving stacks.
Physics simulation, contact models, MuJoCo/Isaac Sim, kinematics, motion planning, control, sim-to-real, RL, ROS2 — the full robotics stack.
On-vehicle perception inference: latency budgets, the edge roofline, bandwidth, multi-camera BEV, INT8 calibration, fusion and heat.
The confidence chain from simulation to the real robot: scenario coverage, flaky tests, regression gates, log replay, timing, safety metrics.
The agent loop, tool design, step success that compounds, evals for agents, cost and latency budgets, layered guardrails, memory.
AI research infrastructure: compute budgets, scaling laws, memory, parallelism, rooflines, keeping runs alive, MoE, quantization, serving.
The working engineer's robotics stack, from first principles: frames, time, uncertainty, sensors, SLAM, real-time, ROS 2. Every chapter derives it, architects around it, implements it, and debugs it — and every lesson adds a Studio practice room alongside the usual modes.
The frame bugs that eat a week: composition order, quaternion double cover, REP-103 conventions.
Capture time vs receive time — the bug class that only appears once the robot moves fast.
Covariance propagation, the one derivation behind LS/WLS/MAP, and what Huber does to the normal equations.
What every sensor physically lies about — shutter, disparity, LiDAR de-skew, IMU drift laws, RTK — and why fusion works.
The silent multiplier on every metric number: Zhang's constraints, hand-eye, time offset as a state, fault symptoms.
Detection, matching, RANSAC derived from scratch, direct vs feature-based, ICP/NDT, and motion estimation.
Why the field left filters for graphs: sparsity, marginalisation, Schur complement, solvers, IMU preintegration.
Where drift comes from, place recognition, rejecting false loops, what closing a loop actually fixes, and lifelong map reuse.
The layer that turns a pose into a decision: occupancy grids via log-odds, TSDF surfaces, and the handoff to planning.
Why the tail is where robots break: hard vs soft real-time, WCET, and why p99.9 matters more than the mean.
The practical toolkit for building with AI models. Embeddings, retrieval, RAG, agents, evals, safety — everything between "I have a model" and "I have a production app."
What embeddings are, how they encode meaning, distance in high-D space, embedding models, multimodal embeddings.
Cosine, dot product, Euclidean, Jaccard, learned metrics — measuring "how alike" in vector space.
FAISS, HNSW, IVF, product quantization — storing and searching millions of vectors in milliseconds.
The GPU side is already solved. Perplexity found a three times win on the host: CUDA graphs, LazyTensor, scheduling, a Rust gateway.
Fixed, sentence, recursive, semantic, structure-aware — how to split documents for embedding and retrieval.
The full pipeline: chunk → embed → store → retrieve → rerank → generate. Eval, failure modes, advanced patterns.
Images, tables, PDFs in RAG. Vision embeddings, ColPali, document parsing, hybrid retrieval.
USB-C for AI: tools, resources, prompts. Build MCP servers and clients. The standard for AI integrations.
System prompts, few-shot, chain-of-thought, structured output, testing — systematic, not vibes-based.
LLM-as-judge, human eval, automated metrics, regression detection, A/B testing for AI systems.
Content filtering, jailbreak prevention, PII detection, output validation, red teaming, defense in depth.
When to fine-tune vs prompt, data prep, LoRA/QLoRA, eval pipelines, deployment, cost analysis.
Function calling, ReAct, multi-step agents, state management, error recovery, guardrails for agents.
Teach Claude a workflow in a folder of Markdown: SKILL.md, progressive disclosure, triggering descriptions, the five patterns. Build one live.
Single agents to multi-agent orchestration: the workflow-vs-agent divide, sequential/parallel/evaluator patterns, hierarchical vs swarm, and an interactive chooser for picking the right one.
The adoption playbook behind the systems you build — coalition, governance, pilot selection, metrics, scaling, and a readiness calculator. Engineer's lens, real case studies (L'Oréal, Shopify, Lotte).
Most music AI assumes a piano. How DDSP serves Thai 7-tone tunings, Carnatic meend, and the Guqin — model vs dataset bias, and when not to ship a model at all.
The four-stage startup lifecycle — Idea, MVP, Launch, Scale — read line by line. Interactive exit criteria, the Sean Ellis test, TAM/SAM/SOM and CAC/LTV calculators, the data-flywheel moat, and when to reach for Chat vs Cowork vs Code.
The fourth layer above the harness: stop prompting the agent, design the system that prompts it. The five moves of one turn, the six parts, the generator/evaluator "say no", the five failure modes, and the four silent costs.
The system around the model — three design patterns, a coding agent's tool belt, and why the deployment layer rivals raw intelligence.
From prompts to optimizer code: ACE playbooks, MCE bi-level skill evolution, Meta-Harness Pareto search, ADAS, and AFlow's MCTS.
STOP's improver improving itself, AlphaEvolve, the Darwin Gödel Machine, SIA — and seven bottlenecks on the road to RSI.
Block's hive-mind workspace: humans and agent swarms as keypair equals on one signed event log — relay pipeline, ACP harness, workflows, hash-chain audit.
You took the top model on the leaderboard and search got worse. What MTEB and BEIR measure, every retrieval metric computed by hand, and the small honest eval that catches the regression before you ship.
The geometry your vector database actually lives in: the thin shell, the near-orthogonal crowd, and the hub documents that match everything.
CLIP is sold as one shared space, but images and captions land on two islands that never touch. Where the gap comes from, and what to do.
Two dimensions with the right curvature hold a tree that two hundred flat dimensions cannot. Curvature becomes a design knob, not a default.
Semantic search that never leaves the phone: distilled encoders, int8 plus matryoshka indexes, and a latency budget you compute by hand.
Swap the embedding model and four million stored vectors become coordinates in a space that no longer exists. The migration runbook.
Two hundred questions asked a million ways, billed every time. Answer from embedding space, but only when you can prove the match.
Storing vectors instead of text is not anonymisation. Inversion, membership inference, index poisoning, and defenses ranked honestly.
Typed decisions under uncertainty: inspect Choice, Score, and Noul outputs, separate probabilities from confidence, test calibration, and build a cost-aware routing harness.
AI that keeps learning after deployment: what changes, what teaches it, what it costs, and a road map through seven lessons.
A small model is fixing your code. It learned by copying thousands of perfect runs. Then the test tool returns an error it has never seen. Press Run 2
Train an agent where it will run: inside its real harness, one sandbox per attempt, with generation and training on separate GPUs so neither waits. Ma
Agents that see a screen and act on it: grounding a click, the agent loop, the environments and sandbox fleets they train in, trajectory data, agentic RL and prompt injection. The Gleams behind the Computer Use & Multimodal Agents path.
How a model turns a screenshot into a click: patches, coordinate formats, set of marks, and why small targets on big screens get missed.
The screenshot in, click out loop: action schemas, observations, context over long tasks, and why small step errors compound.
The worlds agents are tested in: seeded state, resets, task configs and checkers, from OSWorld and WebArena to AndroidWorld.
Hundreds of isolated desktops at once: containers, gVisor, microVMs, snapshot resets, leak checks and fleet math.
Where agent training data comes from: human demos, tutorial replay, explore then label, success filters and dedup.
RL for GUI agents: group advantages over long episodes, curricula, async rollouts with stale policies, and a flat reward curve read.
When the page gives the orders: attack success rates, why prompt defences fail, and confirmation and isolation designs.
Record yourself teaching on a whiteboard with optional camera. Export as MP4. The ultimate Feynman test: if you can teach it, you understand it.