Covariance-Aware Weight Standardization

Batch normalization rescales each layer's outputs using the mean and variance of the current mini-batch. It stops working when only one or two examples fit on a GPU, as in 3D medical volumes or high-resolution segmentation. The batch-independent replacements trade one problem for another. Group normalization computes statistics inside each sample, which erases conditioning signals and leaves dead units. Weight standardization rescales the filters assuming the layer's input is white noise, so its guarantees hold only at initialization. Online normalization tracks running output statistics that go stale as the weights move. We propose a fourth option. Each layer keeps a running estimate of the mean and covariance of its input. It then computes its output mean and variance exactly, as a function of the current weights, and normalizes the filter itself with those numbers. The normalization tracks the weights at every step, gradients flow through it, nothing is computed across the batch, and at inference it folds into the convolution at zero cost.

This also gives internal covariate shift, meaning the drift in a layer's input distribution as earlier layers train, a concrete and testable role. We do not claim that reducing it helps optimization. How Does Batch Normalization Help Optimization? showed that batch normalization does not reduce it and works by smoothing the loss instead. CDF Normalization showed that pinning activations to an exact Gaussian hurts accuracy. Our claim is narrower: input drift is the only error term in our estimator. Running-output-statistics methods carry that term plus a second one from the layer's own weight change, and the second term should dominate at high learning rates.

Core Claim

Consider a convolution with filter $w$ acting on input patches $x$. Let $\mu_x$ and $\Sigma_x$ be running estimates of the patch mean and covariance, updated by exponential moving average from whatever examples pass through, down to one per step. The output mean $w^\top\mu_x$ and variance $w^\top\Sigma_x w$ are exact functions of the current filter. We therefore use the normalized filter and bias

$$ \hat w = \gamma\,\frac{w}{\sqrt{w^\top \Sigma_x w + \epsilon}}, \qquad \hat b = \beta - \hat w^\top \mu_x , $$

where $\gamma,\beta$ are the usual learned scale and shift and $\epsilon$ is a small constant. The input statistics $\mu_x$ and $\Sigma_x$ are treated as constants in the backward pass, while gradients flow through $w$.

This formula connects to existing methods in two ways. Setting $\Sigma_x$ to the identity and $\mu_x$ to a constant vector recovers weight standardization, the scaled form used in Characterizing signal propagation to close the performance gap in unnormalized ResNets. Our method is therefore that approach made data-aware and kept valid throughout training rather than only at initialization. Replacing the predicted moments with the true moments of the current batch recovers batch normalization at large batch size.

The file flags a specific open problem for distribution-fixing normalizers that use stored statistics: the optimizer updates weights without anticipating the normalization step, and the two fight each other (CDF Normalization). Here the normalization is a differentiable function of $w$, so that conflict does not arise. Because only two moments are fixed, the representational flexibility that CDF normalization destroyed is preserved.

Two further properties follow. A conditioning signal added uniformly across space is not subtracted out, because the subtracted mean is a population quantity, not a per-sample spatial mean. That per-sample subtraction is exactly the erasure Disappearance of Timestep Embedding identified in group and instance normalization. In addition, each sample's forward pass does not depend on its batch-mates.

Research Program

The first piece is the operator itself, which needs a cheap representation of the covariance. A 3×3 convolution over 256 channels has 2304-dimensional patches. A full covariance then costs, per layer per step, roughly as much as one sample's forward pass, independent of batch size. We will compare four structures for $\Sigma_x$:

  • the identity, which is plain weight standardization;
  • a diagonal;
  • a Kronecker product of a channel covariance and a small spatial covariance;
  • the full matrix.

This ladder is also the central ablation, because it isolates how much of any gain comes from data-awareness.

The second piece is an analysis of estimator error. At each step we record two errors on held-out probe batches. The first is the gap between predicted and true output moments for our method. The second is the same gap for an exponential moving average of output statistics, the approach behind Online Normalization. We split the latter into input drift and own-weight drift and track both against learning rate and depth. We predict that our error stays bounded by input drift alone, while the moving-average error grows with the learning rate times gradient norm. This is where internal covariate shift enters as something measured rather than asserted.

The third piece tests whether exact, weight-tracking variance control addresses the high-learning-rate collapse that Characterizing signal propagation reports for normalizer-free ResNets beyond roughly 200–288 layers. A related failure is reported by Weight and Gradient Centralization for deep residual nets once batch normalization is removed. Our operator bounds each layer's output variance at the current weights, whereas those methods bound it only under a white-input assumption. That makes it a plausible fix, but not a guaranteed one: residual branches can still accumulate variance, so we keep the residual scaling from the normalizer-free work.

Limitations stated upfront: the running statistics aggregate information across past examples. The method is therefore not automatically differentially private, unlike the per-window Kernel Normalized Convolutional Networks, and we make no privacy claim. The method also inherits a decay-rate hyperparameter.

Baselines

Unnormalized network (naive reference). The naive reference is a plain unnormalized network. Constrained Weight Optimization reports 73.76% ImageNet top-1 for this setting and 75.15% for its own projected-gradient method. That method constrains weights onto zero-mean spheres and injects Gaussian noise. We include it because it is the closest weight-space competitor that also removes activation normalization.

Strongest small-batch result. The strongest existing small-batch method is group normalization combined with weight standardization, from Weight Standardization. It reports 23.72% ImageNet top-1 error for ResNet-50 at batch size 1, against 24.30% for batch normalization at batch size 64, and Mask R-CNN AP rising from 39.8 to 40.8 on COCO. It is the bar for accuracy.

Normalizer-free family. The strongest activation-normalization-free baseline is Scaled Weight Standardization, from Characterizing signal propagation. It reports 69.9% ImageNet top-1 for NF-ResNet-50 at batch size 4, against 55.7% for batch normalization. It is the identity-covariance rung of our ablation run as an independent baseline. We also run it with adaptive gradient clipping, as in FedWon.

Running-statistics family. Online Normalization reports 76.3% against 76.4% for batch normalization on ResNet-50. Population Normalization learns statistics as parameters; it reports 64.38% on CIFAR-10 at batch size 1.

CIFAR-100 reference points. Constrained weight optimization reports 15.12% error at batch size 4, against roughly 18% for batch normalization. Kernel normalization reports about 79% accuracy at batch size 2, against about 72% for batch normalization.

Fairness protocol. We reimplement every baseline in one codebase rather than relying only on quoted numbers. All methods share the same data pipeline, epochs, augmentation and regularization. Each method gets an identical learning-rate and weight-decay sweep of the same size. Online normalization's two decay factors and our single decay factor come out of that same budget.

What counts as beating them. On accuracy at batch sizes 1–4, matching group normalization plus weight standardization within noise counts as success. Beyond that, the method must deliver what it cannot: zero-overhead inference by folding, preserved conditioning signals, and stable training at depths and learning rates where Scaled Weight Standardization diverges. Beating Scaled Weight Standardization and online normalization outright is required.

Why not just…?

Why not just use group normalization with weight standardization? It already beats large-batch batch normalization on ImageNet at batch size 1, so it is a real threat on raw accuracy, and we do not assume we will surpass it there. Its costs lie elsewhere. It computes per-sample statistics at inference, so it cannot fold into the weights. It subtracts per-sample spatial means, which erases uniform conditioning; Disappearance of Timestep Embedding reports DDPM FID worsening to 3.238 under such normalization, against 3.074 after fixes. It also pools over the whole image, which Local Context Normalization links to losses in dense prediction (75.08% Cityscapes mIoU for group normalization versus 77.49% for local context normalization). If our method merely ties on ImageNet and Cityscapes while removing inference cost and fixing the DDPM case, that is the contribution. If it loses on accuracy by more than about half a point, we say so.

Why not just keep a running average of output statistics, as online normalization does? That is the most direct competitor. The argument for our design is that output averages lag the layer's own weight change, whereas predicted moments do not. This is checkable in the error-decomposition experiment and in the learning-rate sweep. If online normalization's error is not dominated by own-weight drift at practical learning rates, our advantage reduces to folding and simpler gradients, and we will report it that way.

Why not just use Scaled Weight Standardization with gradient clipping? It is cheaper and needs no statistics. Our ablation answers this directly: if diagonal or Kronecker covariance gives no gain over identity covariance at matched tuning, in accuracy or in maximum stable learning rate at 200+ layers, then data-awareness buys nothing and the idea should be dropped.

Proposed Experiments

CIFAR-100. We first train ResNet-18 on CIFAR-100 at batch sizes 1, 2, 4 and 64 across the four covariance structures and all baselines, reporting error over three seeds. This establishes the covariance ladder and the small-batch comparison against the quoted 15.12% and ~79% results.

ImageNet. We then train ResNet-50 on ImageNet at batch sizes 1, 4 and 32 against group normalization plus weight standardization, normalizer-free ResNet, online normalization and batch normalization. We report top-1, wall-clock training time and inference latency; for reference, kernel normalization's 1.6× slowdown shows how much overhead practitioners will accept.

Depth stress test. We train normalizer-free-style ResNets at 50, 101, 200 and 288 layers on ImageNet. For each, we sweep the learning rate upward and record the largest rate that trains without divergence for our method versus Scaled Weight Standardization with clipping. This is the decisive test of whether weight-tracking variance control helps beyond initialization.

Conditioning test. We train the CIFAR-10 DDPM from Disappearance of Timestep Embedding with our operator replacing group normalization, without positional-embedding fixes. We compare FID and Inception Score to its reported 3.238/3.074 FID and 9.507/9.603 IS, and probe directly whether the timestep signal survives each normalization layer.

Dense prediction. If the classification results hold, Cityscapes segmentation at per-GPU batch size 2 checks the spatial-washing claim against the quoted local-context and batch-normalization numbers.

Decisive checks. Throughout, the estimator-error logs from the research program test the central mechanism. Our moment-prediction error should track measured input drift and stay flat as the learning rate rises, while online normalization's error should grow. If that relation fails, the explanation for any accuracy gain is wrong even if the gain is real.