Abstract
Standard recursive neural networks often require binarized constituency trees, leading to structural distortions and information decay. This paper introduces a novel Tree-LSTM architecture that processes non-binary trees directly using Canonical Polyadic (CP) tensor decomposition. By sharing weights across factor matrices, the model captures complex multi-way interactions between child nodes efficiently, maintaining a constant parameter count regardless of branching factor. Evaluations on sentiment analysis and semantic similarity tasks demonstrate that this approach preserves semantic integrity, particularly for long sentences.
The Binarization Problem in NLP
In Natural Language Processing, sentences are typically represented as constituency trees that illustrate how words combine into phrases. Naturally, these trees are often non-binary; for instance, a verb phrase might have three or more children. However, most recursive neural networks, such as standard Tree-LSTMs, are restricted to binary trees.
To accommodate these models, researchers often "binarize" trees by adding artificial nodes to force a branching factor of two. This process introduces two significant issues:
- Structural Distortion: It creates artificial hierarchies, moving some children further away from their true parent.
- Information Decay: In long sentences, deep binary chains can weaken the signal from distant constituents, similar to the vanishing gradient problem in standard RNNs.
Existing non-binary alternatives, like the "Child-Sum Tree-LSTM," often fail to capture nuanced interactions because they simply sum child representations.
Methodology: The Invariant CP-LSTM
The authors propose the Invariant CP-LSTM to address these limitations through a sophisticated composition function.
Tensor-based Composition
Instead of simple addition, the model uses a multi-affine map represented by a tensor. This allows the network to learn complex, simultaneous interactions between all children of a node.
CP Decomposition and Weight Sharing
A raw tensor for $L$ children would require an exponential number of parameters ($d^L$), where $d$ is the hidden dimension. To ensure efficiency, the authors employ Canonical Polyadic (CP) decomposition, factorizing the large tensor into a sum of rank-one components. This reduces parameter complexity to $O(dr)$, where $r$ is the decomposition rank.
To handle variable branching factors, the model imposes a weight-sharing constraint on the factor matrices. This makes the model invariant to the number of children and their order, ensuring the parameter count remains constant even as the tree structure varies.
Experimental Evaluation
The models were evaluated on five datasets across two primary tasks:
- Sentence Classification: SST-2, SST-5 (sentiment), and TREC (question types).
- Semantic Textual Similarity (STS): SICK-R (relatedness) and SICK-E (entailment).
Key Results
- Robustness to Sentence Length: On the SICK-E task, the Invariant CP-LSTM maintained an accuracy of approximately 84% for sentences longer than 10 words, whereas binary and child-sum models dropped to around 81%.
- State-of-the-Art Similarity: The model achieved a Pearson correlation of 86.4 on SICK-R, significantly outperforming the standard Binary Sum-LSTM (84.3).
- Parameter Efficiency: The CP-based models achieve higher performance than sum-based models even when restricted to the same number of parameters, proving the efficiency of the tensor approach.
Discussion and Insights
The study confirms that binarization acts as a bottleneck for tasks requiring deep semantic understanding. By treating all children as equal contributors, the non-binary structure prevents the vanishing signal effect seen in deep binarized chains.
One notable exception was the SST dataset, where the model did not show improvement. This is attributed to "label sparsity": the original SST dataset provides labels for internal nodes of binarized trees. Removing binarization meant these extra labels could not be used during training, putting the non-binary model at a disadvantage.
Future Work
Currently, the "Invariant" model is order-insensitive. While effective for many tasks, word order is linguistically vital. Future research may explore Tensor Train (TT) decomposition to capture child order within non-binary structures. Additionally, better methods for leveraging internal node supervision in non-binarized formats are needed.
Summary updated