Blog

Paper breakdowns, frontier updates and engineering notes on large language models.

Direct Preference Optimization: Your Language Model is Secretly a Reward Model

DPO replaces 'reward model plus PPO' with one classification-style loss: given only preference pairs and a frozen reference model, it optimizes the same KL-constrained objective as RLHF. This post checks the derivation, runs a toy world for the frontier and training dynamics, and covers limits.

Paper notes NeurIPS 2023

QLoRA: Fine-Tuning a 65B Model on One 48 GB GPU by Quantizing the Base to 4 Bits

QLoRA (Dettmers et al., 2023) quantizes a frozen base model to 4-bit NormalFloat and trains LoRA adapters on top, so a 65B model fine-tunes on one 48 GB GPU. This breakdown explains NF4, double quantization and paged optimizers, rebuilds NF4 in code and tests 4-bit data types on Qwen2.5.

Paper notes arXiv 2023

Diffusion Policy: Generating Robot Action Sequences by Conditional Denoising

Diffusion Policy (Chi et al., 2023) writes a robot's visuomotor policy as an observation-conditioned diffusion model: it denoises a sequence of future actions from noise, executes the first few, then replans. This post rechecks the 46.9% headline and tests multimodality and horizons on a toy task.

Paper notes RSS 2023 2023

LLaMA: Train Smaller Models for Longer, on Public Data Only

LLaMA is a family of 7B to 65B foundation models from Meta (2023), trained on public data only. The paper reports LLaMA-13B beating GPT-3 175B on most benchmarks. This post covers the inference-budget argument, data, architecture, training cost and evidence, and which claims need a discount.

Paper notes arXiv 2023

DreamerV3: One Set of Hyperparameters for 150+ Tasks with a World-Model Agent

DreamerV3 (Hafner et al., 2023) learns a world model and trains an actor and critic on imagined latent trajectories. With symlog, twohot regression, free bits and percentile return normalization, one hyperparameter set beats or matches specialists on 150+ tasks and finds a Minecraft diamond.

Paper notes arXiv 2023

Fast Inference from Transformers via Speculative Decoding

In speculative decoding a small draft model guesses several tokens, the large model verifies them in one parallel pass, and a sampling rule keeps the output distribution unchanged. This post reads the paper's formulas, recomputes its Tables 1 and 4, and explains the 1.4x to 3.4x measured on T5-XXL.

Paper notes ICML 2023