mlsanityData to 7 Oct 2026

PinFM: Foundation Model for User Activity Sequences at a Billion-scale Visual Discovery Platform

arXiv 2507.12704 ↗First posted 17 Jul 2025cs.LG cs.IRcited by 8

Not on the map. Why?

Abstract (arXiv)

User activity sequences have emerged as one of the most important signals in recommender systems. We present a foundational model, PinFM, for understanding user activity sequences across multiple applications at a billion-scale visual discovery platform. We pretrain a transformer model with 20B+ parameters using extensive user activity data, then fine-tune it for specific applications, efficiently coupling it with existing models. While this pretraining-and-fine-tuning approach has been popular in other domains, such as Vision and NLP, its application in industrial recommender systems presents numerous challenges. The foundational model must be scalable enough to score millions of items every second while meeting tight cost and latency constraints imposed by these systems. Additionally, it should capture the interactions between user activities and other features and handle new items that were not present during the pretraining stage. We developed innovative techniques to address these challenges. Our infrastructure and algorithmic optimizations, such as the Deduplicated Cross-Attention Transformer (DCAT), improved our throughput by 600% on Pinterest internal data. We demonstrate that PinFM can learn interactions between user sequences and candidate items by altering input sequences, leading to a 20% increase in engagement with new items. PinFM is now deployed to help improve the experience of more than half a billion users across various applications.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Builds on 22 of its 35 references that are in the map. First posted on arXiv 17 Jul 2025.

Builds on

22 of 35 references.

References · 22

  1. 2018Representation Learning with Contrastive Predictive Codingcited by 7,662
  2. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  3. 2018Self-Attentive Sequential Recommendationcited by 1,169
  4. 2018Graph Convolutional Neural Networks for Web-Scale Recommender Systemscited by 1,133
  5. 2020On Layer Normalization in the Transformer Architecturecited by 906
  6. 2015Session-based Recommendations with Recurrent Neural Networkscited by 685
  7. 2017Deep Interest Network for Click-Through Rate Predictioncited by 541
  8. 2020DCN V2: Improved Deep & Cross Network and Practical Lessons for Web-scale Learning to Rank Systemscited by 326
  9. 2024Actions Speak Louder than Words: Trillion-Parameter Sequential Transducers for Generative Recommendationscited by 184
  10. 2022M6-Rec: Generative Pretrained Language Models are Open-Ended Recommender Systemscited by 152
  11. 2023Text Is All You Need: Learning Language Representations for Sequential Recommendationcited by 149
  12. 2022Towards Universal Sequence Representation Learning for Recommender Systemscited by 120
10 more
  1. 2022PinnerFormer: Sequence Modeling for User Representation at Pinterestcited by 57
  2. 2021FBGEMM: Enabling High-Performance Low-Precision Deep Learning Inferencecited by 40
  3. 2023TWIN: TWo-stage Interest Network for Lifelong User Behavior Modeling in CTR Prediction at Kuaishoucited by 40
  4. 2023TransAct: Transformer-based Realtime User Action Model for Recommendation at Pinterestcited by 35
  5. 2023Scaling Law of Large Sequential Recommendation Modelscited by 23
  6. 2020PTUM: Pre-training User Model from Unlabeled User Behaviors via Self-supervisioncited by 22
  7. 2024Multi-Behavior Generative Recommendationcited by 15
  8. 2025External Large Foundation Model: How to Efficiently Serve Trillions of Parameters for Online Ads Recommendationcited by 13
  9. 2025360Brew: A Decoder-only Foundation Model for Personalized Ranking and Recommendationcited by 12
  10. 2025SessionRec: Next Session Prediction Paradigm For Generative Sequential Recommendationcited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 2; 2026: 6.

8 papers.