A Compare Aggregate Transformer for Understanding Document-grounded Dialogue

Longxuan Ma, Wei-Nan Zhang, Runxin Sun, Ting Liu

Introduction

Document-Grounded Dialogue (DGD) aims to create AI agents capable of discussing external knowledge sources, such as movie reviews or technical manuals. A persistent challenge in DGD is the presence of "noise" within the dialogue history. As conversations progress, previous turns may become irrelevant to the current topic. Most existing models treat the entire history as a monolithic block, making them susceptible to interference when a user shifts topics. This often results in generic responses or the retrieval of incorrect information from the document.

The Compare Aggregate Transformer (CAT)

To address the noise issue, the researchers proposed the Compare Aggregate Transformer (CAT). The model's architecture is built on a "divide and conquer" strategy that explicitly distinguishes the most recent input from the broader context.

Dual-Branch Encoding and Comparison

CAT utilizes a dual-branch structure to process the dialogue context:

  1. Last Utterance Branch: Processes the most recent sentence, which serves as the primary guide for the next response.
  2. Dialogue History Branch: Processes all preceding turns.

By using the last utterance as a "guide," the model filters the dialogue history. If historical context aligns with the current topic, it is aggregated to assist in document information selection; otherwise, its influence is suppressed to prevent distraction from irrelevant past topics.

Architecture of the CAT model and its decoder variants.

Aggregation Strategies

The paper evaluates two primary decoding architectures for combining this filtered information:

  • CAT-DD (Concatenation): Features from both branches are concatenated before being processed by a two-pass "Deliberation Decoder."
  • CAT-EDD (Attended Comparison): Employs an "Enhanced Decoder" that dynamically weighs the importance of the last utterance against the history during the generation process.

Experimental Setup

The model was primarily evaluated on the CMU_DoG dataset, consisting of over 4,000 dialogues based on 120 movie documents. To test robustness, the researchers developed a "Sampled" test set specifically focused on topic transfers, where the last utterance and the history refer to different document sections.

Beyond standard metrics like BLEU and ROUGE, the authors introduced two new measures:

  • Knowledge Utilization (KU): Measures the amount of unique information pulled from the document.
  • Quality of Knowledge Utilization (QKU): Assesses the relevance and accuracy of the retrieved knowledge.

Key Results

The CAT-DD variant emerged as the state-of-the-art performer, consistently surpassing models like ITDD and VHRED across almost all metrics.

Main experimental results comparing CAT variants against baseline models.

As shown in the results table, CAT-DD achieved a Perplexity (PPL) of 15.2, a significant improvement over ITDD's 16.2. Furthermore, human evaluations confirmed that CAT-DD produces more fluent, coherent, and informative responses. Notably, CAT-DD demonstrated superior robustness on the "Sampled" dataset, maintaining high performance even during abrupt topic shifts where baseline models typically fail.

Conclusion

The CAT model demonstrates that treating the last utterance as a distinct filtering mechanism is essential for denoising document-grounded conversations. By effectively managing historical context, CAT ensures that AI agents remain focused on the current topic while accurately leveraging external knowledge. Future research directions include automated topic transition detection and more complex knowledge injection methods for structured data.

Summary updated

BibTeX
@inproceedings{ma2020compare,
  author = {Longxuan Ma and Wei-Nan Zhang and Runxin Sun and Ting Liu},
  title = {{A Compare Aggregate Transformer for Understanding Document-grounded Dialogue}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.122},
}
Figure