Language Model Architectures
Shared KV Memory: From Transformers to DeepSeek
Causal attention, KV caching, and the memory savings from sharing context across Transformer layers.
Language Model Architectures
Causal attention, KV caching, and the memory savings from sharing context across Transformer layers.
LLM Post-Training
Group-relative reward normalization, clipped token updates, and KL regularization, with baseline identities and DAPO extensions.
LLM Post-Training
Deriving KL-regularized alignment, PPO's rollout objective, and DPO's preference loss, with a population identification proof.
Multi-Agent Reinforcement Learning
Joint policy gradients, deterministic actor–critic updates, and the sequential importance corrections behind HAPPO.
Multi-Agent Reinforcement Learning
Local information constraints, centralized critics, and why an agent’s memory matters even when training observes the state.
Multi-Agent Reinforcement Learning
Shared rewards, counterfactual policy gradients, and additive or monotonic value decomposition for cooperative agents.
Multi-Agent Reinforcement Learning
Joint policies, best responses, and Nash equilibria, with a minimax Bellman equation and contraction proof for zero-sum Markov games.
Policy Optimization
Deriving the policy gradient and comparing return-based, actor–critic, natural, trust-region, and deterministic methods.
RL Foundations
What changes with hidden states or fixed datasets, and how history-based offline learning connects to DTRs.
RL Foundations
MDP assumptions, Bellman equations, a value-iteration proof, and the main families of RL methods.
Policy Optimization
A forthcoming note on direct policy learning and policy gradients.
LLM Post-Training
Sequence-level policy updates in GSPO and smooth adaptive gating in SAPO.
LLM Training & Efficiency
Low-rank weight updates, adapter gradients, and parameter-efficient fine-tuning.
LLM Training & Efficiency
Four-bit weight quantization and low-rank adapters for memory-efficient fine-tuning.
Policy Distillation
Comparing action labels, Q-values, and probability targets when learning from an expert policy.
Policy Distillation
Matching a teacher’s next-token probabilities or complete responses to train a language model.
Policy Distillation
Using teacher feedback on student-generated responses to address differences between training and generation.
Policy Distillation
Matching student and teacher response distributions through reverse KL divergence and policy-gradient updates.
Policy Distillation
Using feedback to build a self-teacher and guide token-level policy updates.
Language Model Architectures
Blockwise attention and online softmax without storing the full attention matrix.
Language Model Architectures
Sparse expert routing, load balancing, and the distinction between total and active parameters.
Language Model Architectures
Forward masking, reverse denoising, and training objectives for non-autoregressive text generation.
LLM Training & Efficiency
Empirical loss scaling and compute-budget tradeoffs between model size and training tokens.