Uncovering the Potential of ChatGPT for Discourse Analysis in Dialogue: An Empirical Study

Yaxin Fan, Feng Jiang, Peifeng Li, Haizhou Li

Abstract: Large language models, like ChatGPT, have shown remarkable capability in many downstream tasks, yet their ability to understand discourse structures of dialogues remains less explored, where it requires higher level capabilities of understanding and reasoning. In this paper, we aim to systematically inspect ChatGPT’s performance in two discourse analysis tasks: topic segmentation and discourse parsing, focusing on its deep semantic understanding of linear and hierarchical discourse structures underlying dialogue. To instruct ChatGPT to complete these tasks, we initially craft a prompt template consisting of the task description, output format, and structured input. Then, we conduct experiments on four popular topic segmentation datasets and two discourse parsing datasets. The experimental results showcase that ChatGPT demonstrates proficiency in identifying topic structures in general-domain conversations yet struggles considerably in specific-domain conversations. We also found that ChatGPT hardly understands rhetorical structures that are more complex than topic structures. Our deeper investigation indicates that ChatGPT can give more reasonable topic structures than human annotations but only linearly parses the hierarchical rhetorical structures. In addition, we delve into the impact of in-context learning (e.g., chain-of-thought) on ChatGPT and conduct the ablation study on various prompt components, which can provide a research foundation for future work.

Introduction: The Challenge of Dialogue Discourse

While Large Language Models (LLMs) like ChatGPT have demonstrated exceptional performance in "shallow" semantic tasks such as translation and summarization, their ability to grasp the underlying structural "skeleton" of a conversation remains a significant research frontier. Dialogue discourse analysis involves two primary tasks: topic segmentation, which identifies linear shifts in subject matter, and discourse parsing, which uncovers the complex, hierarchical rhetorical relationships between utterances.

Comparison between linear topic segmentation and hierarchical rhetorical parsing in dialogue.

This study provides a systematic benchmark of ChatGPT’s performance across these tasks, revealing that while the model is a proficient "linear thinker" capable of segmenting general conversations, it struggles with the non-linear, hierarchical reasoning required for deep discourse parsing.

Methodology

The researchers evaluated ChatGPT (specifically gpt-3.5-turbo-0301) using a structured prompting strategy. The prompt template included three core components:

  1. Task Description: Explicit instructions for identifying topic boundaries or rhetorical links.
  2. Output Format: Requirements for the model to return data in specific structures (e.g., Python dictionaries for segmentation, sparse matrices for parsing) to facilitate automated evaluation.
  3. Structured Input: Line-by-line dialogue with utterance indexing.

The study also explored In-Context Learning (ICL), specifically comparing standard input-output examples with Chain-of-Thought (CoT) prompting, where the model is guided through the reasoning steps necessary to derive a discourse structure.

Experimental Setup

The evaluation spanned six diverse datasets to test different aspects of discourse:

  • Topic Segmentation: Included synthetic English bookings (DialSeg711), real-world news chitchat (CNTD), general English chitchat (TIAGE), and specialized banking expertise (ZYS).
  • Discourse Parsing: Focused on game-based dialogues (STAC) and technical support logs (Molweni).

Results and Discussion

Proficiency in Linear Segmentation

In general-domain chitchat, ChatGPT proved remarkably effective. On the DialSeg711 dataset, it achieved a 254% improvement in the $P_k$ error score over unsupervised state-of-the-art (SOTA) models. Qualitatively, manual reviews suggested that ChatGPT’s topic boundaries were often more logical and fine-grained than the original human "gold standard" annotations. However, this performance is domain-dependent; accuracy dropped significantly on the specialized banking dataset (ZYS), indicating that domain knowledge is a prerequisite for identifying technical topic shifts.

The "Linear Thinker" Limitation in Parsing

The most critical finding is ChatGPT’s struggle with hierarchical rhetorical structures. In discourse parsing, the model’s performance was often comparable only to a simple rule-based baseline that links every utterance to its immediate predecessor.

Link accuracy of ChatGPT vs. distance on the STAC dataset, highlighting the model's preference for adjacent utterances.

As shown in the experimental results, ChatGPT’s link accuracy is high for adjacent utterances (distance 1) but collapses as the distance between related utterances increases. This "linear bias" prevents the model from capturing long-distance dependencies and complex tree-like structures that human-designed models can identify. While CoT prompting improved parsing performance—suggesting it is a high-level reasoning task—the model still struggled to correctly identify the type of rhetorical relation (e.g., "Explanation" vs. "Contrast"), scoring only around 24-25% on the combined Link&Rel metric.

Conclusion

This empirical study highlights a fundamental dichotomy in ChatGPT’s discourse capabilities. It is an excellent tool for linear organization in general domains, often surpassing human annotators in consistency. However, it remains limited by a "linear thinking" bias that hinders its ability to parse the complex, hierarchical nature of human dialogue. Future work should focus on specialized prompting or fine-tuning techniques to help LLMs overcome this adjacency bias and better understand the non-linear dependencies inherent in deep discourse.

Summary updated

BibTeX
@inproceedings{fan2024uncovering,
  author = {Yaxin Fan and Feng Jiang and Peifeng Li and Haizhou Li},
  title = {{Uncovering the Potential of ChatGPT for Discourse Analysis in Dialogue: An Empirical Study}},
  booktitle = {International Conference on Computational Linguistics},
  year = {2024},
  url = {https://openreview.net/forum?id=1gHd0MFqLH},
}
Figure