TJHG / research

RESEARCH ARTICLE · 2026-09-29

Milestone 007 — Derive before training

Research period: September 2–3, 2026 and later formal hardening
Historical anchors: #196, #199, #200, #252

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.

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.

Formal checkpoint: for a nonzero vector x, normalization is N(x) = x / ||x||. If u = x / ||x||, its derivative is

DN_x = (1 / ||x||)(I - uuᵀ)

The checked version is available in the public Theorem Library normalization proof.

Visual intuition

At a nonzero point, normalization removes first-order radial change and rescales tangent change.

Figure 1:At a nonzero input, the derivative of normalization removes radial change and rescales tangent change.

MODEL VIEW / NORMALIZATION / HYPERSPHERE

Inspect the model behind this question.

Generate with the shared trained research byte LM and inspect its recorded activations. Article context highlights the relevant subsystem. This common baseline does not reproduce this article's experimental intervention.

Output

waiting for input

machine ready

Static architecture display

Radial and tangent directions

The matrix I - uuᵀ projects away the component parallel to u. That gives us two local cases.

Change only the magnitude of x, and the normalized direction stays fixed to first order: the radial derivative is zero. Change x perpendicular to its radius, and the perturbation survives with scale 1 / ||x||. At unit radius, its tangent component is preserved to first order.

Sticky note — tangent direction: at a point on a sphere, a tangent direction is perpendicular to the radius. It describes local movement along the surface.

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.

Try a small example

A two-dimensional example separates radial and tangent perturbations. Try changing the point and perturbation vectors.

Run and edit this example in your browser.

Saved output:

radial derivative: [-8.39328607e-18 -1.45217172e-17]
tangent gain: 0.2

What this changed

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.

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.

The workflow became:

hypothesis → derivation / theorem boundary → surviving empirical question → experiment

Each step tells us what the next one still needs to establish.

Research context

Normalized Transformer states and hyperspherical optimization already appear in work such as nGPT. That literature provided constructions to compare against and helped locate the mathematical questions in this project.

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.

Interpretation

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.

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.

Public formal sources

These pinned sources state the assumptions and checked mathematical conclusions.

Sources and chronology

The matching Atlas theme is Normalization derivative. The earlier Visual Intuition Atlas notebook preserves the source visualization.

The next chronological article is Milestone 008 — What does the sphere actually do?.