cs.LGAug 20, 2026

RecPFN: Prior-Fitted Networks for In-Context-Based Recommendations

Authors: En Zhi Tan, Jia Xiang Lim, Bryan Lijie Chew, Tze Minh Ng, Benjamin Yan Han Yap

Organizations: SAP SE Singapore

Abstract

We introduce RecPFN, a prior-fitted network that brings in-context learning to sequential recommendation. RecPFN is pretrained entirely on synthetic clickstream environments sampled from a broad structural causal prior, enabling it to amortize Bayesian-style inference from a small support set. At inference, a lightweight decoder-only transformer conditions on a handful of domain sequences and produces next-item predictions for queries in a single forward pass, without any weight updates. Across eight public benchmarks, RecPFN achives state-of-the-art zero-shot performance while remaining strongly competitive with supervised methods in low-compute and low-data regimes. It is deployment-efficient and robust to domain shift, outperforming strong zero-shot baselines that rely on large real-interaction corpora. RecPFN provides a practical path toward generalizable, data-efficient recommenders and opens avenues for richer priors, longer-context ICL, and multimodal extensions. Code for training and evaluation is publicly available at https://github.com/SAP-samples/tabular-ai-recpfn/.

Figures & tables

Explore similar work

CardsList
  1. RecRec: Recursive Refinement for Sequential Recommendation

    Jul 12, 2026Pervez Shaik, Prosenjit Biswas, Abhinav Thorat +2Sequential RecommendationIterative Refinement

  2. REPREC: Representation Driven Parameter-Efficient Recommendation System

    Jul 24, 2026Harshini Kavuru, Dwipam Katariya, Giri Iyengar +3Sequential RecommendationLarge Language Model-Based Recommendation

  3. CRUMB: Efficient Prior Fitted Network Inference via Distributionally Matched Context Batching

    Jun 9, 2026Jamie Heredge, Mattia J. Villani, Pranav Deshpande +2In-Context LearningPrior-Data Fitted Networks