Latent Variable Modeling for Controllable and Diverse Generation From Large Language Models
Conditional Variational Auto-Encoders (CVAEs) represent a powerful deep generative framework, utilizing latent variables (explicitly modelled hidden states) to capture underlying factors and govern the generation process accordingly. However, this idea is less explored in the era of Large Language Models (LLMs), facing challenges in structural differences between LLMs and traditional CVAEs as well as challenges in posterior collapse (homogeneous latent variables). In this work, we present the first attempt to extend decoder-only LLMs into encoder-decoder CVAEs, aimming at enhancing existing LLMs with flexible control via low-dimensional latent vectors. To achieve this, we introduce a novel optimization objective for effective latent variable modeling and propose a Gradient-only Skip (G-Skip) Connection, which jointly enhances generation controllability while preserving generation quality. Through experiments on AGNews, Yelp and DailyDialog, we validate the effectiveness of our method in achieving latent modelling and latent-guided language generation on the basis of Llama3-8B. Specifically, we establish new state-of-the-art performance in dialogue generation on the DailyDialog dataset, achieving a BERTScore of 88.30 and an FED score of 5.49.
Authors
- Zhuofan Chen (ORCID: https://orcid.org/0000-0002-1665-1073)
- Chenghua Lin (ORCID: https://orcid.org/0000-0003-3454-2468)
- Wenge Rong (ORCID: https://orcid.org/0000-0002-4229-7215)
- Chen Li
- Chang Liu (ORCID: https://orcid.org/0000-0002-9747-2869)
- Bing Li (ORCID: https://orcid.org/0000-0001-6504-2728)
- Jianfei Zhang
Institutions
- University of Manchester (GB)
- Beihang University (CN)
Publication Details
- Journal
- IEEE Transactions on Artificial Intelligence
- Published
- 2025-06-19
- DOI
- https://doi.org/10.1109/tai.2025.3581507
- Primary Topic
- Topic Modeling
- Type
- article
- Field-Weighted Citation Impact
- 0.00