elBERto: Self-supervised commonsense learning for question answering

Xunlin Zhan, Yuan Li, Xiao Dong, Xiaodan Liang, Zhiting Hu, Lawrence Carin · DOI · OpenReview

Abstract

While large-scale pre-trained language models like BERT and RoBERTa demonstrate exceptional linguistic proficiency, they frequently struggle with tasks requiring implicit commonsense reasoning and causal understanding. We present elBERto, a backbone-agnostic framework that enhances the commonsense capabilities of language models through five self-supervised learning (SSL) tasks. By utilizing novel objectives such as Contrastive Relation Learning and Jigsaw Puzzles, elBERto enables models to learn logical cause-and-effect relationships directly from training data without the need for external knowledge bases. Our approach achieves state-of-the-art results on challenging benchmarks, including WIQA, CosmosQA, and ReClor.

Introduction

In modern natural language processing, models often rely on lexical overlap—matching keywords between a question and a context—rather than true logical reasoning. For instance, if a text states that "a tree produces seeds," a model may fail to infer that "fewer trees" leads to "fewer seeds" because the causal link is implicit. Existing attempts to bridge this gap often involve injecting external knowledge from massive databases or complex knowledge graphs. However, these methods are frequently computationally expensive, noisy, and restricted to the domains covered by the external source.

elBERto addresses these limitations by forcing the model to learn logical rules through clever self-supervision. By manipulating the existing training data to create "counterfactual" signals, the framework teaches models to understand the "why" and "how" of procedural and narrative contexts.

Methodology

The elBERto framework is designed to be integrated with standard architectures like BERT or RoBERTa. It employs a multi-task learning objective where the main question-answering (QA) task is augmented by five auxiliary SSL tasks:

  1. Contrastive Relation Learning (CRL): This novel task presents the model with a valid paragraph and a corrupted version where key relational words are replaced by antonyms (e.g., "increase" becomes "decrease"). The model must identify the logically sound version, teaching it how variables ripple through a causal chain.
  2. Jigsaw Puzzle (JP): The model receives a paragraph with shuffled sentences and must predict the original sequence. This encourages an understanding of long-range logical flow and temporal order.
  3. Binary Sequence Order Prediction (BSOP): A simplified version of the jigsaw task where the model determines if two specific sentences are in the correct chronological or logical order.
  4. Masked Language Modeling (MLM): The standard BERT objective of predicting missing tokens to maintain general linguistic fluency.
  5. Masked Entity Modeling (MEM): A targeted masking task focusing on named entities to improve the model's grasp of relationships between specific actors or objects within a narrative.

Experimental Results

We evaluated elBERto across three diverse benchmarks designed to test different facets of reasoning:

  • WIQA: Focused on "what-if" procedural reasoning. elBERto achieved a state-of-the-art accuracy of 81.22%, notably outperforming complex graph-based models.
  • CosmosQA: Centered on everyday human narratives and social cause-and-effect. elBERto variants exceeded all other methods that did not utilize massive, non-standard pre-training corpora.
  • ReClor: A logical reasoning dataset derived from standardized tests (LSAT/GMAT). On the "Hard" subset, elBERto (RoBERTa-large) improved accuracy to 42.9%, a significant increase over the base model's 40.0%.

Discussion and Key Insights

A critical finding of this research is elBERto’s performance on "out-of-paragraph" questions in the WIQA dataset. These questions require answers that are not explicitly stated in the text. Standard models typically fail here because they cannot rely on lexical shortcuts. elBERto’s gains in this area suggest it is successfully learning to reason about interventions—how changing one variable affects an outcome—rather than just memorizing patterns.

Furthermore, the framework demonstrates high data efficiency. By generating its own training signals through sentence shuffling and antonym replacement, elBERto avoids the overhead of crawling external knowledge graphs while still capturing the underlying logic of the text. Ablation studies confirmed that the combination of CRL and JP provided the most significant boost to the model's reasoning capabilities.

Conclusion and Future Work

elBERto provides a robust, self-supervised path toward teaching AI commonsense. While the framework excels at general reasoning, it still faces challenges with highly specialized domain knowledge (e.g., specific biochemical processes). Future research may explore applying these SSL tasks to larger foundation models or extending the "jigsaw" and "contrastive" logic to multi-modal settings, such as understanding causal sequences in video frames.

Summary updated

BibTeX
@article{zhan2022elberto,
  author = {Xunlin Zhan and Yuan Li and Xiao Dong and Xiaodan Liang and Zhiting Hu and Lawrence Carin},
  title = {{elBERto: Self-supervised commonsense learning for question answering}},
  journal = {Knowledge-Based Systems},
  year = {2022},
  doi = {10.1016/j.knosys.2022.109964},
}
Figure