Skip to main content
QUICK REVIEW

[Paper Review] Dynamic Compositional Neural Networks over Tree Structure

Pengfei Liu, Xipeng Qiu|arXiv (Cornell University)|May 11, 2017
Topic ModelingComputer Science20 references9 citations
TL;DR

This paper proposes Dynamic Compositional Neural Networks over Tree Structure (DC-TreeNN), which use a meta-network to dynamically generate context-specific compositional functions for tree-structured neural networks, overcoming the underfitting issue of fixed-parameter models. The method achieves improved performance on text classification and semantic matching tasks without increasing model parameters, demonstrating enhanced expressiveness through dynamic, task-aware composition.

ABSTRACT

Tree-structured neural networks have proven to be effective in learning semantic representations by exploiting syntactic information. In spite of their success, most existing models suffer from the underfitting problem: they recursively use the same shared compositional function throughout the whole compositional process and lack expressive power due to inability to capture the richness of compositionality. In this paper, we address this issue by introducing the dynamic compositional neural networks over tree structure (DC-TreeNN), in which the compositional function is dynamically generated by a meta network. The role of meta-network is to capture the metaknowledge across the different compositional rules and formulate them. Experimental results on two typical tasks show the effectiveness of the proposed models.

Motivation & Objective

  • To address the underfitting problem in tree-structured neural networks caused by fixed, shared compositional functions across all syntactic compositions.
  • To enable more expressive modeling of semantic compositionality by allowing the compositional function to vary based on context, position, and input.
  • To reduce reliance on predefined compositional rules or syntactic category-based partitioning, which are limited and hard to generalize.
  • To maintain model efficiency by avoiding parameter explosion, even with dynamic function generation.
  • To enable end-to-end training of a meta-network that generates context-specific parameters for the compositional network.

Proposed method

  • A meta-network is introduced to generate the parameters of a dynamic compositional function based on the input context and tree structure.
  • The compositional function is dynamically generated per node, allowing different operations for different syntactic or semantic contexts.
  • The meta-network uses a latent vector z to control the compositional function, with z being computed from the left and right child representations.
  • The dynamic weight matrix is implemented via low-rank matrix decomposition to reduce model complexity and parameter count.
  • The model is trained end-to-end using backpropagation, with both meta-network and compositional network being differentiable.
  • The approach is applied to two architectures: Tree-RecNN and Tree-LSTM, demonstrating generalization across different tree-NN variants.

Experimental results

Research questions

  • RQ1Can a meta-network effectively generate context-specific compositional functions to improve semantic representation in tree-structured neural networks?
  • RQ2Does dynamic parameter generation lead to better performance on NLP tasks compared to fixed-parameter models?
  • RQ3Can the model implicitly learn complex compositional patterns such as idiomatic phrases or syntactic constructions without explicit rule definition?
  • RQ4To what extent does the model reduce underfitting while maintaining or reducing parameter count?
  • RQ5How do the latent representations in the meta-network reflect semantic and syntactic information relevant to composition?

Key findings

  • The DC-TreeNN model achieves state-of-the-art or competitive performance on six benchmark datasets across text classification and semantic matching tasks.
  • On the IMDB and AG datasets, the model achieves optimal performance with a latent vector size of 40, while on MR, SST, and SUBJ, the best performance is obtained with sizes of 30, 30, and 20 respectively.
  • Qualitative analysis reveals that specific neurons in the meta-network activate on meaningful linguistic patterns, such as emotional terms (e.g., 'in stitches') or light-verb constructions (e.g., 'taking off').
  • The model implicitly learns to detect idiomatic collocations and syntactic structures, demonstrating its ability to capture complex compositionality.
  • The dynamic nature of the compositional function allows the model to adapt operations based on context, improving expressiveness without increasing parameters.
  • The meta-network successfully captures both semantic and syntactic biases, as shown by neuron activation patterns on representative sentences.

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.