arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2502.17216cs.AIcs.CL
收藏

中间语言至关重要:形式化选择驱动神经符号大语言模型推理

Intermediate Languages Matter: Formal Choice Drives Neurosymbolic LLM Reasoning

TU Wien, Vienna, Austria(维也纳技术大学);Johannes Kepler University Linz, Linz, Austria(林茨约翰尼斯·凯普勒大学)

Alexander Beiser, David Penz, Nysret Musliu

AI总结:

本研究针对神经符号LLM推理的成功影响因素不明确的问题,通过多组对比实验发现形式语言选择是关键因素,提出中间语言挑战,并验证上下文感知编码可提升推理效果。

摘要:

大语言模型(LLMs)在各类任务上取得了惊人的成果,但其形式化推理能力仍较为滞后。神经符号LLM推理是一种颇具前景的方法,其工作原理是将LLMs用作自然语言到形式语言的转换器,再借助符号求解器推导正确结果。然而,目前神经符号LLM推理的成功影响因素仍不明确。本文指出,形式语言的选择是一项重要因素。通过在3个数据集、6款LLM上对比4种形式语言,我们发现形式语言的选择会同时影响句法推理能力与语义推理能力。由此我们提出中间语言挑战,即为神经符号推理挑选合适形式语言的难题。此外,我们还通过消融实验对比了使用不同上下文学习示例的效果。结论显示,平均而言,上下文感知编码有助于LLM进行推理,而使用注释或Markdown语法则无明显效果。

英文摘要:

Large language models (LLMs) achieve astonishing results on a wide range of tasks. However, their formal reasoning ability still lags behind. A promising approach is Neurosymbolic LLM reasoning. It works by using LLMs as translators from natural to formal languages and symbolic solvers for deriving correct results. Still, it remains unclear what the contributing factors to the success of Neurosymbolic LLM reasoning are. This paper shows that one important factor is the choice of the formal language. By comparing 4 formal languages on 3 datasets over 6 LLMs, we show that the choice of formal language affects both the syntactic and the semantic reasoning capability. Thereby, we introduce the intermediate language challenge, which is the challenge of picking a suitable formal language for neurosymbolic reasoning. Further, we compare the effects of using different in-context-learning examples in an ablation study. We conclude that on average, context-aware encodings help LLMs to reason, while there is no apparent effect of using comments or markdown syntax.

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

↑