Skip to main content
QUICK REVIEW

[Paper Review] Symmetric Regularization based BERT for Pair-wise Semantic Reasoning

Weidi Xu, Xingyi Cheng|arXiv (Cornell University)|Sep 8, 2019
Topic ModelingComputer Science24 references6 citations
TL;DR

This paper proposes SymBERT, a symmetric regularization method that enhances BERT's pair-wise semantic reasoning by extending the next sentence prediction (NSP) task to a 3-class classification problem including a previous sentence prediction (PSP) head. By enforcing symmetry between NSP and PSP, the model learns more robust, order-invariant representations, leading to consistent improvements on NLI and MRC benchmarks, including SOTA performance on HANS and competitive results on Chinese NLP tasks.

ABSTRACT

The ability of semantic reasoning over the sentence pair is essential for many natural language understanding tasks, e.g., natural language inference and machine reading comprehension. A recent significant improvement in these tasks comes from BERT. As reported, the next sentence prediction (NSP) in BERT, which learns the contextual relationship between two sentences, is of great significance for downstream problems with sentence-pair input. Despite the effectiveness of NSP, we suggest that NSP still lacks the essential signal to distinguish between entailment and shallow correlation. To remedy this, we propose to augment the NSP task to a 3-class categorization task, which includes a category for previous sentence prediction (PSP). The involvement of PSP encourages the model to focus on the informative semantics to determine the sentence order, thereby improves the ability of semantic understanding. This simple modification yields remarkable improvement against vanilla BERT. To further incorporate the document-level information, the scope of NSP and PSP is expanded into a broader range, i.e., NSP and PSP also include close but nonsuccessive sentences, the noise of which is mitigated by the label-smoothing technique. Both qualitative and quantitative experimental results demonstrate the effectiveness of the proposed method. Our method consistently improves the performance on the NLI and MRC benchmarks, including the challenging HANS dataset \cite{hans}, suggesting that the document-level task is still promising for the pre-training.

Motivation & Objective

  • To address the limitation of BERT's NSP task in distinguishing between semantic entailment and shallow correlation in sentence pairs.
  • To mitigate BERT's sensitivity to sentence order in downstream tasks by introducing a symmetric learning signal.
  • To improve document-level representation learning by extending NSP and PSP to non-consecutive sentence pairs.
  • To evaluate the effectiveness of symmetric regularization on both English and Chinese semantic reasoning benchmarks.
  • To demonstrate that simple architectural modifications can yield significant gains without increasing model size or training data.

Proposed method

  • Proposes a 3-class classification head that includes IsNext (NSP), IsPrev (PSP), and a negative class, where IsPrev is the symmetric counterpart of IsNext.
  • Trains the model to predict whether a sentence is the next or previous sentence in a document, encouraging the model to learn deeper semantic relationships.
  • Extends the scope of NSP and PSP beyond immediate sentence pairs to include non-consecutive sentence pairs, enriching document-level context.
  • Applies label smoothing to reduce noise from distant sentence pairs during pre-training.
  • Uses the same BERT-base architecture but modifies the pre-training objective to include symmetric supervision signals.
  • Pre-trains the model on monolingual and multilingual corpora, including Chinese text, and fine-tunes on downstream NLI and MRC tasks.

Experimental results

Research questions

  • RQ1Can introducing a symmetric prediction head (PSP) improve BERT's ability to distinguish between entailment and correlation in sentence pairs?
  • RQ2Does symmetric regularization reduce the model's sensitivity to sentence order in downstream tasks?
  • RQ3Can extending NSP and PSP to non-consecutive sentence pairs improve document-level understanding without introducing noise?
  • RQ4How does the proposed method perform on challenging benchmarks like HANS, which test for heuristic shortcuts?
  • RQ5To what extent does the method generalize to low-resource or multilingual settings, such as Chinese NLP tasks?

Key findings

  • The proposed SymBERT model achieves a 3.5% absolute improvement on the QNLI benchmark compared to vanilla BERT, demonstrating enhanced semantic reasoning.
  • On the HANS benchmark, SymBERT outperforms BERT and other baselines, indicating reduced reliance on heuristic patterns.
  • On Chinese NLP tasks, SymBERT achieves competitive results—matching or exceeding ERNIE 2.0 on CMRC-2018 and DRCD despite using fewer objectives and less training data.
  • The model with label smoothing (SymBERT-PNsmth) achieves the best performance on DRCD (F1: 92.6, EM: 86.6), showing the effectiveness of noise mitigation.
  • The method consistently improves performance across both English and Chinese benchmarks, confirming its generalization capability.
  • Ablation studies confirm that the symmetric regularization via PSP is the key factor in performance gains, not just the inclusion of more training signals.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.