LatentQA: Teaching LLMs to Decode Activations Into Natural Language
Alexander Pan, Lijie Chen, Jacob Steinhardt
TL;DR
The paper addresses the opacity of latent representations in large language models by introducing LatentQA, a framework for open-ended natural-language QA about activations. It introduces Latent Interpretation Tuning (LIT), which finetunes a decoder to map activations to QA pairs, enabling both reading of latent information and control of model behavior. A three-part LatentQA data pipeline (control, stimulus, stimulus+completion) with activation masking and data augmentation yields robust decoder generalization, capable of debiasing, controllable sentiment generation, and auditing harmful capabilities. Scaling experiments show performance improves with larger models and more data, underscoring the approach’s potential for robust interpretability and safer, more controllable LLM deployment.
Abstract
Interpretability methods seek to understand language model representations, yet the outputs of most such methods -- circuits, vectors, scalars -- are not immediately human-interpretable. In response, we introduce LatentQA, the task of answering open-ended questions about model activations in natural language. Towards solving LatentQA, we propose Latent Interpretation Tuning (LIT), which finetunes a decoder LLM on a dataset of activations and associated question-answer pairs, similar to how visual instruction tuning trains on question-answer pairs associated with images. We use the decoder for diverse reading applications, such as extracting relational knowledge from representations or uncovering system prompts governing model behavior. Our decoder also specifies a differentiable loss that we use to control models, such as debiasing models on stereotyped sentences and controlling the sentiment of generations. Finally, we extend LatentQA to reveal harmful model capabilities, such as generating recipes for bioweapons and code for hacking.
