Representing Meaning with a Combination of Logical and Distributional Models

I. Beltagy, Stephen Roller, Pengxiang Cheng, Katrin Erk, Raymond J. Mooney

TL;DR

This paper introduces a hybrid semantic framework that combines the structural precision of logic-based representations with the graded, nuanced meaning of distributional vector models. By integrating these two complementary approaches within a probabilistic logic framework using Markov Logic Networks (MLNs), the authors successfully resolve complex linguistic phenomena like negation and quantification while capturing word-level similarity, achieving state-of-the-art results on textual entailment tasks.

What Problem Does This Paper Address?

For decades, natural language processing (NLP) has been divided into two major camps for representing meaning:

  1. Logic-based semantics: This approach excels at capturing sentence structure, logical connectives, negation, and quantifiers. However, it is traditionally binary (true/false) and struggles to handle the fuzzy, graded nature of real-world word meanings (e.g., how "grumpy" relates to "sad").
  2. Distributional semantics (vector spaces): This approach excels at capturing fine-grained word and phrase similarities based on context. However, it struggles to represent sentence structure, negation, or complex logical reasoning.

Because their strengths and weaknesses are perfectly inverted, researchers have long sought to combine them. This paper tackles the practical challenges of building a unified system that can map natural language to probabilistic logic, automatically construct a weighted knowledge base from distributional data, and perform efficient inference.

Methods

The authors construct a pipeline consisting of three main components:

  • Logical Representation: Sentences are parsed into logical forms using Boxer (a wide-coverage semantic analysis tool). To adapt standard first-order logic for a probabilistic framework, the authors introduce a Closed-World Assumption (CWA). This ensures that unmentioned facts have a prior probability of approximately zero, preventing the system from making false assumptions. They also use multiple parsers (C&C and EasyCCG) to minimize the impact of misparsing.
  • Knowledge Base Construction: To find the missing lexical and phrasal links between a text and a hypothesis, the system uses a modified version of Robinson resolution (a classic theorem-proving technique) to align sentences and extract specific inference rules. These rules are then weighted using a supervised classifier trained on wordform features, WordNet relations, and distributional similarity spaces.
  • Probabilistic Inference: The system relies on Markov Logic Networks (MLNs) to perform the final reasoning. MLNs ground the logical formulas into an undirected graphical model where clauses act as soft constraints.
Figure 1: A sample ground network for a Markov Logic Network

To handle complex, existentially quantified queries without running into combinatorial explosions, the authors implement a specialized inference algorithm based on SampleSearch to estimate the network's partition functions.

Datasets

The system is trained and evaluated on:

  • SICK (Sentences Involving Compositional Knowledge): A dataset consisting of 5,000 training pairs and 4,927 testing pairs, annotated for Recognizing Textual Entailment (RTE) and Semantic Textual Similarity (STS). SICK was specifically designed to minimize the need for external world knowledge, focusing instead on lexical and compositional semantics.
  • New Lexical Entailment Dataset: As a secondary contribution, the authors extract and release a dataset of 10,213 unique rules derived from SICK, complete with gold-standard annotations (entailing, contradictory, or neutral), providing a valuable benchmark for word-level inference systems.

Key Insights and Ideas

  • Probability as the Ultimate Glue: Instead of treating weights and probabilities as a problem to be avoided, the authors show that probabilistic logic is the ideal mathematical framework to unify structural logic and vector spaces.
  • Taming the Intractability of MLNs: Standard MLN tools struggle with complex natural language queries because existentially quantified variables create massive disjunctions. By enforcing the Closed-World Assumption, the authors dramatically prune the graph size, reducing the number of query clauses from millions down to a manageable average of just six.
  • Asymmetric Features for Directional Inference: Standard vector similarity (like cosine) is symmetric, but entailment is directional (e.g., "crow" implies "bird", but "bird" does not imply "crow"). By incorporating vector differences ($LHS - RHS$) and their squares, the rule classifier successfully learns directional hypernymy rather than just general topical similarity.

Key Results

  • State-of-the-Art Performance: The full system achieves an accuracy of 85.1% on the SICK test set, outperforming the previous top-performing system (Lai and Hockenmaier, 84.6%).
  • Ablation Impact: Removing components clearly demonstrates their value. Pure logic without the Closed-World Assumption achieves only 63.5% accuracy. Adding the CWA bumps it to 71.7%, and integrating the trained entailment rule classifier (eclassif) pushes it to 83.0% before final tuning.
  • Subsuming Databases: Interestingly, the authors found that adding rules from the massive paraphrase database PPDB did not improve accuracy once their distributional classifier (eclassif) was active, proving that simple distributional information can effectively learn and subsume large, static paraphrase databases.

Limitations and Future Work

  • Static vs. Contextualized Rules: The current lexical classifier evaluates rules statically. It struggles with context-specific entailments—for instance, knowing that "put" entails "pour" only when the object is a liquid. Integrating contextualized word representations is a primary goal for future work.
  • Scaling to Open Domains: While highly effective for sentence-pair tasks like RTE, scaling this deep probabilistic logic framework to handle massive corpora for open-domain question answering remains a significant computational challenge.
  • Generalized Quantifiers: First-order logic cannot naturally represent quantifiers like "few" or "most". The authors suggest exploring whether the probabilistic nature of MLNs can be leveraged to handle these determiners without resorting to complex higher-order logics.

Summary updated

BibTeX
@article{beltagy2016representing,
  author = {I. Beltagy and Stephen Roller and Pengxiang Cheng and Katrin Erk and Raymond J. Mooney},
  title = {{Representing Meaning with a Combination of Logical and Distributional Models}},
  journal = {Comput. Linguistics},
  year = {2016},
  doi = {10.1162/coli\_a\_00266},
}
Figure