arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.08992cs.LG
收藏

思维约束:一种在语言模型引导搜索中进行约束推理的框架

Constraints-of-Thought: A Framework for Constrained Reasoning in Language-Model-Guided Search

Georgia Institute of Technology(佐治亚理工学院)

Kamel Alrashedy, Vriksha Srihari, Zulfiqar Zaidi, Ridam Srivastava, Pradyumna Tambwekar, Matthew Gombolay

AI总结:

本文提出Const-o-T框架,通过约束推理提升语言模型在多步骤任务中的规划效率和决策可靠性,适用于风险游戏、CAD代码生成和算术推理等复杂领域。

摘要:

尽管研究人员在使大型语言模型(LLMs)进行多步骤规划方面取得了显著进展,但LLMs在确保计划与高层用户意图一致并满足符号约束方面存在困难,尤其是在复杂多步骤领域。现有推理方法如链式思维(CoT)、树状思维(ToT)和验证增强方法扩展了搜索空间,但往往产生不可行的操作或虚构步骤。为克服这些限制,我们提出思维约束(Const-o-T)框架,提供一个结构化的先验,使蒙特卡洛树搜索(MCTS)能够聚焦于语义有意义的路径。每个推理步骤表示为(意图,约束)对,既压缩搜索空间又强制有效性。不同于先前方法仅生成推理轨迹或事后验证输出,Const-o-T使用(意图,约束)对主动聚焦搜索,指向可行且有意义的计划。我们将Const-o-T集成到MCTS中,通过结构化的意图-约束对表示,剪枝不可行分支并引导探索向语义有效的操作,提高规划效率和可验证决策能力。我们在风险游戏、CAD代码生成和算术推理三个领域展示了我们的方法优于基线,获得更高的准确性和更强的结构对齐。我们的贡献是证明Const-o-T提供了一个可推广的基础,用于约束引导的推理,使LLM能够更高效、约束对齐和领域适应的规划。

英文摘要:

While researchers have made significant progress in enabling large language models (LLMs) to perform multi-step planning, LLMs struggle to ensure that those plans align with high-level user intent and satisfy symbolic constraints, especially in complex, multi-step domains. Existing reasoning approaches such as Chain-of-Thought (CoT), Tree-of-Thought (ToT), and verifier-augmented methods, expand the search space but often yield infeasible actions or hallucinated steps. To overcome these limitations, we propose Constraints-of-Thought (Const-o-T), a framework that provides a structured prior that enables Monte Carlo Tree Search (MCTS) focus search on semantically meaningful paths. Each reasoning step is represented as an (intent, constraint) pair, which serves both to compress the search space and enforce validity. Unlike prior methods that merely generate reasoning traces or validate outputs post hoc, Const-o-T uses (intent, constraint)pairs to actively focus the search toward feasible and meaningful plans. We integrate Const-o-T into MCTS using a structured representation of intent-constraint pairs constraints prune infeasible branches and guide exploration toward semantically valid actions, improving planning efficiency and verifiable decision-making. We demonstrate across three domains Risk game, CAD code generation, and arithmetic reasoning that our approach outperforms baselines, yielding higher accuracy and stronger structural alignment. Our contribution is to demonstrate that Const-of-T offers a generalizable foundation for constraint-guided reasoning, enabling more efficient, constraint-aligned, and domain-adaptable planning with LLMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑