IntSR: An Integrated Generative Framework for Search and Recommendation

Huimin Yan, Longfei Xu, Junjie Sun, Ni Ou, Wei Luo, Xing Tan, Ran Cheng, Kaikui Liu, Xiangxiang Chu

Abstract

Generative recommendation has emerged as a promising paradigm, demonstrating remarkable results in both academic benchmarks and industrial applications. However, existing systems predominantly focus on unifying retrieval and ranking while neglecting the integration of search and recommendation (S&R) tasks. What makes search and recommendation different is how queries are formed: search uses explicit user requests, while recommendation relies on implicit user interests. As for retrieval versus ranking, the distinction comes down to whether the queries are the target items themselves. Recognizing the query as central element, we propose IntSR, an integrated generative framework for S&R. IntSR integrates these disparate tasks using distinct query modalities. It also addresses the increased computational complexity associated with integrated S&R behaviors and the erroneous pattern learning introduced by a dynamically changing corpus. IntSR has been successfully deployed across various scenarios in Amap, leading to substantial improvements in digital asset's GMV (+9.34%), POI recommendation's CTR (+2.76%), and travel mode suggestion's ACC (+7.04%).

Introduction

In modern digital platforms, search and recommendation are two primary ways users discover content. While search relies on explicit natural language queries, recommendation infers intent from implicit behavioral history. Traditionally, these are treated as separate engineering silos. However, they share a common goal: connecting users with relevant items.

Existing attempts to unify search and recommendation (S&R) face three significant challenges. First, architectural divergence makes it difficult to create a single model for both retrieval and ranking across both tasks. Second, the computational cost of processing long interaction histories in generative models is high. Finally, temporal misalignment—where models learn from items that were not available at the time of interaction—introduces noise into training.

Overview of the IntSR framework and the item lifecycle challenge.

Methodology

IntSR formulates S&R as a conditional generation problem: $P(\text{target} | \text{history}, \text{context}, \text{query})$. The framework introduces several key innovations to address the aforementioned challenges.

Query Placeholders and Unification

The core innovation of IntSR is treating the "query" as a flexible modality. Instead of separate architectures, IntSR uses query placeholders ($Q$) at specific positions in the input sequence. For search, $Q$ is a semantic embedding of user text (processed via a frozen Qwen LLM). For recommendation, $Q$ is a universal token representing latent interest. For ranking, $Q$ incorporates specific candidate item information.

Efficient Architecture

To maintain industrial-scale performance, IntSR utilizes a Query-Driven Decoder (QDB) based on Hierarchical Sequential Transducers (HSTU). By employing a two-stage computation with Key-Value (KV) caching, the attention complexity is reduced from $O(N^2)$ to $O(J(N+1))$, where $J$ is the number of query placeholders. This allows the model to efficiently process long user histories.

The IntSR architecture featuring the query-driven decoder and multi-scenario block.

Training Strategies

IntSR employs session-wise masking to prevent data leakage during offline training. Unlike standard causal masking, it masks all items within the same session to ensure the model does not "cheat" by seeing future interactions in the same session. Additionally, a Temporal Candidate Alignment strategy ensures that negative samples are drawn only from items available in the corpus at the specific time of the user interaction, avoiding the "hallucination" of negative samples from the future.

Experimental Results

The framework was evaluated on public benchmarks (Amazon Kindle Store, KuaiSAR) and an internal industrial dataset (Amap Digital Assets).

  • Public Benchmarks: IntSR outperformed state-of-the-art baselines like UniSAR and HSTU in both Hit Rate (HR@1) and NDCG.
  • Industrial Impact: Real-world A/B tests at Amap showed significant gains:
  • +9.34% GMV for digital assets.
  • +2.76% CTR for Point of Interest (POI) recommendations.
  • +7.04% Accuracy for travel mode suggestions.

Conclusion

IntSR successfully bridges the gap between search and recommendation by centralizing the role of the query. By combining an efficient generative architecture with temporal-aware training strategies, it provides a robust solution for large-scale industrial applications. Future work will focus on reducing the overhead of LLM-based query processing and improving cold-start performance for new items.

Summary updated

BibTeX
@misc{yan2025intsr,
  author = {Huimin Yan and Longfei Xu and Junjie Sun and Ni Ou and Wei Luo and Xing Tan and Ran Cheng and Kaikui Liu and Xiangxiang Chu},
  title = {{IntSR: An Integrated Generative Framework for Search and Recommendation}},
  year = {2025},
  eprint = {2509.21179},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.21179},
}
Figure