LlaMaVAE: Guiding Large Language Model Generation via Continuous Latent Sentence Spaces

Yingji Zhang, Danilo S. Carvalho, Ian Pratt-Hartmann, André Freitas
12/20/2023
cs.CL

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Deep generative neural networks, such as Variational AutoEncoders (VAEs), offer an opportunity to better understand and control language models from the perspective of sentence-level latent spaces. To combine the controllability of VAE latent spaces with the state-of-the-art performance of recent large language models (LLMs), we present in this work LlaMaVAE, which combines expressive encoder and decoder models (sentenceT5 and LlaMA) with a VAE architecture, aiming to provide better text generation control to LLMs. In addition, to conditionally guide the VAE generation, we investigate a new approach based on flow-based invertible neural networks (INNs) named Invertible CVAE. Experimental results reveal that LlaMaVAE can outperform the previous state-of-the-art VAE language model, Optimus, across various tasks, including language modelling, semantic textual similarity and definition modelling. Qualitative analysis on interpolation and traversal experiments also indicates an increased degree of semantic clustering and geometric consistency, which enables better generation control.

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. 5 weaker matches are hidden by default — 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{zhang2023llamavae,
  title  = {LlaMaVAE: Guiding Large Language Model Generation via Continuous Latent Sentence Spaces},
  author = {Yingji Zhang and Danilo S. Carvalho and Ian Pratt-Hartmann and André Freitas},
  year   = {2023},
  eprint = {2312.13208},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.13208v1}
}

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

Discussion