English

Improving Semantic Matching through Dependency-Enhanced Pre-trained Model with Adaptive Fusion

Computation and Language 2023-08-25 v5 Artificial Intelligence

Abstract

Transformer-based pre-trained models like BERT have achieved great progress on Semantic Sentence Matching. Meanwhile, dependency prior knowledge has also shown general benefits in multiple NLP tasks. However, how to efficiently integrate dependency prior structure into pre-trained models to better model complex semantic matching relations is still unsettled. In this paper, we propose the \textbf{D}ependency-Enhanced \textbf{A}daptive \textbf{F}usion \textbf{A}ttention (\textbf{DAFA}), which explicitly introduces dependency structure into pre-trained models and adaptively fuses it with semantic information. Specifically, \textbf{\emph{(i)}} DAFA first proposes a structure-sensitive paradigm to construct a dependency matrix for calibrating attention weights. It adopts an adaptive fusion module to integrate the obtained dependency information and the original semantic signals. Moreover, DAFA reconstructs the attention calculation flow and provides better interpretability. By applying it on BERT, our method achieves state-of-the-art or competitive performance on 10 public datasets, demonstrating the benefits of adaptively fusing dependency structure in semantic matching task.

Keywords

Cite

@article{arxiv.2210.08471,
  title  = {Improving Semantic Matching through Dependency-Enhanced Pre-trained Model with Adaptive Fusion},
  author = {Jian Song and Di Liang and Rumei Li and Yuntao Li and Sirui Wang and Minlong Peng and Wei Wu and Yongxin Yu},
  journal= {arXiv preprint arXiv:2210.08471},
  year   = {2023}
}

Comments

Accepted by Findings of EMNLP 2022

R2 v1 2026-06-28T03:44:22.106Z