                      MOGIC: Metadata-infused Oracle Guidance for Improved Extreme Classification

Table 2: Main Results. Results on public benchmark                              17.5                                        MOGIC (OAK)
                                                                                                                            OAK
datasets. MOGIC is up to 2% more accurate as compared to                                                                    NGAME
                                                                                15.0
baselines. Results on full-text datasets are in Appendix G.5.
For details on evaluation metrics, see Appendix F.4.                            12.5




                                                                          P@5
                                                                                10.0
   Method              P@1      P@5       N@5      PSP@5
                                                                                 7.5
                 LF-WikiSeeAlsoTitles-320K
                                                                                 5.0
   MOGIC (OAK)        34.62     17.93     27.44     33.18
                                                                                 2.5
   OAK                33.71     17.12     24.53     30.83
   DEXA               32.91     16.77     24.63     29.55                        0.0
   NGAME              32.64      16.6     23.44     29.87                              complete 5         4      3      2       1
                                                                                       (#312K) (#195K) (#74K) (#31K) (#9K) (#1K)
   ANCE               30.79     15.36     25.14     28.73                                       (1.49) (3.94) (9.14) (30.98) (200.78)
   DEXML               29.9     14.80     22.80     25.70                                               Quantiles
   GraphFormers       21.94     11.79     24.02     22.70                                           (Increasing Freq.)
   GraphSAGE          23.13      8.26     25.12     18.73
                                                                      Figure 2: Quantile wise-comparison of MOGIC and base-
                     LF-WikiTitles-500K                               lines for LF-WikiSeeAlsoTitles-320K
   MOGIC (OAK)        47.28     18.55     34.97     26.12             Table 3: Choice of oracle models. Performance comparison
   OAK                44.82     17.67     33.72     24.90
                                                                      of MOGIC on the LF-WikiSeeAlsoTitles-320K, considering
   DEXA               47.41     17.62     33.64     24.03
                                                                      different oracle models. The DistilBERT oracle outperforms
   NGAME              39.04     16.08     30.75     23.03
   ANCE               29.68     12.51     25.10     21.18             the LoRA-finetuned SLM oracles. Nevertheless, via the
   GraphFormers       24.53     11.33     20.35     19.53             MOGIC framework, the disciple is capable of leveraging
   GraphSAGE          21.14      11.3     22.61     11.82             the SLM oracles’ signals to improve its task performance.
                   LF-AmazonTitles-131K
                                                                      Oracle (# params) Finetuning P@1          P@5 N@5 PSP@1 PSP@5
   MOGIC (OAK)        47.01     22.40     49.51     50.33
                                                                                                    MOGIC (OAK)
   OAK                46.42     21.88     49.06     49.78
   DEXA               46.42     21.59     49.00     49.65             DistilBERT (65M)          full    34.62 17.93 35.70    27.44        33.18
   NGAME              46.01     21.47     48.67     49.43             LLaMA-2 (7B)             LoRA     34.64 17.93 35.71    27.28        33.02
                                                                      Phi-2 (2.7B)             LoRA     34.34 17.73 35.44    27.09        32.71
regularization loss. Furthermore, since MOGIC is a regular-                                     Oracle-only Performance
ization framework, it leads to no additional inference cost           DistilBERT (65M)          full    47.63 22.75 48.37    36.71        41.45
(cf. Appendix G.3).                                                   LLaMA-2 (7B)             LoRA     34.20 16.21 33.14    30.46        31.93
                                                                      Phi-2 (2.7B)             LoRA     33.32 15.48 31.87    29.75        30.61
Figure 2 presents a quantile-wise comparison of MOGIC
and baselines on LF-WikiSeeAlsoTitles-320K. The leftmost              Ablations on loss functions: To understand the importance
bin contains the highest fraction of rare (tail) labels whereas       of each loss term in the second phase of MOGIC training,
the rightmost bin contains the most popular (head) labels.            we ablate by removing each of the three losses, one by one.
MOGIC (OAK) gives consistent gains in tail bins and com-              Lastly, we remove both the oracle-guidance-based loss func-
parable results in head bins (see Appendix F.3 for details).          tions (Matching and Alignment). The results, presented in
Choice of oracle model: MOGIC’s improvement can be                    Table 4, suggest that all loss components are important and
attributed to the oracle model it uses to guide the gradi-            the best accuracy is achieved when all components are used.
ents of the disciple. In Table 3, we show results with three          Impact of using ground-truth metadata: A practical sys-
different models as the oracle: A finetuned DistilBERT                tem uses metadata predicted by the disciple, given a query.
(which is our recommended choice of the Oracle), and two              Hence, all experimental results thus far for MOGIC have
LoRA-finetuned SLMs, Phi-2 and LLaMa-2. A learnable                   been reported considering predicted metadata linkages. In
linear projection layer downsizes the SLM embeddings for              MOGIC we observe a large gap in performance of Oracle
computing the Alignment and Matching losses. A disciple               and MOGIC (disciple) model, which we attribute to the
regularized with DistilBERT performs on par with the SLM              oracle’s access to ground-truth links to the metadata during
oracles. For all experiments, we use metadata-infused Dis-            both training and testing. We therefore hypothesize that in
tilBERT as our oracle due to its faster training and inference        an ideal scenario, using ground-truth metadata at test time
times. This choice increases efficiency without sacrificing           could boost overall XC task accuracy. To validate this, we
disciple accuracy. We compare against SLM oracles applied             replace predicted metadata in MOGIC with ground-truth
to the task in Appendix G.6                                           metadata during inference and observe that the gap in per-


                                                                  7
