类型化思维链:一种用于验证大语言模型推理的Curry-Howard框架
Typed Chain-of-Thought: A Curry-Howard Framework for Verifying LLM Reasoning
AI总结:
针对大语言模型思维链推理依据的忠实性验证难题,提出基于Curry-Howard对应的类型化思维链框架,可将自然语言推理步骤映射为形式化类型化证明,实现推理忠实性的形式化验证,助力构建可信AI系统。
摘要:
尽管思维链(Chain-of-Thought, CoT)提示提升了大语言模型的推理能力,但生成的推理依据的忠实性仍是模型可解释性领域的一个开放性问题。我们基于Curry-Howard对应(该理论指出形式证明与计算机程序之间存在直接关联),为这一问题提出了一种全新的理论视角。在该范式下,忠实的推理轨迹类似于良类型程序,其中每个中间步骤都对应一次类型化的逻辑推理。我们将这一类比落地,提出了将CoT中非正式的自然语言步骤提取并映射为形式化类型化证明结构的方法。成功将CoT轨迹转换为良类型证明,可作为其计算忠实性的强有力且可验证的凭证,推动研究从启发式可解释性迈向形式化验证。我们的框架提供了一套将看似合理的叙述性解释转换为形式化可验证程序的方法,为构建更可靠、更值得信赖的AI系统提供了路径。
英文摘要:
While Chain-of-Thought (CoT) prompting enhances the reasoning capabilities of large language models, the faithfulness of the generated rationales remains an open problem for model interpretability. We propose a novel theoretical lens for this problem grounded in the Curry-Howard correspondence, which posits a direct relationship between formal proofs and computer programs. Under this paradigm, a faithful reasoning trace is analogous to a well-typed program, where each intermediate step corresponds to a typed logical inference. We operationalise this analogy, presenting methods to extract and map the informal, natural language steps of CoT into a formal, typed proof structure. Successfully converting a CoT trace into a well-typed proof serves as a strong, verifiable certificate of its computational faithfulness, moving beyond heuristic interpretability towards formal verification. Our framework provides a methodology to transform plausible narrative explanations into formally verifiable programs, offering a path towards building more reliable and trustworthy AI systems.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。