[论文解读] Improving Symbolic Translation of Language Models for Logical Reasoning
论文通过将错误分类、在大模型生成的数据上对较小模型进行微调,以及引入增量推理与验证来提升小型语言模型在符号 NL-to-FOL 推理中的准确性和谓词覆盖率,从而改进符号化任务。
The use of formal language for deductive logical reasoning aligns well with language models (LMs), where translating natural language (NL) into first-order logic (FOL) and employing an external solver results in a verifiable and therefore reliable reasoning system. However, smaller LMs often struggle with this translation task, frequently producing incorrect symbolic outputs due to formatting and translation errors. Existing approaches typically rely on self-iteration to correct these errors, but such methods depend heavily on the capabilities of the underlying model. To address this, we first categorize common errors and fine-tune smaller LMs using data synthesized by large language models. The evaluation is performed using the defined error categories. We introduce incremental inference, which divides inference into two stages, predicate generation and FOL translation, providing greater control over model behavior and enhancing generation quality as measured by predicate metrics. This decomposition framework also enables the use of a verification module that targets predicate-arity errors to further improve performance. Our study evaluates three families of models across four logical-reasoning datasets. The comprehensive fine-tuning, incremental inference, and verification modules reduce error rates, increase predicate coverage, and improve reasoning performance for smaller LMs, moving us closer to developing reliable and accessible symbolic-reasoning systems.
研究动机与目标
- 通过将自然语言翻译为一阶逻辑并使用外部求解器,推动可靠的演绎推理。
- 解决小模型在符号输出中的格式化与翻译错误。
- 开发数据增强与方法框架以提升翻译准确性与推理可靠性。
- 实现对推理与错误处理的更细控制,以减少符号翻译错误。
提出的方法
- 分类常见的 NL-to-FOL 翻译错误。
- 使用大型语言模型合成的数据对较小的语言模型进行微调。
- 通过将推理分解为谓词生成与 FOL 翻译,引入增量推理。
- 加入一个面向谓词-项数错误的验证模块以提升生成质量。
- 在四个逻辑推理数据集上评估三类模型家族。
实验结果
研究问题
- RQ1小型语言模型如何可靠地将自然语言翻译成一阶逻辑?
- RQ2错误分类与 LLM 合成微调对符号翻译准确性有何影响?
- RQ3与端到端方法相比,增量推理是否改善谓词生成与 FOL 翻译质量?
- RQ4验证模块是否能减少谓词项数等结构性错误,从而提升推理性能?
- RQ5在所提出框架下,使用不同模型家族在多个人逻辑推理数据集上的表现如何?
主要发现
- 用 LLM 合成数据进行微调可降低较小模型的翻译错误。
- 增量推理提升对谓词生成与 FOL 翻译的控制,改善生成质量。
- 面向谓词项数错误的验证模块进一步提升性能。
- 该框架提高了多数据集上的谓词覆盖率和推理性能。
- 三大模型家族在所提出方法下的错误率降低。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。