超越非此即彼推理:转换与归纳作为协作问题解决范式
Beyond Either-Or Reasoning: Transduction and Induction as Cooperative Problem-Solving Paradigms
AI总结:
本文提出协作转换-归纳问题解决范式,通过交替使用转换与归纳推理模式,提升程序生成性能,其在三个PBE领域中均优于现有方法,生成更贴近真实行为的程序。
摘要:
传统上,在编程示例(PBE)中,目标是从少量输入输出示例中合成程序。近年来,PBE逐渐成为少样本推理基准,放松了生成程序的要求,允许转换方法直接推断缺失的输出样本。转换与归纳是互补的推理模式——归纳从示例中推导一般规则,转换直接利用示例推断特定输出,无需中间泛化。然而,现有方法要么将它们视为互斥,要么在混合结构中耦合,使一方主导另一方,削弱后者推理潜力并产生级联错误。本文摒弃这些层级模型,引入协作转换-归纳问题解决:通过交替使用两种推理模式并确保两者不无条件主导,保留每种范式的搜索自主性和推理能力。我们将其概念实例化为TIIPS。在三个PBE领域中,TIIPS一致优于现有最佳基线,并生成在语法和语义上更贴近真实轨迹的程序,表明更符合预期的程序行为。我们的发现强调协作推理作为充分利用符号、归纳和神经转换推理潜力的新方向。
英文摘要:
Traditionally, in Programming-by-example (PBE) the goal is to synthesize a program from a small set of input-output examples. Lately, PBE has gained traction as a few-shot reasoning benchmark, relaxing the requirement to produce a program artifact altogether which allows transductive methods to directly the missing output sample. Transduction and induction are complementary reasoning modes--where induction derives general rules from examples, transduction leverages the examples directly to infer specific outputs without intermediate generalization. Yet existing approaches either treat them as mutually exclusive or couple them in hybrid structures where one paradigm dictates a fixed trajectory for the other -- undermining the latter's reasoning potential and creating cascading errors. We move away from these hierarchical models and introduce cooperative transductive-inductive problem solving: by interleaving both reasoning modes and ensuring neither unconditionally dominates the other, we preserve the search autonomy and reasoning capacity of each paradigm. We instantiate this concept in TIIPS. Across three PBE domains, TIIPS consistently outperforms state-of-the-art baselines and generates programs that more closely mirror ground-truth trajectories in both syntax and semantics, indicating a better match to the intended program behavior. Our findings highlight cooperative reasoning as a promising new direction for harnessing the full power of symbolic, inductive and neural, transductive reasoning.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。