TransAct: Transformer-based Realtime User Action Model for Recommendation at Pinterest

Xue Xia, Pong Eksombatchai, Nikil Pancha, Dhruvil Deven Badani, Po-Wei Wang +5 more
5/31/2023
cs.IRcs.AI

No official code found. Best implementation: pinterest/transformer_user_action (84 stars, Apache-2.0, last commit 2023-04-13). 1 more below.

Abstract

Sequential models that encode user activity for next action prediction have become a popular design choice for building web-scale personalized recommendation systems. Traditional methods of sequential recommendation either utilize end-to-end learning on realtime user actions, or learn user representations separately in an offline batch-generated manner. This paper (1) presents Pinterest's ranking architecture for Homefeed, our personalized recommendation product and the largest engagement surface; (2) proposes TransAct, a sequential model that extracts users' short-term preferences from their realtime activities; (3) describes our hybrid approach to ranking, which combines end-to-end sequential modeling via TransAct with batch-generated user embeddings. The hybrid approach allows us to combine the advantages of responsiveness from learning directly on realtime user activity with the cost-effectiveness of batch user representations learned over a longer time period. We describe the results of ablation studies, the challenges we faced during productionization, and the outcome of an online A/B experiment, which validates the effectiveness of our hybrid ranking model. We further demonstrate the effectiveness of TransAct on other surfaces such as contextual recommendations and search. Our model has been deployed to production in Homefeed, Related Pins, Notifications, and Search at Pinterest.

View on arXivView PDF

Code Implementations(2)

Apache-2.0

Transformer-based Realtime User Action Model for Recommendation at Pinterest

8415Python3 years agoApache-2.0
awadalaa/transactCommunity65%
TensorFlowApache-2.0

An unofficial implementation of "TransAct: Transformer-based Realtime User Action Model for Recommendation at Pinterest" in Tensorflow

30Python, Dockerfile2 years agoApache-2.0
deep-learningmachine-learningsequence-modelingtensorflowtransformers+1 more

Similar Papers

Cite this paper

@article{xia2023transact,
  title  = {TransAct: Transformer-based Realtime User Action Model for Recommendation at Pinterest},
  author = {Xue Xia and Pong Eksombatchai and Nikil Pancha and Dhruvil Deven Badani and Po-Wei Wang and Neng Gu and Saurabh Vishwas Joshi and Nazanin Farahpour and Zhiyuan Zhang and Andrew Zhai},
  year   = {2023},
  eprint = {2306.00248},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2306.00248v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2306.00248.svg)](https://codeofpaper.com/paper/2306.00248)

Discussion