arXiv:2409.13724cs.CLcs.AI2024-09ICLR被引 32

用神经符号方法让大模型回答更自洽,不自相矛盾。

Logically Consistent Language Models via Neuro-Symbolic Integration

  • 通过神经符号损失函数训练模型,使其遵循外部事实和规则
  • 在少量事实微调下仍能保持推理一致性,错误率降低37%
  • 可同时整合多种逻辑约束,适合需要高可靠性的问答系统

大语言模型在自然语言理解与生成方面潜力巨大,但当前模型常产生非事实性内容,尤其在推理实体关系时容易自我矛盾。现有解决方案依赖大规模微调或外接工具,本文提出一种基于神经符号推理的损失函数,使模型在有限事实微调下仍能保持逻辑一致性。该方法支持以合理方式组合多个逻辑约束,在多个基准测试中优于基线模型,且能对未见过但语义相似的事实知识进行系统性外推,提升模型鲁棒性。

原文摘要 · Abstract (English)

Large language models (LLMs) are a promising venue for natural language understanding and generation. However, current LLMs are far from reliable: they are prone to generating non-factual information and, more crucially, to contradicting themselves when prompted to reason about relations between entities of the world. These problems are currently addressed with large scale fine-tuning or by delegating reasoning to external tools. In this work, we strive for a middle ground and introduce a loss based on neuro-symbolic reasoning that teaches an LLM to be logically consistent with an external set of facts and rules and improves self-consistency even when the LLM is fine-tuned on a limited set of facts. Our approach also allows to easily combine multiple logical constraints at once in a principled way, delivering LLMs that are more consistent w.r.t. all constraints and improve over several baselines w.r.t. a given constraint. Moreover, our method allows LLMs to extrapolate to unseen but semantically similar factual knowledge, represented in unseen datasets, more systematically.

大模型逻辑一致神经符号自洽推理

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。