WhoBuilt

Efficient Reinforcement Learning

Dec 9, 2025· 20 min· 13K views·Watch on YouTube

Speakers

Rhythm Garg, co-founder of Applied Compute, and Linden Li, his co-founder, explain how to make reinforcement learning efficient for enterprise use cases at an AI Engineer event.

Applying reinforcement learning to enterprise tasks

Rhythm says Applied Compute helps companies build AI systems for specific work, then improves them through a data flywheel. The team uses reinforcement learning to adapt models to private company benchmarks, building on its earlier RL work at OpenAI. He illustrates the method with a math example: sample many attempts, reward correct reasoning traces, and discourage incorrect ones.

Why asynchronous training helps

In synchronous RL, training waits for every sample in a batch to finish, so one slow request can leave GPUs idle. In a test with 40 arithmetic problems and 32 samples per problem using Qwen 30B, 99% of samples finished in about 40 seconds, while the final 1% took another 80 seconds. Pipeline RL overlaps sampling and training, but its in-flight weight updates can make samples stale and increase the variance of importance ratios.

Modeling compute and throughput

Linden frames the system around GPU count, training batch size, sampling throughput, and per-GPU training throughput. For sampling, the team models forward-pass latency by batch size, accounting for the shift from memory-bound to compute-bound workloads and the KV cache memory limit. It estimates training throughput from empirical workloads, including forward and backward passes and optimizer steps.

Choosing an asynchronous layout

The team models two failure cases: too few sampling GPUs leave training workers idle, while too many sampling GPUs build a queue of increasingly stale samples. Its proposed layout balances sample production and training consumption, while keeping simulated maximum staleness within the model's tolerance. Simulations across GPU allocations estimate a roughly 60% speedup over the synchronous baseline and help identify configurations before costly runs.

Takeaways

  • Measure tail latency: a small share of slow samples can dominate synchronous RL step time.
  • Overlap sampling and training to reduce idle GPU time, while tracking the learning cost of stale samples.
  • Balance sampling and training capacity so queue production roughly matches consumption.
  • Model batch-size latency, response lengths, and KV-cache limits when estimating sampling throughput.
  • Use end-to-end simulations to compare GPU layouts and test workload assumptions before running expensive training jobs.

Mentioned in this talk

Search inside this talk

What was claimed 7

Related talks