Saved in:
Bibliographic Details
Main Authors: Hernandez, Evan, Li, Belinda Z., Andreas, Jacob
Format: Preprint
Published: 2023
Subjects:
Online Access:https://arxiv.org/abs/2304.00740
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911983253585920
author Hernandez, Evan
Li, Belinda Z.
Andreas, Jacob
author_facet Hernandez, Evan
Li, Belinda Z.
Andreas, Jacob
contents Neural language models (LMs) represent facts about the world described by text. Sometimes these facts derive from training data (in most LMs, a representation of the word "banana" encodes the fact that bananas are fruits). Sometimes facts derive from input text itself (a representation of the sentence "I poured out the bottle" encodes the fact that the bottle became empty). We describe REMEDI, a method for learning to map statements in natural language to fact encodings in an LM's internal representation system. REMEDI encodings can be used as knowledge editors: when added to LM hidden representations, they modify downstream generation to be consistent with new facts. REMEDI encodings may also be used as probes: when compared to LM representations, they reveal which properties LMs already attribute to mentioned entities, in some cases making it possible to predict when LMs will generate outputs that conflict with background knowledge or input text. REMEDI thus links work on probing, prompting, and LM editing, and offers steps toward general tools for fine-grained inspection and control of knowledge in LMs.
format Preprint
id arxiv_https___arxiv_org_abs_2304_00740
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Inspecting and Editing Knowledge Representations in Language Models
Hernandez, Evan
Li, Belinda Z.
Andreas, Jacob
Computation and Language
Neural language models (LMs) represent facts about the world described by text. Sometimes these facts derive from training data (in most LMs, a representation of the word "banana" encodes the fact that bananas are fruits). Sometimes facts derive from input text itself (a representation of the sentence "I poured out the bottle" encodes the fact that the bottle became empty). We describe REMEDI, a method for learning to map statements in natural language to fact encodings in an LM's internal representation system. REMEDI encodings can be used as knowledge editors: when added to LM hidden representations, they modify downstream generation to be consistent with new facts. REMEDI encodings may also be used as probes: when compared to LM representations, they reveal which properties LMs already attribute to mentioned entities, in some cases making it possible to predict when LMs will generate outputs that conflict with background knowledge or input text. REMEDI thus links work on probing, prompting, and LM editing, and offers steps toward general tools for fine-grained inspection and control of knowledge in LMs.
title Inspecting and Editing Knowledge Representations in Language Models
topic Computation and Language
url https://arxiv.org/abs/2304.00740