Chart Generation

Martin KayACL 1996

Introduction

In the field of computational linguistics, a long-standing goal has been the development of "bidirectional" grammars—systems where the same linguistic rules serve both for understanding (parsing) and speaking (generation). Martin Kay’s classic paper addresses this by asking whether the efficient machinery of chart parsing can be repurposed for generation. He proposes a "uniform architecture" where generation is treated as parsing a "free word-order" language defined by logical forms.

The Challenge of Semantic Flatness

The primary obstacle to using standard parsing algorithms for generation is the "flatness" of logical forms. Unlike a sentence, where words follow a strict linear order, the predicates in a semantic representation (e.g., run(r), past(r), fast(r)) are unordered. A naive generator might attempt to construct every possible permutation of modifiers, leading to an exponential explosion in the search space. For instance, $k$ modifiers for a single noun could result in $2^k$ partial phrases.

The Chart Generation Algorithm

Kay adapts the chart parsing framework through three fundamental modifications:

1. Semantic Indexing

In traditional parsing, edges are indexed by their positions in a string (e.g., from word 0 to word 3). In Kay's generation model, edges are indexed by the semantic entities (indices) they describe. If a phrase refers to an event $s$, it is anchored to the vertex $s$ in the chart.

Lexical entries mapping words to categories and semantic predicates.

As shown in the lexical mapping above, each word is associated with a category and a set of semantic constraints. These are then organized into a chart structure where the "vertices" are the semantic variables themselves.

The chart structure indexed by semantic entities (vertices) rather than string positions.

2. Bit Vectors for Coverage

To prevent the generator from omitting information or repeating predicates, Kay employs bit vectors. Each bit corresponds to a specific predicate in the input logical form. A valid edge must cover a unique set of bits, ensuring that every part of the intended meaning is expressed exactly once.

3. The Internality Rule

To mitigate the modifier explosion, Kay introduces a pruning strategy based on "internality." An index is considered "internal" to a phrase if the grammar can no longer attach additional information to it. The rule dictates that a phrase should not be constructed if it "hides" an index that still has unexpressed modifiers. This forces the system to complete the description of one entity before integrating it into the broader sentence structure.

Insights and Results

The most significant insight of this work is that generation is essentially "parsing meaning." By swapping the indexing method, the standard "Algorithm Schema" (moving edges from an agenda to a chart) remains intact.

This approach offers several advantages:

  • Complexity Management: The internality rule transforms the cost of multiple modified nouns from multiplicative to additive ($2^n + 2^m$ instead of $2^{(n+m)}$), significantly improving performance for complex sentences.
  • Efficiency through Caching: Like chart parsing, this method caches partial results. Once a complex noun phrase is built, it is stored in the chart and reused, avoiding redundant computations.
  • Uniformity: A single optimized engine can handle both directions of natural language processing, simplifying the development of translation and dialogue systems.

Limitations and Conclusion

While the internality rule provides a powerful heuristic, Kay acknowledges that generation remains exponential in the worst case due to the inherent permutations allowed by flat semantics. Furthermore, the specific optimizations discussed often assume a grammar with binary rules, suggesting that more complex linguistic structures might require further refinements. Nevertheless, Martin Kay’s work demonstrates that the gap between parsing and generation is smaller than previously thought, providing a robust foundation for efficient, bidirectional natural language systems.

Summary updated

BibTeX
@inproceedings{kay1996chart,
  author = {Martin Kay},
  title = {{Chart Generation}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1996},
  doi = {10.3115/981863.981890},
}
Figure