Reinforcement Learning & Generative AI
Shared KV Memory: From Transformers to DeepSeek
Causal attention, KV caching, and the memory savings from sharing context across Transformer layers.
Reinforcement Learning & Generative AI
Causal attention, KV caching, and the memory savings from sharing context across Transformer layers.
Reinforcement Learning & Generative AI
Group-relative reward normalization, clipped token updates, and KL regularization, with baseline identities and DAPO extensions.
Reinforcement Learning & Generative AI
Deriving KL-regularized alignment, PPO's rollout objective, and DPO's preference loss, with a population identification proof.
Foundations
Gaussian-process conditioning, expected improvement, and a finite-domain GP-UCB regret bound, with reproducible Python examples.
Reinforcement Learning & Generative AI
Joint policy gradients, deterministic actor–critic updates, and the sequential importance corrections behind HAPPO.
Reinforcement Learning & Generative AI
Local information constraints, centralized critics, and why an agent’s memory matters even when training observes the state.
Reinforcement Learning & Generative AI
Shared rewards, counterfactual policy gradients, and additive or monotonic value decomposition for cooperative agents.
Reinforcement Learning & Generative AI
Joint policies, best responses, and Nash equilibria, with a minimax Bellman equation and contraction proof for zero-sum Markov games.
Reinforcement Learning & Generative AI
Deriving the policy gradient and comparing return-based, actor–critic, natural, trust-region, and deterministic methods.
Reinforcement Learning & Generative AI
What changes with hidden states or fixed datasets, and how history-based offline learning connects to DTRs.
Reinforcement Learning & Generative AI
MDP assumptions, Bellman equations, a value-iteration proof, and the main families of RL methods.
Research Notes
A dependency-graph CLT, its Stein-method proof, and Berry–Esseen bounds under local dependence.
Research Notes
Pairwise score surrogates, simultaneous optimization, and a multistage Fisher-consistency proof.
Research Notes
From one-stage outcome-weighted learning to a smooth two-stage objective, with a value-regret proof.
Research Notes
Augmented value estimation, a double-robustness proof, and joint search over treatment rules.
Research Notes
Q-learning and backward induction for treatment decisions using logged longitudinal data.
Research Notes
Surrogate risk minimization and Fisher consistency for binary classification.
Foundations
Convexity properties and derivatives of common losses, norms, and penalty functions.
Foundations
Lagrangian duality, KKT conditions, and worked examples of constrained convex optimization.
Foundations
First- and second-order criteria for convexity, with worked examples.
Foundations
Maximum-margin classification, hinge loss, kernels, and primal-dual formulations.
Reflections
How everyday choices and reflection help us understand what matters to us.
Foundations
Conditional expectation as the minimum mean squared-error predictor, with proof and applications.
Foundations
Softmax probabilities, likelihood derivations, and estimation for multiclass outcomes.
Foundations
Modeling binary outcome probabilities through likelihood estimation and Bayesian inference.
Foundations
Posterior inference and prediction in linear regression with Gaussian and Laplace priors.
Foundations
Least squares, likelihood estimation, and ridge, lasso, and elastic-net regularization.
Foundations
Gradients, Jacobians, and matrix derivatives, with dimension conventions and worked formulas.
Foundations
Matrix identities for inverses, determinants, and traces, with common matrix decompositions.
Reflections
How the pursuit of the next achievement can keep us postponing the life we want.