Causal Inference for Chatting Handoff

ShanShan Zhong, Jinghui Qin, Zhongzhan Huang, Daifeng LiarXiv 2022

Abstract

Aiming to ensure chatbot quality by predicting chatbot failure and enabling human-agent collaboration, Machine-Human Chatting Handoff (MHCH) has attracted lots of attention from both industry and academia in recent years. However, most existing methods mainly focus on the dialogue context or assist with global satisfaction prediction based on multi-task learning, which ignore the grounded relationships among the causal variables, like the user state and labor cost. These variables are significantly associated with handoff decisions, resulting in prediction bias and cost increasement. Therefore, we propose Causal-Enhance Module (CEM) by establishing the causal graph of MHCH based on these two variables, which is a simple yet effective module and can be easy to plug into the existing MHCH methods. For the impact of users, we use the user state to correct the prediction bias according to the causal relationship of multi-task. For the labor cost, we train an auxiliary cost simulator to calculate unbiased labor cost through counterfactual learning so that a model becomes cost-aware. Extensive experiments conducted on four real-world benchmarks demonstrate the effectiveness of CEM in generally improving the performance of existing MHCH methods without any elaborated model crafting.

Introduction

In modern customer service, chatbots provide essential scalability but often struggle with the nuances of human emotion and complex problem-solving. Machine-Human Chatting Handoff (MHCH) serves as the critical bridge, determining when a conversation should transition from an automated agent to a human representative.

A typical Machine-Human Chatting Handoff (MHCH) scenario. Repeated chatbot failures lead to declining user satisfaction, triggering a handoff to a human agent.

Despite its importance, current MHCH models often operate as "black boxes," relying heavily on dialogue text or simple satisfaction scores. This approach neglects fundamental causal variables—specifically the user's internal emotional state and the actual labor cost of human intervention. This oversight leads to two primary failures: prediction bias, where handoffs occur at inappropriate times due to a lack of emotional context, and cost inefficiency, where models fail to account for the financial burden of human labor.

Methodology: The Causal-Enhance Module (CEM)

To address these limitations, we introduce the Causal-Enhance Module (CEM), a plug-and-play framework designed to integrate seamlessly with existing MHCH architectures. CEM is built upon three foundational pillars:

1. Causal Graph Construction

We mapped the intricate relationships between dialogue (D), handoff decisions (Y), local sentiment (LS), global satisfaction (GS), user state (US), and labor cost (C). This graph provides a structural roadmap, allowing the model to understand the underlying reasons behind a necessary handoff rather than just identifying patterns in text.

2. User State Modeling and Soft Adjustment

Rather than analyzing utterances in isolation, CEM calculates the "User State" as a weighted sum of local sentiments throughout the conversation. To refine this, we employ a "de-neutral soft adjustment" technique. This masks ambiguous neutral sentiments, forcing the model to prioritize clear positive or negative signals, thereby correcting prediction biases caused by emotional ambiguity.

3. Counterfactual Cost Simulator

To instill cost-awareness, we developed an auxiliary cost simulator. Utilizing counterfactual learning, this simulator estimates the "invalid cost" (IC)—the labor expense incurred when a chatbot hands off a conversation it could have successfully resolved. The primary model is then optimized to minimize this estimated invalid cost, ensuring that human intervention is reserved for truly necessary cases.

Architectural evolution from original MHCH models to the full Causal-Enhance Module (CEM), incorporating user state (US) and labor cost (C) components.

Experimental Evaluation

We evaluated CEM across four real-world benchmarks: Clothing, Makeup1, Clothes, and Makeup2. These datasets provide a diverse range of dialogue scenarios, labeled for both handoff necessity and global satisfaction. We integrated CEM into state-of-the-art models, including DAMI and RSSN, to test its generalizability.

Key Results

  • Performance Gains: CEM consistently improved classification metrics. For instance, on the Makeup2 dataset, the CEM-RSSN configuration achieved an F1 score of 67.9%, outperforming the baseline RSSN's 67.1%.
  • Cost Efficiency: The module significantly reduced unnecessary labor costs. In the Clothing dataset, adding CEM to the DAMI model reduced the Invalid Cost (IC) from 59.0% to 53.4%, demonstrating a tangible reduction in "false alarm" handoffs.
  • Stability: Sensitivity analysis regarding the cost simulator weight ($\eta_c$) showed that the model remains stable across various settings, allowing organizations to fine-tune the balance between service quality and labor expenditure.

Conclusion and Future Work

The Causal-Enhance Module represents a significant step toward making chatbot handoff systems more intelligent and cost-effective. By grounding decisions in causal relationships rather than just textual patterns, CEM improves both user experience and operational efficiency.

While effective, future work will focus on increasing mathematical rigor and reducing data dependency. We aim to explore Neural Architecture Search (NAS) to automate the discovery of optimal causal transformations and implement advanced data augmentation to further harden the cost simulator against biased training data.

Summary updated

BibTeX
@misc{zhong2022causal,
  author = {ShanShan Zhong and Jinghui Qin and Zhongzhan Huang and Daifeng Li},
  title = {{Causal Inference for Chatting Handoff}},
  year = {2022},
  eprint = {2210.02862},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.02862},
}
Figure