TL;DR
Multi-party conversations are messy, with overlapping threads and complex "who-replied-to-whom" structures. This paper introduces Relative Dependency Encoding (ReDE), a generic framework that injects utterance-level dependency information directly into the Transformer's self-attention mechanism, significantly improving performance across tasks like emotion detection and summarization.
What Problem Does This Paper Address?
Most dialogue research focuses on two-person interactions, but real-world scenarios—like Slack channels, Reddit threads, or meeting transcripts—involve multiple participants. In these settings, consecutive utterances aren't necessarily related. A participant might respond to a comment made five turns ago, creating a "spaghetti" of overlapping conversation threads.
Current models struggle with:
- Referential Ambiguity: Who does "that" or "him" refer to when three people are talking?
- Lack of Coherence: Standard Transformers assume a linear sequence, but multi-party conversations are structurally closer to a tree or a graph.
Previous attempts to solve this used hierarchical models (which are often restricted to utterance-level tasks) or simple masking (which is too blunt to capture nuanced relationships). The authors aim for a generic method that works for any Transformer-based model and any multi-party task.
Methods
The authors propose a framework called Relative Dependency Encoding (ReDE). The process works in three main steps:
- Dependency Parsing: They use an off-the-shelf parser to convert a conversation into a dependency tree where each utterance points to the one it is responding to.
- Relative Distance Calculation: Instead of just looking at turn order, they calculate the distance between two utterances $u_i$ and $u_j$ within the dependency tree. If a path exists, the distance is the number of edges; if not, the distance is infinite. They also clip these distances at a threshold ($\tau=7$) to keep the model focused on local structures.
- Modified Self-Attention: They modify the standard Transformer attention score. Instead of just calculating the dot product of Queries and Keys, they add a bias term $W_r^\top r_{ij}$, where $r_{ij}$ is a trainable embedding representing the relative dependency distance between the tokens.
The "Initialization Trick": A key technical contribution is how they initialize these new dependency embeddings. They found that random initialization caused the model to ignore dependency info because the values were too small compared to pre-trained word embeddings. To fix this, they initialize dependency embeddings by sampling from a Multivariate Gaussian distribution based on the mean and covariance of the original model's word embeddings.
Datasets
The framework was evaluated on four diverse benchmarks to prove its "genericity":
- MELD: Utterance-level emotion classification.
- DialogRE: Relation extraction between entities in a dialogue.
- Molweni-MRC: Machine reading comprehension (QA) based on multi-party chats.
- SAMSum: Abstractive summarization of messenger-style conversations.
Key Insights and Ideas
- Structure Over Sequence: The core "aha" moment is that in multi-party settings, structural distance in a dependency tree is a much stronger signal for semantic relevance than linear distance in a sequence.
- Generic Integration: By modifying the attention bias rather than adding new layers or graph modules, ReDE can be dropped into existing architectures like RoBERTa or BART without breaking their pre-trained internal logic.
- Correcting "Lazy" Reasoning: Case studies (see Figure 3 below) show that baseline models often pick answers based on simple language patterns (e.g., matching the word "way" in a question to "Many ways" in a nearby but unrelated sentence). ReDE forces the model to follow the actual thread of the conversation to find the correct context.
Key Results
ReDE consistently outperformed standard baselines and hierarchical models across all four datasets:
- SOTA Performance: ReDE achieved state-of-the-art results on Molweni-MRC (73.04 F1) and SAMSum (49.81 Rouge-L).
- Consistency: On DialogRE, ReDE improved the F1 score from a baseline of 64.00 to 68.93.
- Ablation Success: The special initialization method was crucial; without it, performance dropped significantly (e.g., from 72.40 to 72.11 on Molweni-MRC), proving that simply adding the parameters isn't enough—they must be at the right scale.
Limitations and Future Work
- Parser Dependency: The framework relies on an "off-the-shelf" dependency parser. If the parser makes a mistake in mapping the conversation structure, ReDE will inherit that error.
- Simplified Relations: Currently, the model only considers the connectivity (distance) between utterances, ignoring the type of linguistic relation (e.g., question-answer vs. agreement-disagreement). The authors suggest exploring these specific relation types in future research.
- Computational Overhead: While generic, adding relative encoding to every attention head increases the parameter count and memory footprint, though the authors note this is manageable.
Summary updated