Learning Transformer Programs
원문 초록
Recent research in mechanistic interpretability has attempted to reverse-engineer Transformer models by carefully inspecting network weights and activations. However, these approaches require considerable manual effort and still fall short of providing complete, faithful descriptions of the underlying algorithms. In this work, we introduce a procedure for training Transformers that are mechanistically interpretable by design. We build on RASP [Weiss et al., 2021], a programming language that can be compiled into Transformer weights. Instead of compiling human-written programs into Transformers, we design a modified Transformer that can be trained using gradient-based optimization and then automatically converted into a discrete, human-readable program. We refer to these models as Transformer Programs. To validate our approach, we learn Transformer Programs for a variety of problems, including an in-context learning task, a suite of algorithmic problems (e.g. sorting, recognizing Dyck languages), and NLP tasks including named entity recognition and text classification. The Transformer Programs can automatically find reasonable solutions, performing on par with standard Transformers of comparable size; and, more importantly, they are easy to interpret. To demonstrate these advantages, we convert Transformers into Python programs and use off-the-shelf code analysis tools to debug model errors and identify the "circuits" used to solve different sub-problems. We hope that Transformer Programs open a new path toward the goal of intrinsically interpretable machine learning.
함께 살펴볼 논문
공통 태그를 근거로 연결했습니다. 실제 인용 관계나 논문의 우수성을 뜻하지 않습니다.
Label-Guided In-Context Learning for Named Entity Recognition
EL4NER: Ensemble Learning for Named Entity Recognition via Multiple Small-Parameter Large Language Models
HausaNLP: Current Status, Challenges and Future Directions for Hausa Natural Language Processing
Selecting and Merging: Towards Adaptable and Scalable Named Entity Recognition with Large Language Models
AmpleHate: Amplifying the Attention for Versatile Implicit Hate Detection
Named Entity Recognition in Historical Italian: The Case of Giacomo Leopardi's Zibaldone
토론
이 논문과 연결된 포럼 글이 아직 없습니다.