Topic-VQ-VAE: Leveraging Latent Codebooks for Flexible Topic-Guided Document Generation

YoungJoon Yoo, Jongwon Choi
12/15/2023
cs.CLcs.AIcs.LG

Official code: clovaai/TVQ-VAE (12 stars, Apache-2.0, last commit 2024-02-27).

Abstract

This paper introduces a novel approach for topic modeling utilizing latent codebooks from Vector-Quantized Variational Auto-Encoder~(VQ-VAE), discretely encapsulating the rich information of the pre-trained embeddings such as the pre-trained language model. From the novel interpretation of the latent codebooks and embeddings as conceptual bag-of-words, we propose a new generative topic model called Topic-VQ-VAE~(TVQ-VAE) which inversely generates the original documents related to the respective latent codebook. The TVQ-VAE can visualize the topics with various generative distributions including the traditional BoW distribution and the autoregressive image generation. Our experimental results on document analysis and image generation demonstrate that TVQ-VAE effectively captures the topic context which reveals the underlying structures of the dataset and supports flexible forms of document generation. Official implementation of the proposed TVQ-VAE is available at https://github.com/clovaai/TVQ-VAE.

View on arXivView PDF

Code Implementations(1)

clovaai/TVQ-VAEOfficial100%
Apache-2.0

Official pytorch implementation for TVQ-VAE

124Shell, PythonDec 12, 20232 years agoApache-2.0

Similar Papers

Cite this paper

@article{yoo2023topicvqvae,
  title  = {Topic-VQ-VAE: Leveraging Latent Codebooks for Flexible Topic-Guided Document Generation},
  author = {YoungJoon Yoo and Jongwon Choi},
  year   = {2023},
  eprint = {2312.11532},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.11532v2}
}

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

Discussion