arXiv:2604.27960cs.AI2026-04ACL

让大模型用ASP编程实现可自我修正的非单调推理。

LLMs as ASP Programmers: Self-Correction Enables Task-Agnostic Nonmonotonic Reasoning

论文配图:LLMs as ASP Programmers: Self-Correction Enables Task-Agnostic Nonmonotonic Reasoning
图 1 · 摘自论文原文
  • 将自然语言转为ASP,用稳定模型语义支持默认规则与例外处理。
  • 自纠正循环使模型在六项任务上超越SMT基线,性能显著提升。
  • 小而精的上下文指南比冗长文档更有效,避免信息过载。

近期大语言模型虽在推理任务中取得进展,但仍面临计算成本高、逻辑不一致及复杂问题性能骤降的问题。现有神经符号方法多依赖单调逻辑(如SMT),无法表达可撤销推理——人类认知的关键特征。本文提出「LLM+ASP」框架,将自然语言转化为基于稳定模型语义的非单调形式化逻辑答案集编程(ASP)。不同于需手动编写知识模块或特定提示的前人工作,本框架无需任务定制,可统一应用于多种推理任务。系统通过ASP求解器生成结构化反馈,实现迭代自纠正。在六个不同基准上的评估表明:(1) 稳定模型语义使大模型能自然表达默认规则与例外,在非单调任务上显著优于SMT基线;(2) 迭代自纠正为性能提升主因,有效替代人工领域知识;(3) 紧凑的上下文参考指南远超冗长文档,揭示了‘上下文腐化’现象——过多上下文反而损害约束遵循。实验验证了该框架在多样性与鲁棒性上的优势。

原文摘要 · Abstract (English)

Recent large language models (LLMs) have achieved impressive reasoning milestones but continue to struggle with high computational costs, logical inconsistencies, and sharp performance degradation on high-complexity problems. While neuro-symbolic methods attempt to mitigate these issues by coupling LLMs with symbolic reasoners, existing approaches typically rely on monotonic logics (e.g., SMT) that cannot represent defeasible reasoning -- essential components of human cognition. We present "LLM+ASP," a framework that translates natural language into Answer Set Programming (ASP), a nonmonotonic formalism based on stable model semantics. Unlike prior "LLM+ASP" approaches that require manually authored knowledge modules, domain-specific prompts, or evaluation restricted to single problem classes, our framework operates without any per-task engineering and applies uniformly across diverse reasoning tasks. Our system utilizes an automated self-correction loop where structured feedback from the ASP solver enables iterative refinement. Evaluating across six diverse benchmarks, we demonstrate that: (1) stable model semantics allow LLMs to naturally express default rules and exceptions, outperforming SMT-based alternatives by significant margins on nonmonotonic tasks; (2) iterative self-correction is the primary driver of performance, effectively replacing the need for handcrafted domain knowledge; (3) compact in-context reference guides substantially outperform verbose documentation, revealing a "context rot" phenomenon where excessive context hinders constraint adherence.

大模型推理非单调逻辑ASP自纠正

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