English

Semantic-aware Contrastive Learning for More Accurate Semantic Parsing

Computation and Language 2023-01-20 v1

Abstract

Since the meaning representations are detailed and accurate annotations which express fine-grained sequence-level semtantics, it is usually hard to train discriminative semantic parsers via Maximum Likelihood Estimation (MLE) in an autoregressive fashion. In this paper, we propose a semantic-aware contrastive learning algorithm, which can learn to distinguish fine-grained meaning representations and take the overall sequence-level semantic into consideration. Specifically, a multi-level online sampling algorithm is proposed to sample confusing and diverse instances. Three semantic-aware similarity functions are designed to accurately measure the distance between meaning representations as a whole. And a ranked contrastive loss is proposed to pull the representations of the semantic-identical instances together and push negative instances away. Experiments on two standard datasets show that our approach achieves significant improvements over MLE baselines and gets state-of-the-art performances by simply applying semantic-aware contrastive learning on a vanilla Seq2Seq model.

Keywords

Cite

@article{arxiv.2301.07919,
  title  = {Semantic-aware Contrastive Learning for More Accurate Semantic Parsing},
  author = {Shan Wu and Chunlei Xin and Bo Chen and Xianpei Han and Le Sun},
  journal= {arXiv preprint arXiv:2301.07919},
  year   = {2023}
}

Comments

Accepted by EMNLP 2022

R2 v1 2026-06-28T08:15:07.451Z