Kernel Inspired Router with Normalization (KERN)
- The paper introduces KERN, a zero-additional-cost MoE router that replaces Softmax with linear projection, ℓ2 normalization, ReLU, and top-k masking, reframing routing as kernel regression.
- KERN leverages Nadaraya–Watson kernel regression by interpreting router outputs as kernel weights, thereby generalizing FFN-style activations for expert dispatch.
- Empirical evaluations demonstrate that KERN achieves lower validation losses and higher accuracy across benchmarks while promoting balanced expert participation.
Searching arXiv for the KERN paper and closely related normalization/kernel-routing papers. Kernel Inspired Router with Normalization (KERN) is a zero-additional-cost FFN-style router function for mixture-of-experts (MoE) layers that replaces the standard router with a linear projection, normalization, , a learnable global scale, and standard top- masking. Its central claim is that the standard use of in MoE routing is mostly a convention, not a necessity derived from first principles. By reinterpreting MoE through the lens of Nadaraya–Watson (NW) kernel regression, KERN treats router outputs as kernel weights rather than as a mandatory projection onto the probability simplex. The paper further states that KERN generalizes both - and -based routers, and recommends the use of activation and -normalization in the KERN router function (Zheng et al., 30 Sep 2025).
1. Conceptual basis in Nadaraya–Watson regression
A standard MoE layer is written as
where 0 is expert 1’s output and 2 is the router weight. With a 3 router,
4
The paper observes that this has the same mathematical form as Nadaraya–Watson regression, whose estimator is
5
Under the correspondence
6
MoE is exactly
7
with
8
This reframing is the conceptual core of KERN: routing is understood as computing kernel-like weights over experts, not as a special case of probabilistic classification over experts (Zheng et al., 30 Sep 2025).
The same paper also interprets FFNs in NW-style form. It writes
9
and explicitly identifies
0
In this view, FFN hidden units produce adaptive kernel weights, while MoE replaces static values 1 with dynamic expert outputs 2. KERN therefore positions the router as an FFN-style kernel computation rather than as a simplex projector. This suggests that the MoE router can be redesigned by borrowing from FFN practice without changing the surrounding MoE formulation.
2. Formal definition of the KERN router
The paper defines KERN on a router input representation
3
with router parameters
4
The router first computes pre-activation scores
5
It then normalizes the entire score vector by
6
where 7 is a small constant for numerical stability. After normalization, it applies 8 elementwise,
9
and multiplies by a learnable global scalar
0
where 1 is initialized to 2. Standard sparse MoE routing is then recovered by retaining only the top-3 routed experts,
4
with final weights
5
The resulting MoE output is
6
This is the exact KERN router described in the paper (Zheng et al., 30 Sep 2025).
An important geometric point is that KERN does not project onto the probability simplex. After 7, the routed weights satisfy 8, but generally
9
The paper states explicitly that there is no additional 0 rescaling; magnitudes are controlled by the 1 normalization and the learnable scalar 2. Accordingly, KERN lives in a nonnegative, norm-controlled space rather than the simplex.
The method is described as zero-additional-cost because it changes only the router function. It introduces no new experts and no extra expert-side parameters; the router still uses the same linear projection shape as standard MoE routers; replacing 3 with 4 normalization plus 5 does not materially increase computational complexity; and the extra operation is just norm computation, elementwise division, and 6.
3. Normalization, activation, and generalized router geometry
Normalization is central to KERN, not cosmetic. The paper gives two reasons for the 7 normalization step
8
First, it keeps router score magnitude invariant to the number of experts 9. Second, under independently initialized experts and bounded expert outputs
0
it yields stable MoE output variance at initialization: 1 The final step relies on the 2-controlled router weights. This is the paper’s main mathematical argument for scale stability (Zheng et al., 30 Sep 2025).
The choice of 3 is motivated in two ways. The paper argues that 4 and 5 depend on exponentials and can be overly sensitive to input magnitude, causing sharp value explosion, saturation, near-zero weights for some experts, and vanishing gradients for underused experts. By contrast,
6
is piecewise linear and does not saturate on the positive side. The second argument is architectural: modern FFNs commonly use ReLU-like activations or linear outputs rather than exponentials, so KERN mirrors standard FFN design more closely than Softmax routing does.
The paper also embeds Softmax and Sigmoid in a generalized FFN-style routing family,
7
Within this view, Softmax corresponds to an exponential activation plus implicit 8 normalization across experts,
9
while Sigmoid-based routing reduces to
0
without layer normalization. KERN is the FFN-style alternative that replaces exponential simplex normalization by linear scoring, vector normalization, and 1.
Empirically, the appendix compares KERN with and without 2. When few experts are active, such as 3 of 4, KERN and KERN-without-ReLU are very similar, because selected top-5 weights are often already positive. When many experts are active, such as 6 of 7, KERN with 8 is significantly better. On Books3 at length 9 with all 0 experts active, final validation losses at 1K steps were: Softmax 2, Sigmoid 3, Tanh 4, KERN-without-ReLU 5, and KERN 6.
4. Empirical evaluation
The experiments cover language modeling on Arxiv and Books3, large-scale pretraining on FineWeb-Edu, downstream zero-shot evaluation, different model scales, different sequence lengths, different expert granularities, different sparsity levels, and ablations on 7, initialization, and routing normalization placement (Zheng et al., 30 Sep 2025).
A representative subset of the reported comparisons is shown below.
| Setting | Softmax | KERN |
|---|---|---|
| Arxiv, length 512, active 125M / total 520M, step 50K | 1.8781 | 1.8291 |
| Books3, length 512, step 50K | 3.3882 | 3.3080 |
| Books3, length 1024, step 50K | 3.1714 | 3.0914 |
| Books3, length 2048, step 50K | 3.0442 | 2.9535 |
| FineWeb-Edu, 520M total / 125M active, average accuracy | 49.88 | 52.14 |
| FineWeb-Edu, 1.7B total / 350M active, average accuracy | 52.46 | 55.13 |
| FineWeb-Edu, 6.9B total / 1.3B active, average accuracy | 56.49 | 58.88 |
These results are accompanied by comparisons against Dense, Sigmoid, and Tanh routers. On Books3 at length 8 and step 9K, the paper reports Dense 0, Softmax 1, Tanh 2, Sigmoid 3, and KERN 4. In large-scale zero-shot evaluation after training on FineWeb-Edu for 5K steps and 6B tokens, KERN exceeds Softmax at every reported scale: from 7 versus 8 at 9M total / 0M active, to 1 versus 2 at 3B total / 4B active.
The paper further reports that KERN consistently outperforms Softmax across expert counts from 5 to 6 active experts, and beats Softmax at all sparsity levels when total experts are varied from 7 to 8. With 9 experts, 00 active, and expert intermediate size 01, the Books3 result at 02K is Softmax 03, Sigmoid 04, Tanh 05, and KERN 06. With large sparsity at expert intermediate dimension 07, the Books3 result is Softmax 08, Sigmoid 09, Tanh 10, and KERN 11.
Training stability is evaluated over three seeds on Books3 length 12 at 13K steps. The reported mean losses and variances are: Softmax mean loss 14, variance 15; Sigmoid mean loss 16, variance 17; Tanh mean loss 18, variance 19; and KERN mean loss 20, variance 21. The paper interprets this as KERN achieving the best mean and low variance.
5. Relation to adjacent kernel-and-normalization lines of work
KERN belongs to a broader line of work in which kernel geometry and normalization are treated as co-design variables rather than as independent modules. A closely related example is the linear-attention model "ReBased," which introduces a learnable second-order polynomial kernel with normalization applied before kernel evaluation. Its final ablation form is
22
and the paper explicitly states that normalization is applied to queries and keys before kernel evaluation, not as a separate output-side normalizer. It reports that this design improves long-context retrieval and training stability relative to the fixed Based kernel, which is directly relevant to KERN’s emphasis on normalized pre-kernel feature geometry (Aksenov et al., 2024).
A second relevant normalization principle comes from the study of Gaussian-kernel affinity matrices under heteroskedastic noise. That work shows that heteroskedastic noise induces a left-right diagonal scaling bias
23
and that row-stochastic normalization does not remove this two-sided distortion, whereas doubly-stochastic normalization does. For a KERN-style design, the explicit transfer made in the paper summary is that if routing scores are built from Gaussian similarities between noisy embeddings, then enforcing a symmetric doubly-stochastic scaling can remove a class of multiplicative per-node biases that row-normalized soft assignments do not remove (Landa et al., 2020). This suggests a broader normalization lesson: not all normalizations remove the same kernel distortions.
A third line of work derives effective normalization kernels of the form
24
showing that an effective interaction kernel may require both source-side and target-side diagonal reweighting around a base kernel. In that setting, a symmetric lower-level interaction kernel can induce an effective non-symmetric normalization kernel (Malo et al., 2018). A plausible implication is that KERN-like routers need not be limited to plain similarity matrices or simplex projections; pre- and post-scaling around a base interaction may be structurally useful when routing is normalization-aware.
A broader related trend places normalization inside the kernel score itself. The yat-product kernel
25
was used as an attention score and as the sole non-linearity in Neural Matter Networks, with the paper arguing that normalization shifts into the kernel itself via the denominator rather than relying on separate normalization layers (Bouhsine, 22 Feb 2026). This is not KERN, but it exemplifies the same general movement away from treating routing score computation and normalization as separable design stages.
6. Practical recommendations, caveats, and unresolved questions
The paper’s practical recommendation is explicit: use a linear router projection, 26 normalization, 27 activation, a global learnable scale 28 initialized to 29, and top-30 masking afterward,
31
It further recommends applying KERN before top-32, not after. An appendix experiment compares applying KERN before top-33 versus after top-34, and reports that considering all router logits before top-35 is important for better final performance. Early training may slightly favor post-top-36, but full-logit normalization wins later (Zheng et al., 30 Sep 2025).
At the same time, the paper states several caveats. It does not provide a formal convergence theorem for KERN. It does not deeply analyze auxiliary load balancing objectives. It mainly validates the method on language modeling and LLM pretraining setups, so broader modality coverage is not directly tested there. In very sparse top-37 settings, KERN-without-ReLU can be very close to KERN, so ReLU’s gain may depend on activation density. The paper also claims that KERN promotes more balanced expert participation and better utilization, primarily through reduced saturation, normalized score magnitudes, and ReLU sparsity, but it does not present a dedicated mathematical load-balancing theorem or a detailed auxiliary-loss redesign.
Within those limits, KERN is presented as a drop-in replacement for Softmax routing in MoE. Its distinctive features are that it is motivated by the NW interpretation of routing, that it mirrors FFN-style computation rather than simplex projection, and that it relies on explicit vector normalization before sparse expert selection. The result is a router that preserves standard top-38 dispatch while replacing exponential normalization with norm-controlled nonnegative gating.