IntentFlow: An Intent-Driven Real-Time Multimodal Search System with Image-Text Queries at Xiaohongshu

Dongjia Zhao, Yuchen Ma, Chunsheng Shi, Ziqiu Gui, Chao Yuan, Jianing Zhu, Zhaoxing Zhang, Yahui Liu, Daoxin Zhang, Yi Wu, Yao Hu, Cheng Chen

In the world of User-Generated Content (UGC) platforms like Xiaohongshu, search is rarely just about finding a "visually similar" image. If you upload a photo of a white T-shirt with the text "how to style this," you aren't looking for more photos of plain T-shirts; you’re looking for outfit inspiration. Conversely, if you ask "where to buy," you want the exact product.

IntentFlow, a new system from Xiaohongshu Inc., tackles this by shifting the search paradigm from visual similarity to explicit intent modeling.

TL;DR

IntentFlow is a real-time, multimodal search system that uses a hierarchical intent taxonomy to align candidate retrieval and reranking. By deploying an agentic data workflow and query-side adaptation, it achieves a 28.17% relative gain in Top-4 click-through rate on a billion-scale index while maintaining a P50 latency of just 1.07 seconds.

What Problem Does This Paper Address?

Traditional multimodal search often relies on "visual search" followed by a text-based reranker. However, the authors argue that relevance is intent-dependent. If the initial retrieval stage (the "coarse" filter) only looks for visual similarity, it might completely miss notes that are relevant to the user's actual goal—like a care guide for a specific fabric that features a different-looking garment.

The challenge is three-fold:

  1. Intent Ambiguity: The same image can represent different information needs depending on the accompanying text.
  2. Scale: Xiaohongshu operates on an index of over ten billion entries. You cannot simply re-encode the entire database every time you improve your model.
  3. Data Quality: Training a model to understand nuanced intent requires massive amounts of high-quality, "intent-aware" labeled data, which is expensive to produce manually.

Methods

IntentFlow introduces a comprehensive pipeline to bake intent into every step of the search process:

  • Hierarchical Intent Taxonomy: The system classifies queries into a two-level hierarchy. Level 1 distinguishes between Visual Search and Information Seeking. Level 2 drills down into specific objectives like Item Search, Outfit Styling, or Transferable Information Seeking.
  • Agentic Data Construction: To generate training data at scale, the authors built an offline "agentic" workflow. AI agents verify if candidate notes satisfy specific intent criteria (e.g., "Does this note actually provide styling advice for this jacket?"). This produces high-quality "verified positives" and "hard negatives."
  • Multimodal Representation Learning: The embedding model is trained using a combination of intent-aware contrastive learning, graded ranking (prioritizing "perfect" matches over "related" ones), and distribution distillation from a larger 2B-parameter teacher model into a 0.8B student.
  • Query-Side Adaptation: To avoid the "re-indexing problem," the authors keep the document embeddings fixed. They use LoRA (Low-Rank Adaptation) and a residual projection layer on the query side only. This allows the system to "steer" the query vector into the existing document space more effectively as the model iterates.
  • Intent-Conditioned Reranker: A final reranking stage uses a compact model to assess the query and candidate evidence, explicitly conditioned on the predicted intent labels.

Datasets

The models were trained and evaluated using Xiaohongshu’s internal UGC corpus:

  • Intent Recognition: Trained on 26,767 labeled queries and evaluated on 390 human-annotated samples.
  • Reranking: Trained on over 1.7 million query-candidate pairs.
  • Retrieval Evaluation: Tested on an independent set of 20,000 queries against two galleries: a 0.5M note set and a 1.9M note set.
  • Baselines: Compared against WeMM-Embedding-2B, an external state-of-the-art multimodal embedding model.

Key Insights and Ideas

  • Intent > Similarity: The biggest "aha" moment is that intent-specific relevance rules drastically outperform generic ones. On the 1.9M gallery, switching from generic to intent-aware supervision raised Hit@1 from 45.51% to 66.09%.
  • The "Transferable" Challenge: The system distinguishes between "Target-Specific" info (must be about this flower) and "Transferable" info (leather care tips for one watch might apply to another). This nuance is critical for useful information retrieval in UGC.
  • Engineering for Scale: The use of query-side LoRA is a masterclass in industrial pragmatism. It allows for rapid model iteration without the prohibitive cost of re-encoding a 10-billion-entry vector index.

Key Results

  • Online Impact: In a user-level A/B test, IntentFlow delivered a 28.17% gain in Top-4 query click-through rate (QCTR) and an 18.96% gain in overall QCTR compared to the previous production system.
  • User Engagement: Users spent 12.56% more time on search result pages, suggesting the results were significantly more relevant to their needs.
  • Efficiency: Despite the complexity of hierarchical intent recognition and reranking, the system maintains an end-to-end P50 latency of 1.07s and P90 of 1.34s.
  • Retrieval Performance: IntentFlow (0.8B) significantly outperformed the 2B-parameter WeMM baseline, even when the baseline used much higher-dimensional embeddings (2,048 vs 128).

Limitations and Future Work

  • Boundary Errors: The authors noted that the model still struggles with the fine line between "Target-Specific" and "Transferable" information seeking, as this requires deep semantic interpretation of the information's scope.
  • Teacher-Student Gap: While the 0.8B student is efficient, there is still a performance gap compared to the 2B teacher model, suggesting room for better distillation techniques.
  • Unclear Intents: Handling "Unclear Intent" queries (where the image and text don't provide an actionable goal) remains a challenge for providing a satisfying user experience.

Summary updated

Abstract

Multimodal search with image-text queries helps users find notes in user-generated content (UGC) communities and serves as a key search tool for multimodal search agents. For such queries, query-note relevance depends on the user's retrieval intent and cannot be determined by visual or topical similarity alone. Simply reranking visual search results cannot fully address this challenge, as notes relevant to the user's intent may be missing from the initial candidate set. This motivates explicit intent modeling to align candidate retrieval and reranking under consistent relevance criteria. We present IntentFlow, an intent-driven real-time multimodal search system deployed at Xiaohongshu over an index on the order of ten billion entries. IntentFlow represents retrieval objectives with a hierarchical intent taxonomy and uses intent-specific relevance criteria to guide data construction, representation learning, and reranking. An offline agentic data workflow acquires candidates and verifies their relevance under these criteria to produce training supervision. The embedding model combines intent-aware contrastive learning, graded ranking, and distribution distillation, while a compact reranker assesses query-candidate evidence conditioned on predicted hierarchical intents. Evaluations demonstrate that IntentFlow delivers substantial gains in search engagement while supporting real-time search at industrial scale. In a user-level A/B test on the Xiaohongshu platform, IntentFlow outperforms the existing production system based on visual search followed by reranking, achieving relative gains of 28.17% in Top-4 query click-through rate, 18.96% in query click-through rate, and 12.56% in average time spent on search results pages per user. Production monitoring records an end-to-end P50 latency of 1.07 s.
BibTeX
@misc{zhao2026intentflow,
  author = {Dongjia Zhao and Yuchen Ma and Chunsheng Shi and Ziqiu Gui and Chao Yuan and Jianing Zhu and Zhaoxing Zhang and Yahui Liu and Daoxin Zhang and Yi Wu and Yao Hu and Cheng Chen},
  title = {{IntentFlow: An Intent-Driven Real-Time Multimodal Search System with Image-Text Queries at Xiaohongshu}},
  year = {2026},
  eprint = {2611.20448},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20448},
}
Figure