  Oracle-MoE: Locality-preserving Routing in the Oracle Space for Memory-constrained Large Language Model Inference

                                                  Table 3. Hyperparameters of Models

                   Hyperparameters                   195M MoE         295M MoE      729M MoE         2.06B MoE

                   Attention heads                       12               12             12              16

                   Transformer layers                    12               12             12              24

                   MoE layers                             2                4              8               9

                   Expert Number                          4                8             16              32

                   Activated Expert Number                1                1              1               1

                   Hidden dimension size                768              768            768             1024

                   Dropout                               0.1              0.1            0.1             0.1

                   Attention dropout                     0.1              0.1            0.1             0.1

                   Sequence length                      256              256            512             1024

                   Batch size                           320              320            160              80

                   Learning rate decay                 Cosine           Cosine         Cosine          Cosine

                   Maximum Learning rate                4e-4             4e-4           2e-4            1e-4





                          Activation inconsistency           DeepSeek      Qwen        Switch     Oracle

                          1st 1/4 layers avg                    80.84      81.56       69.20       6.03

                          2nd 1/4 layers avg                    65.35      71.04       64.87       4.82

                          3rd 1/4 layers avg                    70.68      75.37       53.36       4.20

                          4th 1/4 layers avg                    76.61      77.16       75.44       5.11



                                   Table 4. Activation inconsistency comparison across layers.



Using Chebyshev’s inequality for WK :                                 Therefore:

                                                    

                                             1     1                     

               2      2            2      2

  E[WK ] = K E[∥Z∥ ] − E[∥Y ∥ ] = dσ 2K − +   2

                                                       , Var(WK ) = O 1 → 0

                                             n m             ϵ2K           d

            4       2             2

Var(WK ) = K Var(∥Z∥ ) + Var(∥Y ∥ ) (independence),                 =⇒ lim P (∥Y ∥ + m < K∥Z∥) = 1.

                                  2                                     d→∞

              4  4     4   1    1

         = 8K dσ + 2dσ       −        .

                           n m

                                                      Note:we also give the analysis of the impact of parameter

                                                      constrains: when n approaches m:

                     p               2

                             2

Set ϵK = E[WK ] − 2m E[∥Y ∥ ] − m . Substituting

E[∥Y ∥2 ]:                                                                                      (

                                                                         1   1                   E[W ] ≈ 2K 2 dσ 2 − m2 ,

                                                                           −   ≈ 0 =⇒

                                  s                  

                1  1                              1   1                  n m                     Var(W ) ≈ 8K 4 dσ 4 + 4m2 .

ϵK = dσ 2 2K 2 − +     −2m             dσ 2         −     −m2 .

                n m                               n m

                                                                      The probability bound becomes:

Applying Chebyshev’s inequality:



                                    Var(WK )                                                           8K 4 dσ 4 + 4m2

             P (WK ≥ ϵK ) ≥ 1 −              .                                   P (W > 0) ≥ 1 −                         .

                                       ϵ2K                                                            (2K 2 dσ 2 − m2 )2



Thus:                                                                 For large d, the dominant terms yield:

P (∥Y ∥ + m < K∥Z∥) ≥

                                      1 2

                                                                                                     8K 4 dσ 4     2

               8K 4 dσ 4 + 2dσ 4 n1 − m                                          P (W > 0) ≥ 1 −                =1− .

                                        

                                                                                                       4

                                                                                                     4K d σ2  4    d

1− h                           q                   i2 .

    dσ 2 2K 2 − n1 + m1

                          − 2m dσ 2 n1 − m1

                                           

                                              − m2

                                                                      So if we make an extreme assumption about the left and

The dominant terms scale as:                                          right components in semantic space, that is



             Var(WK ) = O(d),      ϵK = Θ(d).                              (tt − tt−1 )|HS = 0, (zS(t) − zS(t−1) )|HS = 2r



                                                                 15

