Self-Aware Knowledge Probing: Evaluating Language Models' Relational Knowledge through Confidence Calibration
Organizations: Humboldt-Universität zu Berlin · Science of Intelligence
Abstract
Knowledge probing quantifies how much relational knowledge a language model (LM) has acquired during pre-training. Existing knowledge probes evaluate model capabilities through metrics like prediction accuracy and precision. Such evaluations fail to account for the model's reliability, reflected in the calibration of its confidence scores. In this paper, we establish an empirical framework to evaluate the calibration of relational knowledge in a closed answer-set setting. We cover three modalities of model confidence: (1) intrinsic confidence, (2) paraphrase consistency and (3) linguistic confidence. Our extensive analysis of 21 causal and 8 masked language models reveals that most models, but especially those pre-trained with the masking objective, are overconfident. The best-calibrated scores come from confidence estimates that account for inconsistencies due to statement rephrasing. Moreover, calibration improves when increasing the number of answer options.
Figures & tables
| Model | Acc. | ||
|---|---|---|---|
| opt-125m (125M) | 15.6 | 0.186 | 0.130 |
| roberta-base (125M) | 16.0 | 0.291 | 0.162 |
| gpt2-medium (355M) | 18.4 | 0.179 | 0.110 |
| bert-base-cased (109M) | 18.1 | 0.276 | 0.205 |
| gpt2-large (812M) | 21.5 | 0.163 | 0.116 |
| roberta-large (355M) | 21.1 | 0.278 | 0.158 |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | # Param. | Objective | Accuracy |
|---|---|---|---|
| gemma-2b | 2.0b | CLM | 50.0 |
| gemma-7b | 7.0b | CLM | 62.4 |
| gpt2 | 137M | CLM | 12.8 |
| gpt2-medium | 355M | CLM | 18.4 |
| gpt2-large | 812M | CLM | 21.5 |
| gpt2-xl | 1.6b | CLM | 25.3 |
| ACE ( ) | Brier Score ( ) | ||||
| Model | |||||
| gemma-2b | 40.21 | 0.433 | 0.387 | 0.457 | 0.432 |
| gemma-7b | 16.50 | 0.740 | 0.690 | 0.753 | 0.720 |
| gpt2 | 26.95 | 0.528 | 0.482 | 0.545 | 0.513 |
| gpt2-medium | 31.93 | 0.481 | 0.438 | 0.504 | 0.477 |
| gpt2-large | 35.74 | 0.448 | 0.433 | 0.484 | 0.468 |
Language Model Probing
Language model probing measures what information and capabilities models encode and how those signals relate to their behavior.
See all 265 papers