ReAct treats thought as an action: a model alternates thoughts, tool calls and observations in one trace, from a few examples and without parameter updates. This post covers the paper's four tasks, rechecks its tables, and compares four prompts with Qwen3-4B on a fictional wiki.
Flow Matching (Lipman et al., 2022) turns generative modeling into regression: pick a probability path from noise to data, regress its vector field, and never solve an ODE in training. Gaussian paths include diffusion, and OT paths are another choice. Code compares both on a 2D checkerboard.
FlashAttention computes exact attention block by block in the GPU's on-chip SRAM, so the N×N score matrix never goes to GPU memory. HBM accesses fall from Θ(Nd+N²) to Θ(N²d²/M); BERT trains about 15% faster, GPT-2 3.0 to 3.5 times faster than HuggingFace. A breakdown of the paper.
For a fixed training budget, how big should the model be and how many tokens should it see? DeepMind's 400-model study says parameters and data should grow together (about 20 tokens per parameter); the 70B Chinchilla then beat the 280B Gopher at equal compute. Numbers re-checked here.
OpenAI's 2022 InstructGPT paper: supervised fine-tuning on about 13,000 human demonstrations, a reward model trained on human rankings of about 33,000 prompts, then PPO. A 1.3B InstructGPT beat the 175B GPT-3 in labeler evaluations. This breakdown checks the data, loss and results, and their limits.
Chain-of-thought (CoT) prompting writes the intermediate steps into few-shot exemplars so a model reasons before it answers; with eight exemplars PaLM 540B rises from 17.9% to 56.9% on GSM8K. It rechecks the paper's tables and compares direct answers, filler dots and CoT on Qwen2.5 models.
LoRA (Hu et al., 2021) freezes the pretrained weights and trains only a low-rank update ΔW=BA: about 10,000 times fewer trainable parameters on GPT-3 175B, a 350GB checkpoint shrinking to 35MB, no extra latency after merging, and quality on par with full fine-tuning. Method, experiments, caveats.
Decision Transformer (Chen et al., 2021) recasts offline RL as conditional sequence modeling: a causal GPT trained on return, state and action tokens, prompted with a target return. We recompute its tables, rerun its shortest-path toy, and show where return conditioning fails.
RoFormer's rotary position embedding (RoPE) rotates queries and keys by position, so their dot product depends only on relative position, with no extra parameters. It later became standard in open LLMs such as LLaMA. We check its formulas, its mixed small-scale results and its properties in code.
Paper notes arXiv (later Neurocomputing 2024) 2021
CLIP trains an image encoder and a text encoder with contrastive learning on 400 million image-text pairs, so a classifier can be defined by a sentence. This post walks through the method, rechecks the paper's numbers and runs zero-shot, few-shot and typographic-attack tests on CIFAR-10.
The Switch Transformer simplifies mixture-of-experts routing to top-1, balances load with an expert capacity and an auxiliary loss, and pre-trains up to 7x faster than T5 at equal FLOPs per token. This page recomputes the paper's numbers and simulates capacity overflow.
ViT drops convolutions: it cuts an image into fixed-size patches, projects each into a token, adds position embeddings and feeds a standard Transformer encoder. It trails ResNets on small data but, pre-trained on JFT-300M, reaches 88.55% on ImageNet with about a quarter of BiT-L's compute.