TextualVerifier:逐步验证 TextGrad
TextualVerifier: Verify TextGrad Step-by-Step
AI总结:
本文提出 TextualVerifier,通过链式思维与多数投票为 TextGrad 提供首个无需数值梯度的自验证框架,在多个基准上显著提升推理有效性与优化结果。
摘要:
TextGrad 是一种新颖的基于文本的自动微分方法,使复合 AI 系统能够在没有显式数值方程的情况下进行优化。然而,它目前缺乏确保基于文本的决策中推理有效性的自验证机制。本研究引入了 TextualVerifier,一个利用大语言模型的链式思维推理和多数投票来解决这一验证空白的验证框架。TextualVerifier 实现了四阶段工作流程:链式思维分解、变体生成、多数投票和共识聚合。它在损失函数和优化结果验证阶段以非侵入方式与 TextGrad 集成。使用 Gemini 1.5 Pro 模型的实验评估分两个阶段进行:(1)在 PRM800K 上的独立评估,以及(2)在 GPQA-Diamond、MMLU-ML 和 MMLU-CP 基准上与 TextGrad 的集成评估。结果显示统计上显著的改进(p < 0.001)。在第一阶段,TextualVerifier 将推理步骤的有效性提高了 29%。在第二阶段,集成到 TextGrad 损失函数中带来了 2.2 个百分点的提升,从 68.2% 提高到 70.4%,平均额外开销为 5.9 次 LLM 调用。对 TextualVerifier 版本化的进一步评估在 GPQA、MMLU-ML 和 MMLU-CP 上分别带来了 8.08、10.71 和 3.92 个百分点的改进。因此,TextualVerifier 通过基于 LLM 的技术为 TextGrad 提供了第一个自验证框架,无需数值梯度,从而实现更可靠的推理,并为基于文本的优化中的验证开辟了新的方向。
英文摘要:
TextGrad is a novel approach to text-based automatic differentiation that enables composite AI systems to perform optimization without explicit numerical equations. However, it currently lacks self-verification mechanisms that ensure reasoning validity in text-based decision making. This research introduces TextualVerifier, a verification framework that leverages chain-of-thought reasoning and majority voting with large language models to address this verification gap. TextualVerifier implements a four-stage workflow: chain-of-thought decomposition, variant generation, majority voting, and consensus aggregation. It integrates non-invasively with TextGrad at both the loss function and optimization result verification stages. Experimental evaluation using the Gemini 1.5 Pro model is conducted in two phases: (1) standalone evaluation on PRM800K, and (2) integrated evaluation with TextGrad on GPQA-Diamond, MMLU-ML, and MMLU-CP benchmarks. Results show statistically significant improvements (p < 0.001). In phase one, TextualVerifier improves the validity of reasoning steps by 29 percent. In phase two, integration into TextGrad loss function yields a 2.2 percentage point gain from 68.2 to 70.4 percent with a moderate overhead of 5.9 LLM calls on average. Further evaluations of TextualVerifier versioning yield 8.08, 10.71, and 3.92 percentage point improvements on GPQA, MMLU-ML, and MMLU-CP respectively. TextualVerifier thus presents the first self-verification framework for TextGrad through LLM-based techniques without requiring numerical gradients, enabling more reliable reasoning and opening new directions for verification in text-based optimization.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。