Dialogue Act Classification with Context-Aware Self-Attention

Vipul Raheja, Joel R. TetreaultNAACL 2019

Introduction

Dialogue Act (DA) classification is a critical task in natural language understanding, where the goal is to label utterances based on their communicative function. In human conversation, the functional meaning of an utterance—its Dialogue Act—is frequently contingent upon the preceding discourse. For instance, a simple "Okay" might serve as an agreement, a backchannel, or a transition, depending on the prior speaker's input. Accurately classifying these acts is essential for building effective dialogue systems.

Example of Dialogue Act labeling in a conversation snippet.

Previous approaches have utilized hierarchical neural networks to model the sequence of utterances. However, these models often process individual utterances in isolation before aggregating them at the conversation level. This paper addresses this limitation by introducing a mechanism that allows the model to leverage conversational history during the initial encoding of each sentence.

Methodology

The proposed model employs a hierarchical structure designed to capture both local syntactic features and global conversational flow. The architecture consists of three primary stages: an utterance-level RNN, a context-aware self-attention mechanism, and a conversation-level RNN coupled with a CRF layer.

The hierarchical architecture featuring context-aware self-attention and a CRF output layer.

1. Utterance-level Representation

Each word in an utterance is represented using a combination of GloVe and ELMo embeddings, augmented by character-level features extracted via a Convolutional Neural Network (CNN). These embeddings are processed by a bidirectional Gated Recurrent Unit (Bi-GRU) to capture local syntactic context.

2. Context-aware Self-Attention

The core innovation of this work is the modification of the standard self-attention mechanism. Instead of attending to words based solely on the current sentence's internal structure, the model incorporates the hidden state from the previous utterance. This "context-aware" approach allows the attention mechanism to prioritize words that are most relevant given the immediate history of the conversation.

3. Conversation-level Modeling

The resulting utterance vectors are passed into a second Bi-GRU that tracks the state of the entire conversation. To ensure globally consistent predictions, a Linear Chain Conditional Random Field (CRF) layer is used as the final output stage, modeling the transitions between different DA labels (e.g., ensuring an Answer follows a Question).

Experimental Setup and Results

The model was evaluated on two gold-standard benchmarks: the Switchboard Dialogue Act (SwDA) corpus (43 labels) and the ICSI Meeting Recorder Dialogue Act (MRDA) corpus (5 broad categories).

On the SwDA corpus, the model achieved a state-of-the-art accuracy of 82.9%, a 1.6% improvement over previous benchmarks and approaching the estimated human agreement level of 84%. On the MRDA dataset, the model reached 91.1% accuracy. Ablation studies confirmed that the inclusion of context-aware attention was the primary driver of performance gains, improving the baseline Bi-RNN + Self-attention model by nearly 2% on SwDA.

Discussion and Key Insights

The researchers found that injecting conversation-level context into the word-level attention mechanism creates a more "informed" representation of the utterance itself. However, the model's performance varies with the nature of the dialogue. It performed significantly better on SwDA than on MRDA, which the authors attribute to MRDA's longer conversations (averaging ~1,500 utterances) and higher "label entropy," making the sequence of dialogue acts more unpredictable.

Conclusion

This research demonstrates that context is not merely a final step in sequence labeling but a vital component of utterance understanding. By making self-attention context-aware, the model better navigates the ambiguities of natural dialogue. Future work will explore more complex attention variants, such as Multi-head or Directional Self-Attention, to further improve long-range dependency modeling in complex multi-party meetings.

Summary updated

BibTeX
@inproceedings{raheja2019dialogue,
  author = {Vipul Raheja and Joel R. Tetreault},
  title = {{Dialogue Act Classification with Context-Aware Self-Attention}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1373},
}
Figure