Adaptive Multi-Compositionality for Recursive Neural Models with Applications to Sentiment Analysis

Li Dong, Furu Wei, Ming Zhou, Ke Xu

Introduction

Recursive Neural Models (RNMs) have become a cornerstone of natural language processing due to their ability to mirror the hierarchical structure of language. By recursively combining word vectors into phrase vectors, these models capture the meaning of sentences from the bottom up. However, a significant limitation of traditional RNMs is their reliance on a single, global composition function. This "one-size-fits-all" approach assumes that all linguistic combinations—whether negation, intensification, or simple conjunction—can be modeled by the same mathematical operation.

The AdaMC Framework

To address this, researchers introduced Adaptive Multi-Compositionality (AdaMC). Instead of a single function, AdaMC maintains a Composition Pool containing multiple functions ($g_1, \dots, g_C$). The model then adaptively selects and combines these functions based on the semantic categories of the input words.

Architecture of the AdaMC-RNN model showing the composition pool and adaptive selection mechanism.

The selection process utilizes a $\beta$-softmax mechanism. For any two input vectors, the model calculates a probability distribution over the pool, and the final phrase representation is a weighted sum of the outputs from all pool functions. By tuning the parameter $\beta$, the model can transition from a simple average of all functions ($\beta=0$) to a "hard" selection of the single most relevant function ($\beta \to \infty$).

Experimental Results

The AdaMC approach was evaluated on the Stanford Sentiment Treebank (SST), a benchmark dataset featuring over 215,000 annotated phrases. The results demonstrate that adding adaptive composition significantly improves performance over standard recursive architectures.

Comparison of sentiment analysis performance across various models on the Stanford Sentiment Treebank.

As shown in the results table, the AdaMC-RNTN achieved a state-of-the-art accuracy of 88.5% on binary sentiment classification. Notably, even the simpler AdaMC-RNN outperformed the more complex standard RNTN on binary tasks, suggesting that a diverse set of simple composition strategies can be more effective than a single complex one.

Key Insights

  1. Implicit Semantics: The model learns to identify semantic roles (like negation) without manual linguistic rules. It embeds this information into word vectors, which then trigger the appropriate composition function.
  2. Optimal Selection: Empirical testing found that $\beta = 2$ yielded the best results. This "semi-hard" selection allows the model to focus on a small subset of relevant functions, capturing linguistic nuance without over-relying on a single operation.
  3. Efficiency: By using a pool of linear functions, the AdaMC-RNN provides a computationally efficient alternative to tensor-based models while maintaining high accuracy.

Limitations and Future Work

While AdaMC represents a significant step forward, it still relies on external syntactic parsers to define the tree structure. Future research could explore joint learning of the parser and the composition functions. Additionally, the number of functions in the pool remains a fixed hyperparameter, and future iterations might benefit from dynamic pool sizing or the integration of explicit linguistic features like Part-of-Speech tags.

Summary updated

BibTeX
@inproceedings{dong2014adaptive,
  author = {Li Dong and Furu Wei and Ming Zhou and Ke Xu},
  title = {{Adaptive Multi-Compositionality for Recursive Neural Models with Applications to Sentiment Analysis}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2014},
  doi = {10.1609/aaai.v28i1.8930},
}
Figure