                      MOGIC: Metadata-infused Oracle Guidance for Improved Extreme Classification

Proof. By averaging the two inequalities in Lemma 2, we get the following result:

                              L({(x̄i , yi )}N           L
                                             i=1 , {z̄l }l=1 )                                                              (22)
                                 1                            ∗ L              ∗
                              ≤ (L({(x̄i , yi )}N                                     N           L
                                                     i=1 , {zl }l=1 ) + L({(xi , yi )}i=1 , {z̄l }l=1 ))
                                 2
                                              L                        N
                                           1X                       1 X
                              + K · B(            ∥z̄l − z∗l ∥2 +         ∥x̄i − x∗i ∥2 )                                   (23)
                                          L                        N i=1
                                             l=1
                               = LAlignment + K · B · LMatching                                                             (24)

Next, note that x̄, z̄ are the values of x, z which minimize the oracle-guided loss. Due to this and the realizable setting
assumption:

                              LAlignment + K · B · LMatching                                                                (25)
                                 1                        ∗ L              ∗
                              = (L({(x̄i , yi )}N                                 N           L
                                                 i=1 , {zl }l=1 ) + L({(xi , yi )}i=1 , {z̄l }l=1 ))
                                 2
                                            L                      N
                                         1X             ∗       1 X
                              + K · B(         ∥z̄l − zl ∥2 +         ∥x̄i − x∗i ∥2 )                                       (26)
                                         L                     N i=1
                                            l=1
                                 1
                               ≤   (L({(x∗i , yi )}N       ∗ L             ∗        N       ∗ L
                                                   i=1 , {zl }l=1 ) + L({(xi , yi )}i=1 , {zl }l=1 ))
                                 2
                                            L                        N
                                        1X ∗                      1 X ∗
                               + K · B(         ∥zl − z∗l ∥2 +          ∥x − x∗i ∥2 )                                       (27)
                                        L                        N i=1 i
                                            l=1
                               = L({(x∗i , yi )}N       ∗ L
                                                i=1 , {zl }l=1 )                                                            (28)

The above proves the two inequalities.

However, optimizing the population-level oracle-guided loss is not feasible as we are often restricted to a finite training
sample size. Now, empirical loss optimization on the finite training set introduces some error. The following lemma bounds
this error:
Lemma      4. Let the disciple model be trained by minimizing the oracle-guided loss on the training set D =
  {(Xi , yi )}N          L

              i=1 , {Zl }l=1 . Let the empirical training risk attained by this minimization be L̂, then the following inequality
holds:
                                                                                 s
                                                             2K                     log( 1δ )
                                        | min E(L − L̂)| ≤        · (Rq + Rl ) +                                            (29)
                                          θD                  N                       N

where L is the population-level oracle-guided training loss.

Proof. Proof uses the standard ideas of ghost sampling and Rademacher complexity bounding, along with some well-known
properties of Rademacher complexity. Note here that minθD EL = LAlignment + λ · LMatching with x̄, z̄ embeddings, thus
connecting to Lemma 3.

Theorem 5. Given the problem setting described above,if the disciple model is trained by minimizing the oracle-guided loss
L = L, Alignment + λ · LMatching on the training set D = {(Xi , yi )}N          L
                                                                     i=1 , {Zl }l=1 , then for some λ > 0 and any δ ∈ [0, 1],
the following inequality holds true with probability at least 1 − δ:
                                                                                            s
                                                                     4K                       log( 1δ )
                          E(x,y) ℓ(Z⊤ x, y) ≤ E(x,y) ℓ(Z∗⊤ x∗ , y) +       · (Rq + Rl ) + 2                            (30)
                                                                      N                          N

Proof. Proof involves a simple algebraic combination of the results in Lemmas 3 and 4.

                                                                   21
