[Paper Review] A Hybrid Neural Network Model for Commonsense Reasoning
This paper proposes a hybrid neural network (HNN) model that combines a masked language model (MLM) and a semantic similarity model (SSM) using a shared BERT-based contextual encoder to improve commonsense reasoning. The HNN achieves state-of-the-art results on three benchmarks: 89.0% on WNLI, 75.1% on WSC, and 90.0% on PDP60, demonstrating that the two components are complementary and jointly enhance performance through multi-task learning with a ranking loss.
This paper proposes a hybrid neural network (HNN) model for commonsense reasoning. An HNN consists of two component models, a masked language model and a semantic similarity model, which share a BERT-based contextual encoder but use different model-specific input and output layers. HNN obtains new state-of-the-art results on three classic commonsense reasoning tasks, pushing the WNLI benchmark to 89%, the Winograd Schema Challenge (WSC) benchmark to 75.1%, and the PDP60 benchmark to 90.0%. An ablation study shows that language models and semantic similarity models are complementary approaches to commonsense reasoning, and HNN effectively combines the strengths of both. The code and pre-trained models will be publicly available at https://github.com/namisan/mt-dnn.
Motivation & Objective
- To improve commonsense reasoning in NLU by combining language modeling and semantic similarity approaches.
- To address the challenge of anaphora resolution in Winograd Schema and Pronoun Disambiguation tasks, which require implicit commonsense knowledge beyond surface text.
- To investigate whether masked language models and semantic similarity models are complementary in commonsense reasoning.
- To develop a hybrid model that leverages both inductive biases through multi-task learning with a shared BERT encoder.
- To validate the effectiveness of a ranking loss objective in improving model generalization across reasoning tasks.
Proposed method
- The HNN model integrates two component models: a masked language model (MLM) and a deep semantic similarity model (SSM), both sharing a BERT-based contextual encoder.
- Each component model uses distinct input and output layers tailored to its specific task: MLM predicts next-token probabilities after pronoun replacement, while SSM computes cosine similarity between pronoun and candidate antecedent representations.
- The final prediction is derived by combining scores from both models using a weighted fusion strategy.
- The training procedure involves two stages: pretraining the BERT encoder on large-scale raw text, followed by multi-task fine-tuning on the WSCR dataset.
- A ranking loss is introduced to optimize the relative ordering of correct and incorrect antecedents, improving generalization beyond binary classification.
- Model ensembling across the last six training epochs further boosts performance, particularly on the WNLI benchmark.
Experimental results
Research questions
- RQ1Are masked language models and semantic similarity models complementary for commonsense reasoning tasks?
- RQ2Can a hybrid model that combines both approaches outperform individual models on commonsense reasoning benchmarks?
- RQ3Does the inclusion of a ranking loss during training improve performance on anaphora resolution tasks?
- RQ4Is the task of commonsense reasoning better formulated as a ranking problem or a binary classification problem?
- RQ5How significant is the performance gain from ensembling multiple model checkpoints in the final prediction?
Key findings
- The HNN model achieves a new state-of-the-art accuracy of 89.0% on the WNLI benchmark, a 5.4% absolute improvement over prior methods.
- On the WSC benchmark, the HNN achieves 75.1% accuracy, significantly outperforming previous models.
- The HNN attains 90.0% accuracy on the PDP60 benchmark, demonstrating strong generalization to pronoun disambiguation.
- Ablation studies show that removing either the MLM or SSM component causes a significant performance drop, confirming their complementary roles.
- The ranking loss improves performance on WNLI, WSCR, and WSC, with the largest gain observed on WNLI (2.3% absolute improvement when included).
- The ranking formulation consistently outperforms the classification formulation by approximately 2.5% in accuracy on the HNN model, indicating that ranking is a more effective task formulation for this task.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.