<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>RMSNorm on Nalar</title>
    <link>https://nalar.dev/tags/rmsnorm/</link>
    <description>Recent content in RMSNorm on Nalar</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 24 Sep 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://nalar.dev/tags/rmsnorm/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>RMSNorm Rescales Hidden States Without Mean Centering</title>
      <link>https://nalar.dev/rmsnorm-rescales-hidden-states-without-mean-centering/</link>
      <pubDate>Thu, 24 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://nalar.dev/rmsnorm-rescales-hidden-states-without-mean-centering/</guid>
      <description>&lt;p&gt;RMSNorm rescales a vector from its root mean square without first subtracting the vector mean. That missing centering operation is the defining difference from LayerNorm: both can control vector scale, but only LayerNorm explicitly shifts the normalized coordinates around a zero sample mean.&lt;/p&gt;&#xA;&lt;p&gt;For a hidden vector &lt;code&gt;x&lt;/code&gt; with width &lt;code&gt;d&lt;/code&gt;, a common RMSNorm form is:&lt;/p&gt;&#xA;&lt;div&#xA;  x-data=&#34;{ code: $el.querySelector(&#39;code&#39;).innerText, copied: false }&#34;&#xA;  class=&#34;code-block group relative my-6 overflow-hidden rounded-xl border border-line bg-surface-muted dark:border-night-line dark:bg-night-surface&#34;&gt;&#xA;  &lt;button&#xA;    type=&#34;button&#34;&#xA;    @click=&#34;navigator.clipboard.writeText(code); copied = true; setTimeout(() =&gt; copied = false, 1600)&#34;&#xA;    class=&#34;absolute right-3 top-3 z-10 rounded-lg border border-line-strong bg-surface px-2 py-1 font-mono text-[0.8rem] text-muted opacity-0 transition group-hover:opacity-100 hover:bg-ink hover:text-white dark:border-night-line dark:bg-night dark:text-night-muted dark:hover:bg-white dark:hover:text-ink&#34;&gt;&#xA;    &lt;span x-text=&#34;copied ? &#39;Copied&#39; : &#39;Copy&#39;&#34;&gt;&lt;/span&gt;&#xA;  &lt;/button&gt;&#xA;  &#xA;  &lt;div class=&#34;overflow-x-auto p-4 text-sm leading-6 [&amp;_pre]:!m-0 [&amp;_pre]:!bg-transparent [&amp;_pre]:!p-0 [&amp;_code]:font-mono&#34;&gt;&#xA;    &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rms = sqrt((1/d) * sum(x_i^2) + epsilon)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;y_i = gain_i * x_i / rms&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;The exact placement of &lt;code&gt;epsilon&lt;/code&gt;, numeric precision used for the reduction, and presence of extra affine terms depend on the implementation. The structural operation remains division by an RMS statistic rather than division by a standard deviation computed after mean subtraction.&lt;/p&gt;</description>
    </item>
    <item>
      <title>RMSNorm Scales Hidden States Without Mean Centering</title>
      <link>https://nalar.dev/rmsnorm-scales-hidden-states-without-mean-centering/</link>
      <pubDate>Thu, 24 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://nalar.dev/rmsnorm-scales-hidden-states-without-mean-centering/</guid>
      <description>&lt;p&gt;RMSNorm normalizes a hidden-state vector without subtracting its coordinate mean. That single omission separates it from LayerNorm at the mathematical interface: RMSNorm controls scale through a root-mean-square statistic, while any common offset across coordinates remains part of the transformed representation.&lt;/p&gt;&#xA;&lt;p&gt;For a vector &lt;code&gt;x&lt;/code&gt; with width &lt;code&gt;D&lt;/code&gt;, a common RMSNorm form is:&lt;/p&gt;&#xA;&lt;div&#xA;  x-data=&#34;{ code: $el.querySelector(&#39;code&#39;).innerText, copied: false }&#34;&#xA;  class=&#34;code-block group relative my-6 overflow-hidden rounded-xl border border-line bg-surface-muted dark:border-night-line dark:bg-night-surface&#34;&gt;&#xA;  &lt;button&#xA;    type=&#34;button&#34;&#xA;    @click=&#34;navigator.clipboard.writeText(code); copied = true; setTimeout(() =&gt; copied = false, 1600)&#34;&#xA;    class=&#34;absolute right-3 top-3 z-10 rounded-lg border border-line-strong bg-surface px-2 py-1 font-mono text-[0.8rem] text-muted opacity-0 transition group-hover:opacity-100 hover:bg-ink hover:text-white dark:border-night-line dark:bg-night dark:text-night-muted dark:hover:bg-white dark:hover:text-ink&#34;&gt;&#xA;    &lt;span x-text=&#34;copied ? &#39;Copied&#39; : &#39;Copy&#39;&#34;&gt;&lt;/span&gt;&#xA;  &lt;/button&gt;&#xA;  &#xA;  &lt;div class=&#34;overflow-x-auto p-4 text-sm leading-6 [&amp;_pre]:!m-0 [&amp;_pre]:!bg-transparent [&amp;_pre]:!p-0 [&amp;_code]:font-mono&#34;&gt;&#xA;    &lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;background-color:#fff;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-text&#34; data-lang=&#34;text&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rms(x) = sqrt(mean(x_i^2) + eps)&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;y_i    = g_i * x_i / rms(x)&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&#xA;  &lt;/div&gt;&#xA;&lt;/div&gt;&#xA;&lt;p&gt;Here &lt;code&gt;g_i&lt;/code&gt; is a trainable per-coordinate scale and &lt;code&gt;eps&lt;/code&gt; is a small positive term defined by the model implementation. Exact parameterization and numeric details belong to the checkpoint and runtime contract.&lt;/p&gt;</description>
    </item>
    <item>
      <title>RMSNorm Rescales Activations Without Mean Centering</title>
      <link>https://nalar.dev/rmsnorm-rescales-activations-without-mean-centering/</link>
      <pubDate>Wed, 23 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://nalar.dev/rmsnorm-rescales-activations-without-mean-centering/</guid>
      <description>&lt;p&gt;RMSNorm normalizes a vector by its root mean square rather than by a centered standard deviation. That small change removes mean subtraction from the normalization step. As a result, RMSNorm and LayerNorm respond similarly to some scale changes but differently to additive shifts in the hidden state.&lt;/p&gt;&#xA;&lt;p&gt;The distinction matters in transformer implementations because normalization is part of the residual path geometry. Replacing one normalization rule with another is not merely an arithmetic shortcut; it changes which transformations of an activation vector are canceled and which remain visible to later computation.&lt;/p&gt;</description>
    </item>
    <item>
      <title>RMSNorm Scales Activations Without Mean Centering</title>
      <link>https://nalar.dev/rmsnorm-scales-activations-without-mean-centering/</link>
      <pubDate>Wed, 23 Sep 2026 00:00:00 +0000</pubDate>
      <guid>https://nalar.dev/rmsnorm-scales-activations-without-mean-centering/</guid>
      <description>&lt;p&gt;RMSNorm rescales a hidden vector using its root-mean-square magnitude, but it does not subtract the vector&amp;rsquo;s feature mean first. That omission is not merely a shorter expression for LayerNorm. It changes which transformations of the input disappear under normalization and which remain visible to later operations.&lt;/p&gt;&#xA;&lt;p&gt;For transformer implementations, that distinction matters at the boundary between residual state, normalization, and the next projection.&lt;/p&gt;&#xA;&lt;h2 id=&#34;the-denominator-comes-from-the-second-raw-moment&#34;&gt;The denominator comes from the second raw moment&lt;/h2&gt;&#xA;&lt;p&gt;For a hidden vector (x \in \mathbb{R}^d), a common RMSNorm form is&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
