Abstract
Modern neural dialog models often function as "black boxes," lacking the interpretability of traditional systems that rely on hand-crafted dialog acts. We present a framework for learning unsupervised, discrete latent actions that capture sentence-level semantics. By addressing the technical challenge of "posterior collapse" in Variational Autoencoders (VAEs), our models—DI-VAE and DI-VST—discover interpretable representations that can be used to control and explain neural dialog generation. Experimental results across multiple datasets demonstrate that our approach significantly improves language modeling performance and provides highly homogeneous, human-interpretable latent actions.
Introduction
While encoder-decoder neural networks excel at mimicking human speech, they lack the explicit intent modeling found in traditional dialog systems. Traditional systems use discrete "dialog acts" (e.g., Request-Weather) to drive logic, whereas neural models typically rely on dense, continuous vectors that are difficult for humans to interpret or debug. This paper introduces the Latent Action Encoder Decoder (LAED) framework to bridge this gap by learning discrete (categorical) representations that serve as interpretable "actions."
The Challenge of Posterior Collapse
A major hurdle in training VAEs for text is posterior collapse, where the decoder becomes powerful enough to ignore latent variables entirely. This renders the learned representations useless for downstream tasks. To combat this, we propose maximizing the Mutual Information (MI) between the input sentence and the latent variables, ensuring the model is forced to utilize the latent code.
Methodology: The LAED Framework
The LAED framework consists of components designed to learn stable, context-independent semantics:
- DI-VAE (Discrete Information VAE): This model represents a sentence as a set of discrete variables. We modify the standard Evidence Lower Bound (ELBO) objective to include an MI term, preventing the model from ignoring the latent space.
- Batch Prior Regularization (BPR): A novel technique that encourages the latent distribution to match a prior (e.g., uniform) across an entire batch, rather than forcing individual data points to match it, allowing for more flexible local representations.
- DI-VST (Discrete Information Variational Skip Thought): This variant learns by predicting surrounding sentences (context) rather than just reconstructing the input. This captures "distributional semantics," where meaning is defined by a sentence's functional role in a conversation.
Experimental Results
We evaluated our models on four diverse datasets: Penn Treebank (PTB), Stanford Multi-Domain (SMD), Daily Dialog (DD), and Switchboard (SW).
Quantitative Performance
As shown in the table below, DI-VAE achieves a significantly lower Perplexity (PPL) on the PTB dataset (52.53) compared to standard VAEs (73.49) and traditional RNN language models (116.22). This indicates that the discrete latent variables successfully capture meaningful structural information about the language.
Interpretability and Control
Human evaluations on the task-oriented SMD dataset revealed that the discovered latent actions were highly homogeneous. For instance, the model consistently grouped functional sentences like "find nearest coffee shop" into a single "request" action. Furthermore, by employing an "attribute forcing" loss, we achieved over 94% accuracy in generating sentences that match the intended latent action, enabling controllable dialog generation.
Conclusion
By combining information-theoretic objectives with discrete latent variables, we have developed a method to extract interpretable actions from raw text without human labels. While challenges remain in modeling highly spontaneous speech (e.g., Switchboard), these learned latent actions provide a promising foundation for more transparent and controllable neural dialog agents, potentially serving as an action space for future Reinforcement Learning research.
Summary updated