Loading video...

Video Failed to Load

Go Home

🚨 New (Offline) RL Method 🦾 🚨 Introducing Q-Transformer - new RL approach that works at scale with large models and many tasks. This is the best method we found so far that works with demos and autonomous (also negative) data at large scale. 🧵

56,053 views • 3 years ago •via X (Twitter)

7 Comments

Karol Hausman's profile picture
Karol Hausman3 years ago

Scaling Q-learning to large, diverse datasets and large models has been proven difficult. Most commonly used RL algorithms at that scale tend to be on-policy algorithms (e.g. PPO in RLHF) In Q-Transformer, we demonstrate a few important design decisions that made it work for us.

Karol Hausman's profile picture
Karol Hausman3 years ago

• we represent each discretized action dimension as a separate token in a Transformer - you can think of it as every action dim being a separate MDP step • we add a regularization term for unseen action bins • we set Bellman update to max(MC-return, next Q) to speed it up

Karol Hausman's profile picture
Karol Hausman3 years ago

To compare it to other methods, we reduce the original RT-1 dataset to <100 episodes per task and add negative data (otherwise, there is no room for improvement). Q-Transformer is ~2x better than the next baseline! See lots of ablations + more sim comparisons in the paper.

Karol Hausman's profile picture
Karol Hausman3 years ago

Since this is a "proper" RL method, we can also use its value function as an affordance metric (for example for which works better than other alternatives. Q-learning FTW!

Karol Hausman's profile picture
Karol Hausman3 years ago

This was a long-term effort led by @YevgenChebotar and @QuanVng with an amazing team of collaborators. Tagging a few on twitter: @AlexIrpan @xf1280 @aviral_kumar2 @TianheYu @julianibarz @AlexHerzog001 @keerthanpg @chelseabfinn @svlevine

kosi's profile picture
kosi3 years ago

Google is using large transformers to solve general purpose robotics, this is awesome

Pawel Pachniewski's profile picture
Pawel Pachniewski3 years ago

Releasing code soon?

Related Videos

Today's Training Data episode takes us BTS on the infrastructure challenges required to do large RL runs at scale, featuring Federico Cassano (Composer Lead at Cursor) and Dmytro Dzhulgakov (Co-Founder at Fireworks). The Cursor team trained Composer 2 on Fireworks by starting with a strong base model (Kimi 2.5) and performing large-scale mid-training on code tokens and web data to learn common patterns and libraries, followed by a large-scale Reinforcement Learning run to learn how to navigate the Cursor harness, call tools, and write correct code. Today's episode dives into the systems and infrastructure challenges of making that large RL run happening, and there were many (!!), from numerical mismatch to global distribution to synchronizing rollouts across asynchronous pipelines to keeping track of expert activation across runs and more. Extremely nerdy in-the-weeds challenges that Federico and Dima were delighted to nerd out on together :) Beyond RL infra, we also discussed Online vs Simulated rollouts, self-summarization for long-horizon agents, environment design ("the most powerful RL environment is the product itself"), and other technical nuggets. PS: We filmed this episode before the SpaceX news, while the Cursor team was still compute-constrained. While Cursor now has *all* the flops, the takeaways and hurdles crossed ring true for any serious application-level company that is racing to post-train their own models. I believe that more serious application companies will go the way of Cursor and post-train their own models. 00:00 Introduction 00:53 Why Cursor Trained Composer 2 04:55 Specialization vs Bitter Lesson 06:16 Composer 2 Training Recipe 16:32 Scaling RL Infrastructure Globally 23:32 Floating Point Drift 25:11 MoE Sensitivity Explained 26:25 Router Replay Fix 27:19 Real Time RL Loop 31:49 Long Horizon Agents 34:29 Why RL Everywhere 37:34 LLM as Judge Rewards 39:14 RL in Hard Domains 40:13 Build Your Own Environments 44:34 Closing Thoughts

Sonya Huang 🐥

79,834 views • 3 months ago