CAMEL:由大语言模型赋能、用于强化学习的连续动作掩码
CAMEL: Continuous Action Masking Enabled by Large Language Models for Reinforcement Learning
AI总结:
本文提出 CAMEL 框架,将 LLM 生成的可执行次优策略、动态动作掩码与自适应 ε 掩码结合,引导连续控制 RL 探索并逐步转向自主优化,在 MuJoCo 任务中提升样本效率且保持鲁棒性。
摘要:
连续动作空间中的强化学习(RL)面临持续存在的挑战,例如探索效率低下以及收敛至次优解。为解决这些局限,我们提出 CAMEL,这是一种将 LLM 生成的次优策略集成到 RL 训练流程中的新颖框架。CAMEL 利用动态动作掩码和自适应 epsilon-masking(ε 掩码)机制,在训练早期阶段引导探索,同时逐步使智能体能够独立优化策略。CAMEL 的核心在于集成由 LLM 根据环境描述和任务目标生成的、可由 Python 执行的次优策略。尽管这些策略简单且属于硬编码,却能为 RL 智能体提供有价值的初始引导。为有效利用这些先验,CAMEL 采用掩码感知优化,根据 LLM 输出动态约束动作空间。此外,epsilon-masking 会逐步降低对 LLM 生成引导的依赖,使智能体能够从受约束探索过渡到自主策略改进。在 Gymnasium MuJoCo 环境上的实验验证证明了 CAMEL 的有效性。在 Hopper-v4 和 Ant-v4 中,LLM 生成的策略显著提升了样本效率,取得了与专家掩码基线相当或超越它们的性能。对于 Walker2d-v4,在 LLM 难以准确建模双足步态动力学的情况下,CAMEL 仍保持稳健的 RL 性能,没有出现明显下降,这凸显了该框架在多样任务上的适应性。尽管 CAMEL 在提升样本效率和缓解收敛挑战方面展现出前景,但这些问题仍有待进一步研究。未来工作旨在将 CAMEL 推广到多模态 LLM,以覆盖更广泛的观测—动作空间,并实现策略评估自动化,从而减少人工干预并增强 RL 训练流程的可扩展性。
英文摘要:
Reinforcement learning (RL) in continuous action spaces encounters persistent challenges, such as inefficient exploration and convergence to suboptimal solutions. To address these limitations, we propose CAMEL, a novel framework integrating LLM-generated suboptimal policies into the RL training pipeline. CAMEL leverages dynamic action masking and an adaptive epsilon-masking mechanism to guide exploration during early training stages while gradually enabling agents to optimize policies independently. At the core of CAMEL lies the integration of Python-executable suboptimal policies generated by LLMs based on environment descriptions and task objectives. Although simplistic and hard-coded, these policies offer valuable initial guidance for RL agents. To effectively utilize these priors, CAMEL employs masking-aware optimization to dynamically constrain the action space based on LLM outputs. Additionally, epsilon-masking gradually reduces reliance on LLM-generated guidance, enabling agents to transition from constrained exploration to autonomous policy refinement. Experimental validation on Gymnasium MuJoCo environments demonstrates the effectiveness of CAMEL. In Hopper-v4 and Ant-v4, LLM-generated policies significantly improve sample efficiency, achieving performance comparable to or surpassing expert masking baselines. For Walker2d-v4, where LLMs struggle to accurately model bipedal gait dynamics, CAMEL maintains robust RL performance without notable degradation, highlighting the framework's adaptability across diverse tasks. While CAMEL shows promise in enhancing sample efficiency and mitigating convergence challenges, these issues remain open for further research. Future work aims to generalize CAMEL to multimodal LLMs for broader observation-action spaces and automate policy evaluation, reducing human intervention and enhancing scalability in RL training pipelines.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。