Cross-Modal Alignment with Mixture Experts Neural Network for Intral-City Retail Recommendation

Po Li, Lei Li, Yan Fu, Jun Rong, Yu Zhang

Abstract

In this paper, we introduce the Cross-modal Alignment with mixture experts Neural Network (CameNN), a recommendation model tailored for the intra-city retail industry. Developed in response to the surge in grocery delivery services during the COVID-19 pandemic, CameNN addresses the challenge of "dirty data"—mismatched or low-quality product images and descriptions—typical of small-scale merchants. CameNN is a multi-task framework incorporating Image-to-Text Alignment (ITA), Text-to-Image Alignment (TIA), and Conversion Rate (CVR) prediction. By utilizing pre-trained BERT and InceptionV4 models within a Mixture of Transformer Experts (MoE) architecture, the model learns robust cross-modal representations. Experimental results on a large-scale real-world dataset demonstrate that CameNN significantly outperforms existing baselines, achieving a 0.63% CVR improvement in live production environments.

Introduction

The global COVID-19 pandemic catalyzed a rapid expansion in intra-city retail, where groceries and fresh foods are delivered within hours. Unlike established global e-commerce platforms, intra-city services often aggregate products from small, local merchants who may lack standardized digital inventory management. This leads to "dirty data": inaccurate category labels, blurry or generic images, and vague text descriptions.

Traditional recommendation models, such as DeepFM or DIN, rely on the accuracy of input features to model complex interactions. When these features are misleading, performance degrades. CameNN addresses this by treating cross-modal alignment as a core learning objective, effectively "rectifying" internal item representations to improve recommendation accuracy despite noisy inputs.

Methodology

Multi-Modal Representation Learning

To handle diverse data types, CameNN employs specialized encoders for text and imagery. Textual descriptions are processed through a pre-trained Chinese BERT model to generate semantic embeddings. For visual data, the model utilizes a pre-trained InceptionV4 network.

Detailed view of the Text and Image Representation Networks, illustrating the patch-based image processing and BERT-based text embedding.

Rather than relying on traditional object detection, which often fails on cluttered or low-quality retail photos, CameNN adopts a patch-based approach. Images are divided into a grid of patches, each treated as an "image token" analogous to words in a sentence. This allows the model to attend to specific relevant regions of an image regardless of overall quality.

The CameNN Architecture

The core of the model is a multi-task architecture built upon a shared-bottom Transformer layer and a Mixture of Transformer Experts (MoE) layer.

The overall architecture of the CameNN model, featuring shared-bottom layers and a Mixture of Transformer Experts.
  1. Shared-Bottom Layer: A transformer encoder captures fundamental interactions between all input features (user profile, item features, context, etc.).
  2. Mixture of Transformer Experts (MoE): Instead of simple Multi-Layer Perceptrons (MLPs), CameNN uses multiple Transformer encoders as experts. A Softmax Gating Network dynamically weights the output of these experts based on the input, allowing the model to specialize its processing for different types of items (e.g., text-heavy vs. image-heavy).
  3. Task-Specific Towers: Separate transformer layers are deployed for the three primary tasks: ITA, TIA, and CVR prediction. This ensures that while the bottom layers learn shared features, the top layers can specialize in task-specific nuances.

Multi-Task Learning Objectives

CameNN is trained simultaneously on three objectives:

  • Image-to-Text Alignment (ITA): Predicts whether a given text description accurately describes a provided image.
  • Text-to-Image Alignment (TIA): Predicts whether a given image matches a provided text description.
  • CVR Prediction: The primary recommendation task, predicting the probability of a user purchase.

By forcing the model to align text and images, the ITA and TIA tasks act as powerful regularizers. They ensure that the item embeddings capture the true essence of the product, mitigating the impact of merchant-provided errors.

Evaluation and Results

The model was evaluated using a massive dataset from Alibaba's intra-city retail platform, comprising 10 million users and 200 million commodities.

Offline Performance

In CVR prediction tasks, CameNN achieved an AUC of 0.7549, significantly outperforming state-of-the-art baselines like the Behavior Sequence Transformer (BST, 0.7412) and Deep Interest Network (DIN, 0.7336). This improvement highlights the benefit of the MoE architecture and cross-modal alignment.

Online Impact

During live A/B testing, CameNN delivered a 0.63% increase in CVR. In the context of high-volume retail platforms, such a gain translates to a substantial increase in transaction volume and revenue. Qualitative analysis further confirmed that the alignment tasks successfully increased the similarity between correct image-text pairs in the embedding space.

Conclusion

CameNN demonstrates that multi-task learning and Mixture of Experts can effectively combat the challenges of noisy, real-world retail data. By integrating cross-modal alignment directly into the recommendation pipeline, the model achieves superior robustness and accuracy. Future work may involve expanding the task set to include category or price-point alignment to further refine item representations.

Summary updated

Abstract

In this paper, we introduce Cross-modal Alignment with mixture experts Neural Network (CameNN) recommendation model for intral-city retail industry, which aims to provide fresh foods and groceries retailing within 5 hours delivery service arising for the outbreak of Coronavirus disease (COVID-19) pandemic around the world. We propose CameNN, which is a multi-task model with three tasks including Image to Text Alignment (ITA) task, Text to Image Alignment (TIA) task and CVR prediction task. We use pre-trained BERT to generate the text embedding and pre-trained InceptionV4 to generate image patch embedding (each image is split into small patches with the same pixels and treat each patch as an image token). Softmax gating networks follow to learn the weight of each transformer expert output and choose only a subset of experts conditioned on the input. Then transformer encoder is applied as the share-bottom layer to learn all input features' shared interaction. Next, mixture of transformer experts (MoE) layer is implemented to model different aspects of tasks. At top of the MoE layer, we deploy a transformer layer for each task as task tower to learn task-specific information. On the real word intra-city dataset, experiments demonstrate CameNN outperform baselines and achieve significant improvements on the image and text representation. In practice, we applied CameNN on CVR prediction in our intra-city recommender system which is one of the leading intra-city platforms operated in China.
BibTeX
@misc{li2020cross,
  author = {Po Li and Lei Li and Yan Fu and Jun Rong and Yu Zhang},
  title = {{Cross-Modal Alignment with Mixture Experts Neural Network for Intral-City Retail Recommendation}},
  year = {2020},
  eprint = {2009.09926},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2009.09926},
}
Figure