<?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="unit-hypersphere-anomaly">
<front>
<article-meta>
<title-group>
<article-title>Milestone 005 — The unit-hypersphere anomaly</article-title>
<alt-title alt-title-type="running-head">The unit-hypersphere anomaly</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 happens when recurrent state keeps direction but discards magnitude?</p>
</abstract>
</article-meta>
</front>
<body>
<p><bold>Research period:</bold> September 1–2, 2026<bold>Historical anchor:</bold> #164</p>
<p>Once phase-aware attention was isolated, I kept it fixed and asked what should happen to the state as it passes repeatedly through the model.</p>
<p>I compared independent depth, shared recurrent computation, recurrence on a unit hypersphere, and a related construction that retained radius. My expectation was that retaining radius would help: magnitude is another quantity the model could use, and normalization explicitly discards it.</p>
<p>The direction-only model finished far ahead. That made the unit constraint worth investigating, particularly because the outcome contradicted the reason I had expected the retained-radius version to work.</p>
<disp-quote>
<p><bold>Sticky note — unit hypersphere:</bold> the set of vectors with length 1. A state on that surface can change direction while its overall magnitude stays fixed.</p>
</disp-quote>
<sec id="sec-1">
<title>Visual intuition</title>
<fig id="figure-1">
<label>Figure 1:</label>
<caption>
<p>Toy normalization: projecting a vector onto the unit circle preserves its direction and removes its scale.</p>
</caption>
<alt-text>Toy vector normalization projects a vector onto the unit circle while preserving its direction.</alt-text>
<graphic mimetype="image" mime-subtype="svg" xlink:href="files/005_unit_hypersphere-c9183af985d35f10d906cdb40d6c27ce.svg"/>
</fig>
</sec>
<sec id="sec-2">
<title>Frozen endpoint</title>
<p>After 128 training updates, validation negative log-likelihood (NLL) per original byte was approximately:</p>
<list list-type="bullet">
<list-item>
<p>depth-1 anchor: <bold>5.1371</bold></p>
</list-item><list-item>
<p>independent depth-3: <bold>5.7188</bold></p>
</list-item><list-item>
<p>shared generic depth-3: <bold>5.1569</bold></p>
</list-item><list-item>
<p>unit-hypersphere depth-3: <bold>3.6584</bold></p>
</list-item><list-item>
<p>retained-radius depth-3: <bold>5.1225</bold></p>
</list-item>
</list>
<p>Lower NLL is better. At this endpoint, the unit model beat the comparable shared recurrent model by about <bold>1.50 nats per byte</bold>. Keeping radius failed to reproduce that improvement.</p>
<p>There was also a complication in the trajectory. The unit model learned more slowly and had worse area under the learning curve (AULC). It finished ahead after spending much of training behind.</p>
<p>That gives us two observations to explain together: a large endpoint advantage, and a worse learning trajectory. A useful account of the unit constraint has to accommodate both.</p>
<disp-quote>
<p><bold>Sticky note — AULC:</bold> area under the learning curve summarizes loss across training. A model can have a better final checkpoint while accumulating worse loss over the trajectory.</p>
</disp-quote>
</sec>
<sec id="sec-3">
<title>Try a small example</title>
<p>The toy vector <monospace>[3, 4]</monospace> makes normalization easy to inspect: its length is 5, and its unit direction is <monospace>[0.6, 0.8]</monospace>.</p>
<p><bold>Saved output:</bold></p>
<code language="text">unit state: [0.6 0.8] norm= 1.0</code>
</sec>
<sec id="sec-4">
<title>Interpretation</title>
<p>The unit constraint changed several things at once: capacity, conditioning, rank dynamics, and optimization. The endpoint gap gave me a reason to study those changes, but it did not select a mechanism among them.</p>
<p>The retained-radius control weakened my initial explanation. Adding magnitude back failed to preserve the effect. I next needed to check the full learning trajectories and compare against a Cartesian model with matched regularization: could those account for the advantage?</p>
</sec>
<sec id="sec-5">
<title>Later Muon comparison</title>
<p>A later three-seed comparison tested Muon on <monospace>unit_hypersphere_depth3</monospace>, using <bold>frozen historical AdamW</bold> results as the reference. Learning-curve area favored AdamW; final NLL favored Muon. The reviewed outcome was <bold>mixed/inconclusive</bold>, with the two measures favoring different optimizers.</p>
<p><ext-link ext-link-type="uri" xlink:href="https://experiments.tyharbin.com/experiments/muon-unit-hypersphere-depth3-multiseed-v1-final-87409154/">Inspect the finalized Muon multi-seed package</ext-link>. That package tests optimizer behavior on this model condition. The #164 comparison above tests the choice of recurrent topology.</p>
</sec>
<sec id="sec-6">
<title>Sources and chronology</title>
<list list-type="bullet">
<list-item>
<p><ext-link ext-link-type="uri" xlink:href="/005_unit_hypersphere-ea86a9d5ee305654d3b20591b594b18e.ipynb">Milestone notebook 005 — 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>Unit-sphere normalization</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="/endpoint-can-mislead"><bold>Milestone 006 — A dramatic endpoint can still mislead</bold></ext-link>.</p>
</sec>
</body>
</article>
