Discovering Latent Knowledge in Language Models Without Supervision

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Burns, Collin, Ye, Haotian, Klein, Dan, Steinhardt, Jacob
Natura: Preprint
Pubblicazione: 2022
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866913251001892864
author Burns, Collin
Ye, Haotian
Klein, Dan
Steinhardt, Jacob
author_facet Burns, Collin
Ye, Haotian
Klein, Dan
Steinhardt, Jacob
contents Existing techniques for training language models can be misaligned with the truth: if we train models with imitation learning, they may reproduce errors that humans make; if we train them to generate text that humans rate highly, they may output errors that human evaluators can't detect. We propose circumventing this issue by directly finding latent knowledge inside the internal activations of a language model in a purely unsupervised way. Specifically, we introduce a method for accurately answering yes-no questions given only unlabeled model activations. It works by finding a direction in activation space that satisfies logical consistency properties, such as that a statement and its negation have opposite truth values. We show that despite using no supervision and no model outputs, our method can recover diverse knowledge represented in large language models: across 6 models and 10 question-answering datasets, it outperforms zero-shot accuracy by 4\% on average. We also find that it cuts prompt sensitivity in half and continues to maintain high accuracy even when models are prompted to generate incorrect answers. Our results provide an initial step toward discovering what language models know, distinct from what they say, even when we don't have access to explicit ground truth labels.
format Preprint
id arxiv_https___arxiv_org_abs_2212_03827
institution arXiv
publishDate 2022
record_format arxiv
spellingShingle Discovering Latent Knowledge in Language Models Without Supervision
Burns, Collin
Ye, Haotian
Klein, Dan
Steinhardt, Jacob
Computation and Language
Artificial Intelligence
Machine Learning
Existing techniques for training language models can be misaligned with the truth: if we train models with imitation learning, they may reproduce errors that humans make; if we train them to generate text that humans rate highly, they may output errors that human evaluators can't detect. We propose circumventing this issue by directly finding latent knowledge inside the internal activations of a language model in a purely unsupervised way. Specifically, we introduce a method for accurately answering yes-no questions given only unlabeled model activations. It works by finding a direction in activation space that satisfies logical consistency properties, such as that a statement and its negation have opposite truth values. We show that despite using no supervision and no model outputs, our method can recover diverse knowledge represented in large language models: across 6 models and 10 question-answering datasets, it outperforms zero-shot accuracy by 4\% on average. We also find that it cuts prompt sensitivity in half and continues to maintain high accuracy even when models are prompted to generate incorrect answers. Our results provide an initial step toward discovering what language models know, distinct from what they say, even when we don't have access to explicit ground truth labels.
title Discovering Latent Knowledge in Language Models Without Supervision
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2212.03827