
Shopify's Sidekick team details two fixes for streaming chat UX.
Why it mattersStreaming LLM output re-renders half-formed Markdown as raw text and stalls behind multi-hop tool calls; selective buffering plus a multiplexed event stream fixes both without waiting for the full response.

Evals, RAG, fine-tuning, caching, guardrails, defensive UX, and collecting user feedback.
Why it mattersA comprehensive field guide to the seven practical patterns behind production LLM systems—covering how to structure evals, RAG, caching, and guardrails—so you can build reliable AI products instead of stitching together demos.

A survey of LLM-powered autonomous agents built around planning, memory and tool use, drawing on AutoGPT, GPT-Engineer and BabyAGI as early proofs of concept.
Why it mattersA clear, canonical breakdown of the core components of LLM agents — planning with subgoal decomposition and reflection, short/long-term memory via vector stores, and tool use.

Derives preference training as a simple classification loss on the policy itself, removing the reward model and the reinforcement-learning loop from RLHF.
Why it mattersIt stripped most of the machinery out of preference training: no separate reward model, no RL loop, just a classification loss that reaches comparable quality and is stable enough to run without a research team.

Backpropagates through a frozen 4-bit quantized model into LoRA adapters, putting 65B-parameter finetuning on a single GPU without measurable quality loss.
Why it mattersIt collapsed the hardware bar for fine-tuning a large model from a cluster to one GPU, by backpropagating through 4-bit frozen weights into low-rank adapters.

Interpolates between multi-head and multi-query attention using grouped key-value heads, recovering multi-query speed while keeping most of multi-head quality.
Why it mattersThe compromise nearly every current model ships: grouped key-value heads give you multi-query's small cache without the quality drop, and the paper shows you can convert an existing multi-head checkpoint rather than retrain from scratch.

What's the big deal, intuition on query-key-value vectors, multiple heads, multiple layers, and more.
Why it mattersA clear, intuition-first walkthrough of query-key-value attention, multi-head, and multi-layer mechanics — useful if you want to actually understand why the Transformer works rather than just memorize the diagram.

An argument that chat became the default LLM interface by inertia rather than fit.
Why it mattersChallenges the reflexive choice of a chat box as the LLM interface, arguing better interaction patterns exist — a design decision that shapes every AI product before a single model call is made.

9 patterns including HITL, hard mining, reframing, cascade, data flywheel, business rules layer, and more.
Why it mattersA compact catalog of production ML design patterns — like cascade models, hard negative mining, data flywheels, and business-rules layers.

A survey of prompt engineering as in-context steering of an autoregressive model without touching its weights, treated as an empirical science whose methods vary sharply between models.
Why it mattersA rigorous, practitioner-oriented survey of in-context prompting methods — few-shot, chain-of-thought, self-consistency, and more.

Runway's second-generation video model dropped the requirement for structure conditioning: text alone, or a single driving image, produces a clip.
Why it mattersGen-2 was the point at which text-to-video became usable without a driving video, establishing the mode vocabulary covering text, image, stylization, mask, and render that later video models inherited.

How Shopify extended its Ray-based ML platform from batch to real-time prediction.
Why it mattersShows how a general-purpose model-serving layer is built on Ray with a Feast-backed offline/online feature store, and where the latency and generalization tradeoffs land when many teams deploy to one platform.

A rewritten and roughly doubled survey of transformer architecture variants, restructured and brought up to date with the improvements proposed since the original 2020 version.
Why it mattersA thorough, notation-consistent reference on transformer architecture variants — from attention mechanisms to positional encodings and efficiency tricks.

Why inference on large transformers is hard and what actually helps.
Why it mattersA rigorous survey of how to cut transformer inference cost in time and memory — quantization, pruning, sparsity, and distillation — giving engineers a practical map for deploying large models affordably at scale.
Qwen's OFASys tackles the practical pain of multimodal multitask learning, the batching and stability problems the team hit building OFA, aiming to make multitask setups a one-line affair.
Why it mattersIf you're wrangling multitask, multimodal training pipelines, OFASys reduces the boilerplate of setting up heterogeneous tasks and modalities into a declarative interface, tackling the batchification and training-stability headaches that usually derail generalist-model experiments.
CLIP became both a foundation model and a bridge between vision and language, but cross-modal retrieval needs language-specific versions. This is an open-sourced Chinese CLIP.
Why it mattersIf you're building cross-modal retrieval or text-to-image pipelines for Chinese content, this gives you a purpose-trained Chinese CLIP rather than forcing English-centric embeddings onto Chinese text and image data.

Anthropic's method for training a harmless assistant from AI feedback against a written set of principles, replacing most human harm labels with model self-critique.
Why it mattersIt is how you train a model to refuse well without a human labelling every bad output: the model critiques and revises its own responses against an explicit written constitution.

Runway's first video model generates new footage from existing footage, transferring style from an image or prompt while the source clip supplies structure.
Why it mattersGen-1 solved temporal consistency by conditioning on a source video's structure, which was the intermediate step that made open text-to-video tractable a few months later.

Runs a small draft model ahead of the large one and verifies its guesses in parallel, producing identical output several times faster.
Why it mattersIt makes generation faster without changing what the model outputs — a small model drafts, the large one verifies in parallel, rejected tokens fall back.

Interleaves reasoning traces with tool actions in a single loop, so a model can plan, act against an external source, and revise from what it observes.
Why it mattersThis is the loop nearly every agent framework implements: think, act, observe, repeat.

Shopify classified millions of buyer chat messages by fixing the data instead of the model.
Why it mattersAccuracy came from taxonomy design and annotator agreement, not model choice. The same discipline decides whether an eval set or a classifier inside an agent pipeline measures what you think it measures.

Vision-language systems traditionally bolt an object detector onto a text decoder.
Why it mattersA structured survey of how to graft visual understanding onto pre-trained language models, covering the design choices behind modern VLMs — useful grounding for anyone building or fine-tuning multimodal AI systems.

Makes exact attention fast by minimising reads and writes between GPU memory levels rather than approximating it — an IO-aware algorithm, not a cheaper estimate.
Why it mattersThe insight that attention was memory-bound rather than compute-bound, and that tiling it to avoid round-trips to slow GPU memory makes it several times faster while staying exact.

Approaches to generating synthetic training data when real data is scarce, covering augmentation of existing samples and outright generation of new ones.
Why it mattersIf you're training or fine-tuning models with limited labeled data, this breaks down practical approaches to synthesizing training examples — augmentation techniques and few-shot LM-based generation.

The paper that made diffusion affordable.
Why it mattersLatent diffusion is why high-resolution image generation became trainable outside big labs: compress away imperceptible detail first, run the diffusion model in latent space, and condition with cross-attention on text or boxes.

Showed the large models of the era were badly undertrained: for a fixed compute budget, model size and training tokens should scale roughly in step, not size alone.
Why it mattersIt reset how everyone spends a training budget.

Fine-tuning with human feedback made a 1.3B model preferred over 175B GPT-3, establishing RLHF as the step that turns a language model into something that follows instructions.
Why it mattersThe gap between a raw language model and an assistant is this paper: alignment to human preference beat raw scale for usefulness, with a 1.3B InstructGPT preferred to 175B GPT-3.

This is part 2 of what to do when facing a limited amount of labeled data for supervised learning tasks.
Why it mattersIf you're training models with scarce labels and a tight annotation budget, this walks through active learning methods for choosing which samples are worth labeling.

Showed that prompting a model to produce intermediate reasoning steps unlocks arithmetic and symbolic reasoning that appears only above a certain model scale.
Why it mattersThe finding that asking for the working, not just the answer, changes what a model can solve — and that the effect only emerges above a certain scale.

When facing a limited amount of labeled data for supervised learning tasks, four approaches are commonly discussed.
Why it mattersA clear walkthrough of the main approaches for training when labeled data is scarce, giving practitioners concrete semi-supervised learning strategies to squeeze more value from unlabeled datasets.

[Updated on 2022-03-13: add expert choice routing .] [Updated on 2022-06-10]: Greg and I wrote a shorted and upgraded version of this post, published on OpenAI Blog.
Why it mattersA rigorous, well-organized reference on the parallelism strategies (data, tensor, pipeline, MoE, expert-choice routing) and memory-saving techniques that make large-scale model training feasible.

[Updated on 2021-09-19: Highly recommend this blog post on score-based generative modeling by Yang Song (author of several key papers in the references)]. [Updated on 2022-08-27.
Why it mattersA rigorous, continuously-updated technical walkthrough of diffusion models — from the DDPM math to consistency models and latent diffusion.

Freezes the pretrained weights and trains small rank-decomposition matrices instead, cutting trainable parameters by orders of magnitude with no added inference latency.
Why it mattersIt is why fine-tuning is something you can do on your own hardware.

The goal of contrastive representation learning is to learn such an embedding space in which similar sample pairs stay close to each other while dissimilar ones are far apart.
Why it mattersA grounding on how contrastive learning builds embedding spaces where similar samples cluster and dissimilar ones separate.

Encodes position by rotating query and key vectors, so attention depends on relative distance — the position scheme nearly every current open model uses.
Why it mattersRotary embeddings are why modern models handle long contexts at all, and why context-extension tricks work the way they do.

Large pretrained language models are trained over a sizable collection of online data. They unavoidably acquire certain toxic behavior and biases from the Internet.
Why it mattersIf you're deploying LLMs in production, this breaks down concrete techniques for controlling toxic and biased generation—the safety layer that separates a demo from a shippable product.

Routes each token to a single expert rather than combining several, making trillion-parameter sparse models trainable at roughly the cost of a dense one.
Why it mattersThe paper that made mixture-of-experts practical, by routing each token to exactly one expert instead of blending many.

[Updated on 2021-02-01: Updated to version 2.0 with several work added and many typos fixed.] [Updated on 2021-05-26.
Why it mattersA deep technical survey of how to steer language model outputs — covering guided decoding, prompt tuning, and unlikelihood training — for anyone who needs finer control over what an LLM generates than raw prompting provides.

Although most popular and successful model architectures are designed by human experts, it doesn’t mean we have explored the entire network architecture space and settled down with the best option.
Why it mattersExplains how model architectures can be discovered automatically rather than hand-designed by experts, covering the search space, strategy, and performance estimation that underpin NAS.

Exploration versus exploitation in deep reinforcement learning.
Why it mattersA structured survey of modern exploration methods in deep RL — count-based bonuses, curiosity/forward-dynamics, and exploration via disagreement.

Combines a parametric seq2seq generator with a non-parametric dense retrieval index, letting a model draw on knowledge that can be updated without retraining.
Why it mattersThe original formulation of what the industry now just calls RAG: pair a generator with a dense retrieval index so knowledge lives in a store you can update rather than in weights you must retrain.

[Updated on 2020-02-03: mentioning PCG in the “Task-Specific Curriculum” section. [Updated on 2020-02-04: Add a new “curriculum through distillation&rdquo.
Why it mattersA structured deep-dive into how curriculum learning accelerates and stabilizes RL training — covering task ordering, procedural content generation, and distillation-based curricula.

Established that language-model loss falls as a smooth power law in model size, data and compute — the result that turned scaling from a hunch into a budgeting exercise.
Why it mattersThis is where 'bigger reliably means better' got its evidence, and where the curve's shape — smooth and predictable across orders of magnitude — first let labs forecast a model's performance before training it.

A survey of self-supervised representation learning, covering contrastive predictive coding and the momentum-contrast family including MoCo, SimCLR and BYOL.
Why it mattersA deep, well-organized survey of self-supervised representation learning methods (CPC, MoCo, SimCLR, BYOL) that gives engineers the conceptual grounding to build and choose embedding/pretraining approaches for AI-native products.

Shares a single key-value head across all query heads, shrinking the KV cache that dominates memory during incremental decoding.
Why it mattersIt named the real bottleneck in generation: not the arithmetic, but the size of the key-value cache carried per token.

Stochastic gradient descent is a universal choice for optimizing deep learning models. However, it is not the only option.
Why it mattersExplains how evolution strategies can optimize objectives where gradients are unavailable or unreliable.

In my earlier post on meta-learning , the problem is mainly defined in the context of few-shot classification.
Why it mattersA clear, technical walkthrough of meta-RL methods for training agents that generalize to unseen tasks quickly — useful background for anyone building adaptive or few-shot-capable RL agents.

Deep RL is too sample-hungry to train on real robots, so models are trained in simulation and fail on the reality gap.
Why it mattersIf you're training RL policies in simulation and struggling to deploy them on physical robots, this breaks down how domain randomization over physical parameters (friction, mass, damping) closes the reality gap and where naive sim modeling fails.

[Updated on 2019-05-27.
Why it mattersA rigorous walkthrough of why overparameterized deep networks generalize instead of overfitting, covering the Lottery Ticket Hypothesis, intrinsic dimension, and generalization bounds.

[Updated on 2019-10-01: thanks to Tianhao, we have this post translated in Chinese !]
Why it mattersA rigorous, well-organized primer on meta-learning that walks through metric-based, model-based, and optimization-based approaches (including MAML and memory-augmented networks) with the math and intuition.
An index of the vibe-coding frontier. Corrections welcome.