Bridging NIP and MLM: A Unified Meta-Learning Framework for Sequential Recommendation
Sequential Recommender Systems (SRSs) predict items of interest for users based on their historical interactions. Two key popular paradigms for SRs are unidirectional Next Item Prediction (NIP) and bidirectional Masked Language Modeling (MLM). NIP performs well in recommendation tasks but is constrained by its reliance on prior information and a rigid temporal order assumption, limiting its ability to capture dynamic personalized preferences. MLM, on the other hand, enhances sequence representation and personalization by leveraging bidirectional context, but its objective is misaligned with recommendation tasks. To this end, we develop MetaSR, a meta-learning-based SR approach that ingeniously combines both paradigms into a unified framework to enhance personalized sequential recommendation. Specifically, we treat the mask prediction task in MLM as the inner-loop task (i.e., the support set), adjusting mask items dynamically to generate sequences that match individual behavioral patterns to capture personalized user preferences. In the outer loop (i.e., the query set), we adopt the NIP paradigm to directly train MetaSR toward the SR target. The joint training bridges the gap between MLM and SRs tasks, also overcoming NIP’s limitations in capturing dynamic personalized preferences. Furthermore, to improve the overall efficiency, we develop a reinforcement learning-based Adaptive Masked Sequence Selection (AMSS) mechanism, automatically selecting the optimal masking prediction tasks within the meta-learning support set to accelerate the meta-learning and achieve better personalization. Experiments on multiple public benchmark datasets show that MetaSR significantly outperforms existing SRs models. The dataset and codes are available at MetaSR .
Authors
- Junchen Fu (ORCID: https://orcid.org/0000-0003-4759-2042)
- Yongxin Ni (ORCID: https://orcid.org/0009-0003-7606-1475)
- Youhua Li (ORCID: https://orcid.org/0009-0006-1290-3604)
- Xinyuan Song (ORCID: https://orcid.org/0000-0002-1795-3954)
- Tianyi Xu (ORCID: https://orcid.org/0009-0001-5332-8881)
- Yuanqi He
- Yucheng Zhang
- Ersheng Ni (ORCID: https://orcid.org/0009-0009-5802-4121)
- Yihao Liu
- Sibo Xu
- Mingxuan Wu
Institutions
- Chinese Academy of Social Sciences (CN)
- Emory University (US)
- The University of Queensland (AU)
- National University of Singapore (SG)
- City University of Hong Kong (HK)
- Shanghai Jiao Tong University (CN)
- Wuhan University (CN)
- University of Chinese Academy of Social Sciences
- University of Glasgow (GB)
Publication Details
- Journal
- ACM Transactions on Knowledge Discovery from Data
- Published
- 2026-01-05
- DOI
- https://doi.org/10.1145/3786346
- Primary Topic
- Recommender Systems and Techniques
- Type
- article
- Field-Weighted Citation Impact
- 0.00