Himanshu Sahni

November 14, 2025

On-Policy Distillation from First Principles

A few weeks ago, On-Policy Distillation (OPD) took over the RL world with this excellent Thinking machines blogpost ⬈. I thought the method was neat and effective, but I had a hard time understanding its connection to RL and just really, why it works in the first place. I decided the best way to grok it would be to see if I could implement the method myself. In the course of that, I went through all the math and intuition behind the method from first principles. It was really fun!

Continue Reading...

Himanshu Sahni

September 18, 2018

OpenAI Five and the limits of self-play

A few weeks ago, OpenAI attempted a new major milestone in AI development, a (nearly) full game of Dota2 against some of the best human players. Although the OpenAI Five was defeated by both of its professional opponents, the level of play was high and at times the match looked fairly even. This is amazing as the full game of Dota2 is very complex. Even more incredibly, the agent was trained using a relatively simple and very general reinforcement learning algorithm, PPO.

Continue Reading...