MEGA Hub

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

Authors

Do you know En Zhi Tan?You can claim authorship or link another user.Do you know Jia Xiang Lim?You can claim authorship or link another user.Do you know Bryan Lijie Chew?You can claim authorship or link another user.Do you know Tze Minh Ng?You can claim authorship or link another user.Do you know Benjamin Yan Han Yap?You can claim authorship or link another user.

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/.

Community

00

Publication notes

Author note
12 pages, 4 figures, 8 tables
Journal
In Proceedings of the 49th International ACM SIGIR Conference on Research and Development in Information Retrieval, pp. 1731-1742. 2026
DOI
10.1145/3805712.3809696