Backward Lens: Projecting Language Model Gradients into the Vocabulary Space
Computer Science Departmen, Technion-Israel Institute of Technology · Technion, Technion · Tel Aviv University and Google Research · Tel Aviv University, Tel Aviv University and Tel Aviv University
PDF 由论文原始站点提供,PaperCompass 不保存论文文件。DOI 10.18653/v1/2024.emnlp-main.142 ↗
摘要
Understanding how Transformer-based Language Models (LMs) learn and recall information is a key goal of the deep learning community. Recent interpretability methods project weights and hidden states obtained from the forward pass to the models’ vocabularies, helping to uncover how information flows within LMs. In this work, we extend this methodology to LMs’ backward pass and gradients. We first prove that a gradient matrix can be cast as a low-rank linear combination of its forward and backward passes’ inputs. We then develop methods to project these gradients into vocabulary items and explore the mechanics of how new information is stored in the LMs’ neurons.