Massively Parallel Memory-Based Parsing

Hiroaki Kitano, Tetsuya HiguchiIJCAI 1991

Abstract

Traditional natural language parsing relies on the serial application of complex grammatical rules, often leading to significant computational bottlenecks. This paper introduces a massively parallel memory-based approach that redefines parsing as a high-speed memory search problem. By implementing a marker-passing algorithm on the IXM2 associative processor, the authors achieve syntactic recognition in under two milliseconds. The system demonstrates linear or sublinear scaling with sentence length, significantly outperforming contemporary serial and parallel architectures.

Introduction: The Bottleneck of Serial Parsing

In the early 1990s, natural language processing (NLP) was primarily dominated by rule-based or principle-based parsers. These systems utilized serial application of grammatical rules and unification operations, which were computationally expensive; parsing a single sentence could take seconds or even minutes. Furthermore, these algorithms did not scale well on parallel hardware, typically only achieving "medium-grain" parallelism.

The authors propose a shift in perspective: parsing should be viewed as a memory-intensive process rather than a purely calculative one. They explore whether memory-based reasoning (MBR)—handling new events by recalling similar past events—can be scaled to perform full syntactic and semantic analysis on massively parallel hardware using real-world datasets.

Methods: The IXM2 and Marker-Passing

The system is implemented on the IXM2, a specialized massively parallel associative processor comprising 64 transputers and Content Addressable Memory (CAM). The core mechanism is a marker-passing algorithm operating across a three-layer memory network.

The three-layer memory network architecture for marker-passing.

The network consists of:

  1. Lexical Entry Layer: Stores specific words and their associated feature structures.
  2. Syntactic Category Layer: Represents major grammatical categories (e.g., NOUN, VERB).
  3. Syntactic Pattern Layer: Contains pre-expanded sequences of syntactic categories (e.g., DET NOUN VERB).

The algorithm employs two types of markers: A-Markers (Activation), which propagate from input words, and P-Markers (Prediction), which track expected subsequent elements in a pattern. When an A-Marker and a P-Marker collide at a node, the P-Marker advances. If a P-Marker reaches the end of a pattern, the syntactic structure is accepted and passed to a host computer for semantic interpretation via a case-role binding table.

Evaluation and Datasets

The model was evaluated using three corpora of spoken utterances:

  • ATR: A conference registration task (329 utterances, 450-word vocabulary).
  • DARPA: A resource management task (3,345 sentences, 997-word vocabulary).
  • CNN Prime News: Real-world broadcasting data (453 sentences), including a segmented version for independent unit analysis.

Key Insights: Parsing as Retrieval

The fundamental innovation is treating parsing as a search problem. Instead of constructing a parse tree from scratch, the system retrieves matching "templates" already stored in memory. Because markers move through the network in parallel, the approach scales linearly with sentence length, avoiding the $O(n^3)$ complexity typical of traditional parsers like Tomita’s generalized LR parser.

The use of associative memory (CAM) allows for "massively parallel" search—up to 256K parallelism—within the memory chips themselves. Additionally, the researchers found that in task-oriented domains, the number of syntactic patterns used is finite and manageable (e.g., ~1,500 for the DARPA task), supporting the feasibility of this template-based approach.

Key Results

The IXM2 demonstrated exceptional performance, achieving syntactic recognition in less than 2 milliseconds per sentence.

Comparison of syntactic recognition time across different hardware architectures.

As shown in the performance comparison, the IXM2 was approximately 16 times faster than a SUN-4/330 or a Cray X-MP when running optimized C code for this task. Furthermore, the system exhibits "efficiency in complexity": as a parse progresses, the number of active hypotheses per processor drops, meaning the system effectively accelerates relative to the remaining workload as it nears the end of a sentence.

Limitations and Future Directions

While successful, the current "flat" memory structure is memory-intensive. Future iterations may require a Hierarchical Memory Network to handle unrestricted language through layers of abstraction. Additionally, the model's reliance on pattern convergence suggests potential challenges in highly creative or technical domains where patterns vary significantly. Future work will focus on incorporating more complex functional descriptions and improving ambiguity resolution during the marker-passing phase.

Summary updated

BibTeX
@inproceedings{kitano1991massively,
  author = {Hiroaki Kitano and Tetsuya Higuchi},
  title = {{Massively Parallel Memory-Based Parsing}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {1991},
}
Figure