Consistent Inference for Dialogue Relation Extraction

Xinwei Long, Shuzi Niu, Yucheng LiIJCAI 2021

Abstract

Relation Extraction is key to many downstream tasks. Dialogue relation extraction aims at discovering entity relations from multi-turn dialogue scenarios. There exist utterance, topic, and relation discrepancies mainly due to multi-speakers, utterances, and relations. In this paper, we propose a consistent learning and inference method to minimize possible contradictions from those distinctions. First, we design mask mechanisms to refine utterance-aware and speaker-aware representations respectively from the global dialogue representation for the utterance distinction. Then a gate mechanism is proposed to aggregate such bi-grained representations. Next, a mutual attention mechanism is introduced to obtain the entity representation for various relation-specific topic structures. Finally, the relational inference is performed through first-order logic constraints over the labeled data to decrease logically contradictory predicted relations. Experimental results on two benchmark datasets show that the F1 performance improvement of the proposed method is at least 3.3% compared with SOTA.

Introduction

Extracting relations (like parent, spouse, or colleague) from a dialogue is significantly harder than from a standard document. The authors identify three main "discrepancies" that hinder performance in multi-party conversations:

  1. Utterance Discrepancy: Different speakers use different words for the same thing (e.g., Speaker A says "Ross," while Speaker B says "I").
  2. Topic Structure Discrepancy: Evidence for a relation is often scattered across many turns rather than clustered in one paragraph.
  3. Relation Discrepancy: Standard models treat every pair of entities as independent. This leads to "logical hallucinations" where a model might predict that S3 is the parent of S1, but fail to predict the corresponding inverse relation that S1 is the child of S3.
Example of dialogue relation extraction and the resulting graph.

The goal of this research is to create a model that understands the nuances of multi-party conversation and remains logically consistent across all predicted relations.

The CoIn Architecture

The proposed CoIn (Consistent Inference) network tackles the messy nature of dialogue by refining how models represent speakers and utterances, then applying First-Order Logic (FOL) constraints to ensure predictions are logically sound.

The CoIn model architecture overview.

The architecture consists of four main stages:

  • Word Representation Refinement: Using a pre-trained BERT backbone, the model applies two specific masking strategies. Utterance-aware masks focus on local context within a single turn, while Speaker-aware masks help the model track what specific individuals are saying across the entire dialogue.
  • Consistency and Discrepancy Fusion Gate: Not all context is equally important. This gate uses a heuristic mechanism to decide when to prioritize local utterance information versus global speaker information for a given relation.
  • Mutual Attention: Since an entity (like "Ross") might be mentioned multiple times, this module uses an attention mechanism to let the "head" entity and "tail" entity "look" at each other's mentions to find the most relevant evidence for their specific relationship.
  • Relational Reasoning Regularization ($R^3$): This is the core innovation. The authors formalize logical rules (Symmetry, Inverse, and Transitivity) using First-Order Logic. They add a "Discrepancy Loss" to the training process that penalizes the model if its predictions violate these rules (e.g., if $Spouse(A, B)$ is true, then $Spouse(B, A)$ must also be true).

Experimental Evaluation

The model was evaluated on two primary benchmarks: DialogRE, the first English dataset specifically for dialogue relation extraction (1,788 dialogues, 36 relation types), and MPDD, a multi-party Chinese dialogue dataset (24 relation types). MPDD is generally considered more difficult due to shorter dialogues and more frequent speaker turns.

Key Results

CoIn outperformed all previous state-of-the-art (SOTA) models, including advanced graph-based methods like GAIN and GCGCN:

  • DialogRE: Achieved an F1 score of 72.3%, a 3.3% improvement over the previous SOTA.
  • MPDD: Achieved an accuracy of 49.8%, a 6.2% improvement over the previous SOTA.
  • Consistency Gains: In tests for "Consistent Triplet Pairs" (where both sides of a symmetric or inverse relation are predicted correctly), CoIn significantly outperformed the baselines, proving that the $R^3$ module successfully enforced logical harmony.

Conclusion

CoIn demonstrates that logic can act as an effective "teacher" for neural networks. By separating "what was said" (utterance) from "who said it" (speaker), the model better handles coreference ambiguity rampant in chat. Furthermore, the $R^3$ module significantly boosts recall by recovering relations that might otherwise be missed when looking at entity pairs in isolation. Future work will focus on improving performance in few-shot learning scenarios and better handling cases where multiple relations exist between the same two entities simultaneously.

Summary updated

BibTeX
@inproceedings{long2021consistent,
  author = {Xinwei Long and Shuzi Niu and Yucheng Li},
  title = {{Consistent Inference for Dialogue Relation Extraction}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2021},
  url = {https://openreview.net/forum?id=-51fuV1UEE},
}
Figure