LaMOuR: Leveraging Language Models for Out-of-Distribution Recovery in Reinforcement Learning
Chan Kim, Seung-Woo Seo, Seong-Woo Kim
TL;DR
LaMOuR tackles out-of-distribution recovery in reinforcement learning by leveraging LVLMs to describe OOD states, infer recovery actions, and generate dense reward codes that guide relearning back to valid states, all without relying on uncertainty estimation. It adds a language-model-guided policy consolidation to prevent forgetting the original task when recovery succeeds. Empirically, LaMOuR improves recovery efficiency and generalizes to complex environments such as humanoid locomotion and mobile manipulation, outperforming uncertainty-based and several reward-generation baselines in many scenarios. The approach offers a scalable pathway for robust recovery in high-dimensional RL applications, with potential future work in automatic OOD detection and anomaly-triggered retraining.
Abstract
Deep Reinforcement Learning (DRL) has demonstrated strong performance in robotic control but remains susceptible to out-of-distribution (OOD) states, often resulting in unreliable actions and task failure. While previous methods have focused on minimizing or preventing OOD occurrences, they largely neglect recovery once an agent encounters such states. Although the latest research has attempted to address this by guiding agents back to in-distribution states, their reliance on uncertainty estimation hinders scalability in complex environments. To overcome this limitation, we introduce Language Models for Out-of-Distribution Recovery (LaMOuR), which enables recovery learning without relying on uncertainty estimation. LaMOuR generates dense reward codes that guide the agent back to a state where it can successfully perform its original task, leveraging the capabilities of LVLMs in image description, logical reasoning, and code generation. Experimental results show that LaMOuR substantially enhances recovery efficiency across diverse locomotion tasks and even generalizes effectively to complex environments, including humanoid locomotion and mobile manipulation, where existing methods struggle. The code and supplementary materials are available at https://lamour-rl.github.io/.
