Introduction
In the competitive landscape of large-scale e-commerce, search engines are the primary gateway for users to discover products. Most modern systems employ Embedding-based Retrieval Systems (ERS), which map queries and products into a shared vector space. However, traditional ERS often rely heavily on textual data, leading to significant limitations in capturing the visual and behavioral nuances of shopping intent.
MRSE (Multi-modality Retrieval System for E-commerce) is a novel framework designed to address these gaps by integrating images, text, and historical user behavior through a lightweight Mixture-of-Experts (LMoE) architecture. Developed and deployed at Shopee, MRSE has demonstrated substantial improvements in search relevance and business metrics.
The Challenge of Uni-modal Retrieval
Text-centric retrieval systems face two primary hurdles:
- Semantic Confusion: A keyword-based search for a "red guitar" might return "red guitar strings" because the text matches, even though the visual intent is entirely different. This mismatch between textual similarity and visual category leads to poor user experiences.
- Static Modality Weighting: Different product categories require different information. For fashion items, the image is paramount; for electronics, technical specifications in the text are more critical. Traditional systems fail to adapt to these shifting preferences.
The MRSE Architecture
MRSE utilizes a two-tower architecture—an Item Tower and a Query Tower—to generate high-quality embeddings in real-time. The core of the system is the Lightweight Mixture-of-Experts (LMoE), which fuses multiple data streams efficiently.
Specialized Experts
Instead of a monolithic model, MRSE employs three specialized experts:
- VBert (Visual-Bert): This expert models the relationship between images and text. It uses a Vision Transformer (ViT-L) with a custom "adaptor" to maintain high performance while remaining efficient enough for production environments.
- Light-Bert: A streamlined, 2-layer BERT model that captures deep textual semantics without the latency overhead of larger transformers.
- FtAtt (Fasttext-Attention): This component uses n-gram features and attention mechanisms to rapidly capture historical textual patterns and user behavior.
Training and Online Strategy
To train the model effectively across billions of items, the authors combined two loss functions:
- Softmax Cross-Entropy: Used to help the model learn broad category differences (e.g., shoe vs. refrigerator).
- Hard-Negative Triplet Loss (HNST): This forces the model to distinguish between visually similar but distinct items, such as a guitar and its accessories.
For online deployment, MRSE uses a "divide and conquer" strategy. The system is split into Query-to-Item (Q2I) for immediate search results and Item-to-Item (I2I), which analyzes a user's recent clicks and viewed images to refine results in real-time. This ensures the system remains responsive, with query embeddings computed in under 10ms.
Key Results and Impact
MRSE was evaluated using massive industrial datasets from Shopee, involving up to 2 billion clicks and 2 million products. The results were significant:
- Relevance: Achieved an 18.9% improvement in search relevance.
- Business Metrics: In live A/B testing, MRSE delivered a 3.2% boost in Gross Merchandise Volume (GMV) and a 3.5% increase in Click-Through Rate (CTR).
- Retrieval Performance: The system showed a 34.7% improvement in Recall@500 compared to standard baseline models.
Conclusion
MRSE provides a scalable blueprint for multi-modal retrieval in e-commerce. By leveraging lightweight experts and sophisticated negative sampling, it moves beyond simple keyword matching toward a more human-like understanding of shopping intent. Future work will focus on incorporating temporal dynamics—such as the specific sequence of "add-to-cart" events—to further personalize the user experience.
Summary updated