Skip to main content
QUICK REVIEW

[Paper Review] A CCG-Based Version of the DisCoCat Framework

Richie Yeung, Dimitri Kartsaklis|arXiv (Cornell University)|May 17, 2021
Natural Language Processing TechniquesComputer Science22 references17 citations
TL;DR

This paper proposes a CCG-based reformulation of the DisCoCat framework, replacing pregroup grammars with Combinatory Categorial Grammar (CCG) to overcome limitations in expressiveness and scalability. By modeling CCG as a biclosed category and leveraging symmetric compact closure for permutation rules, the authors enable large-scale DisCoCat experiments using existing CCG parsers, demonstrated via a full conversion of 'Alice in Wonderland' into DisCoCat diagrams.

ABSTRACT

While the DisCoCat model (Coecke et al., 2010) has been proved a valuable tool for studying compositional aspects of language at the level of semantics, its strong dependency on pregroup grammars poses important restrictions: first, it prevents large-scale experimentation due to the absence of a pregroup parser; and second, it limits the expressibility of the model to context-free grammars. In this paper we solve these problems by reformulating DisCoCat as a passage from Combinatory Categorial Grammar (CCG) to a category of semantics. We start by showing that standard categorial grammars can be expressed as a biclosed category, where all rules emerge as currying/uncurrying the identity; we then proceed to model permutation-inducing rules by exploiting the symmetry of the compact closed category encoding the word meaning. We provide a proof of concept for our method, converting "Alice in Wonderland" into DisCoCat form, a corpus that we make available to the community.

Motivation & Objective

  • To address the limitations of pregroup grammars in the DisCoCat framework, which restrict expressiveness to context-free languages and lack scalable parsing support.
  • To enable large-scale DisCoCat experiments by replacing pregroups with Combinatory Categorial Grammar (CCG), a mildly context-sensitive formalism with robust statistical parsers available.
  • To provide a theoretically sound, biclosed category-based encoding of CCG rules, including order-preserving and permutation-inducing rules, within the DisCoCat compositional semantics framework.
  • To demonstrate the feasibility of the approach by converting the full text of 'Alice in Wonderland' into DisCoCat diagrams using a standard CCG parser.
  • To release the resulting corpus and a web-based tool for DisCoCat diagram generation to support community research and experimentation.

Proposed method

  • Model CCG as a biclosed category, where standard syntactic rules emerge naturally from currying and uncurrying operations on identity morphisms.
  • Encode permutation rules—such as crossed composition—using the symmetry isomorphism of the compact-closed category of semantics, allowing efficient wire-swapping representations.
  • Define a closed monoidal functor from the free biclosed category generated over atomic types, words, and CCG rules to the category of finite-dimensional vector spaces (FdVect).
  • Represent word meaning as tensors and sentence meaning as tensor contractions, with grammatical derivations mapped to string diagrams via the functorial mapping.
  • Use the symmetry of the semantics category to encode non-canonical word order and cross-serial dependencies through wire permutations, avoiding explicit type expansion.
  • Implement the framework using a standard CCG parser (e.g., Yoshikawa et al. 2017) to derive syntactic structures, then convert them into DisCoCat diagrams via the proposed categorical mapping.

Experimental results

Research questions

  • RQ1Can Combinatory Categorial Grammar (CCG) be formally embedded into the DisCoCat framework using category theory, replacing pregroup grammars?
  • RQ2How can permutation rules in CCG, such as crossed composition, be efficiently encoded in a symmetric compact-closed category of semantics?
  • RQ3Does the CCG-based DisCoCat framework support the modeling of cross-serial dependencies and other non-context-free constructions beyond the reach of pregroups?
  • RQ4Can existing robust CCG parsers be effectively used to scale DisCoCat experiments to large, real-world corpora with arbitrary syntactic structures?
  • RQ5To what extent can the resulting DisCoCat diagrams be used to compute compositional sentence meanings in a way that preserves linguistic expressiveness and computational tractability?

Key findings

  • The authors successfully reformulate DisCoCat using CCG as the syntactic foundation, enabling the framework to model mildly context-sensitive phenomena such as cross-serial dependencies.
  • The use of biclosed categories provides a natural and formal encoding of CCG’s standard syntactic rules, including type-raising and composition, through currying and uncurrying operations.
  • Permutation rules in CCG are efficiently encoded via the symmetry isomorphism of the semantics category, allowing wire-swapping to represent word order changes without altering the underlying tensor structure.
  • The authors demonstrate the method by converting the entire text of 'Alice in Wonderland' into DisCoCat diagrams using a standard CCG parser, creating the first large-scale, publicly available DisCoCat corpus.
  • A web-based tool for converting any sentence into a DisCoCat diagram is released, enabling broader community access and experimentation.

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.