Symmetric Regularization based BERT for Pair-wise Semantic Reasoning

Weidi Xu, Xingyi Cheng, Kunlong Chen, Wei Wang, Bin Bi +5 more
9/8/2019
cs.CL

Official code: ACL2020Anonymous/SymBERT (1 star, Python, Apache-2.0, last commit 2020-01-16).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
11Python, ShellDec 23, 20196 years agoApache-2.0

Similar Papers

Cite this paper

@article{xu2019symmetric,
  title  = {Symmetric Regularization based BERT for Pair-wise Semantic Reasoning},
  author = {Weidi Xu and Xingyi Cheng and Kunlong Chen and Wei Wang and Bin Bi and Ming Yan and Chen Wu and Luo Si and Wei Chu and Taifeng Wang},
  year   = {2019},
  eprint = {1909.03405},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1909.03405}
}

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

Discussion