Cross-Country Code-Mixing for Generative Recommendation
Organizations: Alibaba International Digital Commerce Group Beijing, China · Alibaba International Digital Commerce Group Hangzhou, China
Abstract
Cross-country recommendation on modern e-commerce platforms is typically deployed with disjoint user and item ID spaces across markets, removing the shared anchors that conventional cross-domain methods rely on. Generative recommendation (GR) mitigates this by mapping items into a shared token space and training a unified model, but existing approaches keep behavior sequences strictly country-specific, so knowledge transfer occurs only at the parameter level and remains absent at the data level. Inspired by code-switching corpora in multilingual natural language processing, we propose CMRec, a cross-country GR framework that injects cross-country supervision at the data level via dual-constrained, context-aware code-mixing. CMRec first learns a shared semantic codebook from multi-modal content and behavioral co-occurrence across countries. It then uses this codebook to synthesize mixed-country sequences via token-level substitutions that satisfy both static (content) and dynamic (e.g., price, audience, popularity) constraints. Finally, it introduces a context-aware loss that reweights mixed samples according to their plausibility in the current sequence. Experiments on two real-world multi-country datasets and an online A/B test show that CMRec substantially improves recommendation quality in data-sparse countries while preserving performance in data-rich countries, achieving +1.77% advertising revenue and +2.64% orders on a large-scale e-commerce platform.
Figures & tables
| Method | Recall@10 | Recall@100 | NDCG@10 | NDCG@100 | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| (a) Industrial Dataset (6 countries) | ||||||||||||||||
| Avg6 | A L | B M | C S | Avg6 | A L | B M | C S | Avg6 | A L | B M | C S | Avg6 | A L | B M | C S | |
| SASRec | 0.1882 | 0.1993 | 0.1867 | 0.1705 | 0.2648 | 0.2807 | 0.2632 | 0.2404 | 0.0941 | 0.0995 | 0.0933 | 0.0853 | 0.1458 | 0.1546 | 0.1448 | 0.1322 |
| HSTU | 0.2117 | 0.2244 | 0.2098 | 0.1929 | 0.2983 | 0.3158 | 0.2957 | 0.2725 | 0.1058 | 0.1122 | 0.1049 | 0.0964 | 0.1642 | 0.1738 | 0.1629 | 0.1498 |
| TIGER | 0.2261 | 0.2396 | 0.2243 | 0.2062 | 0.3187 | 0.3377 | 0.3163 | 0.2909 | 0.1131 | 0.1198 | 0.1122 | 0.1031 | 0.1753 | 0.1858 | 0.1739 | 0.1600 |
| REG4Rec | 0.2372 | 0.2517 | 0.2354 | 0.2163 | 0.3342 | 0.3537 | 0.3318 | 0.3057 | 0.1187 | 0.1258 | 0.1177 | 0.1082 | 0.1838 | 0.1949 | 0.1824 | 0.1681 |
| Variant | Recall@100 | NDCG@100 |
|---|---|---|
| CMRec (Full) | 0.3613 | 0.1972 |
| w/o Token-level distance constraint | 0.3447 ( 4.59%) | 0.1894 ( 3.96%) |
| w/o Side-info Similarity constraint | 0.3573 ( 1.11%) | 0.1947 ( 1.27%) |
| w/o Context-aware Adaptive Reweighting | 0.3531 ( 2.27%) | 0.1928 ( 2.23%) |