<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Positional-Encoding on Sanketh's Blog</title><link>https://sankethbk.github.io/blog/tags/positional-encoding/</link><description>Recent content in Positional-Encoding on Sanketh's Blog</description><generator>Hugo -- 0.166.0</generator><language>en-us</language><lastBuildDate>Sun, 20 Sep 2026 00:00:00 +0530</lastBuildDate><atom:link href="https://sankethbk.github.io/blog/tags/positional-encoding/index.xml" rel="self" type="application/rss+xml"/><item><title>The Transformer Block: Multi-Head Attention, Residuals, Norms, and Position</title><link>https://sankethbk.github.io/blog/posts/ml/2026-09-20-2-the-transformer-block/</link><pubDate>Sun, 20 Sep 2026 00:00:00 +0530</pubDate><guid>https://sankethbk.github.io/blog/posts/ml/2026-09-20-2-the-transformer-block/</guid><description>&lt;h1 id="the-transformer-block-multi-head-attention-residuals-norms-and-position"&gt;The Transformer Block: Multi-Head Attention, Residuals, Norms, and Position&lt;/h1&gt;
&lt;p&gt;The &lt;a href="https://sankethbk.github.io/blog/posts/ml/2026-09-20-1-attention-turning-token-vectors-into-context"&gt;attention note&lt;/a&gt; derived the single mechanism — softmax over query-key scores, times values — and ended with its two obvious weaknesses: one head can track only &lt;em&gt;one&lt;/em&gt; relevance pattern at a time, and the whole operation is blind to token order.&lt;/p&gt;
&lt;p&gt;This note turns attention into the actual Transformer block. The block is attention plus four supporting acts — multi-head projection, a residual connection, layer normalization, and a small feedforward network — and then positional encoding bolted onto the input. None of them are exotic. Each one exists to patch a specific failure of the bare mechanism, and by the end you should be able to name the patch for each failure.&lt;/p&gt;</description></item></channel></rss>