<?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>Lstm on Sanketh's Blog</title><link>https://sankethbk.github.io/blog/tags/lstm/</link><description>Recent content in Lstm 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/lstm/index.xml" rel="self" type="application/rss+xml"/><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>