Artefact Retrieval: Overview of NLP Models with Knowledge Base Access

Vilém Zouhar, Marius Mosbach, Debanjali Biswas, Dietrich Klakow

Introduction

Large Language Models (LLMs) have demonstrated impressive capabilities, yet they rely primarily on "parametric" knowledge—facts stored within the model's weights during training. This approach leads to significant challenges, including hallucinations, knowledge staleness, and a lack of interpretability. To address these issues, "retrieval-augmented" models have emerged, shifting the paradigm from a closed-book to an open-book exam by accessing external Knowledge Bases (KBs). However, the lack of a systematic terminology has made it difficult to compare diverse systems. This paper introduces a unified abstract framework to categorize how NLP models integrate external knowledge.

A Unified Framework for Retrieval-Augmented NLP

The authors propose a task-agnostic pipeline consisting of four primary components:

  1. Encoder: Transforms the input query into a "key" (typically a dense vector).
  2. Retriever: Identifies "candidates" within the Knowledge Base using the generated key.
  3. Aggregator: Processes these candidates (e.g., via reranking) into a final "Artefact."
  4. Model: The core neural network that utilizes the artefact to generate the final output.
The proposed four-part pipeline for retrieval-augmented NLP systems, illustrating the flow from query to output via an external Knowledge Base.

This framework allows for a formal mathematical description of the retrieval process, clarifying the relationship between the input query ($q$), the retrieved candidates ($C$), the processed artefact ($\xi$), and the final prediction ($\hat{y}$).

Formal definitions of the key components within the retrieval-augmented framework.

Typology of Artefacts and Fusion

Beyond the pipeline, the framework defines a typology based on four properties:

  • Fusion: Determines when knowledge enters the model (e.g., early fusion at the input level vs. late fusion at the output level).
  • Specificity: Whether the information is specific to a sample, a task, or a class.
  • KB Source: Whether knowledge originates from training data, external sources (like Wikipedia), or dynamic caches.
  • Key/Value Type: Whether data is stored as dense vectors or structured triplets (Knowledge Graphs).

The authors highlight the "Fusion Spectrum," noting that while early fusion is popular for its processing depth, late fusion often offers superior explainability and bias control.

Insights and Future Directions

By mapping existing models like k-NN LM and Dense Passage Retrieval (DPR) onto this schema, the authors identify "white spaces" in current research—such as the under-exploration of late fusion in knowledge-intensive QA tasks. The framework suggests that retrieval architectures can be highly transferable; for instance, a retrieval pipeline designed for QA could be adapted for fact-checking by simply swapping the "Model" component.

While the framework provides a powerful abstraction, some highly complex or iterative models may require further refinement to fit perfectly into the four-part schema. Future work includes exploring multi-pipeline systems that query heterogeneous knowledge bases simultaneously.

Summary updated

BibTeX
@inproceedings{zouhar2021artefact,
  author = {Vilém Zouhar and Marius Mosbach and Debanjali Biswas and Dietrich Klakow},
  title = {{Artefact Retrieval: Overview of NLP Models with Knowledge Base Access}},
  booktitle = {CSKB @ AKBC},
  year = {2021},
  url = {https://openreview.net/forum?id=9_oCNR6R9l2},
}
Figure