Abstract
Existing neural models for dialogue response generation assume that utterances are sequentially organized. However, many real-world dialogues involve multiple interlocutors (i.e., multi-party dialogues), where the assumption does not hold as utterances from different interlocutors can occur "in parallel." This paper generalizes existing sequence-based models to a Graph-Structured neural Network (GSN) for dialogue modeling. The core of GSN is a graph-based encoder that can model the information flow along the graph-structured dialogues (two-party sequential dialogues are a special case). Experimental results show that GSN significantly outperforms existing sequence-based models.
Introduction: Beyond Linear Sequences
Traditional neural dialogue models, such as the Hierarchical Recurrent Encoder-Decoder (HRED), operate on a fundamental assumption: utterances are organized in a strict linear sequence. While this paradigm suffices for simple two-party exchanges, it fails to capture the complexity of multi-party dialogues (e.g., IRC, Slack, or Reddit threads).
In group settings, conversations often branch. Multiple participants may respond to the same message simultaneously, creating "parallel" utterances. A sequential model is forced to flatten this branching structure into a line, which obscures the logical connections between interlocutors. GSN addresses this by representing a dialogue session as a directed graph where nodes represent utterances and edges represent response relationships.
Methodology
The GSN architecture is composed of three primary modules designed to process and propagate information through a graph-based context.
1. Word-level Encoder (W-E)
Each individual utterance is first processed by a bidirectional Long Short-Term Memory (Bi-LSTM) network. This converts the raw text into a dense vector representation, capturing the local semantic meaning of the utterance.
2. Utterance-level Graph-structured Encoder (UG-E)
This is the core innovation of GSN. Instead of a sequential RNN, the UG-E employs an iterative update process to refine utterance representations based on their neighbors in the graph.
- Update Operator: Using a gating mechanism inspired by Gated Recurrent Units (GRUs), the model determines how much information from preceding nodes (parents) should be integrated into the current node's state.
- Bi-directional Information Flow (BIF): To ensure context spreads effectively across the graph, information flows both forward (parent to child) and backward (child to parent). This allows "sibling" nodes—different replies to the same message—to share context through their common parent.
- Speaker Modeling: GSN incorporates "hidden edges" between all utterances made by the same speaker. This allows the model to track a speaker’s evolving state of mind across the session without requiring explicit, high-dimensional user embeddings.
3. Decoder
A GRU-based decoder with a word-level attention mechanism generates the final response. It leverages the graph-encoded context to produce utterances that are logically consistent with the multi-party thread.
Experiments and Results
The researchers evaluated GSN using the Ubuntu Dialogue Corpus, specifically a version annotated for multiple interlocutors. The dataset comprised approximately 380,000 sessions (1.75 million utterances), with each session involving 2 to 7 speakers. Response graphs were reconstructed using "@" mentions to identify reply relationships.
Quantitative Performance
GSN demonstrated substantial improvements over state-of-the-art baselines like HRED across all automated metrics:
- BLEU-1: GSN achieved a score of 13.50, a 16% relative improvement over HRED's 10.80.
- Consistency: The model consistently outperformed baselines in BLEU 1-4, METEOR, and ROUGE-L.
- Ablation Studies: Results confirmed that both the graph structure and the speaker-specific edges were critical; removing either component led to a significant performance drop.
Human Evaluation
In blind tests, human evaluators rated responses for "naturalness" (grammaticality, fluency, and rationality) on a scale of 0-4. GSN earned a score of 2.37, significantly higher than HRED’s 1.91, indicating that graph-aware modeling leads to more coherent and contextually relevant responses.
Conclusion
GSN demonstrates that dialogues are fundamentally graphs, not lines. By generalizing sequential models into a graph-structured framework, GSN natively handles the complexities of multi-party interactions. Future work will focus on automatic structure discovery—identifying the response graph in datasets where metadata is missing—and implementing dynamic attention mechanisms to better navigate large, complex conversation trees.
Summary updated