A Multi-Task Approach for Disentangling Syntax and Semantics in Sentence Representations

Mingda Chen, Qingming Tang, Sam Wiseman, Kevin Gimpel
4/2/2019
cs.CL

Official code: mingdachen/disentangle-semantics-syntax (67 stars, Python, last commit 2021-03-05).

Abstract

We propose a generative model for a sentence that uses two latent variables, with one intended to represent the syntax of the sentence and the other to represent its semantics. We show we can achieve better disentanglement between semantic and syntactic representations by training with multiple losses, including losses that exploit aligned paraphrastic sentences and word-order information.

Show full abstract

We also investigate the effect of moving from bag-of-words to recurrent neural network modules. We evaluate our models as well as several popular pretrained embeddings on standard semantic similarity tasks and novel syntactic similarity tasks. Empirically, we find that the model with the best performing syntactic and semantic representations also gives rise to the most disentangled representations.

View on arXivView PDF

Code Implementations(1)

Code for "A Multi-Task Approach for Disentangling Syntax and Semantics in Sentence Representations" (NAACL 2019)

677Python, ShellMar 25, 20195 years ago

Similar Papers

Cite this paper

@article{chen2019multitask,
  title  = {A Multi-Task Approach for Disentangling Syntax and Semantics in Sentence Representations},
  author = {Mingda Chen and Qingming Tang and Sam Wiseman and Kevin Gimpel},
  year   = {2019},
  eprint = {1904.01173},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.01173}
}

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

Discussion