Skip to main content
QUICK REVIEW

[Paper Review] Bidirectional Context-Aware Hierarchical Attention Network for Document Understanding

Jean-Baptiste Remy, Antoine J.‐P. Tixier|arXiv (Cornell University)|Aug 16, 2019
Topic ModelingComputer Science26 references5 citations
TL;DR

This paper proposes Context-Aware Hierarchical Attention Networks (CAHAN), which enhance the Hierarchical Attention Network (HAN) by enabling sentence-level attention to consider surrounding document context. By introducing bidirectional document encoding and context-aware sentence encoding, CAHAN improves document representation, achieving superior performance on sentiment and topic classification tasks with minimal computational overhead.

ABSTRACT

The Hierarchical Attention Network (HAN) has made great strides, but it suffers a major limitation: at level 1, each sentence is encoded in complete isolation. In this work, we propose and compare several modifications of HAN in which the sentence encoder is able to make context-aware attentional decisions (CAHAN). Furthermore, we propose a bidirectional document encoder that processes the document forwards and backwards, using the preceding and following sentences as context. Experiments on three large-scale sentiment and topic classification datasets show that the bidirectional version of CAHAN outperforms HAN everywhere, with only a modest increase in computation time. While results are promising, we expect the superiority of CAHAN to be even more evident on tasks requiring a deeper understanding of the input documents, such as abstractive summarization. Code is publicly available.

Motivation & Objective

  • Address the limitation of HAN, which encodes sentences in isolation without leveraging surrounding context.
  • Improve document representation by enabling sentence encoders to make attention decisions based on preceding and following sentences.
  • Introduce a bidirectional document encoder that processes the document both forwards and backwards to capture richer contextual dependencies.
  • Evaluate the proposed model on large-scale sentiment and topic classification datasets to demonstrate improvements over HAN.
  • Explore the potential of CAHAN in tasks requiring deeper text understanding, such as abstractive summarization.

Proposed method

  • Propose CAHAN-SUM and CAHAN-RNN variants, where sentence-level attention is conditioned on a context vector derived from the document.
  • Introduce a bidirectional document encoder using two separate RNNs—one processing the document forward and one backward—each using the other’s hidden states as context.
  • Compute context vectors via mean pooling (CAHAN-SUM) or recurrent context modeling (CAHAN-RNN) over the document’s sentence representations.
  • Integrate context-aware sentence encoding into the HAN framework by modifying the sentence encoder to attend to both word-level features and document-level context.
  • Train the model end-to-end using stochastic gradient descent (SGD), with the document-level attention mechanism applied after context-aware sentence encoding.
  • Use a shared architecture for sentence and document encoders, both based on bidirectional RNNs with self-attention mechanisms.

Experimental results

Research questions

  • RQ1Can context-aware sentence encoding improve document representation in hierarchical attention networks?
  • RQ2Does bidirectional document encoding lead to better performance than unidirectional or standard HAN on classification tasks?
  • RQ3How does CAHAN perform on datasets with short, simple documents compared to longer, more complex documents?
  • RQ4To what extent do context-aware mechanisms reduce redundancy and improve coverage of diverse topics in a document?
  • RQ5Can CAHAN’s advantages become more pronounced in tasks requiring deeper text understanding, such as abstractive summarization?

Key findings

  • The bidirectional version of CAHAN outperforms the original HAN across all three sentiment and topic classification datasets.
  • CAHAN-SUM achieves better performance than HAN, particularly in reducing attention to redundant or repeated features across sentences.
  • The model shows improved coverage of diverse topics—such as food quality, service, and pricing—by avoiding over-attention to repeated negative phrases.
  • In cases of repeated sentences, CAHAN produces more diverse and informative representations compared to HAN’s redundant outputs.
  • The computational overhead introduced by CAHAN is modest, making it practical for real-world deployment.
  • The authors hypothesize that CAHAN’s advantages will be more evident on longer documents and tasks requiring deeper understanding, such as abstractive summarization.

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.