Replaying saved reinforcement learning data recovers performance loss

Reinforcement Learning Can Be Recovered From Its Own Rollouts

Machine Learning

Summary

When computers learn by trying things out (reinforcement learning), they usually forget past experiences once they update themselves. The authors found that if you store and replay these past experiences just by asking the computer to predict them again, you can nearly get back all the learning without running new trials. This shows that much of the effort in learning helps create better data to learn from, rather than just learning directly from the data. Their method works even if you ignore whether past answers were good or bad.

What this means in practice

  • For machine learning engineers: Reuse stored reinforcement learning experiences to retrain models without extra environment interactions, saving computation and time.
  • For ai system maintainers: Recover a model’s learned capabilities by simply replaying prior training data, aiding debugging and model restoration.

Authors

Jiayi Sheng, Jingwen Gu, Guanning Zeng, Zhaoyi Zhou, Stefano Viel, Qianqian Wang, Fahim Tajwar, Andrea Zanette

Abstract

Broadly speaking, reinforcement learning (RL) post-training converts compute into model capabilities by training on model-generated data. Typically, the rollouts are discarded after each update, and the knowledge acquired during RL resides in the model weights. In this work, we investigate how much of this knowledge is retained in the rollouts themselves. A natural first attempt is to replay the original RL algorithm on archived rather than freshly generated rollouts, but this leads to catastrophic collapse. We provide a simple explanation for this phenomenon, which in turn suggests a remedy: maximum likelihood on the archived rollouts. Surprisingly, starting from the same base model and replaying the rollouts in the order in which they were generated, without any distinction between correct and incorrect responses, is sufficient to recover the performance of online RL. In fact, a single maximum likelihood update per rollout batch closely tracks the entire learning curve of online RL. Furthermore, maximum likelihood on the rollouts of the last few RL steps often suffices to recover the final model's performance. This suggests that much of the compute invested in RL goes into discovering an improved sampling distribution rather than learning it from samples.