[Paper Review] Who did They Respond to? Conversation Structure Modeling using Masked Hierarchical Transformer
This paper proposes a Masked Hierarchical Transformer model that improves conversation structure modeling by explicitly leveraging ancestral history through a novel masking mechanism, significantly outperforming strong baselines—including BERT—on Reddit and Ubuntu IRC datasets by modeling parent-utterance relationships more accurately using full conversation context.
Conversation structure is useful for both understanding the nature of conversation dynamics and for providing features for many downstream applications such as summarization of conversations. In this work, we define the problem of conversation structure modeling as identifying the parent utterance(s) to which each utterance in the conversation responds to. Previous work usually took a pair of utterances to decide whether one utterance is the parent of the other. We believe the entire ancestral history is a very important information source to make accurate prediction. Therefore, we design a novel masking mechanism to guide the ancestor flow, and leverage the transformer model to aggregate all ancestors to predict parent utterances. Our experiments are performed on the Reddit dataset (Zhang, Culbertson, and Paritosh 2017) and the Ubuntu IRC dataset (Kummerfeld et al. 2019). In addition, we also report experiments on a new larger corpus from the Reddit platform and release this dataset. We show that the proposed model, that takes into account the ancestral history of the conversation, significantly outperforms several strong baselines including the BERT model on all datasets
Motivation & Objective
- To address the challenge of accurately identifying parent utterances in conversations where pairwise methods fail due to lack of context.
- To model conversation structure by incorporating the full ancestral history of each utterance, rather than relying on isolated utterance pairs.
- To reduce reliance on temporal proximity alone by designing a masking mechanism that prioritizes structural (ancestral) over temporal relationships.
- To improve downstream tasks such as summarization and discourse analysis by recovering accurate conversation thread structures.
Proposed method
- A two-stage transformer architecture: first, a pre-trained transformer encodes each utterance into a dense vector.
- A second-stage hierarchical transformer compares each utterance to a target, using a novel masking mechanism to restrict attention to only the ancestor chain of the target utterance.
- The masking mechanism ensures that each non-target utterance can attend only to its ancestors in the conversation tree, preserving structural context.
- The model predicts the probability of each utterance being the parent of the target by aggregating features through the masked self-attention mechanism.
- The model is trained end-to-end using cross-entropy loss on 'reply_to' edge prediction, with gold conversation structures used during training.
- Ablation studies validate the importance of the ancestor-based mask by comparing against temporal-only masks and no-mask baselines.
Experimental results
Research questions
- RQ1Can modeling the full ancestral history of utterances improve the accuracy of parent-utterance prediction compared to pairwise methods?
- RQ2How does the inclusion of structural (ancestral) context compare to temporal proximity in predicting conversation structure?
- RQ3Does a masked attention mechanism that restricts attention to ancestors lead to better performance than unmasked or temporally restricted attention?
- RQ4To what extent does the depth of ancestor history (ancestor depth) influence model performance in conversation structure modeling?
- RQ5How does the model's performance compare to strong baselines like BERT when using or excluding hand-crafted features?
Key findings
- The proposed model achieves 60.53% graph accuracy and 20.61% conversation accuracy on the Reddit-small dataset, significantly outperforming the no-mask variant (46.43% and 15.14%).
- Performance improves with increasing ancestor depth (d), indicating that longer ancestral context enhances structure modeling, with optimal performance at d=11 (full ancestor access).
- The ancestor-based masking mechanism outperforms temporal-only masking, where performance plateaus at low temporal depth (t), suggesting structural context is more informative than temporal proximity.
- On the Ubuntu IRC dataset, the model achieves 89.8% F1, 75.4% precision, and 34.2% recall, surpassing the BERT-based baseline (89.5%, 71.7%, 30.0%) even with additional hand-crafted features.
- The ablation study confirms that masking based on ancestral history is crucial, as removing it causes a substantial drop in performance, validating the importance of structural context.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.