Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Everyone knows action chunking is great for imitation learning. It turns out that we can extend its success to RL to better leverage prior data for improved exploration and online sample efficiency! The recipe to achieve this is incredibly simple. 🧵 1/N

48,231 Aufrufe • vor 1 Jahr •via X (Twitter)

11 Kommentare

Profilbild von Qiyang Li @ ICML
Qiyang Li @ ICMLvor 1 Jahr

1. Run Q-learning on temporally extended (‘chunked’) action space 2. Impose a behavior constraint to keep the policy close to the offline data. This allows temporally coherent actions for better exploration and unbiased n-step return backups for faster value learning. How? 2/N

Profilbild von Qiyang Li @ ICML
Qiyang Li @ ICMLvor 1 Jahr

n-step return backups are nice because the value signals are propagated n times faster than the standard 1-step backup, but it is biased when used naïvely. Q-chunking uses n-step return backups but avoids the bias issue by modeling the Q-value of the whole n-step sequence! 3/N

Profilbild von Qiyang Li @ ICML
Qiyang Li @ ICMLvor 1 Jahr

The behavior constraint brings the policy close to the offline data, allowing us to leverage temporally coherent behaviors in the prior data for better exploration. Plus, we can get all the benefits of action chunking we see in IL (e.g., handling non-Markovian behaviors)! 4/N

Profilbild von Qiyang Li @ ICML
Qiyang Li @ ICMLvor 1 Jahr

In principle, our recipe synergizes well with any offline/offline-to-online RL methods as they are often already equipped with some forms of behavior constraints. But in reality, more considerations must be taken into account when the offline data is complex. 5/N

Profilbild von Qiyang Li @ ICML
Qiyang Li @ ICMLvor 1 Jahr

Handling complex offline behavior distribution requires a more expressive policy class like diffusion/flow policies, and it is not immediately obvious how we can practically train them to simultaneously enforce a behavior constraint while maximizing Q-values. 6/N

Profilbild von Qiyang Li @ ICML
Qiyang Li @ ICMLvor 1 Jahr

We found a very simple and elegant solution that works. We train a behavior flow policy that clones the offline data and then use best-of-N sampling (sample N actions and take the best) to maximize Q-value. The algorithm can be summarized in just a few lines! 7/N

Profilbild von Qiyang Li @ ICML
Qiyang Li @ ICMLvor 1 Jahr

We also apply Q-chunking to one of our recent work, flow-Q learning (FQL) which uses one-step distillation of the behavior flow policy to tackle the value maximization challenge. This Q-chunking variant (QC-FQL) also works quite well across the board. 8/N

Profilbild von Qiyang Li @ ICML
Qiyang Li @ ICMLvor 1 Jahr

In practice, we do see that Q-chunking results in better temporal coherency in actions, thanks to action chunking policy and the behavior constraint we impose. This leads to better state coverage, more effective exploration, and consequently better online sample-efficiency! 9/N

Profilbild von Qiyang Li @ ICML
Qiyang Li @ ICMLvor 1 Jahr

I will be presenting at the ICML EXAIT workshop 07/19 (Sat) 11:45-14:15 in Rm 205-207. Come and learn more if you are around and interested! Code: Paper: Big thanks to my amazing collaborators @zhiyuan_zhou_ and @svlevine 10/N=10

Profilbild von John Zhou
John Zhouvor 1 Jahr

Great work - I liked the intuition for the improved state coverage/exploration from Nachum et al., which might apply here: random walks with time-correlated noise -> higher variance/coverage in the end distribution vs. independent noise. Cool to see how much it helps in O2O!

Profilbild von Qiyang Li @ ICML
Qiyang Li @ ICMLvor 1 Jahr

Thanks John! I really like this intuition as well! One nuance is that not all time-correlated noises are good (imagine going always left-right-left-right-… in a maze). It is often nice to use some prior (eg skill). BC with an action chunking policy is a simple way of doing this

Ähnliche Videos

Experiments in progress. The one on the right has been learning for ~3 hours, the one in the middle for ~1 hour, and the one on the left just started a few minutes ago. The initial motivation for making the physical Atari was just to commit ourselves to a subset of algorithms that can make progress in this setup. This commitment rules out algorithms that require billions of samples to learn (or worse, require multiple environments running in parallel). Atari games are simple enough that we should be able to show learning on them in a short amount of time with no prior knowledge. Since then, I've realized that this setup is also a good way to compare different paradigms in robotics in a principled way. These paradigms are sim2real, learning from tele-operated data, and learning directly on the robots. So far, I have observed that getting sim2real to work reliably is hard. It requires tweaks that don't scale. Policies that can play perfectly in simulation fall apart because of latencies and the messiness of the real world. These aspects could be modeled to improve the simulation, but not without sinking significant human engineering hours. I have higher hopes for learning from tele-operated data, but that requires a human to learn the task first. These experiments are on my to-do list. I have to learn to play some of the games well through the robot. I’m half-decent at playing Pong and Ms Pacman now. Learning directly on robots is looking like the most promising approach. This approach takes away pesky distribution shifts and makes it possible to have algorithms that continually improve with more data and time without any human intervention. It feels great to let experiments run overnight and wake up to find improved policies. With learning on robots, I should, in principle, be able to go on a long vacation and come back to find better policies for complex tasks beyond Atari games. Whether that is possible with current learning algorithms is a different question.

Khurram Javed

52,110 Aufrufe • vor 7 Monaten