LatentQA: Teaching LLMs to Decode Activations Into Natural Language

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Pan, Alexander, Chen, Lijie, Steinhardt, Jacob
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915884423970816
author Pan, Alexander
Chen, Lijie
Steinhardt, Jacob
author_facet Pan, Alexander
Chen, Lijie
Steinhardt, Jacob
contents Top-down transparency typically analyzes language model activations using probes with scalar or single-token outputs, limiting the range of behaviors that can be captured. To alleviate this issue, we develop a more expressive probe that can directly output natural language, performing LatentQA: the task of answering open-ended questions about activations. A key difficulty in developing such a probe is collecting a dataset mapping activations to natural-language descriptions. In response, we propose an approach for generating a dataset of activations and associated question-answer pairs and develop a fine-tuning method for training a decoder LLM on this dataset. We then validate our decoder's fidelity by assessing its ability to read and control model activations. First, we evaluate the decoder on a number of supervised reading tasks with a known answer, such as uncovering hidden system prompts and relational knowledge extraction, and observe that it outperforms competitive probing baselines. Second, we demonstrate that the decoder is precise enough to steer the target model to exhibit behaviors unseen during training. Finally, we show that LatentQA scales well with increasing dataset and model size.
format Preprint
id arxiv_https___arxiv_org_abs_2412_08686
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LatentQA: Teaching LLMs to Decode Activations Into Natural Language
Pan, Alexander
Chen, Lijie
Steinhardt, Jacob
Computation and Language
Computers and Society
Machine Learning
Top-down transparency typically analyzes language model activations using probes with scalar or single-token outputs, limiting the range of behaviors that can be captured. To alleviate this issue, we develop a more expressive probe that can directly output natural language, performing LatentQA: the task of answering open-ended questions about activations. A key difficulty in developing such a probe is collecting a dataset mapping activations to natural-language descriptions. In response, we propose an approach for generating a dataset of activations and associated question-answer pairs and develop a fine-tuning method for training a decoder LLM on this dataset. We then validate our decoder's fidelity by assessing its ability to read and control model activations. First, we evaluate the decoder on a number of supervised reading tasks with a known answer, such as uncovering hidden system prompts and relational knowledge extraction, and observe that it outperforms competitive probing baselines. Second, we demonstrate that the decoder is precise enough to steer the target model to exhibit behaviors unseen during training. Finally, we show that LatentQA scales well with increasing dataset and model size.
title LatentQA: Teaching LLMs to Decode Activations Into Natural Language
topic Computation and Language
Computers and Society
Machine Learning
url https://arxiv.org/abs/2412.08686