arXiv:2507.03293cs.AIcs.CL2025-07被引 5

用时序逻辑让大模型自我纠错,提升复杂任务的可靠性

LogicGuard: Improving Embodied LLM agents through Temporal Logic based Critics

  • 用时序逻辑作为批评者,指导大模型规划行为
  • 在家庭任务中提升25%完成率,在挖钻石任务中更安全高效
  • 不依赖特定模型,可通用适配各类大模型规划器

大语言模型在短周期推理中表现良好,但在长序列规划中错误会累积,导致行为不可靠或低效。本文提出LogicGuard,一种模块化演员-评论家架构,其中语言模型演员由基于线性时序逻辑(LTL)的轨迹级评论家指导。评论家分析完整行为轨迹,生成新的LTL约束,帮助演员避免未来不安全或低效行为。LogicGuard支持固定安全规则和自适应学习的约束,且对模型无要求:任何基于LLM的规划器均可作为演员,LogicGuard作为逻辑生成封装层。将规划建模为带符号约束的图遍历,使LogicGuard能分析失败或次优轨迹并生成改进规则。在两类任务中验证其通用性:100个家庭任务的Behavior基准上,任务完成率较基线InnerMonologue提升25%;在需要多步骤子目标的Minecraft挖钻石任务中,相比SayCan和InnerMonologue,效率与安全性均更优。结果表明,通过时序逻辑实现大模型间的自我监督,可显著提升具身智能体的决策可靠性、效率与安全性。

原文摘要 · Abstract (English)

Large language models (LLMs) have shown promise in zero-shot and single step reasoning and decision making problems, but in long horizon sequential planning tasks, their errors compound, often leading to unreliable or inefficient behavior. We introduce LogicGuard, a modular actor-critic architecture in which an LLM actor is guided by a trajectory level LLM critic that communicates through Linear Temporal Logic (LTL). Our setup combines the reasoning strengths of language models with the guarantees of formal logic. The actor selects high-level actions from natural language observations, while the critic analyzes full trajectories and proposes new LTL constraints that shield the actor from future unsafe or inefficient behavior. LogicGuard supports both fixed safety rules and adaptive, learned constraints, and is model-agnostic: any LLM-based planner can serve as the actor, with LogicGuard acting as a logic-generating wrapper. We formalize planning as graph traversal under symbolic constraints, allowing LogicGuard to analyze failed or suboptimal trajectories and generate new temporal logic rules that improve future behavior. To demonstrate generality, we evaluate LogicGuard across two distinct settings: short-horizon general tasks and long-horizon specialist tasks. On the Behavior benchmark of 100 household tasks, LogicGuard increases task completion rates by 25% over a baseline InnerMonologue planner. On the Minecraft diamond-mining task, which is long-horizon and requires multiple interdependent subgoals, LogicGuard improves both efficiency and safety compared to SayCan and InnerMonologue. These results show that enabling LLMs to supervise each other through temporal logic yields more reliable, efficient and safe decision-making for both embodied agents.

大模型规划时序逻辑具身智能自主决策

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