<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Interpretability on Signal &amp; Syntax</title><link>https://tomarcher.io/tags/interpretability/</link><description>Recent content in Interpretability on Signal &amp; Syntax</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Sat, 22 Aug 2026 06:00:00 -0700</lastBuildDate><atom:link href="https://tomarcher.io/tags/interpretability/index.xml" rel="self" type="application/rss+xml"/><item><title>Inside Attention, Part 1: The Mechanism</title><link>https://tomarcher.io/posts/inside-attention-part-1/</link><pubDate>Sat, 22 Aug 2026 06:00:00 -0700</pubDate><guid>https://tomarcher.io/posts/inside-attention-part-1/</guid><description>&lt;figure style="margin: 0 20px 10px 20px; text-align: center;">
 &lt;img src="./transformer-architecture.png"
 alt="Diagram of the transformer architecture showing token and positional embeddings, multi-head self-attention, feedforward networks, residual connections, layer normalization, and output projection for next-token prediction">
 &lt;figcaption style="font-size: 0.9em; color: #555; margin-top: 5px;">
 &lt;em>A simplified transformer architecture showing how attention layers, feedforward networks, residual connections, layer normalization, and positional information work together. Attention is the mechanism that determines what information each token absorbs from the sequence.&lt;/em>
 &lt;/figcaption>
&lt;/figure>
&lt;p>The transformer architecture is composed of many repeating transformer layers, or blocks. Each block contains an attention sublayer followed by a feedforward sublayer, wrapped in residual connections and layer normalization. Positional information is added to the input so the model knows what order the tokens came in. The attention sublayer sets the table for the feedforward sublayer: it does the work of looking at other tokens and deciding what information to absorb from them. Get attention wrong and the rest of the architecture has nothing useful to operate on.&lt;/p>
&lt;p>This post is the first of a three-part series on the attention mechanism. Part 1 covers scaled dot-product attention, why we divide by \(\sqrt{d_k}\), multi-head attention, and what interpretability research has revealed about the patterns and circuits attention can learn. Part 2 covers masking and the function class it forces the model into, including how causal masking turns self-attention into the foundation of autoregressive next-token prediction. Part 3 covers the engineering layer: KV caching, multi-query and grouped-query attention, sliding window attention, and Flash Attention.&lt;/p>
&lt;p>The 2017 paper, &lt;a href="#vaswani2017">
 Attention Is All You Need
&lt;/a>
 is the seed of this series. The mechanism it described is small and elegant enough to fit on a page. Everything since has been the tree growing out of it: the core mathematics has held up, while the deployed system has acquired layers the paper did not anticipate. Part 1 stays close to the seed. Parts 2 and 3 walk the branches.&lt;/p>
&lt;hr>
&lt;blockquote>
&lt;p>&lt;em>&amp;ldquo;Attention is the engine. The rest of the transformer architecture stabilizes it, organizes it, and makes deep training possible.&amp;rdquo;&lt;/em>&lt;/p>
&lt;/blockquote>
&lt;hr></description></item></channel></rss>