LogiGAN: Learning Logical Reasoning via Adversarial Pre-training

Xinyu Pi, Wanjun Zhong, Yan Gao, Nan Duan, Jian-Guang Lou
5/18/2022
cs.CL

Official code: microsoft/ContextualSP (387 stars, Python, MIT, last commit 2023-11-10).

Abstract

We present LogiGAN, an unsupervised adversarial pre-training framework for improving logical reasoning abilities of language models. Upon automatic identifying logical reasoning phenomena in massive text corpus via detection heuristics, we train language models to predict the masked-out logical statements.

Show full abstract

Inspired by the facilitation effect of reflective thinking in human learning, we analogically simulate the learning-thinking process with an adversarial Generator-Verifier architecture to assist logic learning. LogiGAN implements a novel sequential GAN approach that (a) circumvents the non-differentiable challenge of the sequential GAN by leveraging the Generator as a sentence-level generative likelihood scorer with a learning objective of reaching scoring consensus with the Verifier; (b) is computationally feasible for large-scale pre-training with arbitrary target length. Both base and large size language models pre-trained with LogiGAN demonstrate obvious performance improvement on 12 datasets requiring general reasoning abilities, revealing the fundamental role of logic in broad reasoning, as well as the effectiveness of LogiGAN. Ablation studies on LogiGAN components reveal the relative orthogonality between linguistic and logic abilities and suggest that reflective thinking's facilitation effect might also generalize to machine learning.

View on arXivView PDF

Code Implementations(1)

MIT

Multiple paper open-source codes of the Microsoft Research Asia DKI group

38762Python, Jupyter NotebookApr 14, 20203 years agoMIT
compositional-generalizationconversational-semantic-parsingmicrosoft-research-asiasemantic-parsingtext-to-sql+1 more

Similar Papers

Cite this paper

@article{pi2022logigan,
  title  = {LogiGAN: Learning Logical Reasoning via Adversarial Pre-training},
  author = {Xinyu Pi and Wanjun Zhong and Yan Gao and Nan Duan and Jian-Guang Lou},
  year   = {2022},
  eprint = {2205.08794},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.08794}
}

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

Discussion