Skip to main content
QUICK REVIEW

[Paper Review] Local Contextual Attention with Hierarchical Structure for Dialogue Act Recognition

Zhigang Dai, Jinhua Fu|arXiv (Cornell University)|Mar 12, 2020
Topic ModelingComputer Science34 references13 citations
TL;DR

This paper proposes a hierarchical self-attention model with learnable Gaussian bias to enhance local contextual attention for dialogue act recognition, explicitly modeling utterance dependencies using relative position information. The method achieves state-of-the-art accuracy of 80.34% on Switchboard and 85.81% on DailyDialog by reducing noise from distant utterances and improving context modeling in both online and offline settings.

ABSTRACT

Dialogue act recognition is a fundamental task for an intelligent dialogue system. Previous work models the whole dialog to predict dialog acts, which may bring the noise from unrelated sentences. In this work, we design a hierarchical model based on self-attention to capture intra-sentence and inter-sentence information. We revise the attention distribution to focus on the local and contextual semantic information by incorporating the relative position information between utterances. Based on the found that the length of dialog affects the performance, we introduce a new dialog segmentation mechanism to analyze the effect of dialog length and context padding length under online and offline settings. The experiment shows that our method achieves promising performance on two datasets: Switchboard Dialogue Act and DailyDialog with the accuracy of 80.34\% and 85.81\% respectively. Visualization of the attention weights shows that our method can learn the context dependency between utterances explicitly.

Motivation & Objective

  • To address the challenge of noisy, distant utterance dependencies in dialogue act recognition by modeling local contextual relationships.
  • To improve performance by revising self-attention with a learnable Gaussian bias that encodes relative position information between utterances.
  • To analyze the impact of dialog length and context padding length on model performance under both online and offline settings.
  • To develop a dialog segmentation mechanism for systematic evaluation of context window effects.
  • To demonstrate that local contextual attention enhances model robustness and interpretability in dialogue act classification.

Proposed method

  • A hierarchical deep learning model is designed, combining utterance-level and dialogue-level encoding using self-attention mechanisms.
  • The attention mechanism is revised by introducing a learnable Gaussian bias to emphasize local utterance pairs based on relative position.
  • The Gaussian bias is computed as a function of relative distance between utterances, guiding attention to focus on nearby context.
  • A novel dialog segmentation mechanism is introduced to evaluate performance across varying dialog lengths and context padding strategies.
  • The model is trained end-to-end on two benchmark datasets: Switchboard and DailyDialog, with ablation studies on window size and context length.
  • The method supports both offline and online inference settings, with performance evaluated under different context padding lengths.

Experimental results

Research questions

  • RQ1How does incorporating relative position information via a learnable Gaussian bias improve attention focusing in dialogue act recognition?
  • RQ2What is the effect of dialog length and context padding length on model accuracy in both online and offline settings?
  • RQ3How does local contextual attention compare to standard self-attention in capturing utterance dependencies?
  • RQ4Can the proposed dialog segmentation mechanism effectively isolate and analyze performance variations due to context window size?
  • RQ5Does modeling local context reduce noise from irrelevant, distant utterances in dialogue sequences?

Key findings

  • The proposed local contextual attention mechanism significantly improves dialogue act recognition accuracy, achieving 80.34% on Switchboard and 85.81% on DailyDialog.
  • The model with learnable Gaussian bias reduces attention to distant utterances, as shown in visualization, where high attention scores between non-adjacent utterances (e.g., position 0 and 7) are suppressed.
  • Performance plateaus when context padding exceeds 2 utterances on DailyDialog, indicating diminishing returns beyond short context windows.
  • LSTM+LC Attention outperforms both standard attention and bidirectional LSTM baselines, especially in online settings with limited context.
  • The model demonstrates robustness and stability across varying dialog lengths, with performance degradation minimized when using optimal window sizes.
  • Visualization confirms that the revised attention mechanism concentrates weights along the diagonal, aligning with linguistic intuition of local dependency in conversations.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.