A Compositional Typed Semantics for Universal Dependencies

Laurestine Bradford, Timothy John O'Donnell, Siva ReddyarXiv 2024 · DOI

Abstract

Universal Dependencies (UD) provide a consistent framework for describing grammar across diverse languages, yet mapping these structures to formal logical meanings remains a challenge. This paper introduces UD Type Calculus (UD-TC), a compositional framework that treats dependency labels as mathematical functions in a typed lambda calculus. By deriving meanings directly from UD trees, UD-TC achieves cross-linguistic semantic parsing without language-specific rules, effectively handling complex phenomena like quantifier scope and presupposition.

Introduction

In natural language processing, understanding the structure of a sentence—who did what to whom—is distinct from deriving its formal meaning. While Universal Dependencies (UD) has become the gold standard for cross-linguistic syntactic description, traditionally, mapping syntax to logic has been a bespoke process tailored to specific languages. The challenge lies in creating a compositional system—where the meaning of a sentence is built from its parts—that is flexible enough for the diversity of human languages while remaining mathematically rigorous.

Methodology: UD Type Calculus (UD-TC)

The core innovation of UD-TC lies in its treatment of the "edges" or relations in a syntax tree. Rather than treating dependency labels as mere metadata, UD-TC assigns them formal denotations.

Relations as Denotations

In UD-TC, dependency labels (e.g., nsubj, obj, amod) are treated as functions in lambda calculus. They serve as the "glue" that combines word meanings. This is supported by a flexible type system using atomic types for entities ($e$), events ($s$), and Discourse Representation Structures ($t$). Crucially, the system introduces "syntactically-tagged" subtypes for entities (e.g., $e_{sj}$ for subjects) to ensure correct thematic role assignment (Agent vs. Theme) regardless of word order variations across languages.

Figure 1: A UD syntax tree for "The big red dog slept" annotated with semantic types for both words and dependency relations.

Discourse Representation Structures (DRS)

The system outputs meanings in the form of DRS—logical "boxes" that excel at handling presupposition and discourse context. By exploring different binarization orders of UD tree branches, UD-TC naturally accounts for semantic ambiguities, such as quantifier scope (e.g., "Every cat chased a mouse").

Figure 3: The resulting Discourse Representation Structure (DRS) for the sentence "The big red dog slept," illustrating the handling of events and presuppositions.

Evaluation and Results

The researchers evaluated UD-TC using the Parallel Meaning Bank (PMB), covering over 16,000 sentences across English, German, Italian, and Dutch. UD trees were generated using the Stanza parser and then processed via UD-TC to produce logical forms.

UD-TC was compared against UD-Boxer, a state-of-the-art baseline using graph transformations. Key findings include:

  • Superior Discourse Modeling: UD-TC significantly outperformed the baseline in evaluating discourse relations. In English, UD-TC achieved an F1 score of 52.9 compared to UD-Boxer’s 29.1.
  • Cross-Linguistic Generalization: The system maintained high performance across all four test languages using identical underlying logic, demonstrating its universal applicability.
  • Ambiguity Coverage: The framework successfully derived both surface and inverse quantifier scopes, a classic challenge in formal semantics.

Discussion and Limitations

By assigning semantic definitions to dependency labels, UD-TC achieves a modularity that simplifies the transition from syntax to logic. However, the system faces a combinatorial explosion; exploring all possible combination orders for complex sentences can lead to millions of potential meanings, resulting in computational timeouts (accounting for 72% of failures). Furthermore, the current word-meaning templates are hand-crafted, suggesting a future need for probabilistic models to learn these lexicons from data.

Conclusion

UD-TC bridges the gap between universal syntax and formal logic. By providing a principled, compositional way to derive meaning, it moves the field closer to language-agnostic deep semantic understanding.

Summary updated

BibTeX
@misc{bradford2024compositional,
  author = {Laurestine Bradford and Timothy John O'Donnell and Siva Reddy},
  title = {{A Compositional Typed Semantics for Universal Dependencies}},
  year = {2024},
  eprint = {2403.01187},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.01187},
}
Figure