Semantic-aware Contrastive Learning for More Accurate Semantic Parsing

Shan Wu, Chunlei Xin, Bo Chen, Xianpei Han, Le Sun


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.
Anthology ID:
2022.emnlp-main.269
Volume:
Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing
Month:
December
Year:
2022
Address:
Abu Dhabi, United Arab Emirates
Editors:
Yoav Goldberg, Zornitsa Kozareva, Yue Zhang
Venue:
EMNLP
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
4040–4052
Language:
URL:
https://aclanthology.org/2022.emnlp-main.269
DOI:
10.18653/v1/2022.emnlp-main.269
Bibkey:
Cite (ACL):
Shan Wu, Chunlei Xin, Bo Chen, Xianpei Han, and Le Sun. 2022. Semantic-aware Contrastive Learning for More Accurate Semantic Parsing. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pages 4040–4052, Abu Dhabi, United Arab Emirates. Association for Computational Linguistics.
Cite (Informal):
Semantic-aware Contrastive Learning for More Accurate Semantic Parsing (Wu et al., EMNLP 2022)
Copy Citation:
PDF:
https://aclanthology.org/2022.emnlp-main.269.pdf