Introduction
Open-domain dialogue systems often struggle with long-term coherence. While task-oriented systems follow a predefined flow (e.g., booking a flight), casual conversation is a "wild west" of shifting topics. Current Large Language Models (LLMs) frequently suffer from the "Utterance Ascription Issue," failing to distinguish between a direct response and a topic shift. This leads to repetitive or contradictory outputs. CTRLStruct addresses this by automatically discovering the hidden "topic map" of conversations without human-labeled data, combining contrastive learning with imitation learning to guide response generation.
Methodology
The CTRLStruct framework operates in three distinct stages to bridge the gap between sentence-level understanding and global conversation structure.
1. Contrastive Utterance Representation Learning
To capture the directional flow of dialogue, the model employs a bi-directional Transformer with a novel Relative Correlation loss. Beyond standard contrastive learning, CTRLStruct distinguishes between "Strong Relativity" (correlation with the subsequent response) and "Weak Relativity" (correlation with the preceding utterance). This allows the model to better identify whether a sentence is a continuation or a new topic starter.
2. Dialogue Structure Modeling
Utterances are grouped into "topic clusters" using K-Means clustering. A conversation is then modeled as a trajectory through these clusters. Using Imitation Learning (specifically Behavioral Cloning), the model learns to predict the transition probabilities between topics by mimicking human dialogue patterns found in large-scale datasets.
3. Controlled Generation
During inference, the model predicts the most likely next topic cluster. A Kullback-Leibler (KL) divergence loss is applied during decoding, acting as a "magnetic pull" that forces the generated response's representation toward the center of the target topic cluster. This ensures the output remains on-track with the predicted conversation flow.
Experimental Setup
The framework was evaluated on two benchmark datasets:
- DailyDialog: High-quality, structured dialogues about daily life.
- PersonaChat: Engaging but noisier dialogues where speakers follow specific personas.
Results and Analysis
CTRLStruct demonstrated superior performance across both automatic and human metrics compared to established baselines like BART, BlenderBot, and DialoGPT.
Human Evaluation
In double-blind tests, humans consistently rated CTRLStruct higher in Coherence and Overall Quality. For instance, on the DailyDialog dataset, CTRLStruct achieved a coherence score of 1.72, outperforming BlenderBot's 1.64. This suggests that explicit structure modeling effectively mitigates the contradictions common in standard generative models.
Topic Control and Generalization
The model achieved significantly higher Hard Topic Hit Accuracy (HTHA), reaching 23.05% on DailyDialog compared to BART's 16.38%. Furthermore, the framework is "backbone-agnostic"; integrating CTRLStruct with GPT-2 yielded similar improvements in topic adherence, proving its versatility across different architectures.
Discussion and Future Work
The success of CTRLStruct highlights that dialogue logic is inherently directional and that high-quality sentence representations are critical for meaningful structure discovery. However, limitations remain. The current reliance on K-Means assumes spherical cluster distributions, which may oversimplify complex linguistic spaces. Future research could explore "deep clustering" methods for more flexible topic modeling. Additionally, while KL-divergence provides a useful control signal, more stable decoding strategies or symbolic constraints could further refine topic adherence.
Summary updated