Skip to main content
QUICK REVIEW

[Paper Review] Does it care what you asked? Understanding Importance of Verbs in Deep Learning QA System

Barbara Rychalska, Dominika Basaj|arXiv (Cornell University)|Sep 11, 2018
Topic ModelingComputer Science9 references7 citations
TL;DR

This paper investigates the role of verbs in deep learning question answering (QA) systems by negating question verbs using WordNet antonyms. Despite major semantic changes, the QA system's predictions remained unchanged in 90.5% of cases, revealing that verbs have minimal influence due to dataset biases and model attention mechanisms favoring named entities over verbs.

ABSTRACT

In this paper we present the results of an investigation of the importance of verbs in a deep learning QA system trained on SQuAD dataset. We show that main verbs in questions carry little influence on the decisions made by the system - in over 90% of researched cases swapping verbs for their antonyms did not change system decision. We track this phenomenon down to the insides of the net, analyzing the mechanism of self-attention and values contained in hidden layers of RNN. Finally, we recognize the characteristics of the SQuAD dataset as the source of the problem. Our work refers to the recently popular topic of adversarial examples in NLP, combined with investigating deep net structure.

Motivation & Objective

  • To investigate the influence of verb semantics on decision-making in deep learning QA systems.
  • To examine whether semantic negation of verbs alters system predictions, despite significant meaning changes.
  • To analyze the internal mechanisms of attention and hidden representations in RNN-based QA models.
  • To diagnose the SQuAD dataset for structural biases that may lead models to ignore verb semantics.

Proposed method

  • Generated adversarial questions by replacing main verbs with their antonyms using WordNet, preserving syntactic structure.
  • Measured model output consistency between original and negated questions on the SQuAD development set.
  • Analyzed question self-attention scores to assess word importance, focusing on parts of speech.
  • Visualized and compared variance and entropy in hidden states across LSTM layers to track semantic encoding.
  • Used statistical tests (Kolmogorov-Smirnov) to evaluate significance of attention score differences across POS categories.
  • Correlated attention scores with hidden layer statistics (variance, entropy) to identify encoding patterns.

Experimental results

Research questions

  • RQ1How does negating the meaning of verbs in QA questions affect the model’s predicted answer?
  • RQ2To what extent do attention mechanisms in the QA model prioritize verbs versus other parts of speech?
  • RQ3How are semantic importance and representation variance encoded in the hidden layers of the RNN?
  • RQ4What structural characteristics of the SQuAD dataset contribute to the model’s insensitivity to verb semantics?

Key findings

  • In 90.5% of cases, negating the verb in a question did not change the model’s predicted answer, despite a major shift in semantic meaning.
  • The average decision certainty (softmax probability) remained nearly identical between original and negated questions (0.61 vs. 0.60).
  • Question self-attention scores were significantly lower for verbs (mean 2.32) compared to nouns (mean 5.43), indicating minimal attention to verbs.
  • The Kolmogorov-Smirnov test confirmed statistically significant differences in attention score distributions between verbs and nouns (p < 0.001).
  • Hidden layer variances in the LSTM were higher for nouns (especially named entities) than for verbs, with a 0.85 Pearson correlation between variance and attention scores.
  • A strong negative correlation (r = -0.91) was found between entropy of hidden states and attention scores, indicating that semantic importance is encoded early in the network.

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.