Revisiting the Knowledge Injection Frameworks

Peng Fu, Yiming Zhang, Haobo Wang, Weikang Qiu, Junbo Zhao

Abstract

Knowledge injection (KI) is a prominent strategy for enhancing Large Language Models (LLMs) with specialized external facts. However, this paper reveals a "frustrating finding": many state-of-the-art KI frameworks perform just as well when injected with random noise or irrelevant facts as they do with correctly aligned knowledge. This suggests that current KI methods during fine-tuning act more as a regularization trick than a genuine transfer of knowledge. We propose a "Conceptual Knowledge" approach that prunes and purifies external data, finally allowing LLMs to effectively utilize the facts they are given.

Introduction

While LLMs like GPT-4 demonstrate remarkable general capabilities, they often struggle in specialized "vertical" domains such as medicine or finance. In these areas, models may hallucinate or lack the most current information. To bridge this gap, researchers developed Knowledge Injection (KI) frameworks—such as ERNIE and K-BERT—designed to integrate external knowledge bases directly into the model's architecture.

The standard Knowledge Injection framework involving text-KG alignment and triple retrieval.

The authors of this study identify a critical issue: the performance gains in many of these frameworks do not necessarily originate from the content of the injected knowledge. If a helpful medical fact is replaced with a random celebrity fact or even Gaussian white noise, the model’s performance often remains unchanged. This indicates that current KI methods during the fine-tuning stage may function primarily as data augmentation rather than true knowledge integration.

Methodology and Datasets

The researchers conducted a "sanity-check" on several prominent KI frameworks using a three-pronged ablation protocol:

  1. Aligned Knowledge: The standard method of injecting relevant facts.
  2. Random Knowledge: Injecting intentionally irrelevant facts from the same knowledge base.
  3. Noise Injection: Replacing knowledge embeddings with randomized Gaussian white noise.

To investigate why models were indifferent to these inputs, the team analyzed the cosine similarity of hidden states across the model's layers. They also introduced a remedy: Conceptual Knowledge Injection. This method uses a "purified" knowledge graph, mapping entities to higher-level concepts (via WordNet and Wikidata) and pruning the graph to remove complexity that LLMs perceive as noise.

The study evaluated 12 popular datasets across various NLP tasks, including Named Entity Recognition (NER) in medical and financial domains, Entity Typing (Open Entity), Relation Extraction (TACRED, FewRel), Question Answering (SQuAD 1.1), and Word Sense Disambiguation (WiC).

The Indifference Principle

The study highlights several key insights regarding the current state of KI:

  • The Indifference Principle: During fine-tuning, LLMs fail to "disentangle" complex external knowledge. Because external knowledge bases like Wikidata are vast and dense, models treat the injected data as a generic signal (noise) that aids generalization rather than specific facts to be learned.
  • Embedding Saturation: In models like ERNIE, internal representations for "aligned" versus "random" knowledge were found to be over 98% similar, meaning the model cannot distinguish between helpful facts and random ones.
  • Purity Over Volume: Contrary to the "more is better" philosophy, injecting too many triples can cause performance to drop. The key to successful injection during lightweight fine-tuning is knowledge purity—using clean, abstract concepts rather than raw, messy data.

Key Results

The empirical results confirm the "sanity failure" of existing methods. On the Open Entity dataset, ERNIE achieved a 75.33 F1 score with aligned knowledge and a nearly identical 75.37 F1 with random knowledge. Similarly, injecting pure Gaussian noise into LUKE and K-BERT yielded results within 0.1–0.3 F1 points of using real, aligned facts.

Performance comparison showing the negligible difference between aligned and random knowledge injection in existing frameworks.

When the authors applied their "Conceptual Knowledge" remedy, the gap between aligned and random injection finally widened. On the TACRED dataset, their method provided a +3.91 F1 gain over previous methods. Furthermore, in a prompt-based setting with ChatGPT, injecting "Conceptual Knowledge" improved accuracy from 88% to 92% compared to standard triple injection.

Conclusion

This research serves as a vital "sanity-check" for the NLP community. The findings suggest that future work should move away from designing increasingly complex architectures for injection and instead focus on data-centric approaches. By learning how to better prune, abstract, and "clean" the knowledge we wish models to inherit, we can ensure that KI frameworks provide genuine informational value rather than just sophisticated noise.

Summary updated

BibTeX
@inproceedings{fu2023revisiting,
  author = {Peng Fu and Yiming Zhang and Haobo Wang and Weikang Qiu and Junbo Zhao},
  title = {{Revisiting the Knowledge Injection Frameworks}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2023},
  doi = {10.18653/v1/2023.emnlp-main.677},
}
Figure