                       MOGIC: Metadata-infused Oracle Guidance for Improved Extreme Classification

E. Theoretical Proofs
E.1. Notations
Let D = {(Xi , yi )}N            L
                                                                                                         th
                      i=1 , {Zl }l=1 be the training dataset, where Xi , Zl are the raw text features of i   query and lth label
                              L                                   th
respectively, and yi ∈ {0, 1} is the binary label vector for the i query.
                                                                      q    l
Let the oracle be a dual encoder model denoted by parameters θO = {θO   , θO }. Similarly, let the disciple also be a dual
                                               q   l
encoder model denoted by parameters θD = {θD , θD }. Given the raw text query and label samples X and Z, let the
frozen oracle embeddings be denoted as x∗ = EθO (X), z∗ = EθO (Z), and the trainable disciple embeddings be denoted by
x = EθD (X), z = EθD (Z).
Let Z = {z1 , . . . , zL } be the matrix of all label embeddings stacked together. Consider the loss L({(xi , yi )}N          L
                                                                                                                   i=1 , {zl }l=1 ) =
1
  P  N       ⊤
N    i=1 ℓ(Z xi , yi ) to be a generic loss function that is separable over query samples. Note that the triplet loss used by
MOGIC falls in this family of loss functions, and therefore the analysis presented below holds true for it.
                                                            q    l
Let the query and label towers of the disciple model θD = {θD , θD } belong to hypothesis classes F, G whose complexities
be bounded by Rademacher constants Rq , Rl respectively.
The Rademacher complexity constants Rq and Rl are scalar values that quantify the complexity or capacity of the hypothesis
classes corresponding to the query tower and the label tower, respectively. We use the standard definitions of Rademacher
constants from the Statistical Learning Theory for Binary Classification problems 3 4 .
Under the above setting, the Alignment and Matching losses can be expressed as:




                                      1                         ∗ L              ∗
                                                                                                         
                          LAlignment =   L({(xi , yi )}N                                 N          L
                                                        i=1 , {zl }l=1 ) + L({(xi , yi )}i=1 , {zl }l=1 )                        (4)
                                      2
                                         N                         L
                                      1 X             ∗        1X
                          LMatching =       ∥xi − xi ∥2 +            ∥zl − z∗l ∥2                                                (5)
                                      N i=1                    L
                                                                   l=1




E.2. Derivations
The below lemma shows that the triplet loss used in MOGIC is upper-bounded by a linear combination of the Alignment
and Matching loss, assuming that the individual pairwise loss terms comprising the triplet loss are Lipschitz continuous by
themselves.

                                                                                              1
                                                                                                    P
Lemma 2. Let P be the number of positive labels for a given query and, ℓ(si , yi ) = P ·(L−P      )    p,q∈{1,...,L} 1(yip =
+1)1(yin = −1)g(sin − sip ) be the triplet loss for a query i which is decomposable over all relevant-irrelevant label pairs.
If g is Lipschitz-continuous with constant K, then the following inequalities hold true:




                                                                                                L
                                                                           ∗ L        2·K ·B    X
                    L({(xi , yi )}N          L                     N
                                  i=1 , {zl }l=1 ) ≤ L({(xi , yi )}i=1 , {zl }l=1 ) +                  ∥zl − z∗l ∥2              (6)
                                                                                           L
                                                                                                 l=1
                                                                                                 N
                                                          ∗                             2·K ·B X
                    L({(xi , yi )}N          L                     N          L
                                  i=1 , {zl }l=1 ) ≤ L({(xi , yi )}i=1 , {zl }l=1 ) +              ∥xi − x∗i ∥2                  (7)
                                                                                          N    i=1
   3
       https://web.eecs.umich.edu/~cscott/past_courses/eecs598w14/notes/10_rademacher.pdf
   4
       https://www.cs.cmu.edu/~ninamf/ML11/lect1117.pdf

                                                                 19
