Verification and Refinement of Natural Language Explanations through LLM-Symbolic Theorem Proving

Xin Quan, Marco Valentino, Louise A. Dennis, André Freitas
5/2/2024
77 citations
cs.CL

Official code: neuro-symbolic-ai/explanation_refinement (9 stars, Python, MIT, last commit 2024-11-27).

Abstract

Natural language explanations represent a proxy for evaluating explanation-based and multi-step Natural Language Inference (NLI) models. However, assessing the validity of explanations for NLI is challenging as it typically involves the crowd-sourcing of apposite datasets, a process that is time-consuming and prone to logical errors.

Show full abstract

To address existing limitations, this paper investigates the verification and refinement of natural language explanations through the integration of Large Language Models (LLMs) and Theorem Provers (TPs). Specifically, we present a neuro-symbolic framework, named Explanation-Refiner, that integrates TPs with LLMs to generate and formalise explanatory sentences and suggest potential inference strategies for NLI. In turn, the TP is employed to provide formal guarantees on the logical validity of the explanations and to generate feedback for subsequent improvements. We demonstrate how Explanation-Refiner can be jointly used to evaluate explanatory reasoning, autoformalisation, and error correction mechanisms of state-of-the-art LLMs as well as to automatically enhance the quality of explanations of variable complexity in different domains.

View on arXivView PDF

Code Implementations(1)

MIT

Code and data for paper "Verification and Refinement of Natural Language Explanations through LLM-Symbolic Theorem Proving"

90PythonSep 25, 20242 years agoMIT
natural-language-explanationsnatural-language-inferenceneuro-symbolictextual-entailmenttheorem-proving

Similar Papers

Cite this paper

@article{quan2024verification,
  title  = {Verification and Refinement of Natural Language Explanations through LLM-Symbolic Theorem Proving},
  author = {Xin Quan and Marco Valentino and Louise A. Dennis and André Freitas},
  year   = {2024},
  eprint = {2405.01379},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.01379v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.01379.svg)](https://codeofpaper.com/paper/2405.01379)

Discussion