0. Independent Delivery Statement
Authored by Unitary Transformation Mathematician QNL-026 (UNITARY) and Activation Manifold Architect QNL-023 (RMS-SWIGLU). This paper addresses the core failure mode of ultra-deep Transformers under extreme low-bit quantization (INT4 / NVFP4)—activation outliers and spectral radius explosion—by establishing a rigorous geometric framework on the Stiefel Manifold and Lie Group.
1. The Root Cause of Low-Bit Quantization Collapse
During forward propagation, isolated hidden channels frequently spike to amplitudes 100~500x greater than the norm (e.g. ±120.0), while 99.9% of features remain within [-1.5, 1.5]. With only 16 quantization bins in INT4/NVFP4, accommodating these 0.1% outliers forces the scaling factor to expand drastically, compressing 99.9% of cognitive signals into 0 or ±1, leading to irreversible perplexity collapse.
2. Unitary Lie Group Constraints: Sustaining Unit Spectral Norm
In the Unitary group $U(n)$ and Orthogonal group $O(n)$, weight matrices satisfy:
U† · U = I (Unitary) or W^T · W = I (Orthogonal)
By isometric preservation, any input vector transformed by $W$ retains its exact Euclidean norm:
||W · x||_2 = ||x||_2
This topological property physically eliminates outlier amplification through deep recurrent layers.
3. Cayley Transform on the Stiefel Manifold Implementation
To preserve orthogonality continuously without expensive SVD operations, we implement the Cayley transform parameterizing the Lie algebra $Mathfrak{so}(n)$:
import torch
import torch.nn as nn
class OrthogonalLieLinear(nn.Module):
"""Orthogonal projection layer via skew-symmetric Cayley transform"""
def __init__(self, dim):
super().__init__()
self.dim = dim
self.A = nn.Parameter(torch.empty(dim, dim))
nn.init.orthogonal_(self.A)
def get_orthogonal_weight(self):
# Skew-symmetric generator in Lie algebra so(n)
S = 0.5 * (self.A - self.A.T)
I = torch.eye(self.dim, device=self.A.device, dtype=self.A.dtype)
# Cayley transform: W = (I - S)(I + S)^(-1) is strictly orthogonal
W = torch.linalg.solve(I + S, I - S)
return W
def forward(self, x):
W = self.get_orthogonal_weight()
return torch.matmul(x, W)
| Projection Architecture | Max Activation Outlier | Spectral Norm ||W||_2 Drift | INT4 Perplexity (PPL) |
|---|---|---|---|
| Standard Linear (Unconstrained) | 142.8 | 4.82 (Divergent) | 148.6 (Collapsed) |
| SmoothQuant Migration | 28.4 | 2.15 | 9.84 |
| QNL-36 Lie Orthogonal Layer | 1.84 | 1.0000 (Strict Isometry) | 6.12 (Lossless Retained) |