<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Nithila Dilshika Mendis on Medium]]></title>
        <description><![CDATA[Stories by Nithila Dilshika Mendis on Medium]]></description>
        <link>https://medium.com/@nithilamendis123?source=rss-de8a8142efdb------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*KB8z-GmQwVcUwTgSBItzng.png</url>
            <title>Stories by Nithila Dilshika Mendis on Medium</title>
            <link>https://medium.com/@nithilamendis123?source=rss-de8a8142efdb------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 00:14:08 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nithilamendis123/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How Computers Find Answers They Can’t Solve For]]></title>
            <link>https://medium.com/@nithilamendis123/how-computers-find-answers-they-cant-solve-for-010a2fefdc96?source=rss-de8a8142efdb------2</link>
            <guid isPermaLink="false">https://medium.com/p/010a2fefdc96</guid>
            <category><![CDATA[numerical-methods]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[algorithms]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Nithila Dilshika Mendis]]></dc:creator>
            <pubDate>Sun, 14 Jun 2026 16:56:14 GMT</pubDate>
            <atom:updated>2026-06-14T17:28:39.518Z</atom:updated>
            <content:encoded><![CDATA[<h4>The useful art of being deliberately, measurably approximate — and the trick hiding inside your calculator.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IaljajaUkFlyGgCdWSLc1w.png" /></figure><p>Type √3 into any calculator and it answers before you can blink: 1.7320508. But here’s the strange part — there is no formula for √3. You can’t reach it with any finite list of additions and multiplications. It’s an endless, non-repeating decimal. So how does a small chip produce it instantly?</p><p>That question is, more or less, an entire subject I studied this semester: Applied Numerical Methods. And the answer is a little unsettling. Your calculator doesn’t <strong>find </strong>√3. It sneaks up on it — making a rough guess, measuring how wrong the guess is, and improving it, again and again, until “wrong” is too small to matter.</p><p>A while ago I wrote about deep learning as <a href="https://medium.com/@nithilamendis123/deep-learning-is-really-the-science-of-forgetting-503f8a35ea01"><strong>The Science of Forgetting</strong></a>. This is its quieter twin. Where machine learning throws information away on purpose, numerical methods accepts error on purpose. Both come down to the same fact of life: you can’t have the perfect thing, so the real skill is controlling exactly how far off you are.</p><p>Here’s the short tour.</p><h4>Most things have no formula</h4><p>We grow up believing maths problems have clean answers. Most of them don’t.</p><p>The course opens with a bungee jumper. Newton’s laws give a neat equation for how fast they’re falling at any moment, and that one you can solve by hand. But nudge the question and the formulas vanish. Want the area under the gentle-looking curve <strong>e^(x²)</strong>? No formula for it exists. Want the probability behind the bell curve that every statistics class leans on? Also no formula. These aren’t obscure corners of mathematics — they’re everywhere in physics, engineering, and statistics.</p><p>When the front door (algebra) is locked, you take the back door: compute something close, and keep an honest record of *how* close. That record has a name the course keeps returning to — <strong>error</strong>— and it comes in two everyday flavours. One is the error of stopping a never-ending calculation early. The other is the tiny error a computer makes because it can only store so many digits. Almost every cautionary tale in the subject is one of those two quietly adding up.</p><h4>Trick one: add up a never-ending sum, but stop early</h4><p>A surprising number of functions can be rewritten as an infinite sum. The exponential, for example:</p><blockquote>e^x = 1 + x + x²/2 + x³/6 + x⁴/24 + …</blockquote><p>Keep the first few terms and you’re already close; the leftover tail is your error. Two things make this work beautifully. The leftover terms shrink <strong>astonishingly fast </strong>— those growing denominators (2, 6, 24, …) crush them. And there’s a companion formula that tells you how big the leftover is <strong>before you even compute it</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*toBRwd6AocApAWeZOOVmfw.png" /><figcaption>Approximating eˣ by its first few terms; the gap is the part you dropped, and it shrinks faster than any steady rate.</figcaption></figure><p>That last point is the whole spirit of the field. You’re not just guessing — you’re guessing <strong>with a receipt</strong>. You can say “this answer is correct to six decimals” and actually prove it. For √e, keeping terms up to x⁵ already lands you on 1.6486979 against the true 1.6487213 — close enough for almost anything, and you knew the error bound in advance.</p><h4>Trick two: guess, check, improve — the race to √3</h4><p>Back to that square root. Finding √3 means solving <strong>x² − 3 = 0</strong>, and there are two classic ways to close in on the answer. They have completely different personalities.</p><p><strong>Bisection </strong>is the careful one. You know the answer sits between 1 and 2 (since 1² = 1 is too small and 2² = 4 is too big). So you check the midpoint, keep whichever half still contains the answer, and repeat. Every step halves your uncertainty — <strong>guaranteed</strong>. It cannot fail. The downside: it’s slow. After ten steps you’ve pinned down only three or four correct digits.</p><p><strong>Newton’s method</strong> is the bold one. From your current guess, you follow the slope of the curve straight down to where it crosses zero, and use that as your next guess. When it works it’s breathtaking: the number of correct digits roughly <strong>doubles </strong>every step. Starting from 2, it goes 2 → 1.75 → 1.7321 → 1.7320508 — every digit your calculator shows, in just four steps. The catch is that a bad starting point can fling it off to nonsense. Bisection plods but never falls; Newton sprints but can trip.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GaZ6wmt5KS19bG2-mjm8lA.png" /><figcaption>Solving x² − 3 = 0: Newton races to full precision in four steps while bisection plods. Every point here is a real computed value.</figcaption></figure><p>That trade — safe-and-slow versus fast-and-fragile — was one of the most quietly useful things I took from the course, and not only about maths. (There’s also a sensible middle option, the secant method, which gets most of Newton’s speed without needing the slope.) And this <strong>is </strong>how your calculator finds √3: a couple of Newton-style steps, finished before the screen refreshes.</p><h4>Trick three: connect the dots, but don’t get greedy</h4><p>The last big idea is filling in gaps. You have a handful of measured points and you want the values in between. The natural move is to draw the single smooth curve that passes through all of them — and for a few points, that works fine.</p><p>The temptation is to think more points and a fancier curve must be better. They aren’t. Push it too far and the curve stops hugging your data and starts to thrash, swinging wildly between the points near the edges. The course makes the point with one stubborn example. Ask a high-powered curve to pass through eleven evenly spaced points of a simple bump-shaped function, and near the edge it overshoots to nearly <strong>1.9</strong> where the true value is <strong>0.04</strong>. It touches every single dot exactly and is nonsense everywhere between the outer ones.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tHyHGrO2tBZukrZya3aTnA.png" /><figcaption>Too many points, too fancy a curve: it hits every dot yet erupts near the edges. More is not always better.</figcaption></figure><p>The lesson rhymes with machine learning: more is not always better. A model that memorises every data point — like a curve that honours every dot — captures the noise and loses the shape. And reaching <strong>past </strong>the edges of your data is riskier still: the curve has nothing to hold onto out there, and it runs away from reality fast.</p><h4>The takeaway</h4><p>I went into this module thinking numerical methods was about getting the right answer. It turned out to be about something humbler and far more powerful: getting an answer you can <strong>trust by a known amount</strong>.</p><p>Every method is the same honest bargain. <strong>Here is the exact thing I can’t compute. Here is the close thing I can. And here — to the decimal — is how far apart they are.</strong> An approximation you can’t measure is just a guess. An approximation you <strong>can</strong> measure is a tool.</p><p>That’s the quiet machinery underneath the calculator on your desk, the weather forecast, the engine that was simulated before it was ever built, and the model that recommended this article to you. Not perfect answers — mistakes kept carefully on a leash.</p><p><strong>Previously: </strong><a href="https://medium.com/@nithilamendis123/deep-learning-is-really-the-science-of-forgetting-503f8a35ea01"><strong>Deep Learning Is Really the Science of Forgetting</strong></a><a href="https://medium.com/@nithilamendis123/deep-learning-is-really-the-science-of-forgetting-503f8a35ea01).*"><strong>.</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=010a2fefdc96" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deep Learning Is Really the Science of Forgetting]]></title>
            <link>https://medium.com/@nithilamendis123/deep-learning-is-really-the-science-of-forgetting-503f8a35ea01?source=rss-de8a8142efdb------2</link>
            <guid isPermaLink="false">https://medium.com/p/503f8a35ea01</guid>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Nithila Dilshika Mendis]]></dc:creator>
            <pubDate>Wed, 20 May 2026 12:34:04 GMT</pubDate>
            <atom:updated>2026-05-20T12:34:04.992Z</atom:updated>
            <content:encoded><![CDATA[<h3>A semester’s worth of architectures, all answering the same question no one asks</h3><figure><img alt="Editorial-style cover. Title in large serif type: “The Science of Forgetting.” Subtitle: “Why every deep learning architecture is really a machine for deciding what to forget.” On the right, three labeled visual rows: blue squares progressively fading (Spatial), green bars shrinking to zero (Temporal), and a blue model line with an orange curve drifting downward (Distributional). Footer reads: CNN · LSTM · MLOps · One Idea." src="https://cdn-images-1.medium.com/max/1024/1*hPWMbrddiP-m9kKxWkMTZg.png" /></figure><p>A few weeks before final exams, I was sitting in front of three sets of slides at once — one on convolutional networks, one on LSTMs, and one on the ML production lifecycle — trying to convince myself I had actually learned something cohesive that semester, rather than three unrelated trades.</p><p>The slides looked nothing alike. Convolutional networks were drawn as stacks of cubes shrinking toward a softmax. LSTMs were spaghetti diagrams of gates and arrows folded through time. The production lifecycle slides were boxes connected by arrows labeled “ExampleGen,” “Transform,” “Pusher,” with ominous footnotes about data drift and rollback strategies.</p><p>But the more I stared, the more I noticed something the lecturers never said out loud.</p><p>Every architecture I had studied that semester was, at its core, a machine for <strong>deciding what to forget</strong>.</p><p>Not what to learn. Not what to represent. What to <em>throw away</em>.</p><p>This is the argument of this essay: that deep learning is best understood not as the science of learning, but as the science of forgetting — and that the three big topics of a modern deep learning curriculum (CNNs, RNNs, and production ML) are really three different forgetting problems, operating at three different time scales. Once you see it, the entire field reorganizes itself.</p><h3>1. The problem isn’t learning. It’s that you can’t keep everything.</h3><p>The standard story is that deep networks are universal function approximators. Pile enough parameters on top of enough data and they will, in principle, fit anything. This is true, and it is also the wrong frame, because in practice every neural network you will ever build is starved for three resources at once: memory, time, and relevance.</p><p><strong>Memory is finite.</strong> Each layer of a network has a fixed number of activations. You cannot pass the entire input forward unchanged — there is not enough room, and even if there were, the next layer would be no better off than the first.</p><p><strong>Time moves in one direction.</strong> A recurrent network processing a 10,000-token document cannot literally hold all 10,000 previous states in working memory while it computes the next one. Something must be dropped.</p><p><strong>The world drifts.</strong> A model deployed in March is being asked, in October, to predict for a population whose behavior has changed. The training distribution it memorized is, by definition, a thing the world has moved on from.</p><p>Each of these is a forgetting problem in disguise. And each of the three architectures I studied last semester is a different solution.</p><p>The first lives inside a single image. The second lives across a sequence. The third lives across the entire lifespan of a deployed system. Together they form a hierarchy:</p><blockquote><strong><em>Spatial forgetting → Temporal forgetting → Distributional forgetting</em></strong></blockquote><p>Three time scales. Three forgetting mechanisms. One idea.</p><figure><img alt="Three colored bands stacked vertically showing the forgetting hierarchy. Blue band: Convolutional Networks forget spatial position via pooling, within a single forward pass. Green band: LSTMs/GRUs forget past memory via the forget gate, across a sequence. Orange band: Production ML/MLOps face concept drift, across a deployment lifespan. A time-scale arrow on the left runs from “shorter” at top to “longer” at bottom." src="https://cdn-images-1.medium.com/max/1024/1*uMsI_Vgih2HLp4tq33sSxA.png" /><figcaption>Three time scales, one idea. Each architecture solves a different forgetting problem at a different scale.</figcaption></figure><p>The rest of this essay walks up that ladder.</p><h3>2. Spatial forgetting: how CNNs decide what not to see</h3><p>Convolutional networks are usually introduced through the convolution operation — the part that <em>adds</em> structure, that extracts features, that does the “learning.” But the convolution layer is the unforgetful part of a CNN. Every input pixel contributes to many output activations; nothing is dropped.</p><p>The forgetting happens at the next layer: <strong>pooling</strong>.</p><p>A 2×2 max pool with stride 2 takes four numbers and returns one. Three quarters of the information is gone, deliberately, by construction. Run this twice and you have thrown away roughly 94% of your spatial activations before the network has even finished its early layers.</p><p>This is not a bug. It is the point.</p><p>What pooling forgets is <em>position</em>. What it preserves is <em>presence</em>. After a max pool, the network no longer knows exactly where the edge was — only that there was an edge, somewhere in that 2×2 neighborhood. Stack a few of these together and you get a network that can recognize a cat regardless of which corner of the image the cat happens to occupy. This property has a name — <strong>translation invariance</strong> — and the textbook description is that pooling “makes the network robust to small distortions.”</p><p>A more honest description: pooling is <em>learned amnesia about location</em>. The network is being told, by its architecture, that exact spatial coordinates are not features worth remembering. They get forgotten so that something more abstract — the <em>thing itself</em> — can be kept.</p><figure><img alt="A 4×4 grid of numbers. Each 2×2 sub-window’s maximum value (3, 6, 9, 5) is shown in green and labeled “KEPT”; the other 12 values are grayed out with strikethrough. An arrow labeled “max-pool 2×2” points to a 2×2 output grid containing only those four kept values. A side panel notes that 12 of 16 activations and all spatial position info were discarded; the presence of each strong activation survived." src="https://cdn-images-1.medium.com/max/1024/1*rHHyY0wb_4Ov4kr1OKppTg.png" /><figcaption>A 2×2 max pool keeps one value per window. Three quarters of the activations are gone by design.</figcaption></figure><p>You can prove to yourself how aggressive this is with the parameter counts from a vanilla MNIST classifier. A typical architecture goes from a 28×28 image (784 numbers) to a 26×26×32 feature map (21,632 numbers) — <em>more</em> information — and then collapses, layer by layer, to a 10-way output. The middle of the network is fat with detail. The end is almost nothing. The job of every layer past the first pooling step is to forget the right things in the right order.</p><p>This is also why convolutional networks generalize at all. A network that remembered every pixel of every training image would be a lookup table, not a classifier. Generalization <em>is</em> selective forgetting. The trick is forgetting position without forgetting the object.</p><p>And here is the first asymmetry worth noticing: in a CNN, the forgetting mechanism is <strong>fixed</strong>. Max pooling is not learned. The architecture decides, ahead of time, that location-detail will be sacrificed and class-identity will be kept. The network has no say in <em>what</em> it forgets, only in what it builds out of what remains.</p><p>That changes when we move up the ladder.</p><h3>3. Temporal forgetting: the most honestly named layer in deep learning</h3><p>A vanilla recurrent neural network is, on paper, a beautiful object: take the same set of weights and apply them at every time step, feeding the hidden state forward. In principle it can model sequences of any length. In practice, it cannot remember what happened ten tokens ago.</p><p>This is the <strong>vanishing gradient problem</strong>, and it is the reason every modern sequence model has a forgetting mechanism welded into its core. The signal from a distant past token, propagated through dozens of nonlinearities, fades to numerical noise. The RNN does not choose to forget the past. The past forgets <em>it</em>.</p><p>The LSTM was the first widely successful answer, and the most beautifully named layer it introduced was this one:</p><pre>f_t = σ(W_f · [h_{t-1}, x_t] + b_f)</pre><p>The <strong>forget gate</strong>. A vector of sigmoid outputs, one per cell. At every time step, the network looks at what just happened (x_t) and what it was thinking before (h_{t-1}), and decides — <em>per dimension of memory</em> — how much of the previous cell state C_{t-1} survives:</p><pre>C_t = f_t ⊙ C_{t-1} + i_t ⊙ Ĉ_t</pre><p>Element-wise multiply by f_t. A 1 means &quot;keep this dimension of memory completely.&quot; A 0 means &quot;delete it.&quot; Most values are somewhere in between — partial erasure. Then a separate input gate decides what new information to write on top.</p><figure><img alt="Three rows of six bars. Top: previous cell state C(t-1), six green bars at value 1.0. Middle: forget gate f(t), six amber boxes with values 0.9, 0.1, 0.6, 1.0, 0.0, 0.8. Bottom: the element-wise product f * C(t-1), where each bar is scaled by its gate value — two are labeled “erased.” The equation C(t) = f(t) * C(t-1) + i(t) * g(t) sits at the top." src="https://cdn-images-1.medium.com/max/1024/1*epqoc675c7WJxYoXZcp2ig.png" /><figcaption>Per-dimension, learned forgetting. Some memory dimensions survive untouched while others are wiped clean.</figcaption></figure><p>This is the second asymmetry. In a CNN, <em>what</em> gets forgotten is fixed by the architecture (location, always location). In an LSTM, <em>what</em> gets forgotten is itself <strong>learned</strong>. The network’s weights W_f are trained, by backpropagation, to decide which patterns of past and present should trigger which kinds of memory deletion.</p><p>The forget gate is a learned eraser. And the GRU — the smaller, faster cousin of the LSTM — takes this even further, fusing the forget and input gates into a single update gate z_t that explicitly trades off old information against new. In the standard formulation h_t = (1 - z_t) · h_{t-1} + z_t · h̃_t, the network only has one knob: how much of the past to keep versus how much new candidate state to write. The forgetting and the remembering are no longer two decisions but the same decision, taken once.</p><p>The reason this matters — the reason LSTMs revolutionized sequence modeling for half a decade before transformers arrived — is that a network which can <em>choose</em> what to forget can also choose what to <strong>keep arbitrarily long</strong>. If f_t = 1 for some memory dimension across many time steps, that piece of information survives, untouched, through hundreds of tokens. Long-term dependencies, which kill vanilla RNNs, become possible the moment the network has a controlled forgetting operator.</p><p>There’s a deeper point in here, and it’s the one that genuinely changed how I think about recurrent models. The popular framing is that LSTMs are good at <em>remembering</em> long-range dependencies. That is true but secondary. They are good at remembering because they are good at <em>not</em> remembering — at selectively dropping the noise so that the signal has somewhere to live.</p><p>A memory that cannot forget is not a memory. It is a recording. And recordings do not generalize.</p><h3>4. Distributional forgetting: the model that doesn’t realize the world has moved</h3><p>The third semester topic — production machine learning — looks, at first, like a different subject entirely. It is full of words like <em>deployment</em>, <em>monitoring</em>, <em>canary</em>, <em>blue-green</em>, and the lecture slides are full of boxes labeled “TFX” connected by arrows. There are no gates, no kernels, no equations to speak of.</p><p>But it is, in fact, the third layer of the forgetting hierarchy. And it operates on the longest time scale.</p><p>Here is the picture. You train a model on data collected up to time T. You deploy it. Time keeps moving. Users behave differently — there&#39;s a new trend, a new season, a new competitor, a new app feature. The relationship between your input features and your target variable, the <em>thing</em> the network was trained to approximate, has quietly changed.</p><p>This is what the lectures called <strong>concept drift</strong>: the conditional distribution P(y | x) is no longer what it was during training. There is a parallel phenomenon — <strong>data drift</strong> — where the input distribution P(x) itself shifts (new types of users, new sensor calibrations, new traffic patterns).</p><p>In both cases, something has been forgotten. But notice <em>where</em> the forgetting now lives.</p><blockquote><em>In a CNN, the forgetting is </em><strong><em>inside the network</em></strong><em>. In an LSTM, the forgetting is </em><strong><em>inside the cell state</em></strong><em>. In a production system, the forgetting is </em><strong><em>in the gap between the model and the world</em></strong><em>.</em></blockquote><p>The model itself remembers everything it was taught, perfectly. It has not changed a single weight. What has been forgotten is the <em>relevance</em> of those weights to the present. The model is, in the cruelest sense, exactly as accurate as it ever was — about a world that no longer exists.</p><p>This reframes the entire production ML lifecycle as a discipline of <strong>institutional forgetting</strong> — a set of rituals for noticing that the model has drifted out of usefulness, and for replacing it gracefully.</p><ul><li><strong>Shadow deployment</strong> is the apprenticeship phase: the new model watches, makes predictions in parallel, but its outputs are ignored. We are giving it time to demonstrate that it has forgotten less than the old one.</li><li><strong>Canary deployment</strong> is risk-controlled forgetting: route 5% of traffic to the new model. If the new one is, in fact, worse — i.e., it forgot the wrong things — only 5% of the traffic suffered.</li><li><strong>Blue-green deployment</strong> is the abrupt swap, with rollback as the safety net: if the new model has catastrophically forgotten something that the old one knew, you flip the router and the institution remembers again.</li><li><strong>Monitoring dashboards and data validation pipelines</strong> are the early-warning system: they exist precisely to detect the moment the model has forgotten the world.</li></ul><figure><img alt="A chart with time on the x-axis and accuracy on the y-axis. A flat blue line labeled “model (frozen knowledge)” stays high; an orange curve labeled “world (drifting)” starts there and curves downward. The amber-shaded gap between them is labeled “forgetting gap.” Markers: deployed, drift detected, retrain + redeploy. Below: four cards labeled Shadow, Canary, Blue-Green, Monitoring — rituals of managed forgetting." src="https://cdn-images-1.medium.com/max/1024/1*gLa5AjffB40WXFxa7x1bRw.png" /><figcaption>The model’s weights never change. What changes is whether the world still matches them.</figcaption></figure><p>The third asymmetry, and the most interesting one, is that here <em>the network has no say at all</em>. The CNN doesn’t choose what to forget; the architect did. The LSTM does choose, but only within a fixed objective. A deployed model cannot choose to forget — the world forgets <em>for</em> it, by changing. The forgetting operator has moved entirely outside the model and into the engineering process around it. Drift detection is how that operator becomes legible.</p><p>And this is why MLOps is not, as I used to suspect, a fancy DevOps relabel. It is the only layer of the stack where forgetting is treated as a first-class systems problem rather than an internal trick of an architecture.</p><h3>5. The forgetting stack</h3><p>Here is the unifying picture I wish someone had drawn for me at the start of the semester.</p><figure><img alt="A 5-column, 3-row summary table. Columns: Time Scale, Architecture, What is Forgotten, Forgetting Operator, Who Decides. Row 1 (CNN): within a forward pass, spatial position is forgotten via max pooling, decided by the designer. Row 2 (LSTM/GRU): across a sequence, past memory is forgotten via the forget gate, decided by the network. Row 3 (Production ML): across deployment, relevance is forgotten via drift detection, decided by the operator." src="https://cdn-images-1.medium.com/max/1024/1*JEkg3Qcpf9Zsp-dwd04UBw.png" /><figcaption>From architecture to gate to deployment: each step makes forgetting more flexible, more learned, more responsive to context.</figcaption></figure><p>Read it from the bottom up. At the shortest time scale — within a single forward pass — convolutional networks forget <em>space</em>. Inside each input, exact pixel coordinates are sacrificed to gain translation invariance, and the network learns increasingly abstract features by climbing a ladder of pooled, position-blurred representations.</p><p>One level up, across a sequence of inputs, recurrent networks forget <em>time</em>. The LSTM forget gate is a learned per-dimension dial that decides, at every step, which past memories survive and which are erased to make room for the present.</p><p>At the top, across the lifespan of a deployed system, MLOps machinery handles forgetting at the scale of the world itself. Concept drift is detected, retraining is scheduled, new models replace old ones in canary or blue-green rollouts. Here the forgetting is not in the model at all; it is in the institution that keeps the model honest.</p><p>Three architectures. Three time scales. Three different agents doing the forgetting — the designer, the network, the operator.</p><p>But the same fundamental claim runs through all of them: <strong>a system that cannot decide what to discard cannot generalize, cannot remember, and cannot stay useful</strong>. Forgetting is what makes the other things possible.</p><h3>6. What this means for how I read papers now</h3><p>Once you start looking at deep learning through the lens of forgetting, certain things stop being mysterious.</p><p>Attention mechanisms — and the entire transformer family that grew out of them — look obvious. They are a more flexible forgetting operator than the LSTM gate: instead of compressing everything into a fixed-size cell state and dialing it down each step, attention lets you forget <em>almost everything</em> and re-attend to the few past tokens you need. The forgetting is now content-addressable. The cell state was a chokepoint; attention removed it by letting the network forget more aggressively and retrieve more precisely.</p><p>Dropout looks obvious. It is forgetting as regularization: random temporary amnesia that prevents the network from co-adapting and overfitting. A network that briefly forgets a unit on every training step generalizes better than one that never does.</p><p>Batch normalization looks obvious. It forgets absolute scale and shift, preserving only the patterns that survive normalization. The network is no longer allowed to remember the particular mean of any feature; it is forced to encode something more robust.</p><p>Even the move from feature engineering to learned embeddings is a forgetting decision in disguise. Hand-crafted features were a designer-controlled choice about what to keep and what to discard. Embeddings hand that choice back to the network, in the same way the LSTM hands the choice of <em>what to forget</em> back to its weights.</p><p>Forgetting is the through-line. The history of deep learning is a steady migration of the forgetting decision — from the designer, to the architecture, to the gating mechanism, to the attention head, to the deployment lifecycle. Each step makes the forgetting more learnable, more conditional, more responsive to context.</p><h3>7. Closing: the most useful thing I learned this semester</h3><p>The most useful thing I learned this semester was not a single architecture, or a particular training trick, or even the practical machinery of deploying a model. It was the recognition that the whole field shares a hidden constraint: every system that processes information has a finite budget, and intelligence is what you do with that constraint.</p><p>CNNs spend the budget on space. LSTMs spend it on time. Production systems spend it on the world.</p><p>Each of them, in its own way, is built around the same uncomfortable fact: you cannot keep everything, and the quality of your keeping depends entirely on the quality of your throwing away. That is true for networks, and it turns out to be true for almost every system that has to act in time — biological memory, scientific theories, software architectures, careers.</p><p>I came out of last semester thinking I had learned three loosely related topics. I think now I learned one topic three times, and the topic was forgetting.</p><p><em>If you found this useful, I’d love to hear which forgetting mechanism you find most surprising — the fixed amnesia of pooling, the learned eraser of the forget gate, or the institutional amnesia of drift detection. I’m continuing to write about deep learning fundamentals from this angle; follow if that’s interesting to you.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=503f8a35ea01" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>