TL;DR
QUPID introduces a highly efficient, production-ready framework for search engine relevance assessment by combining two architecturally distinct Small Language Models (SLMs)—one generative and one embedding-based. This heterogeneous ensemble outperforms state-of-the-art LLMs like ChatGPT-4o on Korean-language search tasks, delivering a 67% improvement in human agreement (Cohen's Kappa) while slashing inference latency by 60x.
What Problem Does This Paper Address?
Evaluating whether a web document is truly relevant to a user's search query is a foundational challenge in Information Retrieval (IR). While Large Language Models (LLMs) excel at approximating human-level relevance judgments due to their deep contextual understanding, deploying them in production search engines is notoriously impractical. Search engines routinely process hundreds of millions of queries daily, making the massive computational footprint, high financial cost, and multi-second latencies of LLMs a non-starter.
Furthermore, commercial LLMs often show suboptimal performance in non-English or multilingual environments like Korean. Existing attempts to use smaller, more efficient models (SLMs) typically suffer from two flaws: single SLMs lack the expressive power to handle complex queries, and current SLM ensembles simply stack multiple instances of the same architecture, failing to capture complementary strengths.
Methods
The authors introduce QUPID (Quantified Understanding for Enhanced Performance, Insights, and Decisions), which breaks the homogeneous mold by pairing two architecturally distinct SLMs fine-tuned on HyperClova X Small (HCX-S), a state-of-the-art Korean-optimized base model:
- $QUPID_{GEN}$ (Generative SLM): Fine-tuned to output specific relevance tokens (e.g., Highly Relevant, Low Relevance, Not Relevant). Instead of relying on a single sampled token, it extracts the log probabilities of these label tokens and applies a softmax function to compute a calibrated, risk-aware relevance score.
- $QUPID_{EMB}$ (Embedding-based SLM): Processes the query-document pair to extract token-level hidden state embeddings. It applies mean pooling to generate a fixed-size representation, followed by a linear transformation to output a similarity-based relevance score vector.
The final relevance score is a weighted sum of the two models' outputs: $$\text{s}_{\text{final}} = w_{\text{gen}} \cdot s_{\text{gen}} + w_{\text{emb}} \cdot s_{\text{emb}}$$
Datasets
To train and evaluate QUPID, the authors constructed a curated dataset of roughly 1 million Korean query-document pairs using two strategies:
- Real-World Document Collection (~850K pairs): Sourced directly from Naver search engine logs, spanning three distinct categories to ensure structural diversity: Short snippet-style web content (24.62%), User-Generated Content like forums or Q&As (12.17%), and General web documents (48.70%). These were meticulously labeled by human annotators into four classes.
- Synthetic Hard-Negatives Generation (14.51%): Using Mistral-2-Large, they generated contextually off-topic or partially misleading documents that were lexically similar to the queries. This forced the models to learn fine-grained relational cues rather than relying on simple keyword matching.
Key Insights and Ideas
- Architectural Diversity is a Superpower: Stacking identical models yields diminishing returns. By uniting explicit generation-based judgments (which capture high-level semantic coherence) with implicit embedding-based signals (which capture distributional proximity), QUPID achieves a synergistic effect that surpasses giant models.
- The High-Temperature Trick: In a fascinating departure from standard LLM practices—where low temperatures (<1.5) are preferred for deterministic classification—the authors found that setting the generative model's inference temperature to 3.0 yielded the best results. Lower temperatures caused the model to be overly confident in a single token (probability $\approx 0.998$), which effectively erased the benefits of aggregating multiple token probabilities in the ensemble.
- Simplifying the Prompt: Because the models were heavily fine-tuned on target data, lengthy system prompts were entirely unnecessary. QUPID operates using a prompt of just 10 tokens, drastically reducing overhead compared to standard zero-shot LLM prompting.
Key Results
Relevance Accuracy
QUPID significantly outperformed both massive proprietary LLMs and existing SLM ensemble baselines (like JudgeBlender) across all datasets (User-Generated Content, Snippets, and Web Documents).
As shown in Table 1, the unified QUPID_ENSEMBLE achieved an average Cohen's Kappa ($\kappa$) of 0.646, vastly outperforming ChatGPT-4o ($\kappa = 0.387$). Table 2 further highlights that ensembling heterogeneous architectures outperforms ensembling multiple instances of the same architecture (QUPID_GEN*5 or QUPID_EMB*5).
Inference Efficiency
By minimizing prompt lengths and generating at most a single token, QUPID achieved a blistering latency of 62 ms on an NVIDIA A100 GPU. This represents a 60x speedup over LLaMA3.3-70b (3258 ms) and a 19x speedup over JudgeBlender (1173 ms).
Production Impact
When integrated directly into Naver's live production search ranking pipeline, QUPID delivered a measurable 1.9% improvement in nDCG@5 scores, proving its real-world viability.
Limitations and Future Work
Despite its stellar performance, the authors note two primary limitations:
- Text-Only Modality: Modern search engines increasingly rely on multimodal content (images, videos, product listings). QUPID is currently blind to non-textual features, limiting its use in e-commerce or multimedia search.
- Narrow Feature Scope: The framework focuses exclusively on topical relevance. Real-world search quality also depends on qualitative factors like text readability, layout aesthetics, and source trustworthiness, which are not yet captured by the model.
Summary updated