<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Self-Attention on Deepak Baby</title><link>https://deepakbaby.in/tags/self-attention/</link><description>Recent content in Self-Attention on Deepak Baby</description><generator>Hugo</generator><language>en</language><lastBuildDate>Thu, 05 Nov 2026 23:31:18 +0100</lastBuildDate><atom:link href="https://deepakbaby.in/tags/self-attention/index.xml" rel="self" type="application/rss+xml"/><item><title>Attention Mechanisms, Part 2: Attention Is All You Need</title><link>https://deepakbaby.in/posts/attention-is-all-you-need/</link><pubDate>Thu, 05 Nov 2026 00:00:00 +0000</pubDate><guid>https://deepakbaby.in/posts/attention-is-all-you-need/</guid><description>&lt;p>In &lt;a href="https://deepakbaby.in/posts/attention-history-bahdanau-to-transformer/">Part 1&lt;/a> we saw the key idea of attention: do not compress the whole source sentence into one vector. Keep a vector for each source token, and let the decoder look back at the useful ones. In Bahdanau attention, the decoder state asks a question, the encoder states act like memory, and the answer is a weighted blend of source tokens.&lt;/p>
&lt;p>Bahdanau attention already had several components that the Transformer would reuse. But the surrounding RNN still processed tokens one by one, which limited parallelism during training. It also passed information through a chain of hidden states, so connecting two distant tokens required many sequential updates.&lt;/p></description></item></channel></rss>