Deep networks are full of normalization layers, small operations that rescale activations, and nobody fully agrees on why they help. Competing accounts credit them with reshaping the optimization landscape, preventing representations from collapsing, or confining features to a sphere. Separately, many applied papers throw away a network's final linear layer. They freeze the network, extract its features, and train a classical classifier on them instead: gradient-boosted trees, a random forest, or a kernel support vector machine (SVM). These "hybrid" pipelines often win in small-data settings. No one has asked how the network's normalization layers shape the features those classical classifiers receive.
The connection is useful in both directions because different classifiers ignore different things. Decision trees ignore any monotone rescaling of an individual feature. Kernel SVMs ignore rotations. Logistic regression ignores invertible linear maps. Each classifier is therefore a probe that is blind to one kind of change and sensitive to the rest. This proposal uses those blind spots to answer a question the normalization literature has not managed to separate cleanly. When normalization helps, is it because of the geometry it imposes on the output features, or because of how it changed training? In return, hybrid-pipeline practitioners get a principled answer to which features, and which normalizer, to feed a tree.
Core Claim
Two normalizers already exist that look identical to a standard softmax head but look completely different to a tree. Transformers without Normalization replaces Layer Normalization (LayerNorm) with Dynamic Tanh, a per-coordinate squashing function $\mathrm{DyT}(x)=\gamma\tanh(\alpha x)+\beta$, and reports 82.5% versus 82.3% ImageNet top-1 for ViT-B. End-to-end linear evaluation cannot tell them apart.
The two layers differ sharply in what they do at the output. Dynamic Tanh is strictly monotone in each coordinate whenever $\alpha>0$ and $\gamma_i\neq0$, so a tree trained on features after a final Dynamic Tanh makes the same splits as a tree trained on the features before it. This holds exactly for exact-greedy splitting, and also for quantile-binned splitting. As a readout operation, Dynamic Tanh is invisible to trees.
LayerNorm is different. Following the decomposition in Geometry and Dynamics of LayerNorm, it can be written as
$$\mathrm{LN}(x)=\gamma\odot\frac{x-\bar{x}\mathbf{1}}{\sigma(x)}+\beta,$$
where $x\in\mathbb{R}^N$ is one sample's feature vector, $\bar{x}$ and $\sigma(x)$ are its mean and standard deviation across coordinates, $\mathbf{1}$ is the all-ones vector, and $\gamma,\beta$ are learned per-coordinate gains and shifts. For a tree, the $\gamma,\beta$ part is irrelevant. What remains is a per-sample centering and division by the sample's own spread. That step mixes every coordinate into every other, and it is the only part of LayerNorm a tree can detect.
LayerNorm and Dynamic Tanh also differ in the training signal they create. Without its gains, LayerNorm commutes with every rotation that fixes $\mathbf{1}$. Dynamic Tanh commutes only with permutations and sign flips. So Dynamic Tanh singles out the coordinate axes more strongly during training than LayerNorm does.
Our central hypothesis follows. Backbones trained with element-wise normalization produce features that are more axis-aligned: class information sits in individual coordinates rather than in rotated combinations. Trees exploit exactly that kind of structure. We further hypothesize that LayerNorm's per-sample projection at the readout costs trees accuracy in the low-data regime, where hybrid pipelines are actually used. The method that makes the hypothesis testable is a factorial design. It crosses the normalizer used during training with the geometry applied at readout, and reads each cell out through heads with known invariances. That lets us attribute any accuracy gap either to output geometry or to training dynamics.
Research Program
Backbones. The first component is a matched set of backbones that differ only in normalization. For transformers we train ViT-S/ViT-B with LayerNorm and with Dynamic Tanh, following the recipe in Transformers without Normalization. For convolutional networks we use ConvNeXt-Tiny, which natively uses LayerNorm and is the backbone of the strongest hybrid result in the file, together with a Dynamic Tanh variant. ResNet-18 provides a Batch Normalization reference. Dynamic Tanh is reported to struggle as a Batch Normalization replacement in ResNet-50, so we compare against Batch Normalization rather than swapping it out, and we report Dynamic Tanh's convolutional-network results with that caveat attached.
Readouts. For each trained backbone we extract features at the final pooled layer in four forms. These are pre-normalization, post-normalization as trained, and two swapped readouts: LayerNorm's per-sample projection applied to features from a Dynamic Tanh-trained model, and that projection removed from a LayerNorm-trained model. Together they form the two-by-two of training normalizer by readout geometry.
Heads. Each readout feeds four heads: XGBoost, a random forest, an RBF-kernel SVM, and L2-regularized logistic regression. We also run each tree head on a randomly rotated copy of the same features. The difference between rotated and unrotated tree accuracy defines a "rotation sensitivity" score, which directly measures how axis-aligned the representation is. We expect logistic regression to be nearly blind to rotation and trees not to be. The rotation sensitivity of features from LayerNorm-trained and Dynamic Tanh-trained models is therefore the quantity the central hypothesis is about.
Training trajectory (secondary). We save checkpoints through the late phase of training after the training set is fit perfectly. Understanding the Generalization Benefit of Normalization Layers: Sharpness Reduction shows that in this phase, test accuracy keeps climbing on CIFAR-10 from about 69% to about 84% after 100% training accuracy. It attributes the gain to a drift toward flatter minima driven by weight decay on scale-invariant weights. That gain is measured for the network's own linear head. Re-fitting each frozen head on these checkpoints asks whether the late-phase improvement transfers to trees, or whether it reflects movement that only a linear readout can use.
How this relates to prior work
Several lines of work motivate the proposal by showing that normalization reshapes representation geometry. Spherical Perspective on Learning with Batch Norm recasts optimization of scale-invariant weights as adaptive steps on a hypersphere. Batch Normalization Provably Avoids Rank Collapse for Randomly Initialised Deep Networks proves a $\Omega(\sqrt{d})$ rank floor, where $d$ is network width, for deep linear networks. Geometry and Dynamics of LayerNorm confines LayerNorm outputs to a hyperellipsoid. All three judge representations through end-to-end loss or linear probes. We instead judge them through heads with different invariance groups, which is what allows geometry and dynamics to be separated.
Deconstructing the Regularization of BatchNorm supplies the constraint we design around. It argues that the initialization, optimization, and regularization effects of normalization are entangled. Our factorial does not try to untangle all of them. It isolates one boundary: what is attributable to the readout's geometry versus everything upstream.
On the hybrid side, Reliable Dental Radiograph Diagnosis via Calibrated Hybrid Representation Learning trains logistic regression, random forests, and SVMs on frozen ConvNeXt-Tiny features. A Novel Protein Subcellular Localization Method With CNN-XGBoost Model for Alzheimer's Disease and Deep Learning for Hate Speech Detection in Tweets feed network features into boosted trees. Object Recognition from very few Training Examples for Enhancing Bicycle Maps works with roughly 15 examples per class. These papers supply the hybrid recipe and the low-data regime. Every one of them treats the backbone's normalization as fixed and unexamined, and that is the variable we manipulate.
Baselines
Do nothing. The naive reference is current practice: take the post-normalization pooled features of an off-the-shelf LayerNorm backbone and fit each head with default hyperparameters. Every other condition is reported as a difference from this.
Strongest existing hybrid result. The strongest existing hybrid method in the file is the ConvNeXt-Tiny plus logistic regression pipeline of Reliable Dental Radiograph Diagnosis via Calibrated Hybrid Representation Learning. On DentIRO it reports 99.1% accuracy, 98.6% macro-F1, and expected calibration error (ECE) below 0.009 on a patient-level locked test split. That figure is close to ceiling. We therefore treat DentIRO mainly as a check that our reimplementation reproduces the result, and we evaluate the hypothesis on subsampled training sets of 15, 50, and 200 examples per class, where differences can show.
Strongest end-to-end reference. The end-to-end competitor is the same backbone fine-tuned with a softmax head under identical data and an identical tuning budget. For CIFAR-100, the file reports 76.15% for ResNet-18 trained with geometry-corrected Adam, from Spherical Perspective on Learning with Batch Norm, as an end-to-end anchor. On text, the reference is the LSTM-plus-boosted-trees result of Deep Learning for Hate Speech Detection in Tweets, which reports 0.930 F1 under 10-fold cross-validation. There we add LayerNorm-LSTM and Dynamic-Tanh-LSTM variants.
Fair comparison protocol. All heads receive the same features, the same cross-validated hyperparameter grid of equal size per head, and five seeds for each backbone. Backbones within a pair share the training recipe and compute.
Ablations isolating the key ingredient. The readout swap separates per-sample projection from training dynamics. The rotation control separates axis-alignment from overall information content. Post-hoc preprocessing, consisting of standardization, quantile transforms, and PCA whitening, tests whether a simple feature transform achieves the same effect.
What counts as beating standard practice. A condition beats current practice if it improves tree-head macro-F1 by more than the seed-to-seed 95% interval, at 15 examples per class, on at least three of the four testbeds.
Why not just…?
Why not just preprocess the extracted features (standardize, quantile-transform, whiten) and forget about the backbone? Per-coordinate preprocessing is provably useless for trees, for the same monotonicity reason given above, so it cannot undo LayerNorm's cross-coordinate projection. Whitening is a rotation, which trees do notice. It could make results better or worse, and we include it as a cell in the design. If whitening the features of a LayerNorm-trained model recovers the tree accuracy of a Dynamic Tanh-trained model, the training-dynamics half of our hypothesis is wrong. We would then report that the cheap fix suffices.
Why not just use a linear probe, since it is the standard frozen-feature baseline? For logistic regression, LayerNorm's gains and shifts and any invertible linear transform are, up to regularization, irrelevant. A linear probe is close to blind to the very differences we study. The near-identical ImageNet results for LayerNorm and Dynamic Tanh in Transformers without Normalization already suggest that linear readouts will not tell the normalizers apart. The probe is included as the head that should show no effect. If it does show one, our invariance reasoning is incomplete.
Why not just fine-tune end-to-end? In the small-data settings that motivate hybrid pipelines, the file's evidence favors frozen features plus a classical head: the hate-speech and dental results and the 15-per-class bicycle study. That evidence comes from papers that did not equalize tuning budgets. We therefore run end-to-end fine-tuning under matched compute. If it dominates trees at every training-set size, the practical half of the proposal shrinks. The mechanistic half, using heads as invariance probes, still stands.
Proposed Experiments and Decisive Checks
Testbeds. We use CIFAR-100 with 15 to 200 examples per class, an ImageNet-1K pair for ViT-B if compute allows (ViT-S otherwise), DentIRO with subsampled training sets, and the Twitter hate-speech data. Hum-mPloc 3.0 is an optional fifth testbed, comparing a 1D convolutional network with and without Batch Normalization against the reported 0.78 accuracy and 0.80 F1. Metrics are accuracy, macro-F1, ECE, rotation sensitivity, and the number of tree leaves needed to reach a fixed training loss, which serves as a direct measure of how hard the features are to split.
Check 1: invariance sanity. XGBoost on features before and after a final Dynamic Tanh must give identical predictions up to binning. If it does not, the measurement tool is broken.
Check 2: the factorial. If swapping the readout geometry moves tree accuracy while the training normalizer does not, normalization's relevance to trees is purely geometric. If the reverse holds, it lives in training dynamics, and that becomes a new handle on the normalization debate.
Check 3: the central hypothesis. It is confirmed only if three things hold together: Dynamic Tanh-trained features have higher rotation sensitivity than LayerNorm-trained features, they need fewer leaves, and these differences persist after the readouts are equalized. The hypothesis is refuted if rotation sensitivity is indistinguishable across normalizers on every testbed.
Check 4: the late-training phase. We plot tree, SVM, and linear-probe accuracy across checkpoints after the training set is fit. Divergent curves would show that the sharpness-reduction gains reported for end-to-end heads help some readouts and not others.
References
- Transformers without Normalization
- Geometry and Dynamics of LayerNorm
- Understanding the Generalization Benefit of Normalization Layers: Sharpness Reduction
- Spherical perspective on learning with normalization layers
- Theoretical Understanding of Batch-normalization: A Markov Chain Perspective.
- Deconstructing the Regularization of BatchNorm
- Reliable Dental Radiograph Diagnosis via Calibrated Hybrid Representation Learning
- A Novel Protein Subcellular Localization Method With CNN-XGBoost Model for Alzheimer's Disease
- Deep Learning for Hate Speech Detection in Tweets
- Object Recognition from very few Training Examples for Enhancing Bicycle Maps