PI2I: A Personalized Item-Based Collaborative Filtering Retrieval Framework

Shaoqing Wang, Yingcai Ma, Kairui Fu, Ziyang Wang, Dunxian Huang, Yuliang Yan, Jian Wu

TL;DR

PI2I (Personalized Item-to-Item) is a novel two-stage retrieval framework that breathes new life into classic collaborative filtering (CF) by combining it with deep learning personalization. By relaxing early candidate truncation and introducing an interactive attention model with a tailored "trigger-target" negative sampling strategy, PI2I bridges the gap between traditional CF and complex neural models, delivering a 1.05% increase in online transaction rates when deployed at scale on Taobao.

What Problem Does This Paper Address?

Modern industrial recommender systems rely on a multi-stage cascade architecture to filter billions of items down to a handful of personalized recommendations for users in milliseconds. As shown in Figure 1, the pipeline typically flows from Retrieval ($\sim10^8 \to \sim10^4$ items) through Pre-Ranking, Ranking, and Re-Ranking.

A general multi-stage architecture in modern recommender systems.

The retrieval stage is the most critical bottleneck. Existing approaches generally fall into two camps, both with significant drawbacks:

  1. Item-to-Item Collaborative Filtering (I2I CF): Highly scalable and interpretable, but relies on rigid, uniform truncation strategies (e.g., keeping only the top-50 similar items per product). This completely ignores individual user context and prematurely discards items a user might love.
  2. Two-Tower Neural Models: Excellent at user personalization, but they suffer from "overdue user-item crossing." Because user and item features are processed in separate "towers" until a final dot product, they fail to capture intricate, non-linear interactions between specific historical items and candidate items.

Graph Neural Networks (GNNs) can model these complex interactions, but they are far too computationally expensive for large-scale, real-time retrieval. The authors set out to design a framework that maintains the speed of CF while injecting the deep personalization of interactive neural networks.

Methods

The PI2I framework splits the retrieval process into two distinct phases:

1. Indexer Building Stage (IBS)

Instead of aggressively truncating the item similarity table (i2i_table) using a standard CF approach, IBS intentionally relaxes the truncation threshold ($T$). By setting $T$ much larger (e.g., $T=1250$), the system retains a much broader, more diverse pool of candidate items that a user might be interested in, maximizing the potential Hit Rate before personalization kicks in.

2. Personalized Retrieval Stage (PRS)

To score this expanded candidate pool efficiently, the authors introduce a lightweight interactive deep learning model. Rather than relying on a simple vector dot product, PRS uses a Multi-Head Target Attention (MHA) module. It treats the user's recent click history as a "single trigger list" (the keys/values) and evaluates candidate items (the queries) against them, incorporating cross-features like price differences and co-click frequencies.

Trigger-Target Negative Sampling

A key innovation of PI2I is its offline training alignment. Standard retrieval models use random or in-batch negative sampling, which doesn't match the actual candidate space seen during online inference. PI2I introduces Trigger-Target Sampling (illustrated in Figure 2b):

  • Positive Item: The user's next-clicked item.
  • Hard Negatives: Items that are present in the i2i_table for the user's active triggers but were not clicked.
  • Easy Negatives: Items associated with the user's historical clicks that did not trigger the positive item.
The overall framework of PI2I, including negative sampling and online asynchronous inference.

Datasets

The authors evaluated PI2I on three datasets:

  1. KuaiRec: A dense, real-world video recommendation dataset from Kuaishou.
  2. Taobao-Small: A subset used for rapid offline verification.
  3. Taobao-Large: A massive, sparse industrial dataset containing 130 million real-world user interactions over 20 days.

Note: The authors have open-sourced the Taobao datasets on Hugging Face (https://huggingface.co/datasets/PI2I/PI2I) to serve as a benchmark for the research community.

Key Insights and Ideas

  • The Power of Deferred Truncation: Traditional systems truncate early to save compute. PI2I shows that delaying truncation and passing a larger candidate pool to a lightweight, interactive attention model yields massive recall gains without breaking the latency budget.
  • Training-Inference Alignment Matters: By sampling negative items directly from the i2i_table generated in the first stage, the model trains on the exact distribution it will encounter during live deployment.
  • Dynamic Trigger Importance: User behavior exhibits a strong temporal decay—recent clicks are generally much stronger triggers than older ones (Figure 5). However, this distribution varies wildly by individual user behavior (Figure 6). PI2I's attention mechanism successfully captures this personalization where static CF fails.

Key Results

Offline Performance

On the sparse Taobao-Large dataset, PI2I achieved a Hit@4000 of 18.86%, dramatically outperforming pure CF (Swing at 4.12%) and beating out strong sequential neural baselines like SASRec (12.00%) and YouTubeDNN (6.06%).

Online Deployment & A/B Testing

PI2I was deployed via a nearline asynchronous architecture on Taobao's homepage "Guess You Like" section, serving hundreds of millions of users daily. In a 15-day randomized online A/B test against optimized industrial baselines (Swing and DM++):

  • Transaction Rate (TPM): Increased by +116.09% relative to the baseline.
  • Click-Through Rate (CTR): Increased by +51.27%.
  • Overall Online Transaction Rate: Achieved a net +1.05% improvement for the platform.

Limitations and Future Work

The primary limitation of PI2I is its dependency on the initial i2i_table. If a user's next-clicked item does not exist anywhere within the target items of their historical triggers, the sample cannot form a trigger-target relationship and is discarded during training. In Taobao's production environment, this occurs for approximately 15% of samples.

For future work, the authors plan to delve deeper into the structural information embedded within the indexer table to further refine the online matching system and recover these lost associations.

Summary updated

BibTeX
@inproceedings{wang2026pi,
  author = {Shaoqing Wang and Yingcai Ma and Kairui Fu and Ziyang Wang and Dunxian Huang and Yuliang Yan and Jian Wu},
  title = {{PI2I: A Personalized Item-Based Collaborative Filtering Retrieval Framework}},
  booktitle = {The Web Conference},
  year = {2026},
  doi = {10.1145/3774904.3792792},
}
Figure