Unsupervised Deep Structured Semantic Models for Commonsense Reasoning

Shuohang Wang, Sheng Zhang, Yelong Shen, Xiaodong Liu, Jingjing Liu, Jianfeng Gao

This paper, presented at NAACL-HLT 2019, tackles one of the "holy grails" of Natural Language Processing: commonsense reasoning. Specifically, it focuses on the Winograd Schema Challenge (WSC), a test designed to be easy for humans but notoriously difficult for AI because it requires world knowledge rather than just linguistic patterns.

The Challenge of Commonsense Reasoning

Consider these two sentences:

  1. The city councilmen refused the demonstrators a permit because they feared violence.
  2. The city councilmen refused the demonstrators a permit because they advocated violence.

In sentence 1, "they" refers to the councilmen. In sentence 2, "they" refers to the demonstrators. To solve this, a machine can't just look at grammar; it needs the commonsense knowledge that "demonstrators usually cause violence and city councilmen usually fear violence."

The primary difficulty is that there is no labeled training data for these tasks. Previous attempts relied on hand-crafted knowledge bases (which are rarely comprehensive) or massive Language Models (LMs). While LMs are powerful, they aren't explicitly designed to model the relationship between a pronoun and its antecedent.

Proposed Methodology: UDSSM

The authors adapt the Deep Structured Semantic Model (DSSM) framework—originally designed for web search ranking—to the task of co-reference resolution. They propose two unsupervised variants:

Architectural comparison of the standard DSSM and the proposed Unsupervised Deep Structured Semantic Models (UDSSM-I and UDSSM-II).
  • UDSSM-I (The "Preceding Noun" Assumption): This model assumes a pronoun likely refers to one of the nouns appearing before it in the same sentence. It uses a Bi-LSTM to encode the context of the nouns ($S^x$) and the context of the pronoun ($S^y$). An attention mechanism then learns to "score" which noun is the most likely match. It is trained using negative sampling, where the model learns to distinguish a real pronoun context from a randomly sampled one.
  • UDSSM-II (The "Gender/Plurality" Assumption): This model assumes that pronouns in the same sentence with the same gender and plurality are likely to refer to the same thing. This allows the model to generate "pseudo-labels" from raw text to train a classifier that predicts whether two tokens co-refer.

Unlike a standard Language Model that predicts the next word, these models are optimized to project nouns and pronouns into a shared "semantic space" where the distance between them represents how likely they are to co-refer.

Experimental Setup and Results

The models were trained on two massive, unlabeled corpora: Project Gutenberg (over 57,000 eBooks) and the 1 Billion Word corpus (news data). They were then evaluated on two classic benchmarks: the Winograd Schema Challenge (WSC) and Pronoun Disambiguation Problems (PDP).

The UDSSM models set new benchmarks for unsupervised commonsense reasoning:

  • PDP Task: The UDSSM-II ensemble reached 78.3% accuracy, a significant jump over the previous state-of-the-art (Google Language Model at 70%).
  • WSC Task: The UDSSM-II ensemble achieved 62.4% accuracy. For context, random guessing is 50%, and the previous best ensemble was 61.5%.

Key Insights and Limitations

The paper proves that simple linguistic heuristics (like "pronouns usually refer to preceding nouns") can provide enough signal to train deep neural networks without a single human-provided label. Furthermore, the UDSSM models are significantly faster to train than large LMs, requiring about 30 hours on a single K40 GPU.

Despite the progress, the authors note that some types of commonsense are still "hard to learn." Specifically, the models struggle with size and physical properties. For example, in the sentences:

  • The trophy doesn't fit into the brown suitcase because it is too small.
  • The trophy doesn't fit into the brown suitcase because it is too large.

The model often picks the same candidate for "it" in both cases because it hasn't truly learned the physical logic of objects fitting inside one another. Future directions include moving from LSTMs to Transformers and using even larger, more diverse datasets like Common Crawl to capture a broader range of human experience.

Summary updated

BibTeX
@inproceedings{wang2019unsupervised,
  author = {Shuohang Wang and Sheng Zhang and Yelong Shen and Xiaodong Liu and Jingjing Liu and Jianfeng Gao and Jing Jiang},
  title = {{Unsupervised Deep Structured Semantic Models for Commonsense Reasoning}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2019},
  doi = {10.18653/v1/n19-1094},
}
Figure