Canonical-basis realignment for Transformer LLMs: every hidden axis becomes independently measurable and controllable.

2 months ago by ☆ Yσɠƚԋσʂ ☆ to c/artificial_intel

Canonical-basis realignment for Transformer LLMs: every hidden axis becomes independently measurable and controllable. - todotge/canonical-basis

The code essentially gives you a way to rotate a Transformer's internal coordinate system into a canonical basis that aligns with its own weight matrices in a lossless way. By absorbing the normalization gains directly into the adjacent weights and using orthogonal matrices built from the singular vectors of the model, you can transform architectures like Qwen or Pythia without altering their outputs or perplexity scores.

Applying this transform reveals the actual hidden geometric structures operating inside the network. Once the model is rotated into this new perspective, you can see its internal mechanisms that were previously opaque. The authors found things like a bipolar oscillator where specific axes form inhibitory pairs that fire against each other in perfect opposition. They also observed a kind of rhythmic respiration across layers where the model alternates between absorbing knowledge and filtering it. On top of that, it exposed a homeostatic defense mechanism that aggressively erases any localized perturbations within just a couple of layers.

Practically speaking, researchers now have a powerful lens for mapping out how models actually do reasoning. For example, it turns out that the effective rank of the correlation matrix in a half billion parameter model might be as low as eleven independent patterns. Reframing how we look at the internal activations of language models provides a standardized way to study their underlying architecture.

Sims 2 points a month ago

"The canonical basis rotates the model so that axis k of the hidden state corresponds to a specific spectral direction of the model's own weight matrices."

Ouch! Some heavy convoluted words for ordinary peeps. I got 'observability' and output 'alignment/control' out of it all, and got a sense of it being important to know, so just dumping a few direct links for the adventurous out there..

https://handwiki.org/wiki/Canonical_basis

The Hidden Geometry of Transformer Weights paper describes the 'spectrum' part. ..sort of.

path: 0 25574062, hotness: undefined, score: 2, children: 0
artificial_intel
login for more options
6611
821
296

Artificial intelligence (AI) is intelligence demonstrated by machines, unlike the natural intelligence displayed by humans and animals, which involves consciousness and emotionality. The distinction between the former and the latter categories is often revealed by the acronym chosen.

go to feed...