Skip to main navigation Skip to search Skip to main content

Bridging NIP and MLM: A Unified Meta-Learning Framework for Sequential Recommendation

  • Youhua LI* (Co-first Author)
  • , Ersheng NI (Co-first Author)
  • , Yihao LIU
  • , Sibo XU
  • , Tianyi XU
  • , Mingxuan WU
  • , Junchen FU
  • , Yucheng ZHANG
  • , Yuanqi HE
  • , Xinyuan SONG
  • , Yongxin NI
  • *Corresponding author for this work

Research output: Journal Publications and Reviews › RGC 21 - Publication in refereed journal › peer-review

Abstract

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.
© 2026 Copyright held by the owner/author(s). Publication rights licensed to ACM.
Original languageEnglish
Article number30
Number of pages20
JournalACM Transactions on Knowledge Discovery from Data
Volume20
Issue number2
Online published2 Feb 2026
DOIs
Publication statusPublished - Feb 2026

Research Keywords

  • Masked Language Modeling (MLM)
  • Meta-learning
  • Next Item Prediction (NIP)
  • Sequential Recommender Systems (SRSs)

Fingerprint

Dive into the research topics of 'Bridging NIP and MLM: A Unified Meta-Learning Framework for Sequential Recommendation'. Together they form a unique fingerprint.

Cite this