[Paper Review] Factual Probing Is [MASK]: Learning vs. Learning to Recall
This paper introduces OptiPrompt, a continuous optimization method for improving factual probing in pre-trained language models by searching in embedding space rather than discrete tokens. It achieves a 6.4% accuracy gain on the LAMA benchmark and reveals that prompt-search methods exploit statistical regularities in training data, challenging the assumption that probing results reflect only model-internal knowledge.
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. 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.
Motivation & Objective
- To develop a more effective method for optimizing prompts in factual probing tasks using continuous embedding space.
- To investigate whether prompt-search methods like OptiPrompt learn from the model's internal knowledge or from statistical regularities in the training data.
- To disentangle 'learning' (from model weights) from 'learning to recall' (from training data patterns) in factual probing.
- To provide a more nuanced understanding of what probing results truly reveal about pre-trained language models.
- To improve diagnostic rigor in factual probing by introducing control experiments that isolate data-driven vs. model-based generalization.
Proposed method
- OptiPrompt directly optimizes continuous input embeddings instead of discrete tokens, enabling gradient-based search in the embedding space.
- The method initializes from manually crafted prompts to improve convergence and performance.
- It uses standard backpropagation to update input embeddings so that the model's prediction for the [MASK] token maximizes accuracy on a training set.
- The approach is computationally efficient and does not require fine-tuning model parameters.
- Control experiments compare model performance against random baselines and simple classifiers trained on training data only.
- The study evaluates on both standard LAMA and the more challenging LAMA-UHN split to assess robustness to lexical heuristics.
Experimental results
Research questions
- RQ1Can continuous optimization in embedding space significantly improve factual probing accuracy compared to discrete prompt search?
- RQ2To what extent do prompt-search methods like OptiPrompt rely on statistical regularities in the training data rather than model-internal knowledge?
- RQ3Are the gains in probing accuracy due to better model utilization or exploitation of data distribution patterns?
- RQ4Can a classifier trained only on the training data predict facts without accessing the language model?
- RQ5How do different prompt methods perform on 'easy' vs. 'hard' examples, and what does this reveal about their generalization behavior?
Key findings
- OptiPrompt improves factual probing accuracy on the LAMA benchmark from 42.2% to 48.6%, a 6.4% relative gain over prior discrete methods.
- On the LAMA-UHN split, OptiPrompt increases accuracy from 31.3% to 38.4%, demonstrating robustness to lexical heuristics.
- A simple classifier trained only on the training data achieves non-trivial accuracy (up to 20%) on the test set, indicating exploitable regularities in the data distribution.
- All prompt-search methods, including OptiPrompt, benefit from these data regularities, suggesting that gains are partly due to data memorization or pattern exploitation.
- OptiPrompt outperforms prior methods on both 'easy' and 'hard' test examples, indicating it is effective at both data-driven generalization and model-based fact recall.
- The study reveals that probing results cannot be interpreted as a strict lower bound on model-internal knowledge, as they are confounded by data distribution patterns.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.