Empower Nested Boolean Logic via Self-Supervised Curriculum Learning

Hongqiu Wu, Linfeng Liu, Hai Zhao, Min Zhang
10/9/2023
9 citations
cs.CL
contrastive-ssl

Official code: gingasan/boolkill (3 stars, Python, last commit 2023-10-10).

Abstract

Beyond the great cognitive powers showcased by language models, it is crucial to scrutinize whether their reasoning capabilities stem from strong generalization or merely exposure to relevant data. As opposed to constructing increasingly complex logic, this paper probes into the boolean logic, the root capability of a logical reasoner.

Show full abstract

We find that any pre-trained language models even including large language models only behave like a random selector in the face of multi-nested boolean logic, a task that humans can handle with ease. To empower language models with this fundamental capability, this paper proposes a new self-supervised learning method \textit{Curriculum Logical Reasoning} (\textsc{Clr}), where we augment the training data with nested boolean logic chain step-by-step, and program the training from simpler logical patterns gradually to harder ones. This new training paradigm allows language models to effectively generalize to much harder and longer-hop logic, which can hardly be learned through naive training. Furthermore, we show that boolean logic is a great foundation for improving the subsequent general logical tasks.

View on arXivView PDF

Code Implementations(1)

gingasan/boolkillOfficial100%
30Python, Jupyter NotebookOct 9, 20233 years ago

Similar Papers

Cite this paper

@article{wu2023empower,
  title  = {Empower Nested Boolean Logic via Self-Supervised Curriculum Learning},
  author = {Hongqiu Wu and Linfeng Liu and Hai Zhao and Min Zhang},
  year   = {2023},
  eprint = {2310.05450},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.05450v2}
}

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

Discussion