BEAR: A Unified Framework for Evaluating Relational Knowledge in Causal and Masked Language Models
Wiland, Jacek, Ploner, Max, Akbik, Alan
–arXiv.org Artificial Intelligence
Knowledge probing assesses to which degree a language model (LM) has successfully learned relational knowledge during pre-training. Probing is an inexpensive way to compare LMs of different sizes and training configurations. However, previous approaches rely on the objective function used in pre-training LMs and are thus applicable only to masked or causal LMs. As a result, comparing different types of LMs becomes impossible. To address this, we propose an approach that uses an LM's inherent ability to estimate the log-likelihood of any given textual statement. We carefully design an evaluation dataset of 7,731 instances (40,916 in a larger variant) from which we produce alternative statements for each relational fact, one of which is correct. We then evaluate whether an LM correctly assigns the highest log-likelihood to the correct statement. Our experimental evaluation of 22 common LMs shows that our proposed framework, BEAR, can effectively probe for knowledge across different LM types. We release the BEAR datasets and an open-source framework that implements the probing approach to the research community to facilitate the evaluation and development of LMs.
arXiv.org Artificial Intelligence
Apr-5-2024
- Country:
- Africa
- Togo (0.04)
- Uganda > Central Region
- Kampala (0.05)
- North America
- Canada > Ontario
- Toronto (0.04)
- United States
- Connecticut (0.04)
- Indiana > Lake County
- Highland (0.04)
- Minnesota > Hennepin County
- Minneapolis (0.14)
- Texas (0.04)
- Washington > King County
- Seattle (0.04)
- Canada > Ontario
- Asia
- Afghanistan (0.04)
- Bhutan > Thimphu District
- Thimphu (0.05)
- Brunei > Brunei-Muara
- Bandar Seri Begawan (0.04)
- China > Hong Kong (0.04)
- Japan > Kyūshū & Okinawa
- Kyūshū > Miyazaki Prefecture > Miyazaki (0.04)
- Middle East > Republic of Türkiye
- Istanbul Province > Istanbul (0.04)
- Pakistan (0.04)
- Indian Ocean (0.04)
- Southern Ocean (0.04)
- South America
- Argentina > Pampas
- Buenos Aires F.D. > Buenos Aires (0.05)
- Brazil (0.04)
- Argentina > Pampas
- Atlantic Ocean > Mediterranean Sea
- Ionian Sea (0.04)
- Tyrrhenian Sea (0.04)
- Europe
- Poland > Masovia Province
- Warsaw (0.04)
- Portugal (0.04)
- Middle East > Republic of Türkiye
- Istanbul Province > Istanbul (0.04)
- Sweden (0.04)
- Croatia (0.04)
- Belgium (0.04)
- France (0.05)
- United Kingdom > England
- Oxfordshire > Oxford (0.04)
- Monaco (0.04)
- Finland (0.04)
- Denmark (0.04)
- Germany (0.04)
- Switzerland > Zürich
- Zürich (0.04)
- Poland > Masovia Province
- Antarctica (0.04)
- Africa
- Genre:
- Research Report (1.00)
- Industry:
- Leisure & Entertainment > Sports (0.46)
- Technology: