Skip to main content
QUICK REVIEW

[Paper Review] Does Knowledge Help General NLU? An Empirical Study

Ruochen Xu, Yuwei Fang|arXiv (Cornell University)|Sep 1, 2021
Topic ModelingComputer Science35 references7 citations
TL;DR

This paper empirically investigates whether external knowledge improves performance on general natural language understanding (NLU) tasks. It evaluates knowledge integration via textual descriptions and embeddings using non-invasive methods across 4 pre-trained models and 10 NLU tasks, finding that knowledge boosts performance by 0.46 average F1 points and enhances model generalization by retaining input information and filtering task-irrelevant features.

ABSTRACT

It is often observed in knowledge-centric tasks (e.g., common sense question and answering, relation classification) that the integration of external knowledge such as entity representation into language models can help provide useful information to boost the performance. However, it is still unclear whether this benefit can extend to general natural language understanding (NLU) tasks. In this work, we empirically investigated the contribution of external knowledge by measuring the end-to-end performance of language models with various knowledge integration methods. We find that the introduction of knowledge can significantly improve the results on certain tasks while having no adverse effects on other tasks. We then employ mutual information to reflect the difference brought by knowledge and a neural interpretation model to reveal how a language model utilizes external knowledge. Our study provides valuable insights and guidance for practitioners to equip NLP models with knowledge.

Motivation & Objective

  • To determine whether external knowledge improves performance on general NLU tasks beyond knowledge-centric applications.
  • To identify which knowledge sources and integration methods yield the greatest gains across diverse NLU tasks.
  • To evaluate the effectiveness of different knowledge integration techniques and pre-trained language models in enhancing NLU performance.
  • To analyze how knowledge influences model decision-making beyond end-to-end accuracy, using interpretability tools and mutual information.
  • To provide actionable insights for practitioners on effectively equipping NLP models with external knowledge for general NLU.

Proposed method

  • Employs two non-invasive knowledge integration methods: Knowledge as Text (KT), which injects entity descriptions into input tokens, and Knowledge as Embedding (KE), which adds entity embeddings to contextual representations.
  • Applies both methods to four pre-trained language models: RoBERTa-base, BERT-base, ELECTRA-base, and DistilBERT.
  • Uses mutual information (MI) estimation to quantify how knowledge affects information retention about input (x) and output (y) across transformer layers, with MI approximated via reconstruction error and cross-entropy loss.
  • Employs DiffMask, a neural interpretation model, to visualize which input tokens are deemed important by the model at each layer, enabling analysis of decision-making shifts due to knowledge integration.
  • Conducts extensive experiments across 10 general NLU tasks, including sentiment classification, natural language inference, sentence similarity, POS tagging, and NER.
  • Estimates mutual information differences ΔI(c^(l);x) and ΔI(c^(l);y) at each transformer layer l to assess how knowledge alters information flow and abstraction.

Experimental results

Research questions

  • RQ1Does external knowledge improve performance on general NLU tasks overall?
  • RQ2Which sources of knowledge and which NLU tasks benefit most from knowledge integration?
  • RQ3Which knowledge integration methods are most effective under the same experimental setup?
  • RQ4Which large-scale pre-trained language models benefit most from external knowledge?
  • RQ5Can we detect knowledge’s impact beyond end-to-end performance, and if so, how does the model utilize it?

Key findings

  • Knowledge integration improves average F1 performance by 0.46 points across all 10 NLU tasks and 4 models, with significant gains on specific tasks like CoLA and RTE.
  • The KT-Attn method achieves the highest mutual information gain, retaining more input information and discarding more task-irrelevant features compared to the vanilla RoBERTa-base baseline.
  • Knowledge integration leads to a gradual reduction in irrelevant information and increased retention of output-relevant features, starting from layer 6 and continuing through deeper layers.
  • Although knowledge is only applied to specific tokens (e.g., verbs, nouns, adjectives), it influences the model’s attention across all tokens, enhancing generalization on tasks like CoLA.
  • DiffMask analysis shows that KT-Attn correctly identifies non-influential words (e.g., negation 'not' or complex phrases 'Sue to stay') as unimportant for prediction, indicating improved reasoning.
  • The average number of transformer layers identifying certain POS tags (e.g., PRON, ADP, NUM) as important increases after knowledge integration, showing broader impact on model behavior.

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.