Skip to main content
QUICK REVIEW

[Paper Review] Tetra-Tagging: Word-Synchronous Parsing with Linear-Time Inference

Nikita Kitaev, Dan Klein|arXiv (Cornell University)|Apr 22, 2019
Natural Language Processing TechniquesComputer Science28 references3 citations
TL;DR

This paper introduces Tetra-Tagging, a constituency parsing method that reduces parsing to parallel word-level tagging using four structural and labeling decisions per word, enabling linear-time inference via a left-to-right reconciliation phase. The approach achieves 95.4 F1 on the WSJ test set with 1200 sentences per second on a TPU v3-8, matching state-of-the-art accuracy while drastically improving speed over cubic-time or autoregressive parsers.

ABSTRACT

We present a constituency parsing algorithm that, like a supertagger, works by assigning labels to each word in a sentence. In order to maximally leverage current neural architectures, the model scores each word's tags in parallel, with minimal task-specific structure. After scoring, a left-to-right reconciliation phase extracts a tree in (empirically) linear time. Our parser achieves 95.4 F1 on the WSJ test set while also achieving substantial speedups compared to current state-of-the-art parsers with comparable accuracies.

Motivation & Objective

  • To design a parsing algorithm that maximizes parallelism and hardware efficiency while minimizing custom architecture components.
  • To reduce constituency parsing to a tagging task with minimal task-specific structure, leveraging pre-trained models like BERT.
  • To achieve high accuracy comparable to state-of-the-art parsers while enabling fast, linear-time inference suitable for hardware accelerators.
  • To demonstrate that parsing can be efficiently executed on CPUs or TPUs by decoupling prediction from complex search procedures.
  • To provide a simple, extensible framework for integrating syntax into neural NLP models with low overhead.

Proposed method

  • The model assigns four tags per word: two structural decisions (left/right child creation) and two labeling decisions (left/right node label), enabling full parallel prediction.
  • A left-to-right reconciliation phase processes the predicted tags in linear time, reconstructing a valid binary tree without backtracking.
  • The method uses a stack-based transition system inspired by left-corner parsing, with actions encoded as tags that guide tree construction.
  • The neural architecture is based on BERT with two additional trainable projection layers for tag prediction, minimizing architectural deviation.
  • Non-binary trees are handled via unary chain collapse and right-branching binarization, with post-processing to restore original structure.
  • Inference is guaranteed to run in O(n) time under mild stack depth constraints, with empirical performance near-linear across varying stack limits.

Experimental results

Research questions

  • RQ1Can constituency parsing be reduced to a fully parallel tagging task without sacrificing accuracy?
  • RQ2Can a linear-time inference procedure be designed that is both correct and efficient for parsing?
  • RQ3How does the performance of a BERT-based tagging model compare to specialized parsing architectures in terms of speed and accuracy?
  • RQ4To what extent can standard neural components like BERT be used directly for parsing with minimal architectural modification?
  • RQ5Can the parsing task be made amenable to hardware acceleration by avoiding cubic-time or autoregressive inference?

Key findings

  • The Tetra-Tagging parser achieves 95.44 F1 on the WSJ test set, closely matching the best-reported models (e.g., 95.59 F1 by Kitaev et al., 2019) while using the same BERT-Large initialization.
  • The parser processes 1200 sentences per second on a single TPU v3-8, significantly outperforming state-of-the-art parsers with comparable accuracy in throughput.
  • Inference time scales linearly with sentence length, and the F1 score asymptotes quickly as the maximum stack depth increases, validating the linear-time claim.
  • The model maintains high coverage of gold trees even with a modest stack depth limit, with accuracy closely tracking the fraction of representable trees.
  • The method achieves high accuracy with minimal architectural changes—only two additional projection layers on top of BERT—demonstrating strong compatibility with pre-trained models.
  • The approach enables efficient CPU scheduling of inference due to its low constant factor and linear complexity, unlike cubic-time or A*-based methods.

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.