Skip to main content
QUICK REVIEW

[Paper Review] Graph-to-Tree Neural Networks for Learning Structured Input-Output Translation with Applications to Semantic Parsing and Math Word Problem

Shucheng Li, Lingfei Wu|arXiv (Cornell University)|Apr 7, 2020
Natural Language Processing TechniquesComputer Science54 references14 citations
TL;DR

This paper proposes Graph2Tree, a novel graph-to-tree neural network that encodes graph-structured inputs and decodes hierarchical tree-structured outputs using a graph encoder and a hierarchical tree decoder with a separated attention mechanism. The model achieves state-of-the-art performance on semantic parsing and math word problem solving by effectively leveraging structural information in both input and output, outperforming existing methods by up to 10 percentage points on the MAWPS benchmark.

ABSTRACT

The celebrated Seq2Seq technique and its numerous variants achieve excellent performance on many tasks such as neural machine translation, semantic parsing, and math word problem solving. However, these models either only consider input objects as sequences while ignoring the important structural information for encoding, or they simply treat output objects as sequence outputs instead of structural objects for decoding. In this paper, we present a novel Graph-to-Tree Neural Networks, namely Graph2Tree consisting of a graph encoder and a hierarchical tree decoder, that encodes an augmented graph-structured input and decodes a tree-structured output. In particular, we investigated our model for solving two problems, neural semantic parsing and math word problem. Our extensive experiments demonstrate that our Graph2Tree model outperforms or matches the performance of other state-of-the-art models on these tasks.

Motivation & Objective

  • To address the limitations of Seq2Seq models in handling structured inputs and outputs by modeling both graph-structured inputs and tree-structured outputs explicitly.
  • To improve neural semantic parsing and math word problem solving by capturing syntactic and compositional dependencies through structured representations.
  • To develop a generic, task-agnostic framework for structured input-output translation that generalizes across NLP tasks.
  • To demonstrate that incorporating structural information via graph and tree modeling leads to significant performance gains over sequence-based baselines.

Proposed method

  • The model uses a graph encoder to process an augmented input graph formed by combining word sequences with syntactic structures like dependency or constituency trees.
  • A hierarchical tree decoder generates the output tree structure step-by-step, modeling compositional dependencies in the target output.
  • A separated attention mechanism is introduced to align heterogeneous graph nodes with corresponding compositional nodes in the tree decoder during generation.
  • The graph encoder employs a GNN-based architecture with parent and sibling message passing to enrich node representations.
  • The model supports both dependency and constituency graphs as input structures, enabling flexibility in input representation.
  • The decoder uses a tree-structured generation process that preserves the hierarchical meaning of mathematical expressions and semantic parses.

Experimental results

Research questions

  • RQ1Can a graph-to-tree neural network outperform sequence-based models in structured input-output translation tasks like semantic parsing and math word problem solving?
  • RQ2How does incorporating syntactic structure (e.g., dependency or constituency trees) in the input graph affect model performance?
  • RQ3What is the contribution of the separated attention mechanism in aligning graph nodes with tree decoder states during generation?
  • RQ4How do architectural components like parent and sibling message passing influence performance on math word problems?
  • RQ5Can the model generalize across different structured prediction tasks without task-specific engineering?

Key findings

  • On the MAWPS benchmark, Graph2Tree with a constituency graph achieved 78.8% solution accuracy, outperforming all prior state-of-the-art models by up to 10 percentage points.
  • On the MATHQA dataset, Graph2Tree with a constituency graph reached 69.65% accuracy, surpassing the next best baseline by over 5 percentage points.
  • Ablation studies showed that removing the separated attention mechanism reduced performance to 67.6%, highlighting its critical role in alignment and generation.
  • The sibling message passing mechanism was found to be especially important for math word problems, where operand order in equations is crucial for correctness.
  • The model with a constituency graph outperformed the dependency graph version on both MAWPS and MATHQA, indicating that richer syntactic structure improves performance.
  • The model's ability to generate unnormalized, semantically meaningful equations directly without normalization techniques demonstrates its capacity for faithful reasoning trace generation.

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.