Presented By: Math for AI Safety Seminar
A Mathematical Framework for Transformer Circuits
This week in the Math for AI Safety Seminar, we will be reading A Mathematical Framework for Transformer Circuits (https://transformer-circuits.pub/2021/framework/index.html). This paper studies zero, one, and two-layer attention-only transformers with an aim towards reverse engineering the computations inside transformers. The authors demonstrate that one and two-layer transformers use fundamentally different algorithms to perform in-context learning. Moreover, they observe that the two-layer models compose attention heads, which serves to increase the expressivity of transformers.