Exploiting Inductive Bias in Transformers for Unsupervised Disentanglement of Syntax and Semantics with VAEs

Ghazi Felhi, Joseph Le Roux, Djamé Seddah
5/12/2022
cs.CLcs.LG
transformer-attention

Official code: ghazi-f/QKVAE (11 stars, Python, last commit 2023-02-24).

Abstract

We propose a generative model for text generation, which exhibits disentangled latent representations of syntax and semantics. Contrary to previous work, this model does not need syntactic information such as constituency parses, or semantic information such as paraphrase pairs.

Show full abstract

Our model relies solely on the inductive bias found in attention-based architectures such as Transformers. In the attention of Transformers, keys handle information selection while values specify what information is conveyed. Our model, dubbed QKVAE, uses Attention in its decoder to read latent variables where one latent variable infers keys while another infers values. We run experiments on latent representations and experiments on syntax/semantics transfer which show that QKVAE displays clear signs of disentangled syntax and semantics. We also show that our model displays competitive syntax transfer capabilities when compared to supervised models and that comparable supervised models need a fairly large amount of data (more than 50K samples) to outperform it on both syntactic and semantic transfer. The code for our experiments is publicly available.

View on arXivView PDF

Code Implementations(1)

ghazi-f/QKVAEOfficial100%

Implementation of QKVAE

111Python, ShellApr 30, 20223 years ago

Similar Papers

Cite this paper

@article{felhi2022exploiting,
  title  = {Exploiting Inductive Bias in Transformers for Unsupervised Disentanglement of Syntax and Semantics with VAEs},
  author = {Ghazi Felhi and Joseph Le Roux and Djamé Seddah},
  year   = {2022},
  eprint = {2205.05943},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2205.05943}
}

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

Discussion