arXiv:2512.11270cs.AI2025-12

用大模型自动把任务描述转为可执行的强化学习方案

A-LAMP: Agentic LLM-Based Framework for Automated MDP Modeling and Policy Generation

  • 分阶段自动化构建马尔可夫决策过程与策略
  • 在多个任务中表现优于单个顶尖大模型
  • 轻量版逼近大模型效果,适合实际部署

将强化学习应用于真实任务需将非正式描述转化为形式化的马尔可夫决策过程(MDP),实现可执行环境并训练策略代理。由于建模错误、代码脆弱和目标错位,这一过程自动化面临挑战。本文提出基于智能体的大语言模型框架A-LAMP,可自动将自然语言任务描述转换为MDP形式及训练好的策略。该框架将建模、编码与训练分解为可验证的阶段,确保全链路语义对齐。在经典控制与自定义强化学习领域,A-LAMP始终表现出比单一顶尖大模型更强的策略生成能力。值得注意的是,其轻量级变体(基于较小语言模型)性能接近大型模型。失败分析揭示了性能提升原因。此外,案例研究显示A-LAMP生成的环境与策略能保持任务最优性,验证其正确性与可靠性。

原文摘要 · Abstract (English)

Applying reinforcement learning (RL) to real-world tasks requires converting informal descriptions into a formal Markov decision process (MDP), implementing an executable environment, and training a policy agent. Automating this process is challenging due to modeling errors, fragile code, and misaligned objectives, which often impede policy training. We introduce an agentic large language model (LLM)-based framework for automated MDP modeling and policy generation (A-LAMP), that automatically translates free-form natural language task descriptions into an MDP formulation and trained policy. The framework decomposes modeling, coding, and training into verifiable stages, ensuring semantic alignment throughout the pipeline. Across both classic control and custom RL domains, A-LAMP consistently achieves higher policy generation capability than a single state-of-the-art LLM model. Notably, even its lightweight variant, which is built on smaller language models, approaches the performance of much larger models. Failure analysis reveals why these improvements occur. In addition, a case study also demonstrates that A-LAMP generates environments and policies that preserve the task's optimality, confirming its correctness and reliability.

强化学习大模型应用自动化建模智能体系统

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。