NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MOGIC: Metadata-infused Oracle Guidance for Improved Extreme Classification

Suchith Chidananda Prabhu, Bhavyajeet Singh, Anshul Mittal, Siddarth Asokan, Shikhar Mohan, Deepak Saini, Yashoteja Prabhu, Lakshya Kumar, Jian Jiao, Amit S, Niket Tandon, Manish Gupta, Sumeet Agarwal, Manik Varma

TL;DR

MOGIC (Metadata-infused Oracle Guidance) improves Extreme Classification (XC) performance by using a high-accuracy "Oracle" model to guide the training of a faster, deployable "Disciple" model. By leveraging "privileged" ground-truth metadata exclusively during training, MOGIC achieves a 1–2% boost in precision across major benchmarks with zero additional cost to inference latency.

Introduction & Motivation

Extreme Classification (XC) involves tagging queries with the most relevant labels from a pool of millions (e.g., matching search queries to ad keywords or Wikipedia articles to categories). Because many labels have very few training examples, researchers often use auxiliary metadata (like product categories or related article titles) to provide extra context.

There is a classic trade-off in how this metadata is utilized:

  1. Early-fusion: Concatenating metadata text directly to the query. This is highly accurate but suffers from high latency due to long input sequences and is very sensitive to "noisy" or incorrect metadata.
  2. Late-fusion: Combining query and metadata embeddings at the end. This is fast and robust enough for real-world deployment, but it often leaves accuracy on the table.

The authors aim to bridge this gap: How can we achieve the superior accuracy of early-fusion models without incurring the latency and noise-sensitivity penalties at test time?

The MOGIC Framework

The authors introduce a two-phase training framework called MOGIC to solve this trade-off.

Phase 1: Oracle Training

First, they train an Oracle—a high-capacity model (like DistilBERT or a fine-tuned LLaMA-2) using early-fusion. This Oracle is given "privileged" access to ground-truth metadata. Because it sees the "golden" connections between queries and metadata, it learns extremely rich representations. However, it remains too slow for production use.

Phase 2: Oracle-guided Disciple Training

Next, they train a Disciple—a lightweight, late-fusion model designed for production (like OAK or NGAME). The Disciple doesn't have access to ground-truth metadata at test time; it must predict it. To help it learn, MOGIC uses the Oracle to "guide" the Disciple through two novel regularization losses:

  • Alignment Loss: Ensures the Disciple’s query/label rankings match the Oracle’s superior rankings.
  • Matching Loss: An $L_2$ loss that forces the Disciple’s embeddings to mimic the high-quality embeddings generated by the Oracle.
The MOGIC training framework: The Oracle (right) provides guidance to the Disciple (left) via Alignment and Matching losses.

Key Insights

  • Privileged Information: The core innovation is using ground-truth metadata strictly as a training-only signal. The Disciple learns to "see" the relationships the Oracle sees, even when the Disciple only has access to noisy, predicted metadata at inference time.
  • Robustness through Guidance: Surprisingly, even though early-fusion Oracles are usually sensitive to noise, the guidance they provide makes the Disciple more robust. MOGIC helps prevent "semantic drift"—where a model gets confused by ambiguous words (e.g., confusing a "Grass court" in tennis with a legal "court").
  • Plug-and-Play: MOGIC isn't a new model architecture; it's a training strategy. It can be applied to almost any existing XC model (OAK, NGAME, DEXA) to squeeze out extra performance.

Results & Performance

The researchers evaluated MOGIC on six standard XC datasets, including Wikipedia (LF-WikiSeeAlsoTitles-320K, LF-WikiTitles-500K) and Amazon (LF-AmazonTitles-131K), manually attaching ground-truth metadata from original data dumps.

  • Accuracy Gains: MOGIC consistently outperformed state-of-the-art models, improving Precision@1 (P@1) by 1–2% and Propensity-scored Precision@1 (PSP@1) by 2–3%.
  • Tail Performance: The model showed significant gains in the "tail"—the rare labels that are traditionally the hardest to predict in XC.
  • Qualitative Improvement: In head-to-head comparisons, MOGIC corrected errors where base models produced completely off-topic results. For example, for the query "Tangbe" (a village in Nepal), base models guessed unrelated historical sites, while MOGIC correctly identified the geographical context.
Main results table demonstrating MOGIC's consistent improvements in P@1, P@5, and PSP@5 across multiple standard datasets compared to baseline models.

Limitations and Future Work

  • Metadata Dependency: MOGIC requires high-quality ground-truth metadata during the training phase. If such metadata isn't available in the raw dataset, the framework cannot be easily applied.
  • Training Overhead: While inference is "free" (no added latency), training takes longer because you must first train an Oracle and then run it to generate guidance for the Disciple.
  • Future Directions: The authors suggest exploring more complex Oracle architectures (like larger LLMs) and investigating how MOGIC might perform in "cold-start" scenarios where no historical traffic data exists for new queries.

Summary updated

BibTeX
@inproceedings{prabhu2025mogic,
  author = {Suchith Chidananda Prabhu and Bhavyajeet Singh and Anshul Mittal and Siddarth Asokan and Shikhar Mohan and Deepak Saini and Yashoteja Prabhu and Lakshya Kumar and Jian Jiao and Amit S and Niket Tandon and Manish Gupta and Sumeet Agarwal and Manik Varma},
  title = {{MOGIC: Metadata-infused Oracle Guidance for Improved Extreme Classification}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=uxA0GI240s},
}
Figure