Abstract
In e-commerce search, relevance modeling serves as the critical link between user intent and product discovery. However, traditional models often struggle with semantic nuances and the high cost of labeling "hard" negative samples. This paper introduces ADORE (Autonomous Domain-Oriented Relevance Engine), a self-sustaining framework that leverages Large Language Models (LLMs) to autonomously generate training data and complex reasoning chains. By distilling expert-level logic into lightweight production models, ADORE achieves significant gains in search accuracy and advertising revenue without increasing real-time latency.
Introduction
Relevance modeling in e-commerce is the process of determining whether a product in the catalog truly matches a user's search query. While keyword-based methods like BM25 are efficient, they often miss semantic relationships. Conversely, deep learning models like BERT offer better understanding but face two primary challenges in production:
- Data Scarcity: High-quality "hard samples"—cases where a product is superficially similar but contextually irrelevant—are rare and expensive to annotate manually.
- Reasoning Constraints: Lightweight models required for low-latency production environments lack the capacity to process complex attribute hierarchies or explain the logic behind a relevance score.
Researchers at JD.com developed ADORE to bridge this gap, creating an autonomous pipeline where powerful offline LLMs teach smaller online models to reason like human experts.
Methodology
ADORE is composed of three integrated modules that create a continuous improvement loop for relevance detection.
1. Rule-aware Relevance Discrimination (RD)
The RD module utilizes a fine-tuned LLaMA-3 model equipped with Chain-of-Thought (CoT) prompting to generate detailed reasoning for relevance decisions. A significant discovery during development was the "over-strictness" bias: LLMs following rigid guidelines often reject products that a typical customer would find acceptable. To mitigate this, the authors applied Kahneman-Tversky Optimization (KTO) to align the LLM’s logic with actual user purchase behavior, ensuring the model's "expert" judgment reflects real-world shopping preferences.
2. Error-type-aware Data Synthesis (DS)
Acting as an adversarial component, the DS module identifies specific categories where the current production model fails. It uses GPT-4o to synthesize new, challenging query-product pairs designed to target these weaknesses. This "adversarial hardening" ensures the model is exposed to the most confusing edge cases during training.
3. Key-attribute-enhanced Knowledge Distillation (KD)
To maintain production speed, ADORE employs a teacher-student distillation framework. A deep "Teacher" BERT model is provided with refined attribute descriptions generated by the LLM. A "Student" BERT-Mini then learns to mimic the Teacher’s internal representations. This process allows the lightweight student model to inherit complex reasoning capabilities regarding product attributes (such as brand, specifications, and target audience) without the computational cost of an LLM.
Experimental Setup and Datasets
The framework was evaluated using a massive proprietary dataset from JD.com, as no public Chinese e-commerce relevance datasets of this scale currently exist.
- Training Set: 3.2 million query-product pairs from search logs.
- Validation/Test Sets: 150,000 pairs annotated by human experts to establish a high-quality ground truth.
Key Insights
- The Alignment of Logic: Aligning the LLM with purchase logs via KTO was vital. Without it, the model was technically accurate but practically too pedantic for a commercial search engine.
- Reasoning as a Distillable Asset: The authors found that distilling the attributes and logic behind a decision is more effective than simply distilling the final label. This focuses the student model on the features that truly drive relevance.
- Self-Sustaining Feedback: The system creates a closed loop where the DS module finds weaknesses, the RD module provides the correct logic, and the KD module updates the production model.
Results
ADORE demonstrated superior performance in both offline evaluations and live production environments.
Offline Benchmarks
ADORE achieved an F1 score of 85.45%, outperforming the standard BERT-Mini baseline (82.29%) and even surpassing a direct LLM-based classifier (83.70%), proving that distillation can sometimes result in a more focused and effective specialized model.
Online A/B Testing
During deployment on JD.com’s advertising search engine, ADORE yielded significant business impact:
- +1.24% increase in Click-Through Rate (CTR).
- +1.58% increase in total Ad Revenue.
- +1.75% improvement in the "Good rate" (human-evaluated relevance).
Conclusion and Future Work
ADORE represents a significant step toward autonomous model improvement in e-commerce. While currently focused on text, the authors plan to expand the framework to include multi-modal data, such as product images, which are essential for categories like fashion and home decor. Additionally, future iterations will explore personalized relevance to account for individual user preferences and historical interactions.
Summary updated