Signed-Permutation Coordinate Transport for RMSNorm Transformers

John SweeneyNeurIPS 2026

TL;DR

Modern open-weight LLMs (like Llama and Qwen) use RMSNorm instead of LayerNorm, which gives their internal "residual stream" an overlooked symmetry: you cannot just shuffle coordinate indices without changing the model's output—you can also independently flip the positive/negative sign of every single coordinate. Standard model-merging and neuron-alignment tools ignore these signs, causing transported LoRA adapters, steering vectors, and merged weights to fail catastrophically. Fixing this requires upgrading from simple permutations to signed permutations—and surprisingly simple math solves the problem completely.

What Problem Does This Paper Address?

Suppose you discover that "coordinate 17" in a language model controls refusal behavior, or you train a LoRA adapter or Sparse Autoencoder (SAE) attached to a model's residual stream. Now suppose you want to move that artifact to another checkpoint, merge two models, or verify someone else's interpretability claim.

Neural networks have internal symmetries—called gauges—meaning two checkpoints can compute the exact same input-to-output function while organizing their internal coordinates differently. For instance, coordinate 17 in Checkpoint A might be minus coordinate 203 in Checkpoint B. Standard alignment tools (like Git Re-Basin) assume coordinates only shuffle places (the symmetric group $S_d$). That holds for older LayerNorm models because LayerNorm subtracts the mean across coordinates, locking their relative signs together.

However, modern LLMs overwhelmingly use RMSNorm, which skips mean-centering. Without mean-centering, every coordinate can flip its sign independently! In a 4,096-dimensional model, ignoring signs misses $2^{4096}$ valid configurations. If you align coordinates using permutations alone and omit the signs, positive interventions turn into negative ones, and weight updates suffer expected squared errors twice as large as the updates themselves.

Methods

The author characterizes the exact coordinate-preserving symmetry group of RMSNorm transformers as the hyperoctahedral group ($B_d$), which combines index permutations with independent $\pm 1$ sign flips. Building on this, the paper introduces three core techniques:

  • Sign-Marginalized Hungarian Matching: Standard activation matching pairs up coordinates between two models by maximizing raw correlation. Under $B_d$, a flipped partner is maximally anti-correlated, so standard matching actively avoids the true match! The fix is delightfully simple: run linear assignment (Hungarian matching) on the absolute value of the correlation/covariance matrix ($|C|$), then read off each coordinate's sign from the matched entry.
  • Exact Artifact Transport Laws: The paper derives exact rules for moving artifacts across $B_d$ coordinate changes. Vector directions (steering vectors, LoRA read/write factors, AdamW first moments) permute and flip signs, whereas squared or scale quantities (RMSNorm gains, AdamW second moments, gradient-times-activation attributions) permute without sign flips.
  • Trajectory Parallel Transport: Instead of matching two distant fine-tuned checkpoints directly, the author chains together step-by-step local $B_d$ matches along saved intermediate checkpoints.

Datasets

The paper evaluates across standard NLP/code datasets and introduces a new controlled trajectory benchmark:

  • Standard Datasets: SST-2 (sentiment LoRA), WikiText-103 (activation fitting, language modeling, and held-out causal validation), GSM8K (math), MBPP (code), and AG News & Yelp (fine-tuning merges), plus behavioral prompts for sentiment, sycophancy, and refusal steering.
  • New Gauge-Instrumented Trajectory Benchmark: A controlled 9-run fine-tuning suite (spanning WikiText, code, and math across 3 random seeds) on Qwen2.5-1.5B and Llama-3.2-1B, where a known $B_d$ relabeling is planted at step 0 and checkpoints are saved every 2 steps up to 1,500 steps to test step-wise coordinate tracking.

Key Insights and Ideas

  • The 50% Ceiling of Sign-Blindness: If half the true coordinate signs between two models are negative, standard correlation matching hits a hard mathematical ceiling near 50% accuracy—even with infinite probe data—because it refuses to pair negatively correlated twins. Taking the absolute value immediately restores 100% recovery.
  • Lineage Dictates Strategy in the Wild: When aligning naturally trained checkpoints (not synthetic reparameterizations), model ancestry is everything. Fine-tuned descendants of the same base model (e.g., Base vs. Math/Instruct, or DeepSeek-R1-Distill-Qwen) overwhelmingly keep their inherited coordinate slots—meaning doing nothing (the Identity map) beats fitting noisy alignments!
Table 2: Natural Qwen2.5-1.5B Base/Math artifact transfers. Identity retains inherited slots; Sd, Bd, and O(d) are fitted on WikiText-103 activations. LoRA SST-2 accuracy and steering effect (log-prob margin shift) are higher-is-better; SAE NMSE is lower-is-better.
  • Cross-Generation Sign Flips Are Sparse, Yet Real: Across completely separate pretraining runs (like Qwen2 vs. Qwen2.5), global 1-to-1 coordinate maps fail completely. However, filtering across multiple prompt domains isolates a tiny subset (0.5%–3.1%) of stable coordinates where natural negative sign flips genuinely occur and causally reverse downstream logit interventions.
  • Neuron Names Are Meaningless Without a Gauge: Interpretability audits show that applying an exact $B_d$ symmetry leaves model outputs untouched, yet drops top-$k$ "knowledge neuron" or attribution index overlap to 0/10—proving coordinate indices are only reproducible relative to an explicit gauge.

Key Results

  • Controlled LoRA & Steering Transfer: Under a random $B_d$ reparameterization of Qwen2.5-1.5B, transferring an SST-2 LoRA adapter using $S_d$ (permutation-only) collapses accuracy from 0.945 to 0.523 (matching the unadapted base). Signed $B_d$ transport preserves 0.944 accuracy (99.7% of the adapter's gain). Multi-behavior steering preserves effects to $< 3 \times 10^{-5}$ error.
  • Natural Lineage Tracking: Same-index diagonal matching retains 96.2%–100% of slots across same-base descendants and identifies Qwen2.5-Math-1.5B as the true parent of DeepSeek-R1-Distill-Qwen-1.5B with a 1.000 self-match score.
  • Cross-Generation Causal Validation: On stable negative-sign pairs between Qwen2-1.5B and Qwen2.5-1.5B, $8\sigma$ single-coordinate interventions achieve +0.189 output-logit shift correlation when keeping the negative sign, versus -0.021 when omitting it.
  • Trajectory Transport & Merging: Chaining local $B_d$ maps across 1,500 steps on Qwen2.5-1.5B recovers 91.1% of cross-run coordinates versus 60.3% for direct endpoint matching. In 10M-parameter independent-seed RMSNorm model merges, $B_d$ reduces the loss barrier by 75% (from 1.68 to 0.42), beating $S_d$ by 37% relatively.

Limitations and Future Work

  • No Global Discrete Maps Across Pretraining Runs: Between independently pretrained LLMs, full-space discrete $B_d$ maps fail to generalize ($R^2 < 0$ on held-out activations); dense rotations or ridge regression are required if coordinate mixing is acceptable, while discrete correspondence only holds on tiny (0.5%–3.1%) prompt-stable subsets.
  • Long-Horizon Trajectory Compounding: While step-by-step trajectory composition beats endpoint matching at 200 steps on Llama-3.2-1B (+17.8 points), rare local matching failures compound via group multiplication, causing path recovery to fall slightly behind endpoint matching by 1,500 steps (66.9% vs. 70.3%) while requiring saved intermediate checkpoints and higher compute.
  • Algebraic Optimizer State Scope: The exact $B_d$ transport rules for AdamW optimizer states are proven algebraically (noting potential floating-point kernel and stochastic-rounding discrepancies), without an empirical resumed-training experiment.

Summary updated

BibTeX
@inproceedings{sweeney2026signed,
  author = {John Sweeney},
  title = {{Signed-Permutation Coordinate Transport for RMSNorm Transformers}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=CSyPlMeiph},
}
Figure