Bidirectional Tree-Structured LSTM with Head Lexicalization

Zhiyang Teng, Yue ZhangarXiv 2016

Abstract

Traditional sequential LSTMs process text linearly, often failing to capture the inherent hierarchical nature of language. While Tree-Structured LSTMs (Tree-LSTMs) address this by operating on syntactic trees, they typically suffer from two limitations: internal nodes lack direct lexical input, and information flow is strictly bottom-up. We introduce BiConTree, a bidirectional tree-structured LSTM that incorporates head lexicalization and top-down information propagation. By automatically identifying head words and enabling bidirectional flow, BiConTree achieves state-of-the-art performance on sentiment analysis and competitive results on question classification.

Introduction

Language is fundamentally hierarchical, with words forming phrases that combine into sentences. Sequential LSTMs process text word-by-word, which ensures every hidden state has direct access to an input token but ignores the structural dependencies defined by syntax. Tree-LSTMs were developed to mirror these structures, typically using constituent or dependency trees.

However, standard constituent Tree-LSTMs face a "lexical gap": only leaf nodes (individual words) provide direct input. Internal nodes, representing phrases, only receive information filtered through their children's hidden states. Furthermore, these models are usually unidirectional (bottom-up), meaning the root representation—which captures the entire sentence context—cannot inform the representations of individual words or phrases.

Methodology

Head Lexicalization

To bridge the lexical gap, the authors propose associating every internal node in a constituent tree with a "head word"—the most semantically or syntactically significant word in that phrase.

Example of a lexicalized constituent tree where each internal node is associated with a head word.

Rather than relying on fixed linguistic rules to determine heads, BiConTree uses a neural gate mechanism. This gate learns to automatically select which child's head word should propagate upward to the parent node. This ensures that every node, regardless of its depth in the tree, maintains a direct lexical connection to a specific word in the sentence.

Bidirectional Flow (BiConTree)

With head words available at every node, the architecture can be extended to support a top-down pass. In this bidirectional setup, information first flows from the leaves to the root (bottom-up) to capture local phrase semantics. Subsequently, a top-down pass propagates information from the root back to the leaves.

Comparison between (a) a standard bottom-up Tree-LSTM and (b) the proposed bidirectional Tree-LSTM with top-down information flow (red arrows).

The final representation for any node is a concatenation of its hidden states from both passes. This allows leaf nodes to "know" their global context, which is particularly useful for resolving lexical ambiguities.

Experimental Results

The BiConTree model was evaluated across several benchmarks:

  • Stanford Sentiment Treebank (SST): On the fine-grained (5-class) classification task, BiConTree achieved 53.5% accuracy, setting a new state-of-the-art at the time. For binary classification, it reached 90.3%.
  • TREC Question Classification: The model reached 94.8% accuracy, significantly outperforming standard BiLSTMs and approaching the performance of models using extensive manual feature engineering.
  • Ablation Study: Results indicated that head lexicalization alone improved the baseline by approximately 1.6%, while the addition of bidirectionality provided a further 0.7% gain.

Discussion and Key Insights

A notable finding was that the learned "heads" did not always align with traditional linguistic theory. In sentiment tasks, the model prioritized sentiment-bearing words (e.g., "gloriously") as heads, suggesting that the gating mechanism adapts to the specific semantic requirements of the task. Additionally, the bidirectional tree structure proved exceptionally robust for long-range dependencies, outperforming baselines on sentences exceeding 30 words.

While BiConTree offers significant performance gains, it comes with increased computational complexity, taking roughly 2.5 times longer to train than unidirectional counterparts. Future work may involve extending this bidirectional lexicalization to n-ary trees and dependency-based structures.

Summary updated

BibTeX
@misc{teng2016bidirectional,
  author = {Zhiyang Teng and Yue Zhang},
  title = {{Bidirectional Tree-Structured LSTM with Head Lexicalization}},
  year = {2016},
  eprint = {1611.06788},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1611.06788},
}
Figure