Chain-of-thought prompting for responding to in-depth dialogue questions with LLM

Hongru Wang, Rui Wang, Fei Mi, Zezhong Wang, Ruifeng Xu, Kam-Fai Wong

Introduction

While Large Language Models (LLMs) like ChatGPT have revolutionized human-AI interaction, they often struggle with the nuances of complex, sensitive, or in-depth conversations. Standard direct prompting frequently results in responses that are technically correct but "stereotypical and tedious." The core issue is that human dialogue is rarely just about literal text; it is rich with subtext, including personality traits, emotional states, and psychological needs.

When an LLM performs a "single-step inference" from context to response, it often misses these underlying linguistic cues. For instance, a user asking about learning a new instrument might be expressing deep-seated anxiety or a specific psychological need for encouragement that a literal answer about logistics fails to address. To bridge this gap, researchers have introduced Cue-CoT (Linguistic Cue-based Chain-of-Thought), a method that requires models to explicitly infer a user's status before generating a final response.

The Cue-CoT Framework

The fundamental shift in Cue-CoT is moving from a direct mapping of Context $\rightarrow$ Response to an augmented process: Context $\rightarrow$ User Status ($s$) $\rightarrow$ Response. By explicitly identifying linguistic cues—such as personality, emotion, and psychology—the model can better tailor its output to the user's hidden needs.

Comparison of Standard Prompting, O-Cue CoT, and M-Cue CoT showing the progression of response quality and reasoning steps.

Researchers explored two primary implementations of this framework:

  1. O-Cue CoT (One-step): The model is instructed to output the user status and the response within a single prompt. While efficient, this method often suffers from "instruction following" bottlenecks, where models may skip the reasoning step or produce truncated responses due to the complexity of the task.
  2. M-Cue CoT (Multi-step): This decoupled approach separates the reasoning into two distinct steps. In Step 1, the model focuses solely on inferring the user status. In Step 2, this inferred status is combined with the original context to generate the final response. This separation allows the model to fully "understand" the subtext before shifting into "response generation" mode.
Architectural flow comparing standard direct mapping to the multi-step M-Cue CoT process.

Experimental Setup and Datasets

The efficacy of Cue-CoT was evaluated across a diverse benchmark of six datasets (three Chinese and three English), totaling approximately 7,300 dialogues. These datasets were categorized by the specific linguistic cues they targeted:

  • Personality: New datasets were synthesized using a pipeline where ChatGPT inferred personas from real-world QA seeds on platforms like Zhihu and Quora.
  • Emotion: Re-organized versions of the EmpatheticDialogues (ED) and EMH datasets were used to test emotional resonance.
  • Psychology: The study utilized PsyQA (mental health support) and D4 (depression diagnosis-oriented chat) to evaluate the model's ability to handle sensitive psychological contexts.

Key Insights and Results

The study tested five major LLMs, including ChatGPT, Vicuna, and ChatGLM. The results consistently favored the multi-step approach:

  • Superior Performance: M-Cue CoT outperformed standard prompting across all metrics. On the Chinese Zhihu dataset, ChatGPT using M-Cue CoT achieved a 95.57% win rate in helpfulness compared to standard direct prompting.
  • The Instruction Bottleneck: Smaller or less capable models often failed at O-Cue CoT because they could not maintain the required output format. M-Cue CoT proved much more robust by simplifying the task at each stage.
  • Subtext as a Stylistic Anchor: Explicitly identifying a user as "anxious" or "curious" acts as a filter for the LLM, shifting its internal probability distribution toward language that is more empathetic, encouraging, or technically detailed as needed.
  • One-Shot Synergy: The researchers found that providing a single demonstration where the user status matched the target scenario (top-1 selection) significantly boosted performance compared to random example selection.

Conclusion

Cue-CoT demonstrates that forcing LLMs to "read between the lines" through structured chain-of-thought reasoning significantly improves the quality of AI-driven dialogue. While multi-step reasoning introduces higher computational costs and latency, the gains in helpfulness and acceptability—especially in sensitive domains like mental health or personalized coaching—suggest that understanding the user's status is a critical component of the next generation of conversational AI.

Summary updated

Abstract

The way and content in which users ask questions can provide insight into their current status, including their personality, emotions, and psychology. Instead of directly prompting the large language models (LLMs), we explore how chain-of-thought prompting helps in this scenario to perform reasoning and planning according to user status, aiming to provide a more personalized and engaging experience for the user query. To this end, we first construct a benchmark of 6 dialogue or question-answering datasets in both English and Chinese, covering 3 different aspects of user status (\textit{including} \textit{personality}, \textit{emotion}, and \textit{psychology}). Then we prompt the LLMs to generate the response regarding the user status as intermediate reasoning processing. We propose a novel demonstration selection strategy using the semantic similarity of intermediate reasoning instead of test queries. To evaluate the effectiveness and robustness of our approach, we conduct extensive experiments with 7 LLMs under zero-shot and one-shot settings. The experimental results show that our approach consistently outperforms standard prompting in terms of both \textit{helpfulness} and \textit{acceptness} across all datasets, regardless of the LLMs used. The code and dataset can be found at \url{https://github.com/ruleGreen/Dialogue\_CoT.git}.
BibTeX
@inproceedings{wang2023chain,
  author = {Hongru Wang and Rui Wang and Fei Mi and Zezhong Wang and Ruifeng Xu and Kam-Fai Wong},
  title = {{Chain-of-thought prompting for responding to in-depth dialogue questions with LLM}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.findings-emnlp.806},
}
Figure