                          MOGIC: Metadata-infused Oracle Guidance for Improved Extreme Classification
                ′
Proof. Let si , si be two score vectors. Then,
                                        ′
                    |ℓ(si , yi ) − ℓ(si , yi )|                                                                                   (8)
                                 1              X                                                                ′           ′
                     =|                                       1(yip = +1)1(yin = −1)(g(sin − sip ) − g(sin − sip ))|              (9)
                         P · (L − P )
                                             p,q∈{1,...,L}
                              1                X                                                             ′           ′
                     ≤                                   1(yip = +1)1(yin = −1)|g(sin − sip ) − g(sin − sip )|                   (10)
                          P.(L − P )
                                         p,q∈{1,...,L}
                               K                 X                                                 ′                 ′
                     ≤                                        1(yip = +1)1(yin = −1)(|sin − sin | + |sip − sip |)                (11)
                          P · (L − P )
                                             p,q∈{1,··· ,L}

                      ′
If si = Z⊤ xi and si = Z∗⊤ xi , then:
                          N
                    1 X                     ′
                          |ℓ(si , yi ) − ℓ(si , yi )|                                                                            (12)
                    N i=1
                            K ·B                X
                    ≤                                            1(yip = +1)1(yin = −1)(∥zn − z∗n ∥2 + ∥zp − z∗p ∥2 )            (13)
                      N · P · (L − P )
                                                 p,q∈{1,...,L}
                                                                        L
                               K ·B          2N P (L − P ) X
                    ≤                      ·                 ∥zl − z∗l ∥2                                                        (14)
                          N · P · (L − P )         L
                                                                       l=1
                                       L
                          2·K ·B X
                    =              ∥zl − z∗l ∥2                                                                                  (15)
                            L
                                       l=1


As a result, the following inequality holds 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             (16)
                                                                                                 L
                                                                                                        l=1

                                   ′
Similarly, if si = Z⊤ xi and si = Z⊤ x∗i , then:
                                   N
                              1 X                     ′
                                    |ℓ(si , yi ) − ℓ(si , yi )|                                                                  (17)
                              N i=1
                                    2·K ·B                X
                              ≤                                               1(yip = +1)1(yin = −1)∥xi − x∗i ∥2                 (18)
                                N · P · (L − P )
                                                              p,q∈{1,...,L}
                                                   N
                                   2·K ·B X
                               =              ∥xi − x∗i ∥2                                                                       (19)
                                     N    i=1


As a result, the following inequality holds true as well:
                                                                                                         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           (20)
                                                                                                 N    i=1



                                                                  ∗
Lemma 3. Assume a realizable setting where, for some θD = θD        , x = x∗ , z = z∗ holds for all x, z. Now, let θD = θ̄D
be another value of θD which minimizes the oracle-guided population loss LAlignment + λLMatching . Its corresponding
embeddings are denoted by x̄, z̄. Further, assume that all the embeddings are bounded by ∥x̄∥2 , ∥z̄∥2 , ∥x∗ ∥2 , ∥z∗ ∥2 ≤ B.
Then, for λ = K · B, the following inequalities hold:
                                                                                          ∗                ∗ L
                     L({(x̄i , yi )}N           L                                                  N
                                    i=1 , {z̄l }l=1 ) ≤ LAlignment + λ · LMatching ≤ L({(xi , yi )}i=1 , {zl }l=1 )              (21)

                                                                               20
