Factual Probing Is [MASK]: Learning vs. Learning to Recall

Zexuan Zhong, Dan Friedman, Danqi Chen
4/12/2021
472 citations
cs.CL

Official code: princeton-nlp/OptiPrompt (167 stars, Python, MIT, last commit 2022-10-07).

Abstract

Petroni et al. (2019) demonstrated that it is possible to retrieve world facts from a pre-trained language model by expressing them as cloze-style prompts and interpret the model's prediction accuracy as a lower bound on the amount of factual information it encodes. Subsequent work has attempted to tighten the estimate by searching for better prompts, using a disjoint set of facts as training data.

Show full abstract

In this work, we make two complementary contributions to better understand these factual probing techniques. First, we propose OptiPrompt, a novel and efficient method which directly optimizes in continuous embedding space. We find this simple method is able to predict an additional 6.4% of facts in the LAMA benchmark. Second, we raise a more important question: Can we really interpret these probing results as a lower bound? Is it possible that these prompt-search methods learn from the training data too? We find, somewhat surprisingly, that the training data used by these methods contains certain regularities of the underlying fact distribution, and all the existing prompt methods, including ours, are able to exploit them for better fact prediction. We conduct a set of control experiments to disentangle "learning" from "learning to recall", providing a more detailed picture of what different prompts can reveal about pre-trained language models.

View on arXivView PDF

Code Implementations(1)

MIT

[NAACL 2021] Factual Probing Is [MASK]: Learning vs. Learning to Recall https://arxiv.org/abs/2104.05240

16722Python, ShellMar 21, 20214 years agoMIT
nlpprobingprompt

Similar Papers

Cite this paper

@article{zhong2021factual,
  title  = {Factual Probing Is [MASK]: Learning vs. Learning to Recall},
  author = {Zexuan Zhong and Dan Friedman and Danqi Chen},
  year   = {2021},
  eprint = {2104.05240},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2104.05240}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2104.05240.svg)](https://codeofpaper.com/paper/2104.05240)

Discussion