ThatAIguyA world of ideas

THE CONSCIOUSNESS ATLAS
Read. Experiment. Follow the evidence.

ConsciousnessLearn · Explore · Joseph Anady

Normalize the selected routing affinities

Each gathered affinity is divided by the sum across the selected experts plus 10⁻²⁰. Ignoring that stabilizer, the selected weights sum to one. With the stabilizer retained, the exact sum is S/(S+10⁻²⁰), so it is approximately one for an ordinary positive sum. This is…

Donor model implementationhistorical source recovered; expression not executed in this website audit
Learn with the Atlas

Understand the scale

See what normalization changes and which assumptions it introduces.

Open guided lesson
donor-eq-36e669e6427afbsource-code mathematical expression
topkweight=topkweight/denominatortopk_weight = topk_weight / denominator

Read the equation

Each gathered affinity is divided by the sum across the selected experts plus 10⁻²⁰. Ignoring that stabilizer, the selected weights sum to one. With the stabilizer retained, the exact sum is S/(S+10⁻²⁰), so it is approximately one for an ordinary positive sum. This is normalization of sigmoid scores, not a softmax of the logits.

Terms & definitions

TermMeaning in this source
S

Sum of selected affinities

How it works

Read the definition from its right-hand expression to the quantity on the left. Its surrounding source records the intended input, state, or parameter context. Where the source leaves an operation unspecified, this page preserves that gap.

Assumptions & limits

Source recovery establishes that the expression appears in this record. Its mathematical validity, implementation behavior, and interpretation must be assessed separately. See the linked source and research notes for the checks available for this version.

Original context

Read the surrounding source passage
### norm gate to sum 1
        if self.top_k > 1 and self.norm_topk_prob:
            denominator = topk_weight.sum(dim=-1, keepdim=True) + 1e-20
            topk_weight = topk_weight / denominator
        topk_weight = topk_weight * self.routed_scaling_factor  # must multiply the scaling factor

        return topk_idx, topk_weight
Exact original notation
topk_weight = topk_weight / denominator

Related builds

Sources & provenance

01
kimi source tree.txt
lines 2812–2812 · Aug 5, 2026
topk_weight = topk_weight / denominator
02
DEEPSEEK_R1_COMPLETE.txt
lines 2580–2580 · Aug 5, 2026
topk_weight = topk_weight / denominator
03
kimi source tree.txt
lines 2812–2812 · Aug 5, 2026
topk_weight = topk_weight / denominator
04
DEEPSEEK_R1_COMPLETE.txt
lines 2580–2580 · Aug 5, 2026
topk_weight = topk_weight / denominator

Search equations, builds, manuscript text, and recovered sources.