paper-with-me

홈 › Papers

Measuring and Modifying Factual Knowledge in Large Language Models

2023-06-09 · Pouya Pezeshkpour

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.

📄 PDF Abstract BibTeX arXiv:2306.06264

Code (1)

rit-git/lm-know 공식 구현

Tasks

In-Context Learning

Methods 이 논문이 사용한 방법론

fail 설명 없음

Similar Papers 제목 키워드 기반

Modifying Memories in Transformer Models

2020-12-01 · Chen Zhu, Ankit Singh Rawat, Manzil Zaheer, Srinadh Bhojanapalli 외

Large Transformer models have achieved impressive performance in many natural language tasks. In particular, Transformer based language models have been shown to have great capabilities in encoding factual knowledge in t…

Memorization

KGLens: Towards Efficient and Effective Knowledge Probing of Large Language Models with Knowledge Graphs

2023-12-15 · Shangshang Zheng, He Bai, Yizhe Zhang, Yi Su 외

Large Language Models (LLMs) might hallucinate facts, while curated Knowledge Graph (KGs) are typically factually reliable especially with domain-specific knowledge. Measuring the alignment between KGs and LLMs can effec…

Knowledge Graphs

UniArk: Improving Generalisation and Consistency for Factual Knowledge Extraction through Debiasing

2024-04-01 · Yijun Yang, Jie He, Pinzhen Chen, Víctor Gutiérrez-Basulto 외

Several recent papers have investigated the potential of language models as knowledge bases as well as the existence of severe biases when extracting factual knowledge. In this work, we focus on the factual probing perfo…

Assessing Knowledge Editing in Language Models via Relation Perspective

2023-11-15 · Yifan Wei, Xiaoyan Yu, Huanhuan Ma, Fangyu Lei 외

Knowledge Editing (KE) for modifying factual knowledge in Large Language Models (LLMs) has been receiving increasing attention. However, existing knowledge editing methods are entity-centric, and it is unclear whether th…

knowledge editingRelation

Counterfactual Recipe Generation: Exploring Compositional Generalization in a Realistic Scenario

2022-10-20 · Xiao Liu, Yansong Feng, Jizhi Tang, Chengang Hu 외

People can acquire knowledge in an unsupervised manner by reading, and compose the knowledge to make novel combinations. In this paper, we investigate whether pretrained language models can perform compositional generali…

counterfactualRecipe Generation