<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Archiving and Interchange DTD with MathML3 v1.3 20210610//EN" "http://jats.nlm.nih.gov/publishing/1.3/JATS-archivearticle1-3-mathml3.dtd">
<article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ali="http://www.niso.org/schemas/ali/1.0/" dtd-version="1.3" xml:lang="en" id="derive-before-training">
<front>
<article-meta>
<title-group>
<article-title>Milestone 007 — Derive before training</article-title>
<alt-title alt-title-type="running-head">Derive before training</alt-title>
</title-group>
<contrib-group>
<contrib contrib-type="author">
<name name-style="western"><surname>J.H.G.</surname><given-names>Tyler</given-names></name>
</contrib>
</contrib-group>
<abstract>
<p>What can we prove about normalization before spending compute?</p>
</abstract>
</article-meta>
</front>
<body>
<p><bold>Research period:</bold> September 2–3, 2026 and later formal hardening<bold>Historical anchors:</bold> #196, #199, #200, #252</p>
<p>The unit constraint left several possible mechanisms open. It could remove an unhelpful magnitude channel, change optimization, suppress a shortcut, preserve some directions while contracting others, or alter recurrent dynamics. Training a new model for each possibility would be an expensive way to discover which premises were already mathematically false.</p>
<p>I started deriving the mechanisms first. If an explanation requires normalization to behave a particular way, we can establish that behavior before asking what the trained model does with it. The remaining experiment then has a more precise job.</p>
<disp-quote>
<p><bold>Formal checkpoint:</bold> for a nonzero vector <monospace>x</monospace>, normalization is <monospace>N(x) = x / ||x||</monospace>. If <monospace>u = x / ||x||</monospace>, its derivative is</p>
<p><monospace>DN_x = (1 / ||x||)(I - uuᵀ)</monospace></p>
<p>The checked version is available in the public <ext-link ext-link-type="uri" xlink:href="https://github.com/pH34r-pH/theorem-library/blob/2c90ec3d482a64a5bce5787f48c5828429c50305/TheoremLibrary/Geometry/Sphere/Normalization.lean">Theorem Library normalization proof</ext-link>.</p>
</disp-quote>
<sec id="sec-1">
<title>Visual intuition</title>
<fig id="figure-1">
<label>Figure 1:</label>
<caption>
<p>At a nonzero input, the derivative of normalization removes radial change and rescales tangent change.</p>
</caption>
<alt-text>At a nonzero point, normalization removes first-order radial change and rescales tangent change.</alt-text>
<graphic mimetype="image" mime-subtype="svg" xlink:href="files/007_derive_before_tr-cbb96e1cbdedb63a6afa707bf1b52cb9.svg"/>
</fig>
</sec>
<sec id="sec-2">
<title>Radial and tangent directions</title>
<p>The matrix <monospace>I - uuᵀ</monospace> projects away the component parallel to <monospace>u</monospace>. That gives us two local cases.</p>
<p>Change only the magnitude of <monospace>x</monospace>, and the normalized direction stays fixed to first order: the radial derivative is zero. Change <monospace>x</monospace> perpendicular to its radius, and the perturbation survives with scale <monospace>1 / ||x||</monospace>. At unit radius, its tangent component is preserved to first order.</p>
<disp-quote>
<p><bold>Sticky note — tangent direction:</bold> at a point on a sphere, a tangent direction is perpendicular to the radius. It describes local movement along the surface.</p>
</disp-quote>
<p>This establishes exactly how normalization acts on small perturbations. We still have to identify what those perturbations carry in the model: a geometric direction acquires a task-specific meaning through the representation and data.</p>
</sec>
<sec id="sec-3">
<title>Try a small example</title>
<p>A two-dimensional example separates radial and tangent perturbations. Try changing the point and perturbation vectors.</p>
<p><bold>Saved output:</bold></p>
<code language="text">radial derivative: [-8.39328607e-18 -1.45217172e-17]
tangent gain: 0.2</code>
</sec>
<sec id="sec-4">
<title>What this changed</title>
<p>Suppose our explanation is that magnitude carries nuisance variation while direction carries useful information. The derivative establishes the local removal of radial variation. To complete the explanation, we also need to measure whether radial variation is nuisance and whether tangent variation carries the relevant task distinctions.</p>
<p>Writing the argument this way separates its premises. Some can be derived, some need an experiment, and some may turn out to be inconsistent with the construction. A proof or counterexample can then remove a branch before we build a model for it.</p>
<p>The workflow became:</p>
<p><monospace>hypothesis → derivation / theorem boundary → surviving empirical question → experiment</monospace></p>
<p>Each step tells us what the next one still needs to establish.</p>
</sec>
<sec id="sec-5">
<title>Research context</title>
<p>Normalized Transformer states and hyperspherical optimization already appear in work such as <bold>nGPT</bold>. That literature provided constructions to compare against and helped locate the mathematical questions in this project.</p>
<p>My immediate question concerned the mechanism behind the measurements I already had: which effects follow from normalization itself, and which depend on this trained representation? Existing work supplies part of the first answer; the formal calculation makes the local constraint explicit, leaving the task-dependent premises for measurement.</p>
</sec>
<sec id="sec-6">
<title>Interpretation</title>
<p>The derivative establishes a local, first-order effect: radial perturbations vanish, and tangent perturbations scale by inverse radius. Whether either direction carries useful task information depends on the trained model.</p>
<p>Recurrence adds another question. After several nonlinear updates, what survives from a perturbation introduced at the beginning? That required finite-horizon diagnostics on the frozen model.</p>
</sec>
<sec id="sec-7">
<title>Public formal sources</title>
<list list-type="bullet">
<list-item>
<p><ext-link ext-link-type="uri" xlink:href="https://github.com/pH34r-pH/theorem-library/blob/2c90ec3d482a64a5bce5787f48c5828429c50305/TheoremLibrary/Geometry/Sphere/Normalization.lean">Normalization</ext-link></p>
</list-item><list-item>
<p><ext-link ext-link-type="uri" xlink:href="https://github.com/pH34r-pH/theorem-library/blob/2c90ec3d482a64a5bce5787f48c5828429c50305/TheoremLibrary/Geometry/Sphere/NormalizationSpectrum.lean">NormalizationSpectrum</ext-link></p>
</list-item>
</list>
<p>These pinned sources state the assumptions and checked mathematical conclusions.</p>
</sec>
<sec id="sec-8">
<title>Sources and chronology</title>
<list list-type="bullet">
<list-item>
<p><ext-link ext-link-type="uri" xlink:href="/007_derive_before_tr-365bdf8f7980338de29af5c583f11b89.ipynb">Milestone notebook 007 — preserved chronological source</ext-link></p>
</list-item><list-item>
<p><ext-link ext-link-type="uri" xlink:href="/CHRONOLOGY-c44699630c509412a185b50c4052ecff.md">Research chronology</ext-link></p>
</list-item><list-item>
<p><ext-link ext-link-type="uri" xlink:href="/PUBLICATION-DISPOSIT-ca92c58fa95c5140508067c133de8902.md">Publication dispositions and Atlas-to-article map</ext-link></p>
</list-item>
</list>
<p>The matching Atlas theme is <bold>Normalization derivative</bold>. The earlier <ext-link ext-link-type="uri" xlink:href="/visual_intuition_atl-7d52f7eebe131adc961ab312f8fe0b63.ipynb">Visual Intuition Atlas notebook</ext-link> preserves the source visualization.</p>
<p>The next chronological article is <ext-link ext-link-type="uri" xlink:href="/frozen-mechanism-tests"><bold>Milestone 008 — What does the sphere actually do?</bold></ext-link>.</p>
</sec>
</body>
</article>
