Latent Tree Language Model

Tomás BrychcínEMNLP 2016

Abstract

Traditional language models often fail to capture the hierarchical dependencies inherent in natural language. The Latent Tree Language Model (LTLM) addresses this by treating sentence structure as a hidden dependency tree of word roles. By jointly learning these structures and roles in an unsupervised manner, LTLM achieves significant improvements in word prediction, reducing perplexity by up to 49% when combined with standard n-gram models.

Introduction

Language modeling is a fundamental task in natural language processing, yet standard n-gram models suffer from data sparsity and a lack of structural understanding. While neural networks and class-based models mitigate some of these issues, they often overlook the recursive, hierarchical nature of syntax. Existing "syntax-aware" models typically rely on supervised parsers, which are constrained by human-annotated linguistic theories that may not be optimal for statistical language modeling. The LTLM seeks to overcome this by learning both tree structures and word categories simultaneously from raw text.

The Latent Tree Language Model (LTLM)

The LTLM is a generative model that assumes every sentence is generated from a latent dependency tree. In this framework, each word is assigned a "role" ($r$), and the probability of a word's role is conditioned on the role of its parent in the tree.

An example of a latent dependency tree for a sentence, where each word is associated with a specific role (r) within a hierarchical structure.

Learning and Inference

The model parameters are learned using Gibbs sampling, an iterative process that explores the space of possible trees and roles to maximize data likelihood. For inference—finding the most probable tree for a new sentence—the paper evaluates two methods:

  1. Non-deterministic Inference: A fast approximation using Gibbs sampling.
  2. Deterministic Inference: A more accurate approach based on the CYK algorithm, which utilizes dynamic programming to find the optimal structure with $O(N_s^3 K^2)$ complexity relative to sentence length $N_s$ and number of roles $K$.

A key refinement is "side-dependence," where the model distinguishes whether a child node appears to the left or right of its parent, allowing it to capture essential word-order patterns.

Experimental Setup

The LTLM was evaluated on the CzEng 1.0 corpus, focusing on English and Czech. The vocabulary was set to the 100,000 most frequent words, and sentence length was capped at 30 words to manage the cubic complexity of the deterministic inference. The model was compared against Modified Kneser-Ney (MKN) n-grams, Recurrent Neural Network LMs (RNNLM), and Latent Words LMs (LWLM).

Key Results

The study found that LTLM provides a substantial boost to language modeling performance:

  • Massive Perplexity Reduction: When interpolated with a 4-gram MKN model, LTLM reduced perplexity by 46% for English and 49% for Czech compared to the MKN baseline.
  • Superiority over Supervised Syntax: Surprisingly, trees learned unsupervised by LTLM outperformed those provided by state-of-the-art supervised parsers. This suggests that the latent structures discovered by the model are better suited for the specific objective of word prediction than traditional linguistic syntax.
  • Comparison with RNNs: The LTLM + MKN hybrid outperformed a 300-unit RNNLM on both test languages.
  • Impact of Role Count: Performance improved consistently as the number of latent roles increased from 10 to 1,000, though with diminishing returns and higher computational costs.

Conclusion and Future Work

The Latent Tree Language Model demonstrates that unsupervised structural learning can significantly enhance language modeling. By discovering task-specific latent hierarchies, LTLM bypasses the limitations of human-annotated data. Future research will focus on reducing the $O(N^3)$ computational complexity to handle longer sentences and exploring more complex prior distributions to better capture the correlations between word roles.

Summary updated

BibTeX
@inproceedings{brychcin2016latent,
  author = {Tomás Brychcín},
  title = {{Latent Tree Language Model}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2016},
  doi = {10.18653/v1/d16-1042},
}
Figure