Manuscript Offprint
arXiv:2609.04961SAM-D2Q: Aligning Multimodal Doc2Query with Search Demand and Conversion for E-commerce
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.
Hui Zhou*
Alibaba International Digital
Commerce Group
Hangzhou, Zhejiang, China
Jian Hui Ji
Alibaba International Digital
Commerce Group
Hangzhou, Zhejiang, China
Lei Ma
Alibaba International Digital
Commerce Group
Hangzhou, Zhejiang, China
Rong Xiao
Alibaba International Digital
Commerce Group
Hangzhou, Zhejiang, China
Xiaoyi Zeng
Alibaba International Digital
Commerce Group
Hangzhou, Zhejiang, China
Abstract
E-commerce search often suffers from vocabulary mismatch between user queries and merchant-authored product titles, since short titles cannot fully cover diverse user expressions or visual product attributes. Although Doc2Query alleviates this issue by generating pseudo-queries for document expansion, traditional methods are text-only and not optimized for e-commerce business objectives. As a result, they may produce semantically plausible but commercially ineffective expansions and miss key attributes present in product images. To this end, we propose E-commerce Search-Aligned Multimodal Doc2Query (SAM-D2Q), a business-aligned multimodal document expansion framework for e-commerce search under Boolean retrieval constraints. SAM-D2Q consists of three stages: (1) task-adapted multimodal supervised fine-tuning to enhance vision-language understanding of product titles, images, and user queries; (2) multimodal data augmentation to improve perception of key visual attributes and expansion coverage; and (3) reinforcement-learning-based preference alignment toward search business objectives, encouraging the model to generate pseudo-queries that better match user intent and commercial value. Offline experiments show that SAM-D2Q substantially improves retrieval performance over traditional Doc2Query methods. Deployed in the AliExpress production search system, SAM-D2Q improves online business metrics, increasing GMV by +3.38% and Pay Count by +2.27%.
CCS Concepts
• Information systems → Language models.
Corresponding author.

This work is licensed under a Creative Commons Attribution 4.0 International License. CIKM '26, Rome, Italy.
© 2026 Copyright held by the owner/author(s).
ACM ISBN 979-8-4007-2539-5/2026/11
https://doi.org/10.1145/3799682.3840121
ACM Reference Format:
Hui Zhou, Jian Hui Ji, Lei Ma, Rong Xiao, and Xiaoyi Zeng. 2026. SAM-D2Q: Aligning Multimodal Doc2Query with Search Demand and Conversion for E-commerce. In Proceedings of the 35th ACM International Conference on Information and Knowledge Management (CIKM '26). November 7–11, 2026, Rome, Italy. ACM, New York, NY, USA, 8 pages. https://doi.org/10.1145/3799682.3840121
1 Introduction
With the rapid growth of e-commerce, online shopping has become an integral part of daily life for billions of users worldwide. In this digital ecosystem, search engines serve as the key gateway connecting user intent with massive product inventories. A typical e-commerce search pipeline consists of query understanding, retrieval/recall, and ranking. Although neural retrieval methods such as dense retrieval and generative retrieval have made significant progress, keyword-based retrieval built on inverted indexes remains the backbone of large-scale e-commerce search systems due to its low latency, high interpretability, robustness for cold-start products, and reliability in exact matching scenarios such as brands and models.
However, keyword-based retrieval still suffers from the vocabulary mismatch problem, where user queries and product descriptions may express the same intent using different terms. To alleviate this issue, document expansion methods have been widely studied. In particular, Doc2Query [8, 14, 15], which enriches document representations by generating potential user queries, has achieved strong performance in general web search. Nevertheless, directly applying traditional Doc2Query methods to e-commerce search faces two major challenges.
First, existing Doc2Query methods mainly optimize semantic relevance based on textual data, while overlooking critical business signals such as search Page Views (PV) and Conversion Rate (CVR). As a result, the generated queries may be semantically related but have limited commercial value. For example, in the “dress” category, high-performing queries often contain concrete style attributes such as “sexy dress” or “casual dress”, which typically correspond to higher search demand or conversion potential. In contrast, a generic Doc2Query model may generate low-value variants such as “chic dress” or simply reorganize existing title words, introducing index redundancy without clear business gain.
Hui Zhou, Jian Hui Ji, Lei Ma, Rong Xiao, & Xiaoyi Zeng
Second, e-commerce products are inherently multimodal, while product titles are often short and incomplete due to length constraints. Many key attributes, such as color, style, pattern, and material, are mainly expressed in product images rather than text. For long-tail products with sparse titles, such as “man shirt 2025”, text-only expansion methods may fail to capture visual details such as sleeve length or specific colors, causing relevant products to be missed during retrieval.
To address these challenges, we propose SAM-D2Q, a Search-Aligned Multimodal Doc2Query framework for e-commerce search. Instead of focusing only on semantic enrichment, SAM-D2Q aligns query generation with search business objectives while incorporating multimodal product information. By integrating visual signals, multimodal data synthesis, and business-aligned optimization, SAM-D2Q generates expanded queries that are both grounded in product content and valuable for downstream commercial performance.
SAM-D2Q consists of three stages: (1) information-gain constrained multimodal SFT for coarse semantic alignment; (2) hybrid multimodal SFT with CPV-guided counterfactual augmentation for visual grounding; and (3) GRPO-based preference alignment toward search business objectives.
The novelty of SAM-D2Q lies in the industrial formulation and deployment of multimodal Doc2Query under Boolean retrieval constraints, where expansion terms must provide recall gain, visual grounding, and business utility. Deployed in AliExpress Search, SAM-D2Q brings a 3.38% GMV lift and a 2.27% Pay Count increase in online A/B testing.
The main contributions of this work are summarized as follows:
- Industrial multimodal Doc2Query formulation. We re-formulate Doc2Query for Boolean e-commerce retrieval, where expansion terms must provide information gain rather than TF re-weighting, and align generation with recall, visual grounding, and business utility.
- Counterfactual visual grounding. We convert text-covered logs into multimodal counterfactual samples by masking visual attribute terms from product text while preserving product images, forcing the model to recover visually grounded expansion targets.
- Large-scale deployment. We deploy SAM-D2Q in AliExpress Search via offline indexing without online model inference, and validate it through offline experiments and online A/B testing.
2 Related Work
2.1 Document Expansion
Document expansion aims to alleviate vocabulary mismatch by enriching documents with additional terms before indexing. Given a document , Doc2Query-style methods generate synthetic queries and append them to the original document for retrieval. Early Doc2Query [15] uses a Seq2Seq Transformer to generate queries, while DocT5Query [14] further improves effectiveness with a larger T5 model. Recent studies also explore LLM-based query generation, but their advantages over strong T5-based baselines remain mixed [20]. Since generative expansion may
introduce irrelevant or hallucinated terms, Doc2Query-- [8] filters generated queries with a relevance model to reduce noise.
However, e-commerce search differs substantially from general web retrieval. Industrial systems typically follow a recall-ranking cascade, where the sparse retrieval stage prioritizes high recall under strict latency constraints. Moreover, product titles are short and incomplete, while many key attributes are expressed visually in product images. Finally, e-commerce expansion should not only be semantically correct but also commercially valuable, since query traffic and conversion rates vary significantly across terms. These differences motivate our business-aligned multimodal Doc2Query framework.
2.2 Multimodal Data Augmentation
Multimodal Large Language Models (MLLMs), such as LLaVA [12] and Qwen-VL [3, 4], have shown strong vision-language understanding capabilities. However, studies in Visual Question Answering (VQA) show multimodal models may over-rely on language priors and ignore visual evidence [1, 9, 13]. For example, if most answers to “What color are the bananas?” are “yellow”, models may learn dataset shortcuts instead of grounding the answer in the image.
To mitigate such biases, prior work constructs counterfactual or augmented samples by modifying images, questions, or their associations. MUTANT [7] creates semantically distinct samples through input perturbation, CSS [5] masks critical objects or words, and SimpleAug [10] leverages semantic annotations for question pairing. Inspired by these ideas, we construct CPV-guided counterfactual samples for e-commerce products, masking visual attributes from text while preserving images, so that the model must recover visually grounded attributes from product images.
2.3 Preference Alignment via Reinforcement Learning
Supervised fine-tuning provides basic instruction-following ability, but it does not necessarily align generation with downstream objectives. RLHF, commonly implemented with PPO [16, 18], is widely used to align LLMs with human preferences, but it is often costly and unstable. Offline alternatives such as DPO [17] and IPO [2, 6] avoid explicit reward modeling, but are limited by static preference data and weaker online exploration.
Recent online RL methods such as Group Relative Policy Optimization (GRPO) [19] reduce training overhead by removing the value network while retaining group-based exploration. Unlike standard safety- or helpfulness-oriented alignment, we adapt GRPO to optimize e-commerce query generation with semantic, commercial, and visual rewards. This aligns document expansion with both retrieval effectiveness and business utility.
3 Preliminaries
E-commerce retrieval operates under distinct paradigms compared to general web search.
The nature of product data and the reliance on Boolean matching necessitate a specialized approach to document expansion.
3.1 The Necessity of Boolean-Aware Expansion
Unlike general web search, where probabilistic models like BM25 are standard, industrial e-commerce search relies heavily on Boolean Matching for its inverted index. This choice is mandated by three operational requirements:
(1) Deterministic Matching: To handle queries with strict intent slots (e.g., brand or model constraints), Boolean logic ensures precision by prohibiting the "fuzzy" retrieval typical of probabilistic models.
(2) Data Conciseness: Product titles act as structured keyword sets rather than natural language, rendering TF-based relevance weighting largely ineffective.
(3) Latency Constraints: Boolean retrieval offers superior computational efficiency at the scale of hundreds of millions of items, which is critical for maintaining real-time system performance.
These factors imply that document expansion in this domain must not just "add keywords" as in Doc2Query, but must produce high-precision, business-aligned terms that strictly comply with the Boolean retrieval logic—a challenge that motivates our proposed SAM-D2Q framework.
3.2 Implications for Document Expansion
This paradigm shift fundamentally alters the objective of Doc2Query. In standard literature [11], generated queries serve two purposes: (1) Expansion (adding new terms) and (2) Re-weighting (repeating existing terms to boost TF). However, under the Boolean Matching constraint, re-weighting is functionally redundant—a term's presence is binary (0 or 1). Repeating a token that already exists in the title provides zero marginal utility for recall.
Consequently, in our system context, the value of a generative expander is strictly defined by its ability to generate new terms—latent keywords that are semantically relevant but lexically absent from the seller's description. This insight directly motivates our Information-Gain Constraint design in Stage 1 (Section 4.1), where we use non-covered query-item pairs for lexical expansion and reserve text-covered pairs for counterfactual visual augmentation. This Boolean-aware formulation distinguishes SAM-D2Q from standard Doc2Query methods that are primarily designed for probabilistic ranking-oriented retrieval.
4 Methodology
Formally, we define the e-commerce document expansion task as learning a conditional generation policy , parameterized by a Multimodal Large Language Model (MLLM). Here, represents the multimodal product context, consisting of textual metadata and visual content , while denotes a sequence of tokens representing a potential user search query. Unlike traditional retrieval methods that rely on exact matching, our LLM-based Doc2Query approach leverages the extensive world knowledge and reasoning capabilities of the pre-trained MLLM to infer latent user intents that are semantically implied but lexically absent in the source document.
Standard approaches typically maximize the likelihood over raw Query-Item click logs. However, we argue that naive optimization of MLLMs on noisy industrial logs
leads to objective misalignment, where the model learns spurious correlations rather than true semantic expansion. To address this, SAM-D2Q adopts a Three-Stage Curriculum Learning pipeline (as illustrated in Figure 1), which progressively evolves the MLLM from learning basic semantic associations (Stage 1) to mastering cross-modal reasoning (Stage 2), and finally aligning with complex business utilities (Stage 3).
4.1 Stage 1: Bridging the Semantic Gap via Information-Gain Constraints
The primary objective of the first stage is to instill the capability of Lexical Expansion. A significant challenge in training generative models on raw e-commerce logs is the "summarization shortcut": models tend to converge to a local optimum where they merely extract subsets of tokens from to form , achieving low training loss but zero retrieval gain.
To bridge this mismatch, we split query-item click logs according to whether the query provides information gain over the product text. For Stage-1 pre-SFT, we retain only samples where the query contains new terms that are not fully covered by the product text:
where and denote the set of unique tokens in the query and product text, respectively.
The remaining text-covered pairs, where , are not used for Stage-1 pre-SFT. Instead, they are reserved as candidates for Stage-2 counterfactual visual augmentation. By training Stage 1 on , the policy is discouraged from mere extraction and is encouraged to learn latent semantic mappings from product context to informative expansion queries.
4.2 Stage 2: Hybrid Supervision with Counterfactual Visual Augmentation
The first stage enforces lexical expansion by excluding query-in-text samples from pre-SFT. However, many text-covered pairs still contain strong relevance signals, especially when they involve visually expressed attributes. To further improve cross-modal grounding while preserving the information-gain property learned in Stage 1, we construct the Stage-2 training corpus from two complementary sources: CPV-guided multimodal augmentation data and high-quality human-labeled data.
4.2.1 CPV-Guided Counterfactual Data Augmentation. We leverage the platform's accumulated Category-Property-Value (CPV) knowledge base to identify visual attributes of products. In the CPV schema, attributes such as color, material, pattern, and sleeve style are defined as visual attributes because their values can be directly perceived from product images.
Unlike Stage 1, which uses log pairs where the query already provides information gain over the product text, counterfactual augmentation starts from text-covered log pairs satisfying . These samples usually contain strong relevance signals, but the target query can be generated by simply copying terms from the product text. To remove such textual shortcuts, if the query contains visual attribute values defined in the item's CPV schema, we mask these values from the product text while keeping the product image unchanged.
Hui Zhou, Jian Hui Ji, Lei Ma, Rong Xiao, & Xiaoyi Zeng

Figure 1: The overall pipeline of SAM-D2Q. SAM-D2Q contains three stages: (1) Coarse Alignment, where logs satisfying form and text-covered pairs are reserved for augmentation; (2) Visual Grounding, where visual attributes are masked from product text to construct , which is combined with for Stage-2 SFT; and (3) Utility Optimization, where GRPO optimizes a gated utility combining semantic, commercial, and visual rewards.
Formally, for a text-covered query-item pair , we construct a counterfactual textual input:
where denotes the set of query tokens, and denotes the set of visual attribute values derived from the CPV schema. We then retain only the augmented samples that satisfy the information-gain constraint after masking:
The model is trained to generate the original query from the masked textual input and the image:
In this way, the original query is fully supported by the product text before masking, but becomes lexically absent after removing visual attributes. The model must therefore rely on the product image to recover the missing visual information.
4.2.2 High-Quality Human-Labeled Data with Information-Gain Filtering. In addition to the augmented data, we also incorporate high-quality human-labeled query-item pairs to provide reliable relevance supervision. However, to remain consistent with the objective of Stage 1, we strictly remove redundant samples where the query text is fully covered by the product textual information. Specifically, we retain only samples satisfying the same information-gain constraint:
where denotes the set of unique tokens in the product textual information. This filtering strategy prevents the model from being
retrained on trivial text-extraction cases and preserves its ability to generate new and informative query terms.
Finally, the Stage-2 training corpus is formed by combining the CPV-guided augmented data and the filtered high-quality human-labeled data:
By training on this hybrid corpus, SAM-D2Q simultaneously learns robust cross-modal grounding from counterfactual visual augmentation and reliable semantic relevance from human-labeled data, while avoiding degeneration into simple text copying.
4.3 Stage 3: Business-Aware Preference Optimization
The final stage addresses the objective misalignment between SFT and commercial search. While SFT optimizes token-level likelihood, e-commerce search requires generated queries to maximize practical business utility. Since retrieval is based on Boolean term matching, the value of a generated query mainly comes from its newly introduced terms. We therefore formulate query generation as a reinforcement learning problem and optimize the policy with Group Relative Policy Optimization (GRPO).
4.3.1 Reward Design with Composite Utility. The key component of our preference optimization is a composite reward that jointly captures three desiderata of high-quality expansion queries: semantic correctness, commercial value, and visual grounding. For a generated query and item , we define its utility as:
Here, is a binary safety gate. It sets the overall reward to zero if the query fails basic validity checks, such as low query-item relevance or failure to introduce useful new terms. This prevents the model from exploiting business signals to generate popular but irrelevant queries.
- Semantic Consistency Reward. The first reward ensures that the generated query remains faithful to the target product. We use a Qwen3-VL-based query-item relevance model trained on human-annotated data to score the semantic consistency between the generated query and the product's multimodal context, including both textual metadata and product images:
This reward acts as the semantic foundation of the utility function, penalizing hallucinated or irrelevant expansions.
- Commercial Value Reward. The second reward measures whether the newly introduced terms have real business potential. For each term under category , we estimate its value using historical query traffic, measured by search Page Views (PV), and Conversion Rate (CVR):
To reduce the impact of sparsity for long-tail terms, we apply Bayesian smoothing to obtain a robust category-level estimate:
where is the category-level average CVR, is the number of paid conversions, and controls the smoothing strength.
To handle term-level cold-start cases, we combine the category-specific estimate with a global term-level estimate. Let
The business score of term in category is:
Let denote the new terms introduced by beyond the product text. The item-conditioned commercial reward is computed as:
where is the category of item . This reward explicitly pushes the model toward generating expansion terms with higher traffic and conversion potential.
- Visual Attribute Bonus. The third reward encourages the model to generate visually grounded terms that are absent from the product text but meaningful for the item category. We build a category-specific visual attribute lexicon from the platform's CPV knowledge base. For each category , we collect values of CPV attributes marked as visual attributes, such as color, material, pattern, neckline, and sleeve style:
The visual reward is assigned when a newly introduced query term belongs to the visual attribute lexicon of the item's category:
This reward reinforces the visual grounding ability learned in Stage 2 and encourages visually meaningful expansion rather than arbitrary new terms.
4.3.2 Policy Optimization with GRPO. We optimize the generation policy using GRPO, which avoids the extra value network required by PPO. For each input , we sample a group of candidate queries from the current policy and compute their utilities. The advantage of each sample is normalized within the group:
The core group-relative objective can be written as:
Here, denotes the multimodal product context and denotes the behavior policy used to sample candidate queries. For clarity, we present the simplified objective; our implementation follows the standard GRPO recipe with policy-ratio stabilization.
Through this reward design, the model is not merely optimized to generate likely queries, but is explicitly aligned with three practical requirements of industrial e-commerce search: relevance, business value, and visual grounding.
5 Experiments
5.1 Experimental Setup
5.1.1 Datasets. We curate large-scale training data from AliExpress production logs for the three-stage training pipeline of SAM-D2Q. In Stage 1, we extract query-item click pairs and apply the Information-Gain constraint (Sec. 4.1) on the original product text, retaining pairs where the query is not fully covered by the product text. This yields 9 million valid pairs for coarse semantic alignment.
In Stage 2, we construct a hybrid multimodal SFT corpus. First, we use text-covered log pairs where the original query is fully covered by the product text as candidates for CPV-guided counterfactual augmentation. By masking visual attribute values from the product text and retaining samples that satisfy the Information-Gain constraint after masking, we obtain 500k high-quality counterfactual samples (Sec. 4.2). Second, we incorporate high-quality human-labeled query-item pairs after applying Information-Gain filtering on the original product text. These two sources jointly strengthen visual grounding while preserving the model's expansion ability.
In the Alignment stage, we train the Query-Item relevance scoring model with 3.5 million human-annotated pairs, derive dynamic commercial term weights from AliExpress traffic logs collected from August to November 2025, and sample 80k items as RL exploration prompts for GRPO alignment.
5.1.2 Training Details. SAM-D2Q is trained with a two-phase pipeline: supervised fine-tuning (SFT) followed by GRPO alignment. In SFT, we use a two-stage training strategy with a learning rate of and train each stage for one epoch. In GRPO, the model is trained for two epochs with a learning rate of , weight decay of , and a global batch size of 256. For each prompt, we sample 64 responses with , , and temperature 1.4. The maximum sequence length is 2048 tokens.
Hui Zhou, Jian Hui Ji, Lei Ma, Rong Xiao, & Xiaoyi Zeng
Table 1: Performance on inverted-index retrieval. Qual.(M) denotes average Total Qual. in millions over the query set.
| Method | Top-300 | Top-1000 | Top-3000 | |||
|---|---|---|---|---|---|---|
| # Rel. | Qual.(M) | # Rel. | Qual.(M) | # Rel. | Qual.(M) | |
| Original | 107.0 | 1,382 | 248.3 | 3,062 | 454.5 | 5,366 |
| Doc2Query-Text | 103.3 | 1,395 | 276.9 | 3,513 | 558.0 | 6,696 |
| MM-SFT (Stage 1) | 111.7 | 1,498 | 288.3 | 3,631 | 566.9 | 6,799 |
| SAM-D2Q (w/o RL) | 112.4 | 1,501 | 290.8 | 3,671 | 579.2 | 6,947 |
| SAM-D2Q (Full) | 113.4 | 1,505 | 296.1 | 3,750 | 594.1 | 7,139 |
for prompts and 256 tokens for responses. All experiments use Qwen3-VL-8B as the backbone and are implemented with BFloat16 precision under DeepSpeed ZeRO-3.
5.1.3 Evaluation Protocol. To mirror the industrial retrieval environment, we construct an inverted index containing 8.8 million items, preserving the real-world category distribution of the platform. For evaluation, we sample 30,000 user queries from live traffic, stratified across head, torso, and tail segments to cover diverse user intents. The offline evaluation is conducted on the constructed 8.8M-item index without applying the online active-product deployment filter.
For each query, candidate items retrieved by different methods are evaluated by a frozen production Query-Item relevance evaluator trained on human-annotated query-item pairs. The evaluator takes both product text and image as input and outputs a relevance score. A retrieved item is counted as relevant if its score is above a threshold calibrated on a held-out human-labeled validation set. The evaluator is fixed before all offline experiments and is not trained on generated queries from the test set. We use these automatic labels as scalable offline proxies and further validate the final system through online A/B testing.
5.1.4 Baselines. We use different baselines for offline component analysis and online production evaluation.
(1) Offline component baselines. The offline experiments focus on neural document expansion variants, aiming to isolate the contribution of multimodal SFT, counterfactual visual augmentation, and RL alignment. We use 8B-scale backbones for all neural variants because document expansion is performed offline, where generation quality is prioritized over inference latency.
-
Original: Standard Boolean retrieval using only the original product titles. This baseline quantifies the vocabulary mismatch problem before document-side expansion.
-
Doc2Query-Text: A text-only expansion model based on Qwen3-8B, fine-tuned on query-title pairs, serving as the unimodal Doc2Query baseline.
-
MM-SFT (Stage 1): A multimodal baseline based on Qwen3-VL-8B, trained only with Stage-1 SFT data, without counterfactual visual augmentation or RL alignment.
-
SAM-D2Q (w/o RL): An ablation variant trained with Stage-2 counterfactual visual augmentation but without Stage-3 business-aware RL alignment.
(2) Online production baseline. Traditional e-commerce expansion strategies, such as CPV-attribute expansion, category lexicon
expansion, synonym expansion, and query-side rewriting, are part of the AliExpress production search stack and are therefore evaluated in the online A/B test rather than in the offline component table. In the online experiment, the control bucket uses this existing production stack, while the treatment bucket adds SAM-D2Q as an additional document-side expansion module on top of the production baseline.
5.1.5 Evaluation Metrics. We use three groups of metrics. For generation quality, we report Relevance, measured by a frozen Query-Item relevance evaluator trained on human-annotated data, and Query-Value, defined as the average commercial term score in Sec. 4.3.1. Query-Value is closely related to the alignment reward and is therefore used only as an intrinsic diagnostic metric. For retrieval effectiveness, we report # Rel. Items and Total Qual. A retrieved item is counted as relevant if its frozen Query-Item relevance score exceeds a threshold calibrated on held-out human labels. Total Qual. is computed as:
where is a fixed item-level business quality score computed before evaluation from historical efficiency signals such as CTR, CVR, and Pay Count. We report it in millions as Qual.(M). Unlike the term-level commercial reward, Total Qual. is an item-level evaluation metric and is not directly optimized during training. For online impact, we report CTR, CVR, Pay Count, and GMV.
5.2 Offline Evaluation
5.2.1 Analysis of Generation Quality. As presented in Table 2, the text-only baseline suffers from severe semantic drift, achieving only 43.11% relevance due to the lack of visual grounding. Introducing multimodal signals immediately mitigates this, producing a sharp +27.3 p.p. gain in relevance. While counterfactual augmentation in Stage 2 further refines accuracy by suppressing textual shortcuts, the most critical observation lies in the alignment phase. Although Stage 3 yields only marginal gains in relevance (+0.4 p.p.), it acts as a decisive value multiplier, propelling the Commercial Value score to a peak of 0.981. This confirms that SFT mainly improves semantic plausibility, while RL alignment is crucial for optimizing the commercial utility of generated queries.
5.2.2 End-to-End Retrieval Performance. The offline retrieval experiment focuses on neural document expansion; traditional CPV-, category-, and synonym-based expansions are included in the online production baseline. As shown in Table 1, SAM-D2Q consistently improves retrieval across all cutoffs. At Top-3000, it increases # Rel. Items from 454.5 to 594.1 (+30.7%) and Total Qual. from 5,366M to 7,139M (+33.0%). Compared with Doc2Query-Text, SAM-D2Q also retrieves more relevant items with higher aggregate quality, showing the benefit of multimodal grounding and business-aware alignment.
5.2.3 Task Adaptability. We further test whether SAM-D2Q benefits other search modules. As shown in Table 3, adding SAM-D2Q to a production QR system improves Top-3000 relevance and quality, indicating that query-side rewriting and document-side expansion are complementary. Concatenating SAM-D2Q terms to item titles also improves dense retrieval with Qwen-Emb-4B, showing that multimodal expansion provides useful textual signals even for embedding-based retrieval.
5.3 Online Deployment and Evaluation
To validate the real-world business impact of SAM-D2Q, we deployed it in AliExpress Search and conducted a 21-day A/B test on 4% of live traffic. The control bucket used the existing production retrieval and ranking stack, including CPV-attribute expansion, category lexicon expansion, synonym expansion, query-side rewriting, and other recall channels, but without SAM-D2Q document-side expansion. The treatment bucket kept all other components unchanged and only added the SAM-D2Q-enhanced document-side expansion index.
SAM-D2Q is deployed through offline indexing and introduces no online model inference. It is applied to active products with established purchase history. For each selected product, SAM-D2Q generates Top-100 candidate queries, which are inserted into the inverted index after relevance and safety filtering. The enhanced index increases index size by about 35%, while P99 recall latency increases by only 0.2%. The system supports daily incremental updates, and low-quality or invalid expansions can be removed
Table 2: Intrinsic generation quality evaluation.
| Method | Relevance | Query-Value |
|---|---|---|
| Doc2Query-Text | 43.11% | 0.962 |
| MM-SFT (Stage 1) | 70.42% | 0.958 |
| SAM-D2Q (w/o RL) | 74.57% | 0.969 |
| SAM-D2Q (Full) | 74.96% | 0.981 |
Table 3: Adaptability on downstream tasks.
| Method | # Rel. | Qual.(M) |
|---|---|---|
| Task 1: Interaction with Query Rewriting | ||
| QR + Baseline | 532.4 | 6,391 |
| QR + SAM-D2Q | 616.8 | 7,524 |
| Task 2: Augmenting Dense Retrieval | ||
| Original (Title) | 581.8 | 5,497 |
| + SAM-D2Q Text | 627.5 | 5,945 |
Table 4: Online A/B test results of SAM-D2Q on AliExpress Search (June 8–28, 4% live traffic).
| Segment | GMV | Pay Count | CTR | CVR |
|---|---|---|---|---|
| Overall | +3.38% | +2.27% | +0.25% | +0.53% |
| Core-5 Countries | +3.03% | +1.99% | +0.23% | +0.22% |
through the same mechanism. We refresh commercial term weights and perform GRPO-based alignment updates every two months. Before indexing, all generated queries pass rule-based filters for sensitive terms, prohibited terms, risky expressions, and key-brand protection.
Online A/B Test Results. The A/B test was conducted from June 8 to June 28, 2025. Users were randomly assigned by the platform experimentation system, and all reported numbers are relative lifts over the production baseline. Pay Count and CVR passed the platform's standard 95% confidence checks; other metrics are reported as directional business indicators.
As shown in Table 4, SAM-D2Q improves all core business metrics on overall search traffic, increasing GMV by +3.38%, Pay Count by +2.27%, UV Value by +2.98%, CTR by +0.25%, and CVR by +0.53%. The gains are also consistent on the core five countries. SAM-D2Q reduces the zero-result PV ratio by 17% from 2.07% to 1.72%, suggesting improved sparse-retrieval coverage. After full rollout, a 14-day reverse-bucket validation disabled SAM-D2Q for a small holdout bucket; CTR, CVR, Pay Count, and GMV dropped by 0.75%, 0.24%, 1.74%, and 2.80%, respectively, further supporting the causal impact of SAM-D2Q.
6 Conclusion
We present SAM-D2Q, a multimodal document-to-query framework for industrial e-commerce search. SAM-D2Q bridges vocabulary mismatch in sparse retrieval by generating semantically relevant, visually grounded, and commercially valuable expansion queries. It combines multimodal SFT, counterfactual data synthesis, and business-aware GRPO alignment with semantic, commercial, and visual rewards. Extensive offline experiments show consistent improvements in generation quality and retrieval effectiveness, while online A/B testing on AliExpress Search further demonstrates significant gains in core business metrics, including GMV and Pay Count. These results validate the effectiveness and deployment feasibility of SAM-D2Q in large-scale industrial search systems.
GenAI Usage Disclosure
During the preparation of this manuscript, the authors used large language model-based tools, including ChatGPT and Claude, to assist with English language polishing and grammar checking. The authors reviewed and edited all AI-generated suggestions and take full responsibility for the content of this publication.
References
[1] Aishwarya Agrawal, Dhruv Batra, Devi Parikh, and Aniruddha Kembhavi. 2018. Don't just assume; look and answer: Overcoming priors for visual question answering. In Proceedings of the IEEE conference on computer vision and pattern recognition (CVPR). 4971–4980.
Hui Zhou, Jian Hui Ji, Lei Ma, Rong Xiao, & Xiaoyi Zeng
[2] Mohammad Gheshlaghi Azar, Zhaohan Daniel Guo, Bilal Piot, Remi Munos, Mark Rowland, Michal Valko, and Daniele Calandriello. 2024. A general theoretical paradigm to understand learning from human preferences. In International Conference on Artificial Intelligence and Statistics. PMLR, 4447–4455.
[3] Jinze Bai, Shuai Bai, Shusheng Yang, Shijie Wang, Sinan Tan, Peng Wang, Junyang Lin, Chang Zhou, and Jingren Zhou. 2023. Qwen-vl: A frontier large vision-language model with versatile abilities. arXiv preprint arXiv:2308.12966 1, 2 (2023), 3.
[4] Shuai Bai, Yuxuan Cai, Ruizhe Chen, Keqin Chen, Xionghui Chen, Zesen Cheng, Lianghao Deng, Wei Ding, Chang Gao, Chunjiang Ge, Wenbin Ge, Zhifang Guo, Qidong Huang, Jie Huang, Fei Huang, Binyuan Hui, Shutong Jiang, Zhaohai Li, Mingsheng Li, Mei Li, Kaixin Li, Zicheng Lin, Junyang Lin, Xuejing Liu, Jiawei Liu, Chenglong Liu, Yang Liu, Dayiheng Liu, Shixuan Liu, Dunjie Lu, Ruilin Luo, Chenxu Lv, Rui Men, Lingchen Meng, Xuancheng Ren, Xingzhang Ren, Sibo Song, Yuchong Sun, Jun Tang, Jianhong Tu, Jianqiang Wan, Peng Wang, Pengfei Wang, Qiuyue Wang, Yuxuan Wang, Tianbao Xie, Yiheng Xu, Haiyang Xu, Jin Xu, Zhibo Yang, Mingkun Yang, Jianxin Yang, An Yang, Bowen Yu, Fei Zhang, Hang Zhang, Xi Zhang, Bo Zheng, Humen Zhong, Jingren Zhou, Fan Zhou, Jing Zhou, Yuanzhi Zhu, and Ke Zhu. 2025. Qwen3-VL Technical Report. arXiv:2511.21631 [cs.CV] https://arxiv.org/abs/2511.21631
[5] Long Chen, Xin Yan, Jun Xiao, Hanwang Zhang, Shiliang Pu, and Yueting Zhuang. 2020. Counterfactual samples synthesizing for robust visual question answering. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 10800–10809.
[6] Kawin Ethayarajh, Winnie Xu, Niklas Muennighoff, Dan Jurafsky, and Douwe Kiela. 2024. Kto: Model alignment as prospect theoretic optimization. arXiv preprint arXiv:2402.01306 (2024).
[7] Tejas Gokhale, Pratyay Banerjee, Chitta Baral, and Yezhou Yang. 2020. Mutant: A training paradigm for out-of-distribution generalization in visual question answering. arXiv preprint arXiv:2009.08566 (2020).
[8] Mitko Gospodinov, Sean MacAvaney, and Craig Macdonald. 2023. Doc2Query--: when less is more. In European Conference on Information Retrieval. Springer, 414–422.
[9] Yash Goyal, Tejas Khot, Douglas Summers-Stay, Dhruv Batra, and Devi Parikh. 2017. Making the v in vqa matter: Elevating the role of image understanding in visual question answering. In Proceedings of the IEEE conference on computer vision and pattern recognition (CVPR). 6904–6913.
[10] Jihwan Kil, Cheng Zhang, Xiangchen Dong, Bart Thomee, Han Gao, Ye Li, and Wei-Lun Chao. 2021. Discovering the Unknown Knowns: Simple VQA Augmentation against Dataset Bias. In Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing (EMNLP). 6110–6119.
[11] Jimmy Lin, Rodrigo Nogueira, and Andrew Yates. 2022. Pretrained transformers for text ranking: Bert and beyond. Springer Nature.
[12] Haotian Liu, Chunyuan Li, Qingyang Wu, and Yong Jae Lee. 2023. Visual instruction tuning. Advances in neural information processing systems 36 (2023), 34892–34916.
[13] Yulei Niu, Kaihua Tang, Hanwang Zhang, Zhiwu Lu, Xiansheng Hua, and Ji-Rong Wen. 2021. Counterfactual VQA: A Cause-Effect Look at Language Bias. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR). 12700–12710.
[14] Rodrigo Nogueira, Jimmy Lin, and AI Epistemic. 2019. From doc2query to docTTTQuery. Online preprint 6, 2 (2019).
[15] Rodrigo Nogueira, Wei Yang, Jimmy Lin, and Kyunghyun Cho. 2019. Document expansion by query prediction. arXiv preprint arXiv:1904.08375 (2019).
[16] Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. 2022. Training language models to follow instructions with human feedback. Advances in neural information processing systems 35 (2022), 27730–27744.
[17] Rafael Rafailov, Archit Sharma, Eric Mitchell, Christopher D Manning, Stefano Ermon, and Chelsea Finn. 2023. Direct preference optimization: Your language model is secretly a reward model. Advances in neural information processing systems 36 (2023), 53728–53741.
[18] John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. 2017. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347 (2017).
[19] Zhihong Shao, Peiyi Wang, Qihao Zhu, Runxin Xu, Junxiao Song, Xiao Bi, Haowei Zhang, Mingchuan Zhang, YK Li, Yang Wu, et al. 2024. Deepseekmath: Pushing the limits of mathematical reasoning in open language models. arXiv preprint arXiv:2402.03300 (2024).
[20] Orion Weller, Kyle Lo, David Wadden, Dawn Lawrie, Benjamin Van Durme, Arman Cohan, and Luca Soldaini. 2024. When do generative query and document expansions fail? a comprehensive study across methods, retrievers, and datasets. In Findings of the Association for Computational Linguistics: EACL 2024. 1987–2003.