Evaluating Step-by-Step Reasoning through Symbolic Verification

Yi-Fan Zhang, Hanlin Zhang, Li Erran Li, Eric Xing
12/16/2022
cs.CL

Official code: hlzhang109/LMLP (2 stars, Python, MIT, last commit 2023-01-07).

Abstract

Pre-trained language models (LMs) have shown remarkable reasoning performance using explanations or chain-of-thoughts (CoT)) for in-context learning. On the other hand, these reasoning tasks are usually presumed to be more approachable for symbolic programming.

Show full abstract

To understand the mechanism of reasoning of LMs, we curate synthetic datasets containing equivalent (natural, symbolic) data pairs, where symbolic examples contain first-order logic rules and predicates from non-parametric knowledge bases (KBs), supporting automated verification of intermediate reasoning results. Then we revisit neuro-symbolic approaches and propose to learn from demonstrations containing logic rules and corresponding examples to iteratively reason over KBs, recovering Prolog's backward chaining algorithm and supporting automated verification of LMs' outputs. Comprehensive experiments are included to systematically compare LMLP with CoT in deductive reasoning settings, showing that LMLP enjoys more than $25\%$ higher accuracy than CoT on length generalization benchmarks even with smaller model sizes.

View on arXivView PDF

Code Implementations(1)

hlzhang109/LMLPOfficial100%
MIT
20Python, NewLispJan 5, 20233 years agoMIT

Similar Papers

Cite this paper

@article{zhang2022evaluating,
  title  = {Evaluating Step-by-Step Reasoning through Symbolic Verification},
  author = {Yi-Fan Zhang and Hanlin Zhang and Li Erran Li and Eric Xing},
  year   = {2022},
  eprint = {2212.08686},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.08686}
}

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/2212.08686.svg)](https://codeofpaper.com/paper/2212.08686)

Discussion