Large Language Models (LLMs) store an extensive amount of factual knowledge obtained from vast collections of text. To effectively utilize these models for downstream tasks, it is crucial to have reliable methods for measuring their knowledge. However, existing approaches for knowledge measurement have certain limitations, and despite recent efforts, they fail to provide accurate measurements and the necessary insights for modifying the knowledge within LLMs. In this work, we employ information theory-based measurements to provide a framework estimating the factual knowledge contained within large language models. More specifically, we measure knowledge by analyzing the LLM's prediction probability distribution before and after instilling the target knowledge, employing metrics such as entropy and KL-divergence. Introducing our metrics, we first assess their accuracy in comparison to previous ranking-based methods, surpassing them by over $35\%$ in a synthetic experiment. Then, we explore two prominent methods of knowledge instillation, discovering that LLMs exhibit limitations in capturing new knowledge under specific circumstances for one of these methods. Lastly, we demonstrate the applicability of our methods in extracting unlearned and mislearned facts in LLMs through their application to in-context learning. We make code and data for all methods and experiments in this paper publicly available.
Measuring Causal Effects of Data Statistics on Language Model's `Factual' Predictions
Bar-Ilan University(巴伊兰大学);Allen Institute for Artificial Intelligence(艾伦人工智能研究所);LMU Munich(慕尼黑大学);Technion(以色列理工学院);Carnegie Mellon University(卡内基梅隆大学);Saarland University(萨尔大学)
Can LLMs Refuse Questions They Do Not Know? Measuring Knowledge-Aware Refusal in Factual Tasks
Department of Computer Science, City University of Hong Kong(香港城市大学计算机科学系);Harbin Institute of Technology(哈尔滨工业大学);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算机与数据科学学院);School of Computer Science and Engineering, Central South University(中南大学计算机科学与工程学院)
University of Maryland, College Park(马里兰大学帕克分校);Google Research(谷歌研究院)
大型Transformer模型在许多自然语言任务中取得了令人印象深刻的性能。特别地,基于Transformer的语言模型已经被证明在以其大量参数对事实知识进行编码方面具有很强的能力。虽然提高Transformers的记忆和概括能力的任务已经得到了广泛的研究,但如何使transformers忘记特定的旧事实并记住新事实还不太清楚。在本文中,我们提出了一个新的任务\emph{explicitly modifying specific factual knowledge in Transformer models while ensuring the model performance does not degrade on the unmodified facts}。此任务在许多情况下都很有用,例如更新陈旧的知识,保护隐私,以及消除存储在模型中的意外偏见。我们对几种方法进行了基准测试,这些方法在这项任务上提供了自然的基线性能。这导致了Transformer模型的关键组件的发现,这些组件对于知识修改特别有效。这项工作还提供了不同的训练阶段(如预训练和微调)对记忆和知识修改的作用的见解。
Assessing Knowledge Editing in Language Models via Relation Perspective
University of Chinese Academy of Sciences(中国科学院大学);Institute of Automation, CAS(中国科学院自动化研究所);Kunming University of Science and Technology(昆明理工大学);Beijing Institute of Technology(北京理工大学)
FramingQA: Does the Question Shape the Answer? Measuring the Compositional Framing Effect
University of Oxford(牛津大学);Oxford Internet Institute(牛津互联网研究院);Thomson Reuters(汤森路透);University of California San Diego(加州大学圣迭戈分校);University of Cambridge(剑桥大学);Institute of Biomedical Engineering, University of Oxford(牛津大学生物医学工程研究所);LMU Munich(慕尼黑大学)
Measuring and Narrowing the Compositionality Gap in Language Models
Paul G. Allen School of Computer Science & Engineering, University of Washington(华盛顿大学保罗·G·艾伦计算机科学与工程学院);MosaicML(MosaicML公司);Meta AI Research(Meta人工智能研究院);Allen Institute for AI(艾伦人工智能研究所)
PanCanBench: A Comprehensive Benchmark for Evaluating Large Language Models in Pancreatic Oncology
Department of Biostatistics, University of Washington(华盛顿大学生物统计学系);Clinical Research Division, Fred Hutch Cancer Center(Fred Hutch癌症中心临床研究部);Division of Hematology and Oncology, Department of Medicine, University of Washington(华盛顿大学医学系血液学与肿瘤学分会);Allen Institute for AI(Allen人工智能研究所);Department of Computer Science and Engineering, University of Washington(华盛顿大学计算机科学与工程系);Public Health Sciences, Biostatistics, Fred Hutchinson Cancer Center(Fred Hutchinson癌症中心公共卫生科学与生物统计学)
Department of Computer Science and Information Engineering(计算机科学与信息工程系);National Taiwan University(国立台湾大学);Artificial Intelligence Research Center(人工智能研究中心);AIST Japan(日本AIST);Institute of Information Science Academia Sinica(学术院信息科学研究所)