<?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 Thendral Magudapathi on Medium]]></title>
        <description><![CDATA[Stories by Thendral Magudapathi on Medium]]></description>
        <link>https://medium.com/@thendralmag?source=rss-523d30be10bf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*7fN-pJlT_LgljWMXbUxMAA.jpeg</url>
            <title>Stories by Thendral Magudapathi on Medium</title>
            <link>https://medium.com/@thendralmag?source=rss-523d30be10bf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 11:54:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@thendralmag/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[My Brain Has Started Decomposing Every Interaction.]]></title>
            <link>https://medium.com/@thendralmag/i-never-thought-ai-would-teach-me-something-so-human-until-my-brain-started-decomposing-every-0fc6e22af748?source=rss-523d30be10bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/0fc6e22af748</guid>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[ai-emotional-intelligence]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[emotional-intelligence]]></category>
            <dc:creator><![CDATA[Thendral Magudapathi]]></dc:creator>
            <pubDate>Sat, 28 Nov 2026 08:30:54 GMT</pubDate>
            <atom:updated>2026-11-28T09:10:22.562Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>I Never Thought AI Would Teach Me Something So Human.</strong></p><p><em>Thought I Was Only Learning About Artificial Intelligence. But Quietly, I Was Also Learning About Human Nature, Behaviour, Emotions, And Perhaps Even Myself.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FvfphLGDWCVgUcm0kdinxQ.jpeg" /></figure><p>I started learning artificial intelligence to understand how machines learn.</p><p>I never expected it to change the way I understand people.</p><p>Over the past few months, I’ve been deliberately reflecting on something that I find increasingly fascinating. As someone who has spent time building neural networks, writing layers using PyTorch, understanding forward passes, backpropagation, and how models learn from data, I’ve started looking at human behaviour through a completely different lens.</p><p>And somewhere along the way, I think I started understanding <em>emotional intelligence </em>without even realising it.</p><p>Let me explain.</p><h3>Every response has a training history</h3><p>Think about almost any human interaction.</p><p>An argument. A defensive response. A moment of kindness. An unexpected gesture. A disagreement. An act of empathy.<strong> Even a simple conversation</strong> where two people interpret the same situation differently.</p><p>What if, instead of looking at it as two people disagreeing, we looked at it as two different neural networks responding based on what they have learned/trained on?</p><p>Every individual has been exposed to a different dataset throughout their life.</p><p>The Dataset: Different childhoods. Different environments. Different relationships. Different experiences. Different disappointments. Different successes. Different fears. Different beliefs.</p><p>All of these experiences shape the way a person<strong> interprets information and responds</strong> to the world around them.</p><p><strong>In a way, I began to see every human response as an output influenced by an individual’s accumulated training data.</strong></p><p>Two people can receive exactly the same input and produce completely different outputs.</p><p>Not necessarily because one is right and the other is wrong, but because their internal models have been shaped by different experiences.</p><p>And suddenly, <strong>many arguments started making more sense to me.</strong></p><h3><strong>A model doesn’t randomly produce an output.</strong></h3><p>When I say working on AI helped me understand emotional intelligence, I am not talking about working with AI tools, prompting large language models, or simply integrating AI into applications.</p><p>I am referring to the fundamental concepts behind neural networks. While working on neural network architectures, implementing layers, understanding how weights are adjusted, and observing how a model learns patterns from data, I started seeing things differently.</p><p><strong>A model doesn’t randomly produce an output. The brain is no different in this regard. Its behaviour is influenced by the data it has been exposed to, the patterns it has learned, its architecture, and the way it has been trained.</strong></p><p>That understanding slowly taught me about human behaviour.</p><p>Of course, I never studied biology. I’m not claiming to understand the brain at a cellular level. But the conceptual analogy gave me a perspective I hadn’t considered before.</p><p>Just as a model’s learned parameters influence its responses,<strong> a person’s experiences, beliefs, and conditioning influence how they interpret and react to situations.</strong></p><p>And that made me question something:</p><p><em>Why do we expect everyone to respond to the same situation in the same way when none of us has been trained on the same experiences?</em></p><h3><strong>My brain almost automatically starts decomposing the situation!</strong></h3><p><strong>This might be the biggest shift in my thinking.</strong></p><p>I have started finding it increasingly difficult to hate people. When someone says something hurtful, reacts defensively, or holds a belief I completely disagree with, my first instinct is no longer necessarily to react.</p><p>Instead, I find myself trying to understand the system behind that response.</p><p>What might have made this person believe that?<br>What experiences shaped this perspective?<br>What are they interpreting differently?<br>What patterns are they repeating?<br>What are they responding to that I might not even be aware of?</p><p><strong>My brain almost automatically starts decomposing the situation.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F_9dHtNa0oDol_DKui2YPQ.png" /></figure><p>I may still disagree. I may still recognise that their behaviour is inappropriate. I may still decide that I don’t want that person in my life.</p><p>But I no longer feel the same need to fight every difference in perspective. And I have consciously started avoiding unnecessary arguments.</p><p>It is simply recognising that the brain’s response has reached the limit of what it can achieve.</p><h3>I have started observing my own emotions, too…</h3><p>Interestingly, this way of thinking has not only changed how I perceive other people. It has changed how I observe myself.</p><p>Even when I experience an emotion, I have started taking a step back and examining it.</p><p>Why am I feeling this way?<br>What exactly triggered this response?<br>Am I reacting to the current situation, or is something from a previous experience influencing my interpretation?<br>Is my response proportionate to what is actually happening?</p><p><strong>It has helped me separate what I feel from what I decide to do.</strong></p><p>And that distinction is powerful.</p><blockquote>I can feel disappointed without reacting impulsively.<br>I can feel hurt without turning it into an argument.<br>I can disagree without becoming defensive.<br>I can understand someone’s behaviour without accepting it.</blockquote><p><strong>I don’t think this means becoming less emotional. I think it means becoming more aware of what happens between experiencing an emotion and acting on it.</strong></p><h3>Perhaps my journey into Artificial Intelligence was also teaching me how to understand people!</h3><p>When someone shares an experience with me, I find myself trying to understand the underlying reasons behind their feelings and behaviour.</p><p>For a long time, I thought understanding people meant feeling everything they felt.</p><p>Now I am beginning to realise that sometimes, understanding comes from being able to observe.</p><h3>A blessing I wasn’t looking for…</h3><p>I don’t know whether this is exactly what emotional intelligence is supposed to look like. I am still learning.</p><p><strong>But I am genuinely grateful for this shift.</strong></p><p>Something I learned while trying to make machines learn has made me more curious about the way people think, behave, and respond.</p><p><strong>It has helped me become more patient, less reactive, more thoughtful in decision-making, and considerably more selective about the situations I choose to engage with.</strong></p><p>Most importantly, it has reminded me that every person I encounter has an entire history that I know very little about.</p><p><strong>I see an output. I don’t always see the data behind it.</strong></p><p>I still believe in accountability. I still believe that some behaviours are unacceptable. I still believe in standing up for what is right.</p><blockquote><strong>I started learning artificial intelligence to understand machines. Somewhere along the way, I started understanding people and, perhaps, myself a little better.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0fc6e22af748" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gaussian Distribution Explained with One Example You’ll Never Forget]]></title>
            <link>https://medium.com/@thendralmag/gaussian-distribution-explained-with-one-example-youll-never-forget-1088662feb0b?source=rss-523d30be10bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/1088662feb0b</guid>
            <category><![CDATA[gaussian-distribution]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[normal-distribution]]></category>
            <category><![CDATA[mathematics]]></category>
            <dc:creator><![CDATA[Thendral Magudapathi]]></dc:creator>
            <pubDate>Sun, 08 Nov 2026 17:54:25 GMT</pubDate>
            <atom:updated>2026-11-09T03:01:37.820Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I followed a mathematical rabbit hole from a simple question about measurement errors to the curve behind statistics, scientific experiments, and modern AI. Here’s what I finally understood.</em></p><p>I used to think the Gaussian distribution was just another mathematical concept we were expected to remember.</p><p>A bell-shaped curve. A mean. A standard deviation. Some formula involving an exponential and a mysterious square root of (2\pi).</p><p>The Gaussian distribution is a familiar concept in statistics and machine learning.</p><p>Most people can recognize its characteristic bell-shaped curve, but understanding <em>why it exists</em>,<em> what problem it solves</em>, and <em>why it remains so widely</em> used reveals a much more interesting story.</p><p>So I decided to go back to the beginning.</p><p>Not to the formula. To the problem that made people need it.</p><p>And that changed how I understood the entire thing.</p><h3>In this article</h3><ol><li>The Problem That Started It All - Understanding measurement errors through an astronomical example.</li><li>Before the Gaussian: Understanding Randomness - How mathematicians approached probability.</li><li>1733: Abraham de Moivre and the Bell-Shaped Approximation</li><li>Pierre-Simon Laplace: Connecting Probability and Randomness</li><li>1809: Carl Friedrich Gauss and Measurement Errors</li><li>Inside the Bell Curve: Mean, variance, and standard deviation.</li><li>The Mathematics Behind the Shape: Understanding the exponential curve and normalization.</li><li>Why Standard Deviation? And Why \(n-1\)?</li><li>Does Every Dataset Follow a Gaussian Distribution?</li><li>What If We Don’t Use a Gaussian Distribution? Exploring alternatives.</li><li>From Astronomy to Modern AI: Where Gaussian distributions are used today.</li><li>When Should You Choose a Gaussian Distribution?</li></ol><h3>1. Imagine you’re an astronomer in the 1700s</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LhLO5OHZk06ioA15cxww_Q.png" /></figure><p>You’re trying to determine the exact position of a planet.</p><p>You point your telescope at it and record its position.</p><p>Your instrument says <strong>100.2°</strong>.</p><p>You repeat the measurement.</p><p>This time, it says <strong>99.8°</strong>.</p><p>You try again.</p><p>100.1°. 99.9°. 100.0°.</p><p>Now you have a problem.</p><p>The planet didn’t jump around between observations. Your measurements are simply imperfect. Maybe the instrument is slightly inaccurate. Maybe the atmosphere interferes. Maybe your observations aren’t perfectly precise.</p><p>You have five measurements, but you don’t know the planet’s true position.</p><p>What do you do?</p><p>The obvious answer is to take the average.</p><p>Your five readings average to 100.0°.</p><p>Great. But here’s the question that sent me down this rabbit hole:</p><p><strong>Why should we trust that average? And how do we know how uncertain it is?</strong></p><p>We could take more measurements. We could calculate how far the readings vary from the average. We could even use the median instead.</p><p>None of those calculations requires a Gaussian distribution.</p><p>The deeper problem is that we want a mathematical way to understand how measurements vary, how likely different errors are, and how confidently we can estimate the answer.</p><p>That is where the story begins.</p><h3>2. Before the Gaussian: randomness was calculable, but complicated</h3><p>Let’s temporarily leave our astronomer and imagine tossing a coin 100 times.</p><p>How many heads will we get?</p><p>We might get 47. Or 51. Or 56.</p><p>We cannot predict the exact outcome, but probability allows us to calculate how likely different outcomes are.</p><p>Getting exactly 50 heads is possible. Getting exactly 90 heads is also possible, but much less likely.</p><p>Why?</p><p>There are enormously more ways to arrange 50 heads and 50 tails than there are to arrange 90 heads and 10 tails.</p><p>If you calculate the probability of every possible outcome and plot those probabilities, a pattern emerges: outcomes around the middle are more common, while extreme outcomes are less common.</p><p>Now imagine doing this for thousands of coin tosses.</p><p>The exact calculations become increasingly cumbersome.</p><p>Could we approximate all those individual probabilities with a smooth mathematical curve?</p><p>This was one of the questions that led Abraham de Moivre to an important discovery.</p><h3>3. 1733: Abraham de Moivre discovers the baby Gaussian</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BPqprTKDCwb_FQCEF1uxHw.png" /></figure><p>De Moivre was studying probability, including repeated coin tosses and other games of chance.</p><p>In 1733, he showed that the complicated probabilities associated with a large number of coin tosses could be approximated by a smooth, bell-shaped curve.</p><p>This is the important part: <strong>a complicated collection of random outcomes could be described approximately by a simple mathematical shape.</strong></p><p>Instead of calculating every possible outcome separately, we could use a curve to understand the overall pattern.</p><p>This was an early form of the normal distribution.</p><p>But de Moivre’s result was connected to a particular mathematical problem: the binomial distribution. It wasn’t yet the universal explanation for every kind of measurement error.</p><p>Our astronomer was still waiting for an answer.</p><h3>4. Laplace takes the idea further</h3><p>What if randomness wasn’t limited to coin tosses?</p><p>Think about our telescope again.</p><p>A measurement might be influenced by several small disturbances: atmospheric distortion, instrument alignment, timing, and the observer’s own reading.</p><p>The total error is the combined effect of these contributions.</p><p>Some might push the measurement slightly upward. Others might push it downward. They can partly cancel one another.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j_VKILHbWcwkl71tqdP07Q.png" /></figure><p>Pierre-Simon Laplace developed probability theory further, extending the mathematical understanding of repeated trials and combinations of random quantities.</p><p>The broader insight was becoming clearer: under suitable conditions, the combined effects of many random contributions can produce a distribution that approaches the normal curve.</p><p>This is related to what we now know as the central limit theorem.</p><p>It doesn’t mean every collection of errors automatically becomes Gaussian. The assumptions matter. But it helps explain why bell-shaped patterns appear so often in practice.</p><p>We were getting closer to understanding our astronomer’s problem.</p><h3>5. 1809: Gauss brings the curve back to Earth</h3><p>Carl Friedrich Gauss connected the normal error curve with astronomical observations and the method of least squares in his work published in 1809.</p><p><em>Note: The astronomer and measurement scenario used in this article are hypothetical examples created solely for explanation; they do not describe a real historical person or event.</em></p><p>Remember our five measurements?</p><p>100.2°, 99.8°, 100.1°, 99.9°, and 100.0°.</p><p>Their average is 100.0°.</p><p>Now imagine that we model the measurement errors as independent, Gaussian-distributed errors with the same variance.</p><p>This gives us a framework for understanding why measurements cluster around the estimated position and how their variability affects our confidence in the result.</p><p>Under these assumptions, choosing the center that makes the observed measurements most likely is equivalent to choosing the value that minimizes the sum of squared deviations. That value is the arithmetic mean.</p><p>This connects the Gaussian distribution to least squares.</p><p>But the Gaussian didn’t magically make the average correct. The average existed already. What the model provided was a probabilistic explanation and a way to quantify uncertainty.</p><p>That’s the distinction I had been missing.</p><p><strong>The Gaussian distribution is not a machine for finding the truth. It’s a model that helps us reason about uncertainty.</strong></p><h3>6. Why does the curve have that particular shape?</h3><p>At this point, I wanted to understand why the Gaussian looks like a bell instead of some other shape.</p><p>Let’s forget the intimidating formula for a moment.</p><p>Imagine standing at the center of our curve.</p><p>At the center, the density is highest.</p><p>Move a little away from the center, and it decreases.</p><p>Move much farther away, and it becomes very small.</p><p>The curve is symmetric: a deviation of 0.2 above the mean has the same density as a deviation of 0.2 below it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5Ck08i8C0_Pl_91w-sRyCw.png" /></figure><p>Why?</p><p>Because the Gaussian’s formula depends on the <em>squared distance</em> from the center. Positive and negative distances of the same magnitude produce the same result.</p><p>The exponential part of the formula controls how quickly the curve falls away from the center.</p><p>The standard deviation controls the width. A smaller standard deviation creates a narrower curve, while a larger one creates a wider curve.</p><p>There’s also a normalization factor that ensures the total area under the curve equals one, representing 100% of the probability.</p><p>That’s all the formula is doing, conceptually:</p><ul><li>The mean tells us where the center is.</li><li>The standard deviation tells us how spread out the values are.</li><li>The exponential controls how density declines with distance.</li><li>The normalization factor makes the total probability add up correctly.</li></ul><h3>7. Why should we care about standard deviation?</h3><p>Let’s return to the astronomer.</p><p>The average of the five readings is 100.0°. But the readings don’t all equal 100.0°.</p><p>How much do they vary?</p><p>One simple approach is to calculate how far each reading is from the average.</p><p>The differences are +0.2°, −0.2°, +0.1°, −0.1°, and 0°.</p><p>If we simply average these signed differences, they cancel out and give zero. That tells us nothing about the spread.</p><p>So we square the differences, average them, and take the square root. This produces a measure called standard deviation.</p><p>For the astronomer’s readings, the sample standard deviation is approximately 0.158°.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O9UquKdXqFrviYI75wdVWw.png" /></figure><p>Why use this particular calculation instead of another one?</p><p>It isn’t the only possible choice. We could calculate the average absolute deviation instead. But standard deviation has useful mathematical properties, particularly when working with squared errors, combining sources of variability, and fitting Gaussian models.</p><p>There’s another detail worth knowing: when estimating population variance from a sample, we commonly divide the sum of squared deviations by (n-1), rather than (n). This is called Bessel’s correction. Estimating the mean from the same observations constrains their deviations, and the correction compensates for the resulting tendency to underestimate the population variance.</p><h3>8. What if our data don’t look like a bell?</h3><p>Here’s where the Gaussian becomes even more interesting.</p><p>Suppose you’re measuring API response times.</p><p>Most requests take around 100 milliseconds, but occasionally one takes 2,000 milliseconds because of a database slowdown.</p><p>Your data might have a long tail toward larger values rather than a symmetric bell shape.</p><p>A Gaussian model might underestimate how often those slow responses occur.</p><p>Or imagine combining measurements from two different servers, one fast and one slow. Your histogram might have two peaks instead of one.</p><p>A single Gaussian may hide the fact that you’re dealing with two different populations.</p><p>This is why we shouldn’t automatically assume that every dataset follows a normal distribution.</p><p>To investigate, we can plot a histogram, examine a normal Q–Q plot, and understand how the data were generated.</p><p>A histogram helps us see the overall shape. A Q–Q plot compares our observations with the quantiles expected under a normal distribution. Neither proves that the data are Gaussian, but both help us assess whether the model is reasonable.</p><p>The lesson is simple: <strong>choose the distribution based on the behavior of your data and the problem you’re trying to solve, not because you’ve learned a formula.</strong></p><h3>9. What would we use if the Gaussian didn’t exist?</h3><p>We wouldn’t be unable to do statistics.</p><p>We could use other probability distributions, empirical data, medians, absolute-error methods, or models designed for specific kinds of outcomes.</p><p>For example, a Laplace distribution has a sharper center and heavier tails than a Gaussian. A Student’s <em>t</em>-distribution can be useful when modeling uncertainty with heavier tails. Count data may be better described by a Poisson or negative binomial distribution.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D2zz_KMqrNkk8gcyWr33_Q.png" /></figure><p>The Gaussian became influential because it combines mathematical convenience with useful connections to real-world problems.</p><p>It gives us a compact way to describe a center and spread. It supports tractable statistical inference. And under suitable conditions, it approximates the behavior of sums and averages of random variables.</p><p>We didn’t need it to invent statistics. But we gained an exceptionally useful tool for understanding uncertainty.</p><h3>10. Modern AI</h3><p>The same idea appears in machine learning.</p><p>In robotics, engineers often model sensor uncertainty with Gaussian distributions because they can represent the uncertainty of a position estimate using a mean and covariance.</p><p>In statistical regression, assuming Gaussian errors with constant variance leads naturally to the familiar squared-error objective.</p><p>In diffusion models, Gaussian noise is progressively added to data, and a neural network learns to reverse the corruption process to generate new samples.</p><p>The Gaussian doesn’t teach a diffusion model what a cat looks like. The learned network does that. The Gaussian provides a mathematically convenient component of the generation process.</p><p>The applications are different, but the recurring question is similar:</p><p>How do we represent uncertainty in a way that makes a complicated problem easier to reason about?</p><p>That’s the question that connects a telescope in the 1800s to a generative AI model today.</p><h3>The thing to remember about Gaussian distribution</h3><p>I started this rabbit hole thinking the Gaussian distribution was a bell-shaped curve I had forgotten from mathematics.</p><p>Now I see it differently.</p><p>It began with mathematical work on probability. It became a powerful way to model measurement errors. It helped connect observations, estimation, and uncertainty. And it continues to appear in scientific and engineering systems because its properties make many difficult problems more manageable.</p><p>The most important lesson isn’t that every dataset should look like a bell.</p><p>It isn’t that standard deviation is the only way to measure spread.</p><p>And it certainly isn’t that the Gaussian formula magically turns imperfect data into truth.</p><p>It’s this:</p><p><strong>A distribution is a model of how uncertainty behaves.</strong></p><p>And that, for me, was the difference between learning what a Gaussian distribution is and actually understanding it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1088662feb0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Does AI Need a Different Kind of Brain?]]></title>
            <link>https://medium.com/@thendralmag/why-does-ai-need-a-different-kind-of-brain-f1ab273f24ac?source=rss-523d30be10bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1ab273f24ac</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[ai-robotics]]></category>
            <category><![CDATA[liquid-neural-networks]]></category>
            <category><![CDATA[self-driving-cars]]></category>
            <dc:creator><![CDATA[Thendral Magudapathi]]></dc:creator>
            <pubDate>Sun, 08 Nov 2026 12:54:55 GMT</pubDate>
            <atom:updated>2026-11-08T12:54:55.089Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*X4_oBAQM3xJ4QIS5wwbOSA.png" /></figure><h3>Normal Neural Networks vs. Liquid Neural Networks:</h3><p><strong>Note - Suitable for:</strong> Beginners who are starting their journey in Artificial Intelligence, Machine Learning, or Deep Learning. No prior knowledge of neural network architectures or mathematics is required. If you have heard terms like neural networks, Transformers, or ChatGPT but aren’t entirely sure how they work, this article is for you.</p><h3>First, why do we even need different types of neural networks?</h3><p>Imagine building two AI systems.</p><p>The first one needs to identify whether an image contains a cat or a dog.</p><p>The second one needs to control a drone flying through unpredictable weather, where wind speed, direction, and obstacles keep changing every second.</p><p>Would you design both systems in exactly the same way?</p><p>Probably not.</p><p>Although both problems involve Artificial Intelligence, the nature of the problems is very different.</p><p>One primarily needs to recognise patterns in images. The other needs to continuously respond to a changing environment.</p><p>This is one of the reasons we have different neural network architectures.</p><p>Before getting into Liquid Neural Networks, let’s understand the conventional neural networks we already know.</p><h3>1. What are normal neural networks?</h3><p>When we talk about neural networks, we are referring to computational systems loosely inspired by the way biological brains process information.</p><p>They consist of interconnected units called neurons, arranged in layers.</p><p>A simplified neural network looks something like this:</p><p><strong>Input → Hidden Layers → Output</strong></p><p>Let’s take an example.</p><p>Suppose we want to build an AI model that predicts house prices.</p><p>We provide information such as:</p><ul><li>Number of bedrooms</li><li>Number of bathrooms</li><li>Location</li><li>House area</li><li>Property age</li></ul><p>The neural network processes these inputs through its internal layers and produces a predicted house price.</p><p>But how does it know which factors matter more?</p><p>This is where <em>weights and parameters</em> come in.</p><p>During training, the network learns numerical values called weights. These values determine how strongly different inputs influence its predictions.</p><p>For example, the area of a house might have a stronger influence on its price than the age of the property.</p><p>The network learns these relationships by examining training examples and adjusting its weights to reduce prediction errors.</p><p>Once training is complete, the learned weights are generally fixed during inference (when the model is being used).</p><p>The model still produces different outputs for different inputs, but its learned parameters do not automatically change every time a new input arrives.</p><p>This is how many conventional neural networks work.</p><p>However, not every neural network is designed this way. Recurrent Neural Networks (RNNs), for example, maintain an internal state that carries information across a sequence.</p><p>And this brings us to something interesting.</p><h3>2. What are Liquid Neural Networks?</h3><p>Liquid Neural Networks (LNNs) are a type of neural network designed to handle continuously changing information.</p><p>They were introduced by researchers at MIT and collaborators, with the original research published around 2020.</p><p>The interesting part is how they process information.</p><p>Unlike a conventional feedforward neural network, which computes outputs through a fixed sequence of operations, Liquid Neural Networks use mathematical equations that describe how their internal states evolve over time.</p><p>In simple terms, their internal behaviour can change dynamically as new information arrives.</p><p>Think about a glass of water.</p><p>When you pour water into a glass, its shape is determined by the container. Pour it into a different container, and it takes a different shape.</p><p>The water itself hasn’t changed into a different substance. Its behaviour adapts to the surrounding conditions.</p><p>This is where the name <em>Liquid</em> comes from.</p><p>It describes the adaptable, time-dependent behaviour of the network.</p><h3>What makes them technically different?</h3><p>Traditional neural networks commonly use mathematical operations involving weights, inputs and activation functions.</p><p>Liquid Neural Networks use differential equations to describe how their internal states change over time.</p><p>Don’t worry if you haven’t studied differential equations.</p><p>You only need to understand one idea:</p><p>A differential equation describes how something changes.</p><p>For example:</p><ul><li>How does temperature change over time?</li><li>How does the speed of a moving vehicle change?</li><li>How does the position of a drone change as wind affects its movement?</li></ul><p>Liquid Neural Networks use this kind of mathematical approach to model the changing internal state of neurons.</p><p>Instead of treating every input as an isolated event, they can maintain and update information as time progresses.</p><p>That makes them particularly interesting for systems dealing with continuous streams of information.</p><h3>3. Let’s compare them using real-world applications</h3><p>Understanding the architecture is useful, but understanding where to use it is even more important.</p><p>Let’s look at some practical examples.</p><h3>Application 1: Image classification</h3><p>Imagine uploading a photograph and asking an AI model:</p><p>“Is this a cat or a dog?”</p><p>A conventional Convolutional Neural Network (CNN) can be trained to identify visual patterns such as:</p><ul><li>Ears</li><li>Eyes</li><li>Fur patterns</li><li>Facial structures</li><li>Body shapes</li></ul><p>After learning these patterns from thousands of images, it can classify new images.</p><p>Would a Liquid Neural Network be necessary here?</p><p>Usually not.</p><p>Image classification is primarily a visual pattern-recognition problem. CNNs and Vision Transformers are established choices for this task.</p><p>LNNs can be incorporated into visual systems, especially when temporal information matters, but they are not automatically better at classifying individual images.</p><h3>Application 2: Self-driving cars</h3><p>Now imagine a car driving through a busy city.</p><p>The environment is constantly changing.</p><ul><li>A pedestrian suddenly crosses the road.</li><li>Another vehicle changes lanes.</li><li>Rain reduces visibility.</li><li>The road becomes slippery.</li><li>A traffic signal changes.</li></ul><p>A self-driving system must continuously interpret its surroundings and make decisions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NAJTBG-pWLXBDcM68cyYRw.png" /></figure><p>This is where the distinction becomes interesting.</p><p>A conventional neural network can identify pedestrians, vehicles, traffic signs and other objects.</p><p>A Liquid Neural Network can be used as part of a control system that processes changing information over time and helps determine how the vehicle should respond.</p><p>Notice something important?</p><p>We don’t necessarily need to choose one architecture and discard the other.</p><p>A self-driving system can use conventional neural networks for perception and a Liquid Neural Network for certain control or temporal-processing tasks.</p><p>Different components can solve different problems.</p><h3>Application 3: Drones</h3><p>Consider a drone flying outdoors.</p><p>It receives information from multiple sensors:</p><ul><li>Accelerometer</li><li>Gyroscope</li><li>GPS</li><li>Camera</li><li>Altitude sensors</li></ul><p>Now imagine a sudden change in wind direction.</p><p>The drone needs to adjust its movement to maintain stability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lj7yEhgLJheWAW4V-ruA_A.png" /></figure><p>A model that can continuously process changing sensor information is particularly useful here.</p><p>Liquid Neural Networks have demonstrated promising capabilities in robotic control tasks, including work involving autonomous navigation.</p><p>Their ability to model changing internal states makes them an interesting choice for resource-constrained autonomous systems.</p><h3>Application 4: Financial time-series prediction</h3><p>Stock prices, currency values and market indicators change over time.</p><p>A financial prediction system might receive:</p><ul><li>Historical stock prices</li><li>Trading volumes</li><li>Market volatility</li><li>Price movements</li><li>Economic indicators</li></ul><p>Traditional approaches such as LSTMs, Transformers and other time-series models are widely used for these problems.</p><p>Liquid Neural Networks can also model evolving temporal patterns.</p><p>However, this doesn’t mean they automatically predict markets more accurately. Financial prediction is extremely difficult, and model performance depends heavily on the data, validation methodology and market conditions.</p><h3>Application 5: Industrial automation</h3><p>Imagine a machine operating inside a manufacturing plant.</p><p>It continuously generates sensor readings:</p><ul><li>Temperature</li><li>Pressure</li><li>Vibration</li><li>Motor speed</li><li>Energy consumption</li></ul><p>A sudden increase in vibration might indicate that a machine component is wearing out.</p><p>An AI system can monitor these readings and identify unusual behaviour.</p><p>Liquid Neural Networks are worth exploring for such applications because they are designed to handle evolving temporal information and can be computationally efficient in certain settings.</p><p>They could be useful in predictive maintenance, adaptive control and robotics.</p><h3>4. Normal Neural Networks vs. Liquid Neural Networks</h3><p>Let’s bring everything together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dhO__Y2WiSwfjDdRghsObg.png" /></figure><p>One important clarification: Liquid Neural Networks are themselves neural networks. They are not an entirely separate category of AI.</p><p>Also, conventional neural networks aren’t necessarily incapable of adapting to changing environments. Recurrent networks, Transformers, adaptive models and control systems can all handle temporal information in different ways.</p><p>The distinction is in how the models represent and process changing information.</p><h3>5. Does this mean Liquid Neural Networks are better than Transformers?</h3><p>Not necessarily.</p><p>Let’s take ChatGPT as an example.</p><p>When you ask ChatGPT a question, it needs to understand the relationship between words, identify relevant context, connect information across sentences and generate a meaningful response.</p><p>Transformers are exceptionally good at modelling these relationships using an attention mechanism.</p><p>Now consider a robot navigating a room.</p><p>It needs to continuously process sensor information, maintain an understanding of its current state and adjust its movements as the environment changes.</p><p>This is a different challenge.</p><p>Liquid Neural Networks offer an interesting approach to these problems.</p><p>Neither architecture is universally superior. Their usefulness depends on the task.</p><p>In fact, combining different architectures can be more practical than expecting one architecture to solve everything.</p><h3>6. Where is this technology heading?</h3><p>Liquid Neural Networks are part of a broader effort to build AI systems that are more efficient, adaptive and capable of operating in real-world environments.</p><p>One particularly interesting development is the work from <strong>Liquid AI</strong>, a company founded by researchers associated with the original MIT Liquid Neural Network research.</p><p>The company has developed Liquid Foundation Models (LFMs), extending ideas from liquid neural networks into foundation-model architectures.</p><p>This is worth distinguishing from the original small Liquid Neural Networks: an LFM is not simply the same architecture made bigger.</p><p>The broader research direction is exciting because the future of AI won’t necessarily be determined by making language models larger and larger.</p><p>We also need AI systems that can:</p><ul><li>Operate efficiently on edge devices.</li><li>Make decisions with limited computing resources.</li><li>Respond to continuously changing environments.</li><li>Work alongside physical machines and robots.</li><li>Process real-world sensor information.</li></ul><p>Liquid Neural Networks are one interesting direction towards these goals.</p><h3>Final thoughts</h3><p>When we first learn about Artificial Intelligence, it is easy to associate neural networks primarily with chatbots, image generators and language models.</p><p>But AI is much bigger than that.</p><p>Some AI systems need to understand language. Others need to recognise objects, predict failures, control robots or respond to changes in the physical world.</p><p>Different problems require different approaches.</p><p>Conventional neural networks have given us extraordinary capabilities in pattern recognition, language processing and much more.</p><p>Liquid Neural Networks introduce another interesting way of modelling information, particularly when that information changes continuously over time.</p><p>The exciting part isn’t deciding which architecture will replace the other.</p><p>It’s understanding when each one makes sense, and how we can combine them to build better AI systems.</p><p><strong>Because the future of AI isn’t just about building models that know more. It’s also about building systems that can respond better to the world around them.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1ab273f24ac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A2A Protocol Explained: How AI Agents Communicate Using HTTP and JSON-RPC]]></title>
            <link>https://medium.com/@thendralmag/a2a-protocol-explained-how-ai-agents-communicate-using-http-and-json-rpc-ed7413b9ae00?source=rss-523d30be10bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed7413b9ae00</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[a2a-protocol]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Thendral Magudapathi]]></dc:creator>
            <pubDate>Wed, 14 Oct 2026 04:32:52 GMT</pubDate>
            <atom:updated>2026-10-14T04:32:52.130Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Following a technical rabbit hole into HTTP, JSON-RPC, Agent Cards, and the difference between calling a function and communicating across systems.</em></p><p>When building AI agents, it’s easy to focus on what each agent does: reasoning, calling tools, retrieving information, or delegating tasks to another agent.</p><p>But there’s another question worth asking:</p><p><strong>How do two independently built AI agents communicate when they don’t share the same codebase, programming language, or infrastructure?</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nmib2wC__igw67KQu0gJiQ.png" /></figure><p>While exploring multi-agent communication, I started looking into Google’s Agent2Agent (A2A) protocol. Initially, HTTP, JSON-RPC, and Server-Sent Events sounded like a lot of additional machinery just to let agents talk to each other.</p><p>Then I looked at my own implementation.</p><p>My agents could already communicate through a Python function call.</p><p>So why did A2A need an entire protocol?</p><p>That question led me down a technical rabbit hole — and helped me understand an important distinction between building agents that cooperate and building agents that can interoperate.</p><h3>1. My agents could communicate. What was missing?</h3><p>In my learning project, communication between agents happens through an InProcessBus.</p><p>Conceptually, the interaction looks like this:</p><pre>┌─────────────────────────────────┐<br>│       One Python process        │<br>│                                 │<br>│  Agent A                        │<br>│     │                           │<br>│     ▼                           │<br>│  InProcessBus                   │<br>│     │                           │<br>│     ▼                           │<br>│  Agent B                        │<br>│                                 │<br>└─────────────────────────────────┘</pre><p>Agent A sends a task through the bus, and the bus calls Agent B’s handler.</p><p>The implementation might look something like this:</p><pre>def send_task(agent, task):<br>    return agent.handle(task)</pre><p>This is a simplified illustration, not necessarily the exact implementation.</p><p>It works perfectly well when both agents live inside the same Python process. There’s no network latency, no HTTP request to construct, and no serialization required just to pass a Python object between functions.</p><p>But what happens if Agent B belongs to another team?</p><p>What if it’s written in Java, deployed on a different cloud, and exposed through a web service?</p><p>I can no longer pass a Python object directly to it. I need a way to locate the agent, send it a request, communicate what I want it to do, and understand its response.</p><p>That’s the problem A2A addresses.</p><p>A2A provides a standardized way for independently built agent systems to exchange messages, delegate work, and track tasks without requiring them to share their internal implementation. <a href="https://a2a-protocol.org/latest/specification/">Official A2A specification</a></p><h3>2. Why not just use HTTP?</h3><p>The first piece of the puzzle is HTTP.</p><p>Think of HTTP as the road connecting two systems.</p><pre>Agent A ─────── HTTP(S) ───────&gt; Agent B</pre><p>HTTP already works across programming languages, operating systems, and cloud providers. Python can send an HTTP request to a Java service just as easily as Java can communicate with a Go service.</p><p>A2A builds on that existing infrastructure instead of requiring every agent developer to implement a custom network protocol.</p><p>It also benefits from familiar web infrastructure:</p><ul><li>TLS for encrypted communication.</li><li>Authentication mechanisms such as API keys, OAuth, or mutual TLS when configured.</li><li>Reverse proxies, load balancers, and rate limiting.</li><li>Existing logging and monitoring tools.</li></ul><p>These capabilities aren’t automatically secured merely because an application uses HTTP. They still need to be configured correctly.</p><p>The important point is that A2A can reuse established web infrastructure rather than reinventing it.</p><p>Imagine a travel agent that delegates work to three specialized agents:</p><pre>Travel Agent<br>                       |<br>             ┌─────────┼─────────┐<br>             ▼         ▼         ▼<br>        Flight Agent Hotel Agent Cab Agent</pre><p>Each agent could run as an independent service. The travel agent doesn’t need to import their Python modules or understand their internal code. It needs to know how to reach them and communicate using a supported protocol.</p><p>That brings us to the next question.</p><p>HTTP provides the connection. But what should the request look like?</p><h3>3. Why JSON-RPC instead of inventing a request format?</h3><p>HTTP alone doesn’t tell Agent B what a request means.</p><p>One developer might send:</p><pre>{<br>  &quot;action&quot;: &quot;find_hotel&quot;,<br>  &quot;city&quot;: &quot;Chennai&quot;<br>}</pre><p>Another might use:</p><pre>{<br>  &quot;operation&quot;: &quot;search&quot;,<br>  &quot;location&quot;: &quot;Chennai&quot;<br>}</pre><p>Both are valid JSON. But they follow different conventions.</p><p>If every agent invents its own request envelope, integrations become harder to maintain.</p><p>A2A’s JSON-RPC binding provides a standardized request-and-response structure.</p><p>A simplified JSON-RPC request looks like this:</p><pre>{<br>  &quot;jsonrpc&quot;: &quot;2.0&quot;,<br>  &quot;method&quot;: &quot;example_method&quot;,<br>  &quot;params&quot;: {<br>    &quot;city&quot;: &quot;Chennai&quot;<br>  },<br>  &quot;id&quot;: 123<br>}</pre><p>Each field has a purpose:</p><ul><li>jsonrpc: identifies the JSON-RPC version.</li><li>method: identifies the operation being requested.</li><li>params: contains the operation&#39;s inputs.</li><li>id: correlates the response with the request.</li></ul><p>The id becomes particularly useful when several requests are in flight simultaneously.</p><p>For example, an agent might request hotel information for Chennai, Bengaluru, and Mumbai. Request identifiers help it match responses to the appropriate requests.</p><p>One important distinction: JSON-RPC standardizes the message envelope, not the entire meaning of every operation. A2A defines the protocol’s actual methods and data structures on top of that foundation.</p><p>Also, A2A’s method names have evolved across versions. Older examples use names such as tasks/send, while newer specifications use methods such as message/send. These should not be mixed as though they were interchangeable names in every version.</p><h3>4. How does an agent discover another agent?</h3><p>Suppose Agent A knows that a hotel agent exists but doesn’t know its capabilities or endpoint.</p><p>How does it discover what that agent can do?</p><p>This is where the <strong>Agent Card</strong> comes in.</p><p>Think of it as a machine-readable introduction to an agent.</p><p>It describes information such as the agent’s identity, capabilities, supported skills, endpoint, and relevant authentication requirements.</p><p>A conceptual example:</p><pre>{<br>  &quot;name&quot;: &quot;Hotel Agent&quot;,<br>  &quot;description&quot;: &quot;Searches for hotels and compares options&quot;,<br>  &quot;skills&quot;: [<br>    &quot;hotel_search&quot;,<br>    &quot;availability_check&quot;<br>  ],<br>  &quot;url&quot;: &quot;https://example.com/a2a&quot;<br>}</pre><p>This is illustrative rather than a complete, version-specific Agent Card schema.</p><p>An agent can retrieve another agent’s published card, inspect its capabilities, and determine whether it is suitable for a task.</p><pre>Agent A<br>   |<br>   | Discover agent<br>   ▼<br>Agent Card<br>   |<br>   ├── What can it do?<br>   ├── Where is its endpoint?<br>   └── What capabilities does it support?<br>             |<br>             ▼<br>       Send a request</pre><p>This is useful in an ecosystem where agents are developed independently. Discovery reduces the need to hardcode every agent’s implementation details into every client.</p><p>It doesn’t mean that agents automatically find every other agent on the internet. Discovery still depends on how their cards are published and how clients locate them.</p><h3>5. What happens when a task takes time?</h3><p>Finding a hotel might be quick. Producing a detailed research report, processing a document, or coordinating several other agents might take much longer.</p><p>A simple request-response interaction is not always enough.</p><p>A2A models longer-running work using tasks, which have identifiers and lifecycle states.</p><p>Conceptually:</p><pre>Submitted<br>    |<br>    ▼<br> Working<br>    |<br>    ├──────────&gt; Failed<br>    |<br>    ▼<br>Completed</pre><p>Other terminal states can include cancellation or rejection, depending on the situation.</p><p>The benefit is that the requesting agent can reason about the progress and outcome of work rather than treating every interaction as an instantaneous function call.</p><p>For example, a research agent might accept a task, gather information, delegate searches, and eventually return a report. The requesting system can track the task rather than needing to keep every internal step inside one synchronous function call.</p><p>A2A also supports different interaction patterns, including synchronous responses, streaming, and push notifications. The exact operations depend on the protocol version and the capabilities exposed by the remote agent.</p><h3>6. Why Server-Sent Events?</h3><p>Tracking a task’s status is useful, but repeatedly asking for updates can be inefficient.</p><p>Imagine this sequence:</p><pre>Agent A: Are you done?<br>Agent B: No.</pre><pre>Agent A: Are you done now?<br>Agent B: Still working.</pre><pre>Agent A: What about now?<br>Agent B: Almost done.</pre><p>Server-Sent Events (SSE) provide another option: the client establishes an HTTP streaming connection, and the server sends events as updates become available.</p><pre>Agent A  &lt;────── HTTP streaming connection ──────&gt; Agent B<br>   ▲                                                  |<br>   |                Task accepted                     |<br>   | &lt;────────────────────────────────────────────────|<br>   |                Status update                     |<br>   | &lt;────────────────────────────────────────────────|<br>   |                Partial result                    |<br>   | &lt;────────────────────────────────────────────────|<br>   |                Final result                      |<br>   | &lt;────────────────────────────────────────────────|</pre><p>A2A can use SSE to deliver task-status updates and incremental results through supported streaming methods.</p><p>SSE is not the agent’s reasoning mechanism. It is a transport mechanism for delivering updates. The agent still has to perform the work, and the client still needs to interpret the events.</p><h3>7. What would change in my implementation?</h3><p>Returning to my original InProcessBus, the key difference is the communication boundary.</p><p>Today, the conceptual flow is:</p><pre>Agent A → InProcessBus → Agent B handler</pre><p>A network-based architecture would look more like this:</p><pre>┌─────────────────┐<br>│ Agent A         │<br>│ FastAPI :8001   │<br>└────────┬────────┘<br>         |<br>         | HTTP(S)<br>         | JSON-RPC request<br>         ▼<br>┌─────────────────┐<br>│ Agent B         │<br>│ FastAPI :8002   │<br>└─────────────────┘</pre><p>Agent A would serialize a request, send it over HTTP, and receive a response from Agent B’s service. Agent B would parse the request and invoke its own internal logic.</p><p>This introduces real engineering concerns: network failures, timeouts, authentication, serialization, retries, observability, and deployment.</p><p>It also makes the agents independently deployable and allows them to run on different machines.</p><p>Importantly, putting two FastAPI applications on separate ports does not automatically make them A2A-compliant. A genuine implementation must follow the relevant A2A specification, including its message structures, methods, task behavior, and supported capabilities.</p><p>The in-process version remains useful. It lets me focus on agent behavior and coordination before introducing the complexity of distributed communication.</p><h3>8. The bigger lesson</h3><p>What initially looked like unnecessary protocol machinery started to make sense once I separated the problem into layers.</p><p>HTTP(S) provides the communication transport.</p><p>JSON-RPC defines a standardized request-and-response envelope.</p><p>Agent Cards describe an agent’s identity and capabilities.</p><p>Tasks represent work that may continue beyond a single immediate response.</p><p>SSE enables incremental updates over a streaming connection.</p><p>Together, these mechanisms help independent agent systems communicate without requiring them to share the same codebase or internal state.</p><p>The distinction I take away is simple:</p><p><strong>Getting two agents to call each other is an implementation problem. Getting independently built agents to communicate reliably is an interoperability problem.</strong></p><p>My next step is to move beyond the in-process bus and experiment with separate agent services communicating over HTTP. That would make the difference between a simulated communication layer and a real network boundary much more tangible.</p><p>I also want to explore what happens when communication fails, when tasks take minutes rather than milliseconds, and when an agent’s advertised capabilities don’t match what it can actually deliver.</p><p>Because understanding multi-agent systems isn’t only about making agents smarter.</p><p>It’s also about understanding the infrastructure that lets them work together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed7413b9ae00" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Invisible Fingerprint: How AI Text Watermarking Works]]></title>
            <link>https://medium.com/@thendralmag/the-invisible-fingerprint-how-ai-text-watermarking-works-d6342d1321dd?source=rss-523d30be10bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6342d1321dd</guid>
            <category><![CDATA[ai-watermarking]]></category>
            <category><![CDATA[ai-detection-tool]]></category>
            <category><![CDATA[anthropic-claude]]></category>
            <dc:creator><![CDATA[Thendral Magudapathi]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 18:51:04 GMT</pubDate>
            <atom:updated>2026-10-12T18:51:04.775Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How Anthropic is using randomness, secret keys, and statistics to make AI-generated text detectable — without changing how it reads.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mrD2h_Doe1nv5IvLjrOlcA.png" /></figure><p>Imagine you’re investigating a suspicious essay.</p><p>It is grammatically perfect. The sentences flow naturally. The vocabulary is appropriate. There are no strange phrases, hidden characters, or obvious signs that an AI wrote it.</p><p>You suspect Claude generated the essay, but you have no way to know for sure just by reading it.</p><p>Now imagine the text contains a hidden statistical pattern. You cannot see it, but a detector with the right cryptographic key can examine the essay and estimate whether Claude was involved in generating it.</p><p>No special symbols. No invisible spaces. No extra words.</p><p>Just a pattern in the choices the model makes while writing.</p><p>This is the idea behind <strong>AI text watermarking</strong>, a technique Anthropic described in its August 2026 announcement about watermarking Claude’s outputs. The approach builds on research into statistical watermarking, including Google’s SynthID-Text technique. <a href="https://www.anthropic.com/news/claude-text-watermark">Read Anthropic’s explanation</a>.</p><p>The idea sounds almost like magic. But the underlying concepts — probability, pseudorandomness, cryptographic keys, and statistical testing — are familiar tools in computer science.</p><p>Let’s unpack how they fit together.</p><h3>1. The problem: AI text doesn’t come with a visible signature</h3><p>Large language models generate text one token at a time. A token might be a complete word, part of a word, or a punctuation mark.</p><p>At every generation step, the model calculates scores for possible next tokens and derives a probability distribution from them.</p><p>Consider this sentence:</p><blockquote><em>The weather today was cold and …</em></blockquote><p>The model might consider several plausible continuations:</p><p>CandidateIllustrative probabilityGrey35%Overcast30%Cloudy20%Rainy15%</p><p><em>These numbers are hypothetical, used only to illustrate the mechanism.</em></p><p>All four choices can produce a sensible sentence. There is no single correct answer.</p><p>The model can sample from this distribution to decide which token comes next. Its choice depends on the probabilities, the sampling procedure, and the generation settings.</p><p>This creates an interesting opportunity.</p><p>When the model has several equally reasonable ways to express an idea, the exact choice often matters very little to the reader.</p><p>Could we use these low-stakes choices to encode a hidden signal?</p><p>That is the central intuition behind statistical text watermarking.</p><h3>2. The detective’s clue: a pattern hidden in ordinary choices</h3><p>Let’s return to our suspicious essay.</p><p>Imagine that Claude is generating the sentence:</p><blockquote><em>The weather today was cold and grey.</em></blockquote><p>A reader sees a perfectly ordinary sentence.</p><p>But suppose the generation system uses a secret watermarking mechanism to guide some of the model’s token choices.</p><p>At certain positions, the system has several plausible candidates. The watermark influences how randomness is used to choose between them.</p><p>The result might still be:</p><blockquote><em>The weather today was cold and grey.</em></blockquote><p>The difference is not necessarily the word <em>grey</em>. Another generation could choose <em>overcast</em> or <em>cloudy</em>.</p><p><strong>The watermark is not a special word. It is a statistical pattern across many token-selection decisions.</strong></p><p>Think of it this way:</p><pre>Ordinary text generation<br>        |<br>        v<br>Plausible token choices<br>        |<br>        v<br>Sampling using ordinary randomness<br>        |<br>        v<br>Natural-looking text</pre><p>Now compare that with a watermarked generation:</p><pre>Watermarked text generation<br>        |<br>        v<br>Plausible token choices<br>        |<br>        v<br>Keyed, reproducible source of randomness<br>        |<br>        v<br>Token choices influenced by the watermark<br>        |<br>        v<br>Natural-looking text with a hidden signal</pre><p>The goal is to preserve the reading experience while making the sequence of choices statistically recognizable to a detector.</p><p>Anthropic says its chosen method is designed to avoid a practical impact on output quality or readability. That is the intended property of the technique, not a guarantee that every possible passage will be perfectly detectable.</p><h3>3. Where does the secret key enter the picture?</h3><p>This is where the engineering becomes particularly interesting.</p><p>A cryptographic secret key is essentially unpredictable data. It does not contain a list of words to use, nor does it need to encode English-language rules.</p><p>Its purpose is to control a mathematical process.</p><p>For a simplified conceptual model, imagine that a watermarking system takes two inputs:</p><ul><li>A secret key, (K)</li><li>A small amount of preceding text, represented by context (C_t)</li></ul><p>A keyed pseudorandom function could be represented as:</p><p>[R_t = F(K,C_t)]</p><p>Here, (R_t) is a random-looking signal associated with the current context.</p><p>This equation illustrates a general cryptographic design principle; it is <strong>not a claim that Anthropic uses this exact function or implementation</strong>.</p><p>The important property is reproducibility.</p><p>Given the same key, the same context, and the same algorithm, the function can reproduce the same signal.</p><p>Change the context, and the output can change dramatically.</p><p>For example:</p><pre>Secret key: K</pre><pre>Context A: &quot;The weather was cold&quot;<br>                |<br>                v<br>           Signal A</pre><pre>Context B: &quot;The weather was extremely cold&quot;<br>                |<br>                v<br>           Signal B</pre><p>The key remains unchanged. The context changes, so the signal changes.</p><p>A watermarking system can use this keyed signal to guide the token-selection process. The exact mechanism depends on the implementation.</p><p>Notice what the key does <em>not</em> do.</p><p>It does not say:</p><pre>Always choose &quot;grey.&quot;<br>Always avoid &quot;overcast.&quot;<br>Always use &quot;significant.&quot;</pre><p>That would create a simplistic, repetitive bias that might affect writing quality.</p><p>Instead, the secret information helps determine a pattern of choices that can be checked later.</p><h3>4. If the key and context are the same, shouldn’t the output always be the same?</h3><p>This was the question that initially made me pause when thinking about watermarking.</p><p>If the key and context determine the signal, then surely the same key and context must produce the same result every time?</p><p>Yes — with an important distinction.</p><p>A deterministic function produces the same output for the same inputs. If the watermark mechanism uses that output to establish a reproducible preference or selection signal, that signal can remain the same for an identical context.</p><p>But that does not mean the watermark assigns one permanent word to each context.</p><p>The model still has its probability distribution, and the overall generation procedure determines how tokens are selected. The precise relationship between keyed randomness and token sampling depends on the watermarking algorithm.</p><p>More importantly, as text is generated, the context evolves:</p><pre>&quot;The weather&quot;<br>       |<br>       v<br>&quot;The weather today&quot;<br>       |<br>       v<br>&quot;The weather today was&quot;<br>       |<br>       v<br>&quot;The weather today was cold&quot;</pre><p>Each step presents a new context and another token-selection decision.</p><p>The watermark is therefore not a fixed sequence of English words. It is a keyed pattern that interacts with the model’s evolving generation process.</p><p>Anthropic’s description specifically explains that its method changes the source of randomness used in token selection. The model continues making choices, but those choices can be checked against the pattern expected from the key.</p><p>That is the subtle distinction: <strong>reproducible randomness is not the same thing as a predetermined sentence.</strong></p><h3>5. How does the detective actually detect the watermark?</h3><p>Let’s say the detective now has access to a watermark detector and the required key.</p><p>The detector receives the suspicious essay.</p><p>It does not search for the word <em>grey</em>. It does not look for hidden Unicode characters. It does not simply compare the essay against a database of Claude responses.</p><p>Instead, it examines the text’s token sequence using the watermark scheme.</p><p>Conceptually, the process looks like this:</p><pre>                Suspicious essay<br>                        |<br>                        v<br>                  Tokenize text<br>                        |<br>                        v<br>             Examine token decisions<br>                        |<br>                        v<br>            Reconstruct expected signal<br>             using key and context<br>                        |<br>                        v<br>             Compare with actual text<br>                        |<br>                        v<br>              Statistical evaluation<br>                        |<br>                        v<br>             Evidence of watermark?</pre><p>Imagine that the detector examines hundreds of eligible token choices.</p><p>Some choices match the expected pattern. Others do not.</p><p>A single match proves almost nothing. After all, ordinary text can contain any common word by chance.</p><p>But a sufficiently long passage may contain enough evidence to distinguish a watermarked sequence from ordinary text.</p><p>The detector can then estimate how likely it is that the observed pattern came from a watermarked generation process.</p><p>This is a statistical inference problem, not a visual inspection problem.</p><h3>6. Why statistics matter more than any individual word</h3><p>Suppose we build a <em>hypothetical</em> watermark scheme that assigns each eligible token position to one of two equally sized groups using a secret, context-dependent rule.</p><p>Call them Group A and Group B.</p><p>For illustration, suppose a detector checks whether each observed token falls into Group A.</p><p>If ordinary text had a 50% probability of matching Group A at each independent position, then for (N) eligible positions, the expected number of matches would be:</p><p>[E[S]=0.5N]</p><p>For 1,000 positions:</p><p>[E[S]=500]</p><p>Now imagine the detector observes 620 matches.</p><p>Under the simplified assumptions of independent Bernoulli trials, we can calculate a Z-score:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z3yKBgbTpnuHVBQbf9v4Ug.png" /></figure><p>That would be an extremely unusual result under this simplified null model.</p><p>However, this example illustrates <strong>the general statistical principle</strong>, not Anthropic’s confirmed detection algorithm. Actual watermark detection requires the correct tokenization, key, watermark scheme, and calibrated statistical test. Real token choices are not necessarily independent, and ordinary text does not automatically satisfy the assumptions in this example.</p><p>The broader idea remains powerful: the detector looks for evidence across many choices rather than expecting one particular word to reveal the origin of a passage.</p><h3>7. Why this is different from conventional AI detectors</h3><p>Many AI-text detectors attempt to classify writing based on characteristics associated with machine-generated text.</p><p>They might analyze linguistic patterns, token probabilities, predictability, or stylistic features.</p><p>A cryptographic watermark detector has a different advantage: it can test for a signal intentionally embedded by a particular generation system.</p><p>Consider the difference:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aI3zZ4n4lmfl6XB1n5nekQ.png" /><figcaption>AI Detection Methods Compared</figcaption></figure><p>Neither approach is infallible.</p><p>A detector that finds a Claude watermark provides evidence that Claude was involved in generating or processing the text. It does not establish that Claude originated every idea in the passage, or that a particular person used Claude.</p><p>This distinction matters because AI systems are often used to translate, proofread, summarize, or edit human-written material.</p><h3>8. Where does watermarking struggle?</h3><p>Watermarking depends on having enough eligible token choices to establish a detectable pattern.</p><p>Consider a short answer:</p><blockquote><em>The answer is 42.</em></blockquote><p>There are very few opportunities to encode and detect a statistical signal.</p><p>Now consider a 2,000-word essay. There are potentially many more token-selection decisions from which evidence can accumulate.</p><p>The signal can also be weaker in passages where accuracy constrains the model’s choices.</p><p>For example:</p><blockquote><em>Two plus two equals …</em></blockquote><p>There is no sensible alternative to <em>four</em> in ordinary arithmetic. Choosing a different answer just to encode a watermark would damage correctness.</p><p>Code has similar constraints. Changing an identifier or operator simply to create a watermark could break the program.</p><p>Anthropic also acknowledges that heavy editing or rewriting can make a watermark difficult to detect. If a passage is substantially changed, the original sequence of token choices may no longer be present.</p><p>A missing watermark, therefore, does not prove that AI was never involved.</p><p>Likewise, a detected watermark is not a complete history of authorship.</p><h3>9. The bigger idea: provenance without visible labels</h3><p>What fascinates me most about this technology is that it treats randomness as an engineering resource.</p><p>We normally think of randomness as something that makes a system unpredictable. Here, a carefully designed source of randomness can also help establish provenance.</p><p>The text remains readable. The signal does not need to be a visible label. And the detector does not need to know which individual word is special.</p><p>Instead, the system creates a pattern that is difficult to recognize without the appropriate verification mechanism, but statistically testable when that mechanism is available.</p><p>This is not a universal solution to AI detection. It is a way to provide a more specific signal about the origin of generated content.</p><p>And that distinction is important.</p><p><strong>The goal is not to prove that every AI-generated sentence can be identified. The goal is to make the provenance of supported AI-generated content more verifiable.</strong></p><p>As AI-generated text becomes increasingly common, that is a fascinating application of cryptography and statistical inference to a problem that, at first glance, looks purely linguistic.</p><p>A sentence may look ordinary to a reader. Underneath, however, its generation process can leave a signal that mathematics knows how to look for.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6342d1321dd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LoRA Under the Hood: Low-Rank Factorization of Weight Updates]]></title>
            <link>https://medium.com/@thendralmag/lora-under-the-hood-low-rank-factorization-of-weight-updates-ed906a806128?source=rss-523d30be10bf------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed906a806128</guid>
            <category><![CDATA[low-rank-adapters]]></category>
            <category><![CDATA[qlora]]></category>
            <category><![CDATA[what-is-lora]]></category>
            <category><![CDATA[understand-lora]]></category>
            <category><![CDATA[what-is-peft]]></category>
            <dc:creator><![CDATA[Thendral Magudapathi]]></dc:creator>
            <pubDate>Mon, 12 Oct 2026 18:28:38 GMT</pubDate>
            <atom:updated>2026-10-12T18:28:38.728Z</atom:updated>
            <content:encoded><![CDATA[<h4><em>Understanding low-rank adaptation through matrix shapes, initialization, and a numerical example.</em></h4><p>When I started exploring LoRA (Low-Rank Adaptation), I understood the high-level idea: instead of fine-tuning every parameter of a pretrained model, we freeze the original weights and train a much smaller set of parameters.</p><p>But I wanted to understand what was actually happening underneath.</p><p>What do the LoRA matrices physically look like? Why are there two matrices, A and B? And why does the forward pass calculate <strong>B(Ax)</strong>?</p><p>Let’s build the intuition from the ground up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CITWN172tr-pzEFZ2R-8Vg.png" /></figure><h3>1. Start with the original weight matrix</h3><p>Consider a neural network layer that transforms a 64-dimensional input into a 64-dimensional output.</p><p>Its weight matrix, W, has the shape:</p><p>W: (64 × 64)</p><p>That means 64 rows and 64 columns, containing 4,096 parameters.</p><p>During pretraining, the model learns values for these parameters that help it transform input representations into useful output representations.</p><p>When fine-tuning this model for a new task, we could update the original matrix directly. This is conventional full fine-tuning.</p><p>LoRA takes a different approach.</p><p>Instead of modifying W, it freezes the original matrix and learns an additional update:</p><p>W&#39; = W + ΔW</p><p>Here:</p><ul><li><strong>W</strong> is the original, pretrained weight matrix.</li><li><strong>ΔW</strong> is the learned update.</li><li><strong>W’</strong> is the effective weight matrix after adaptation.</li></ul><p>The challenge is that ΔW could itself be another 64 × 64 matrix. Learning all its elements would defeat much of the purpose.</p><p>Can we represent this update using fewer parameters?</p><h3>2. Meet the two matrices: A and B</h3><p>LoRA represents the weight update as:</p><p>ΔW = BA</p><p>For our example, choose a LoRA rank of 4.</p><p>The matrices have these shapes:</p><pre>A: (4 × 64)   = 256 parameters<br>B: (64 × 4)   = 256 parameters</pre><pre>Total         = 512 parameters</pre><p>Remember that matrix dimensions are expressed as <strong>rows × columns</strong>.</p><p>A has four rows and 64 columns. B has 64 rows and four columns.</p><p>When we multiply them:</p><pre>B × A</pre><pre>(64 × 4) × (4 × 64)</pre><pre>          ↓</pre><pre>      (64 × 64)</pre><p>The result has exactly the same shape as W.</p><p>But instead of learning 4,096 independent values for the update, we learn just 512 values across A and B.</p><p>The update is constrained to a low-rank form. This is the fundamental idea behind LoRA.</p><h3>3. Why does LoRA calculate B(Ax)?</h3><p>Let’s introduce the input vector, x.</p><p>Suppose x contains 64 numbers:</p><pre>x = (64 × 1)</pre><pre>┌────┐<br>│ x₁ │<br>│ x₂ │<br>│ x₃ │<br>│ .. │<br>│ x₆₄│<br>└────┘</pre><p>First, multiply A by x:</p><pre>A × x</pre><pre>(4 × 64) × (64 × 1)</pre><pre>          ↓</pre><pre>        (4 × 1)</pre><p>The result, Ax, contains just four numbers.</p><p>Next, multiply that intermediate result by B:</p><pre>B × (Ax)</pre><pre>(64 × 4) × (4 × 1)</pre><pre>          ↓</pre><pre>        (64 × 1)</pre><p>We are back to 64 numbers.</p><p>Visually, the LoRA branch looks like this:</p><pre>Input: 64 numbers<br>        │<br>        ▼<br>     A (4 × 64)<br>        │<br>        ▼<br>Intermediate: 4 numbers<br>        │<br>        ▼<br>     B (64 × 4)<br>        │<br>        ▼<br>Output: 64 numbers</pre><p>In short:</p><p><strong>64 → 4 → 64</strong></p><p>A projects the input into a smaller intermediate representation. B projects that representation back into the original output dimension.</p><p>Why do this? Because the learned update is constrained to operate through a four-dimensional bottleneck rather than having unrestricted freedom across all 64 × 64 entries.</p><h3>4. Let’s calculate it with actual numbers</h3><p>The 64-dimensional example is difficult to calculate by hand, so let’s use a smaller example with an input dimension of four and a LoRA rank of two.</p><p>Suppose:</p><pre>x = [5, 2, 7, 3]ᵀ</pre><p>Let A be:</p><pre>A = [<br>  [1, 0, 2, 1],<br>  [0, 1, 1, 2]<br>]</pre><p>Its shape is (2 × 4).</p><p>Multiplying A by x:</p><pre>First row:<br>1×5 + 0×2 + 2×7 + 1×3 = 22</pre><pre>Second row:<br>0×5 + 1×2 + 1×7 + 2×3 = 15</pre><p>Therefore:</p><pre>Ax = [22, 15]ᵀ</pre><p>Four numbers have become two.</p><p>Now let B be:</p><pre>B = [<br>  [1, 0],<br>  [0, 1],<br>  [1, 1],<br>  [2, 1]<br>]</pre><p>Its shape is (4 × 2).</p><p>Multiplying B by the intermediate vector gives:</p><pre>B(Ax) = [22, 15, 37, 59]ᵀ</pre><p>We started with four numbers, passed through a two-dimensional representation, and returned to four numbers.</p><p>These deliberately simple integer values illustrate the mathematics. Real LoRA matrices generally contain floating-point values learned during training.</p><h3>5. Where do the values in A and B come from?</h3><p>The values are initialized when the adapter is created and then learned through backpropagation and an optimizer.</p><p>A common initialization used in LoRA implementations is:</p><ul><li><strong>A:</strong> initialized with small random values.</li><li><strong>B:</strong> initialized to zero.</li></ul><p>Initially:</p><pre>BA = 0</pre><p>Therefore:</p><pre>W&#39; = W + BA<br>   = W</pre><p>At the beginning of fine-tuning, the adapter contributes no update to the original layer.</p><p>During training, gradients update A and B so that their product learns a useful correction for the target task.</p><p>This initialization is important: attaching the adapter does not immediately change the pretrained layer’s output.</p><p>One subtlety: the exact initialization and scaling conventions can differ between implementations.</p><h3>6. What does “learning a smaller change to W” actually mean?</h3><p>Imagine a pretrained language model that already understands language reasonably well. You want to adapt it to a specialized domain, such as medical text classification.</p><p>Full fine-tuning can update the original weight matrix directly.</p><p>LoRA instead freezes W and learns a correction represented by BA.</p><p>The layer’s output becomes:</p><p>h = Wx + BAx</p><p>Using associativity of matrix multiplication:</p><p>h = Wx + B(Ax)</p><p>Or equivalently:</p><p>h = (W + BA)x</p><p>The original matrix continues to provide its pretrained transformation. The adapter learns an additional transformation that helps the model perform the new task.</p><p>Importantly, “smaller change” refers primarily to the <strong>number of trainable parameters</strong>, not a guarantee that the numerical magnitude of every change is small.</p><h3>7. Why does this matter?</h3><p>For our 64 × 64 layer:</p><p>ApproachParametersFull weight matrix4,096LoRA A + B512</p><p>That’s 87.5% fewer parameters for the update.</p><p>Across a large language model, this can substantially reduce the number of trainable parameters and the memory needed to store their gradients and optimizer states.</p><p>LoRA does not eliminate all training costs: the frozen model still requires memory, and backpropagation must still propagate gradients through the computation.</p><p>The key insight is that LoRA does not replace a pretrained model with a smaller model. It keeps the original weights and learns a structured, low-rank update.</p><p>Once the matrix dimensions make sense, the formula becomes much less mysterious:</p><pre>Original transformation: W × x</pre><pre>LoRA correction:          B × (A × x)</pre><pre>Final output:             Wx + B(Ax)</pre><p><strong>A compresses. B projects back. Their product learns the correction.</strong></p><p>That’s the elegance of low-rank adaptation: learning how to adapt a large pretrained model without having to retrain all its weights.</p><h3>Further reading</h3><ul><li>Hu et al., <a href="https://arxiv.org/abs/2106.09685">LoRA: Low-Rank Adaptation of Large Language Models</a> — the original research paper.</li><li><a href="https://github.com/microsoft/LoRA">Microsoft’s LoRA implementation</a> — reference implementation and code.</li><li><a href="https://huggingface.co/docs/peft">Hugging Face PEFT documentation</a> — practical LoRA configuration and fine-tuning workflows.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed906a806128" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>