TL;DR
Real-world e-commerce images are frequently cluttered with promotional text, coupons, and decorative borders that distract standard recommendation models. This paper introduces TGQ-Former (Text-Guided Q-Former), a framework that uses structured product metadata to guide visual feature extraction, effectively separating intrinsic product details from marketing noise. The resulting system significantly improves item-to-item recommendation accuracy while requiring up to 20x less compute than end-to-end multimodal LLMs.
What Problem Does This Paper Address?
In e-commerce, item-to-item (I2I) retrieval is the backbone of recommendation engines, responsible for generating a high-recall pool of similar products based on a user's current interest. Modern systems rely on multimodal embeddings that combine text metadata (titles, brands, categories) with product images.
However, real-world product images are rarely clean or object-centric. Merchants routinely upload "poster-style" listings covered in promotional overlays—such as "50% Off" badges, price tags, and holiday borders. Standard Multimodal Large Representation Models (MLRMs) connect a frozen vision encoder to an LLM via a lightweight connector, but these connectors typically use unguided learnable queries. As a result, the model's attention gets hijacked by high-contrast, visually salient promotional banners rather than the actual product. Simple heuristics like center-cropping fail because they blindly eliminate helpful contextual cues (like matching accessories or packaging).
Methods
The authors propose Text-Guided Q-Former (TGQ-Former), which introduces an adaptive disentanglement strategy to separate product-relevant visual features from marketing noise using text as a guide.
The architecture consists of three core components:
- Hybrid-Query Connector: Instead of relying solely on random queries, the connector splits its queries into two streams. The metadata-anchored stream compresses the product's textual metadata (encoded via a frozen CLIP text encoder) using a 1D convolution to initialize semantic query anchors. The exploratory stream uses standard, randomly initialized learnable queries to capture fine-grained visual details not explicitly mentioned in the text.
- Dual-Gated Vector Modulation: To handle diverse noise patterns, this module applies channel-wise gating via a centered-sigmoid function. It dynamically down-weights the metadata stream if the image and title semantics disagree, and regulates the exploratory stream based on an item-specific visual reliability signal to suppress severe overlay artifacts.
- Redundancy-Reduction Regularizer: To ensure the two query streams don't end up encoding identical information, the authors introduce a regularizer ($L_{rr}$) that minimizes the cross-correlation matrix between the streams, forcing them to remain mutually complementary.
Datasets
The framework was evaluated on two distinct datasets:
- Proprietary E-Commerce Dataset: Constructed from one year of user "add-to-cart" behavior logs on a major e-commerce platform. It contains approximately 3.5 million training item pairs, 67,000 testing pairs, and a full retrieval candidate pool of roughly 134,000 unique items.
- Amazon Clothing, Shoes and Jewelry: A public dataset used to ensure open-source reproducibility. Because public benchmarks often feature clean, object-centric images, the authors implemented a Progressive Noise Injection protocol. They synthetically added background replacements and semantic overlay noise (burst badges, corner banners, marketing text) across four severity levels (Clean, Light, Medium, Heavy) to rigorously test model robustness.
Key Insights and Ideas
- Text as a Visual Filter: Text metadata shouldn't just be concatenated with visual features at the end of a pipeline. Instead, text can serve as an active semantic prior that tells the vision model where to look, effectively filtering out marketing distractions.
- Disentanglement over Blind Suppression: Blindly masking or cropping non-product regions discards valuable contextual information (e.g., application scenarios or standard packaging). Disentangling the visual data into anchored and exploratory streams allows the model to preserve helpful context while discarding promotional artifacts.
- Embedding LLMs > Generative LLMs for Retrieval: Smaller, embedding-focused language models (like Qwen3-Embedding-0.6B) consistently outperformed larger generative LLM backbones. This is because embedding models are explicitly pre-trained for representation learning and similarity-based retrieval, aligning perfectly with the I2I task.
Key Results
- Superior Retrieval Accuracy: On the real-world e-commerce dataset, TGQ-Former achieved a Hit Rate@100 of 69.13% (using the Qwen3-Embedding-0.6B backbone), outperforming the strong NoteLLM-2 baseline by 3.94 absolute points (a 6.04% relative improvement).
- Massive Computational Efficiency: When compared against state-of-the-art end-to-end Multimodal LLMs (such as Qwen3-VL-4B-Instruct), TGQ-Former delivered better retrieval quality while requiring 8x to 20x fewer GFLOPs (35.43 vs. 592.23 GFLOPs), making it highly viable for production environments with strict latency constraints.
- Graceful Degradation under Noise: On the Amazon benchmark, as synthetic noise increased from Clean to Heavy, the baseline model suffered sharp performance drops due to high-contrast distractions. TGQ-Former maintained stable retrieval quality across all noise levels due to its reliability-aware calibration.
Limitations and Future Work
- Ambiguous Metadata Failure: Qualitative analysis showed that if the product text metadata is highly ambiguous, incomplete, or poorly aligned with the actual item, the text-guided semantic queries can fail to localize the main product object.
- Heavy Reliance on Text Quality: Because text acts as the anchor for visual filtering, the model's performance is inherently bounded by the quality of the catalog's structured metadata.
- Future Directions: The authors suggest extending this text-guided visual token extraction paradigm to other multimodal e-commerce tasks, such as text-to-image search and automated product attribute tagging.
Summary updated