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



Variance decomposition:                                             Under uniform cluster assumptions, the density-to-volume

                      X             X                           ratio simplifies to a constant, yielding:

                      1               1

   Var(zS(t) ) = Var       si + Var         ui                                   T             T

                      n               n                                          X             X

                         X                             (4)                           ∆et ≈         ∥zS(t) − zS(t−1) ∥

                         1         1X                                            t=2           t=2

                 + 2Cov       si ,     ui

                         n         n

                                                                    A.4. Proof of Theorem 1

Then we have the analysis of each component:

                                                                    First, we have this lemma:

1. Covariance term: Given the orthogonal subspace decom-            Lemma 5 (Norm Comparison with Additive Threshold).

position Hs ⊥ Hs⊥ , the semantic part si and the identity           For n < m, ∥Y ∥ + m < K∥Z∥ holds with probability

part ui are independent, hence the covariance is zero:              approaching 1 as d → ∞, where m > 0 and K > 0 are

                   X

                    1           1X

                                                                   fixed constants.

              Cov          si ,     ui = 0             (5)

                    n           n

                                                                    Proof. Let {xi }m

                                                                                    i=1 be i.i.d. d-dimensional Gaussian vectors

                                                                    with:

2. Variance of the semantic part: According to As-

sumption 3 (uniform distribution), within the same sub-                • E[xi ] = µ ∈ Rd

graph, si are independently and identically distributed with

E[si ] = cj . Let Var(si ) = Σs , then:                                • Cov(xi ) = σ 2 Id , where Id is the d × d identity matrix.

               X                  n

                1              1 X                Σs                Let S = {k1 , . . . , kn } be a uniformly random subset of

         Var          si = 2           Var(si ) =        (6)

                n             n i=1               n                 {1, . . . , m} (without replacement) with n < m. Define:

                                                                                   m          n

                                                                                1 X        1X

3. Variance of the identity part: According to Assump-                    Y =         xi −      xk ,          Z = x1 − x2 .

                                                                                m i=1      n j=1 j

tion 4 (normal distribution), within the same subgraph,

ui ∼ N (µj , Σj ) and they are independent, then:

                                                                    For Y :

             X                  n

              1               1 X               Σj                                      E[Y ] = 0,

        Var          ui = 2         Var(ui ) =      (7)

              n              n i=1              n                                                    1

                                                                                                      

                                                                                                           1

                                                                                                              

                                                                                   Cov(Y ) = σ 2        −       Id ,

                                                                                                    n m

thus we have                                                                                                  

                                                                                                       1     1

                            Σs + Σ j                                               E[∥Y ∥2 ] = dσ 2      −       .

            Var(zS(t) ) =            < Var(tt )          (8)                                          n m

                               n

                                                                    For Z:

A.3. Approximation Analysis of Oracle CSD                                              E[Z] = 0,

The expert assignment change ∆et is defined as the sym-                           Cov(Z) = 2σ 2 Id ,

metric difference between consecutive expert sets:                               E[∥Z∥2 ] = tr(Cov(Z)) = 2dσ 2 .

                    ∆et = |et \ et−1 |

                                                                    For n < m:

For simplicity, assume each token activates a single expert,               1   1

                                                                             −   <2

so ∆et = I(et ̸= et−1 ) (0 or 1).                                          n m                                               

When zS(t) and zS(t−1) reside in the same cluster, ∆et = 0.                                           2       2       1   1

                                                                                       =⇒ E[∥Y ∥ ] = dσ                 −

When they lie in different clusters, ∆et = 1. Let B denote                                                            n m

cluster boundaries in the oracle space. The probability of                                 < 2dσ 2 = E[∥Z∥2 ].

crossing B between t − 1 and t increases with ∥zS(t) −

zS(t−1) ∥.                                                          Define the modified gap WK = K 2 ∥Z∥2 − ∥Y ∥2 . We

                                                                    analyze:

For small displacements, we approximate the discrete                                             

boundary-crossing event by the continuous embedding dis-

                                                                         P (∥Y ∥ + m < K∥Z∥) = P ∥Y ∥2 + 2m∥Y ∥

placement:

                                                                                                               

                                  Cluster density at B                                         + m2 < K 2 ∥Z∥2 .

     ∆et ≈ ∥zS(t) − zS(t−1) ∥ ·

                                    Cluster volume



                                                               14

