Introduction: The Challenge of Emotional Consistency
In the current landscape of conversational AI, building chatbots that provide semantically relevant answers is a largely addressed challenge. However, creating agents that are "pleasant" and emotionally intelligent remains a significant hurdle. A common failure mode in modern chatbots is the "vibe shift"—where a response is technically accurate or active but emotionally tone-deaf to the preceding conversation.
Users rarely provide explicit negative feedback, such as clicking a "thumbs down" button. Instead, they often express frustration through subtle shifts in tone or by abruptly ending the session. This paper introduces the task of predicting "imminent dissatisfaction" in multi-turn dialogues, aiming to detect when a user is about to become annoyed before the frustration is explicitly voiced.
As shown in the example above, a user sharing a personal hardship is met with a boastful, cheerful response from the AI. While the AI's response is a valid sentence, it is emotionally disastrous in context, leading to a negative user experience ($F_1$).
Methodology: The Relation Sequence Model (RSM)
The authors propose the Relation Sequence Model (RSM), a Gated Convolutional Recurrent Neural Network (GCRNN) designed to capture the relationship between the latest response and the historical dialogue context.
Standard sequence models, such as the Utterance Sequence Model (USM), often treat dialogue as a flat sequence of sentences. In contrast, the RSM recognizes that the latest response ($R_0$) is the primary trigger for dissatisfaction, but its appropriateness is entirely dependent on the preceding turns.
Key Technical Components:
- Utterance Modeling: Each sentence (query $Q$ or response $R$) is encoded using a CNN with max-pooling to extract local semantic features.
- The Matching Gate: This is the core novelty of the RSM. Unlike standard RNNs that pass hidden states forward linearly, the RSM uses a "matching gate." This gate uses the representation of the current response ($R_0$) to filter and weight the importance of previous utterances.
- Relation Encoding: By using the gate, the model explicitly calculates the consistency or conflict between the current response and each historical turn, allowing it to detect emotional clashes that simpler models might miss.
Data Acquisition and Labeling
To train and evaluate the model, the researchers utilized a massive real-world dataset from a Chinese commercial intelligent agent service, comprising 2 million sessions.
- Gold Standard: A subset of 30,039 sessions was manually labeled by experts to identify positive and negative feedback based on user reactions.
- Distance Supervision: To overcome the scarcity of manual labels, the team used 56 strict patterns and 86 uncertain patterns to automatically extract 1.6 million "likely negative" fragments for pre-training.
- Balanced Dataset: A balanced set of 335,314 fragments was constructed to prevent the model from learning false associations—ensuring it doesn't assume a specific response is always "bad" regardless of the context.
Experimental Results
The models were evaluated on their ability to predict emotional polarity (positive vs. negative feedback). The RSM-EU (using the full dialogue history) achieved an accuracy of 61.06%, outperforming the standard sequence model (USM-EU) at 60.22% and a baseline SVM on the last response at 54.86%.
While an accuracy of 61% may seem modest, it represents a statistically significant improvement in the highly subjective and noisy domain of open-domain "chit-chat." The results confirm that treating queries and responses as heterogeneous data—and using the response as a "lens" to view the history—is a superior approach for detecting emotional risk.
Conclusion and Future Directions
This research demonstrates that predicting user dissatisfaction is possible by modeling the relational consistency between a chatbot's response and the dialogue history. Future work aims to move beyond binary classification toward fine-grained emotional categories (e.g., distinguishing between boredom and anger). Additionally, integrating these "emotional risk scores" directly into response-ranking algorithms could allow future chatbots to proactively avoid responses that might annoy the user, leading to more harmonious human-computer interactions.
Summary updated