Predicting Thread Discourse Structure over Technical Web Forums

Li Wang, Marco Lui, Su Nam Kim, Joakim Nivre, Timothy BaldwinEMNLP 2011

Abstract

Online discussion forums are a valuable means for users to resolve specific information needs, both interactively for the participants and statically for users who search/browse over historical thread data. However, the complex structure of forum threads can make it difficult for users to extract relevant information. The discourse structure of web forum threads, in the form of labelled dependency relationships between posts, has the potential to greatly improve information access over web forum archives. In this paper, we present the task of parsing user forum threads to determine the labelled dependencies between posts. Three methods, including a dependency parsing approach, are proposed to jointly classify the links (relationships) between posts and the dialogue act (type) of each link. The proposed methods significantly surpass an informed baseline. We also experiment with "in situ" classification of evolving threads, and establish that our best methods are able to perform equivalently well over partial threads as complete threads.

Introduction

Technical web forums like CNET or Stack Overflow are goldmines of information, but they are often structurally messy. A single thread can contain multiple sub-conversations, tangential questions, and various attempts at a solution. While standard "reply-to" metadata provides a basic skeleton, it fails to capture the functional intent of a post. Is it a direct answer? A request for clarification? Or a confirmation that a solution worked?

This research addresses the challenge of automatically parsing these threads into a rich, labeled discourse structure. By treating forum threads as directed acyclic graphs (DAGs), the authors aim to enable better information retrieval, such as automatically highlighting the specific post that actually solved a user's problem.

Example of a forum thread discourse structure with joint labels for links and dialogue acts.

Methodology

The researchers propose a method to jointly predict both the link (which previous post a message is responding to) and the dialogue act (the intent of that response, like "Answer" or "Confirmation"). They experimented with two primary structural classification approaches:

  1. Linear-chain Conditional Random Fields (CRFs): Using CRFSGD to model the thread as a sequence. The "Joint" approach creates a single combined label for every post (e.g., 1+Answer-Answer), as shown in Figure 1.
  2. Dependency Parsing (MaltParser): A novel adaptation of transition-based dependency parsing—usually used for grammar—to forum threads. In this view, posts are treated as "tokens" and the discourse structure as a "parse tree."

The models utilized several feature sets, including structural (e.g., thread initiator status, relative position), semantic (similarity to title or previous posts), and user-level features. The "User Profile" feature, which tracks the distribution of dialogue acts for a specific author, proved particularly impactful, especially for identifying standard questions from newer users.

Key Results and Insights

The study utilized the CNET forum dataset, consisting of 1,332 annotated posts across 315 threads. The results demonstrate that joint prediction significantly outperforms treating link prediction and dialogue act tagging as separate tasks.

Performance comparison of different models and feature ablations.

As shown in Figure 6, the joint CRFSGD model achieved a post-level F-score of .756, significantly higher than the informed heuristic baseline of .515. While the CRF performed better on shorter threads, the MaltParser proved more robust as threads grew longer, likely due to its ability to handle long-distance dependencies more effectively than a linear chain.

A practical finding of the study is the success of "in situ" classification. The models perform almost as well on partial, evolving threads as they do on complete archived threads. This suggests that such systems could function in real-time as forum assistants.

Limitations and Future Work

Despite the strong performance, challenges remain. Dependency parsing struggles with "multi-headedness" (where one post links to multiple previous posts) and "non-projective" structures where reply links cross. While these occur in only 2-6% of the dataset, they represent a technical ceiling for current parsing algorithms. Future work may involve unsupervised user modeling to address the "cold start" problem for new forum members and testing these structural patterns across non-technical communities.

Summary updated

BibTeX
@inproceedings{wang2011predicting,
  author = {Li Wang and Marco Lui and Su Nam Kim and Joakim Nivre and Timothy Baldwin},
  title = {{Predicting Thread Discourse Structure over Technical Web Forums}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2011},
  url = {https://openreview.net/forum?id=Hy49tMGdbr},
}
Figure