Abstract
Controllable Text Generation (CTG) is essential for developing persona-consistent and emotionally intelligent dialogue systems. While existing weighted decoding methods excel at single-attribute control, they often struggle with multi-attribute scenarios, leading to parameter explosion and text degeneration. We present DASC (Dialog Attribute Space Controller), a framework that grounds attributes in a shared semantic space. By projecting both vocabulary and context into this space, DASC achieves high-precision multi-attribute control with significantly improved parameter efficiency and text quality.
Introduction
In modern conversational AI, the goal is often to generate responses that adhere to specific stylistic or functional constraints, such as a particular persona, emotion, or intent. This task, known as Controllable Text Generation (CTG), typically employs "Weighted Decoding" to influence the model's token selection during inference. However, traditional methods face a scalability wall. When multiple attributes are required simultaneously—for instance, a "female" persona expressing "fear" while asking a "question"—the number of parameters in standard classifiers grows linearly with the product of the vocabulary size and the number of attributes. This often results in "degeneration," where the model produces repetitive or nonsensical "dull" text.
The DASC Framework
To address these limitations, the Dialog Attribute Space Controller (DASC) shifts the paradigm from independent attribute labels to a unified Attribute Semantic Space.
Architecture and Methodology
DASC operates by mapping words and conversational contexts into a shared high-dimensional space where semantic relationships are preserved.
- Attribute Token Embedding (ATE): Instead of treating every word as a discrete ID, DASC projects the entire vocabulary into an attribute space. In this space, words with similar stylistic connotations (e.g., "joyful" and "delighted") are clustered together.
- Attribute Context Embedding (ACE): The hidden state of the Language Model (LM), representing the current "thought" or context, is similarly projected into this semantic space.
- Similarity-Based Decoding: During the generation process, the model calculates the similarity between the current context embedding and the token embeddings in the attribute space. Tokens that align semantically with the target attribute receive a logit boost, guiding the model toward desired traits.
- Multi-Attribute Interpolation: Handling multiple attributes becomes a simple geometric operation. Rather than multiplying independent probabilities, DASC averages the context embeddings for the target attributes. This additive approach is both computationally efficient and prevents the "vanishing probability" issues common in previous methods.
Experimental Setup
The researchers evaluated DASC across two distinct linguistic and functional domains:
- DuLemon: A large-scale Chinese open-domain dialogue dataset. The model was tasked with controlling three simultaneous aspects: Gender Style (Male, Female, Neutral), Emotion (8 distinct classes), and Dialogue Act (Question vs. Non-question).
- ESConv: An English dataset focused on Emotional Support Strategies. This evaluation demonstrated DASC's language-agnostic nature and its ability to handle complex, strategy-driven conversational tasks.
Key Insights
The "Neighbor" Effect
A significant advantage of grounding attributes in a semantic space is the "neighbor" effect. Because the model learns relationships between words in the attribute space, training on a specific word like "happy" inherently informs the model about related terms like "cheerful." This makes DASC far more robust than traditional classifiers that treat every vocabulary item as an unrelated entity.
Natural Attribute Blending
DASC excels at "blending" attributes to create nuanced responses. By interpolating embeddings, the model can generate text that simultaneously reflects multiple emotional or stylistic states without one overpowering the other.
Results and Discussion
DASC demonstrated superior performance across several metrics:
- Control Accuracy: On the DuLemon dataset, DASC achieved an average control accuracy of 94.42% across three simultaneous attributes. Remarkably, it outperformed the previous state-of-the-art "Director" model while utilizing approximately half the additional parameters.
- Robustness to Distribution Shift: In "out-of-distribution" scenarios—where the model encountered rare attribute combinations—DASC remained stable. In contrast, baseline models like CTRL experienced significant performance drops, particularly in emotion accuracy.
- Human Evaluation: Human raters consistently preferred DASC's outputs, labeling them as more "Interesting" and "Natural." While baselines often produced fluent but generic text, DASC successfully followed complex persona and emotional instructions while maintaining logical consistency.
Limitations and Future Directions
While DASC represents a significant step forward, some challenges remain. The system currently relies on an external "dialogue policy" to determine which attributes to apply. Future iterations could integrate this decision-making process for a more end-to-end experience. Additionally, the current model uses discrete labels; extending DASC to handle "free-text" or descriptive persona prompts remains an open area for research. Finally, the requirement for annotated datasets for new control attributes continues to be a bottleneck for rapid domain adaptation.
Summary updated