Semantic-aware Contrastive Learning for More Accurate Semantic Parsing

Shan Wu, Chunlei Xin, Bo Chen, Xianpei Han, Le Sun
1/19/2023
cs.CL

No confident code implementation found for this paper.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wu2023semanticaware,
  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},
  year   = {2023},
  eprint = {2301.07919},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.07919v1}
}

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

Discussion