Compositional Semantics for Linguistic Formalisms

Shuly WintnerACL 1999

Abstract

Building large-scale natural language grammars is a significant engineering challenge that requires modularity and predictable component interaction. This paper provides a mathematical foundation for "grammar engineering" by adapting semantic models from logic programming to unification-based linguistic formalisms. By introducing a functional, fully abstract semantics, the work establishes a formal framework where independent grammar modules can be combined reliably, ensuring that the meaning of a complex grammar is a function of its constituent parts.

Introduction

In the field of computational linguistics, the development of broad-coverage grammars has evolved into a discipline akin to software engineering. To manage the inherent complexity of natural language, "grammar engineers" must construct modular components—independent sets of rules that can be integrated into a larger system. However, unlike traditional software engineering, the field has historically lacked a mathematically sound definition of grammar "meaning" that supports such modularity.

This paper addresses the fundamental problem of non-compositionality in standard grammar formalisms. In a compositional system, the behavior of a combined system ($G_1 \cup G_2$) should be predictable from the meanings of its individual components. In standard linguistic models, the "meaning" of a grammar is typically defined as the set of strings it generates. Unfortunately, this definition is insufficient for modularity: two grammars might generate the same language in isolation but behave entirely differently when combined with a third module. This paper seeks a "Goldilocks" semantics—one that is detailed enough to support composition but abstract enough to ignore irrelevant internal implementation details.

Evaluating Semantic Models

Shuly Wintner approaches this problem by viewing unification-based formalisms—which utilize typed feature structures—through the lens of logic programming. The paper evaluates three distinct semantic approaches to determine their suitability for modular grammar engineering:

  1. Operational/Fixpoint Semantics: This traditional bottom-up approach defines a grammar by the set of all items it can derive. Wintner demonstrates that this model is "too crude." It fails to capture the internal structures necessary to predict how rules might interact when new modules are introduced.
  2. Algebraic Denotation: This model treats a grammar as a transformation operator ($T_G$) that maps a set of facts to new facts in a single step. While this approach is compositional, it is "too fine-grained." It distinguishes between grammars that are functionally identical in every possible context, leading to unnecessary complexity.
  3. Functional Semantics: Borrowing from the work of Lassez and Maher in logic programming, Wintner proposes a semantics defined as a function that reflects infinite applications of grammar rules while treating the lexicon (the vocabulary) as an external input.

The Functional Approach and Full Abstraction

The core contribution of the paper is the proof that the functional approach is both compositional and fully abstract. By treating the lexicon as an input to a functional denotation rather than a static part of the grammar, the model aligns with practical linguistic workflows where core syntactic rules are applied across varying vocabularies.

The paper successfully adapts the functional denotation $(R_G + Id)^\omega$ to the domain of typed feature structures. The resulting Full Abstraction Theorem proves that two grammars are semantically equivalent if and only if they behave identically when combined with any other grammar. This provides the theoretical "holy grail" for modular design: a guarantee that modules can be swapped or updated without unexpected side effects, provided their functional semantics remain the same.

Discussion and Future Work

By reinforcing the view of grammars as high-level declarative programs, this research enables the application of software engineering principles—such as interfaces and imports/exports—to formal linguistics. However, the current model focuses on simple grammar union (adding rule sets together). It does not yet account for more complex interactions, such as the unification of rules across modules or the merging of disparate type hierarchies.

While the paper remains theoretical and does not provide a software implementation, it establishes the necessary groundwork for future grammar development environments. Such environments would allow linguists to build robust, broad-coverage systems through the reliable integration of independent, well-defined modules.

Summary updated

BibTeX
@inproceedings{wintner1999compositional,
  author = {Shuly Wintner},
  title = {{Compositional Semantics for Linguistic Formalisms}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {1999},
  doi = {10.3115/1034678.1034702},
}
Figure