English

Probing Language Models on Their Knowledge Source

Computation and Language 2024-11-12 v3

Abstract

Large Language Models (LLMs) often encounter conflicts between their learned, internal (parametric knowledge, PK) and external knowledge provided during inference (contextual knowledge, CK). Understanding how LLMs models prioritize one knowledge source over the other remains a challenge. In this paper, we propose a novel probing framework to explore the mechanisms governing the selection between PK and CK in LLMs. Using controlled prompts designed to contradict the model's PK, we demonstrate that specific model activations are indicative of the knowledge source employed. We evaluate this framework on various LLMs of different sizes and demonstrate that mid-layer activations, particularly those related to relations in the input, are crucial in predicting knowledge source selection, paving the way for more reliable models capable of handling knowledge conflicts effectively.

Keywords

Cite

@article{arxiv.2410.05817,
  title  = {Probing Language Models on Their Knowledge Source},
  author = {Zineddine Tighidet and Andrea Mogini and Jiali Mei and Benjamin Piwowarski and Patrick Gallinari},
  journal= {arXiv preprint arXiv:2410.05817},
  year   = {2024}
}

Comments

Accepted at BlackBoxNLP@EMNLP2024

R2 v1 2026-06-28T19:12:39.181Z