<?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>Bptt on Sanketh's Blog</title><link>https://sankethbk.github.io/blog/tags/bptt/</link><description>Recent content in Bptt on Sanketh's Blog</description><generator>Hugo -- 0.169.0</generator><language>en-us</language><lastBuildDate>Tue, 27 Oct 2026 00:00:00 +0530</lastBuildDate><atom:link href="https://sankethbk.github.io/blog/tags/bptt/index.xml" rel="self" type="application/rss+xml"/><item><title>Lab 2.2: A Language Model Without Attention — RNN, BPTT, and the Measured Death of Gradient Signal</title><link>https://sankethbk.github.io/blog/posts/ml/labs/2026-10-27-lab-2-2-language-model-without-attention/</link><pubDate>Tue, 27 Oct 2026 00:00:00 +0530</pubDate><guid>https://sankethbk.github.io/blog/posts/ml/labs/2026-10-27-lab-2-2-language-model-without-attention/</guid><description>&lt;h1 id="lab-22-a-language-model-without-attention--char-level-rnn-backprop-through-time-and-the-measured-death-of-gradient-signal"&gt;Lab 2.2: A Language Model Without Attention — char-level RNN, backprop through time, and the measured death of gradient signal&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;Language-model internals series.&lt;/strong&gt; &lt;a href="https://sankethbk.github.io/blog/posts/ml/labs/2026-10-27-lab-2-1-how-word-vectors-learn-to-mean/"&gt;Lab 2.1&lt;/a&gt; gave words geometry without any sequence at all — windows don&amp;rsquo;t know order. This lab puts order back, the pre-2017 way: a recurrent network that reads one character at a time and carries everything it remembers in one vector.&lt;/p&gt;
&lt;p&gt;The organizing question of this series, sharpened:&lt;/p&gt;</description></item><item><title>Lab 2.3: Gates as Memory Engineering — LSTM From Scratch on a Task That Was Supposed to Kill the RNN</title><link>https://sankethbk.github.io/blog/posts/ml/labs/2026-10-27-lab-2-3-gates-as-memory-engineering/</link><pubDate>Tue, 27 Oct 2026 00:00:00 +0530</pubDate><guid>https://sankethbk.github.io/blog/posts/ml/labs/2026-10-27-lab-2-3-gates-as-memory-engineering/</guid><description>&lt;h1 id="lab-23-gates-as-memory-engineering--lstm-from-scratch-on-a-task-that-was-supposed-to-kill-the-rnn"&gt;Lab 2.3: Gates as Memory Engineering — LSTM from scratch, on a task that was supposed to kill the RNN&lt;/h1&gt;
&lt;p&gt;&lt;strong&gt;Language-model internals series.&lt;/strong&gt; &lt;a href="https://sankethbk.github.io/blog/posts/ml/labs/2026-10-27-lab-2-2-language-model-without-attention/"&gt;Lab 2.2&lt;/a&gt; measured the diagnosis instead of reciting it: on a trained char-RNN, the forward echo of a character and the backward BPTT blame both halve every ~2.3 steps (per-step retention 0.74), because the transported term per step is (roughly)
$W_{hh}^{\top}\mathrm{diag}(1-h^2)$
— every step multiplies your memory by something whose average magnitude is far below 1.&lt;/p&gt;</description></item></channel></rss>