[Paper Review] Syntax-Infused Variational Autoencoder for Text Generation
This paper proposes Syntax-Infused Variational Autoencoder (SIVAE), a novel VAE architecture that jointly models sentences and their syntactic trees using two separate latent spaces to improve grammatical quality in text generation. By redesigning the evidence lower bound to optimize joint likelihood and enabling syntactically controlled generation via independent priors, SIVAE achieves superior reconstruction and grammar performance, with successful unsupervised paraphrasing using syntactic templates.
We present a syntax-infused variational autoencoder (SIVAE), that integrates sentences with their syntactic trees to improve the grammar of generated sentences. Distinct from existing VAE-based text generative models, SIVAE contains two separate latent spaces, for sentences and syntactic trees. The evidence lower bound objective is redesigned correspondingly, by optimizing a joint distribution that accommodates two encoders and two decoders. SIVAE works with long short-term memory architectures to simultaneously generate sentences and syntactic trees. Two versions of SIVAE are proposed: one captures the dependencies between the latent variables through a conditional prior network, and the other treats the latent variables independently such that syntactically-controlled sentence generation can be performed. Experimental results demonstrate the generative superiority of SIVAE on both reconstruction and targeted syntactic evaluations. Finally, we show that the proposed models can be used for unsupervised paraphrasing given different syntactic tree templates.
Motivation & Objective
- To improve the grammatical quality of text generated by variational autoencoders by incorporating explicit syntactic structure.
- To address the limitation of existing VAE-based models in capturing deep syntactic structures, which often lead to ungrammatical outputs.
- To design a joint latent representation framework that decouples semantic and syntactic modeling for better control and expressiveness.
- To enable unsupervised paraphrasing by conditioning generation on different syntactic tree templates without parallel data.
- To validate the effectiveness of syntactic priors in improving both reconstruction and targeted syntactic evaluation metrics.
Proposed method
- SIVAE introduces two distinct latent spaces: one for sentence representations and another for syntactic tree structures.
- The model employs two encoders and two decoders, one for each modality, to jointly infer and generate sentence-tree pairs.
- The evidence lower bound (ELBO) is redefined to optimize the joint log-likelihood of sentences and their parse trees, enabling end-to-end training.
- Two variants are proposed: SIVAE-c, which conditions the syntactic prior on the sentence prior to model dependencies; and SIVAE-i, which assumes independent priors for syntactic control.
- The syntactic tree is linearized from constituency parse structures (e.g., (S(NP(...))(VP(...))) for input processing.
- During inference, SIVAE-i allows paraphrasing by fixing a sentence latent code and sampling different syntactic tree codes from independent priors.
Experimental results
Research questions
- RQ1Can integrating syntactic trees into a VAE framework improve the grammatical quality of generated sentences?
- RQ2How does joint modeling of sentences and syntactic trees affect reconstruction performance and fluency?
- RQ3Can the model enable syntactically controlled text generation without parallel data?
- RQ4Does the use of syntactic priors lead to more diverse and relevant paraphrases in an unsupervised setting?
- RQ5How continuous and semantically meaningful are the latent spaces in the proposed architecture?
Key findings
- SIVAE-c achieved the highest human evaluation score for readability (3.47 on PTB and 3.67 on wiki90M), confirming that syntactic priors enhance grammatical fluency.
- SIVAE-i generated more diverse paraphrases than SIVAE-c and standard VAE, with a diversity score of 3.13 on PTB and 3.20 on wiki90M, indicating effective syntactic control.
- The model demonstrated smooth interpolation in the sentence latent space, with intermediate points generating grammatical and semantically coherent transitions.
- On targeted syntactic evaluation, SIVAE outperformed baselines in capturing syntactic structures, confirming improved grammatical generation.
- Unsupervised paraphrasing using SIVAE-i with different syntactic templates produced relevant and grammatical outputs, even without parallel training data.
- The model achieved better reconstruction and grammar scores than standard VAEs on both human-labeled and parser-generated trees, validating the utility of syntactic priors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.