Masked and Swapped Sequence Modeling for Next Novel Basket Recommendation in Grocery Shopping
Not on the map. Why?
Abstract (arXiv)
Next basket recommendation (NBR) is the task of predicting the next set of items based on a sequence of already purchased baskets. It is a recommendation task that has been widely studied, especially in the context of grocery shopping. In next basket recommendation (NBR), it is useful to distinguish between repeat items, i.e., items that a user has consumed before, and explore items, i.e., items that a user has not consumed before. Most NBR work either ignores this distinction or focuses on repeat items. We formulate the next novel basket recommendation (NNBR) task, i.e., the task of recommending a basket that only consists of novel items, which is valuable for both real-world application and NBR evaluation. We evaluate how existing NBR methods perform on the NNBR task and find that, so far, limited progress has been made w.r.t. the NNBR task. To address the NNBR task, we propose a simple bi-directional transformer basket recommendation model (BTBR), which is focused on directly modeling item-to-item correlations within and across baskets instead of learning complex basket representations. To properly train BTBR, we propose and investigate several masking strategies and training objectives: (i) item-level random masking, (ii) item-level select masking, (iii) basket-level all masking, (iv) basket-level explore masking, and (v) joint masking. In addition, an item-basket swapping strategy is proposed to enrich the item interactions within the same baskets. We conduct extensive experiments on three open datasets with various characteristics. The results demonstrate the effectiveness of BTBR and our masking and swapping strategies for the NNBR task. BTBR with a properly selected masking and swapping strategy can substantially improve NNBR performance.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Builds on 19 of its 55 references that are in the map. First posted on arXiv 2 Aug 2023.
Builds on
19 of 55 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2016Layer Normalizationcited by 5,579
- 2014On the Properties of Neural Machine Translation: Encoder-Decoder Approachescited by 1,303
- 2018Self-Attentive Sequential Recommendationcited by 1,169
- 2019BERT4Rec: Sequential Recommendation with Bidirectional Encoder Representations from Transformercited by 952
- 2015Session-based Recommendations with Recurrent Neural Networkscited by 685
- 2018Personalized Top-N Sequential Recommendation via Convolutional Sequence Embeddingcited by 473
- 2018Session-based Recommendation with Graph Neural Networkscited by 312
- 2017Neural Attentive Session-based Recommendationcited by 237
- 2019Are We Really Making Much Progress? A Worrying Analysis of Recent Neural Recommendation Approachescited by 181
7 more
- 2017Recurrent Neural Networks with Top-k Gains for Session-based Recommendationscited by 165
- 2019Sequential Recommender Systems: Challenges, Progress and Prospectscited by 115
- 2022Self-Supervised Learning for Recommender Systems: A Surveycited by 95
- 2020Modeling Personalized Item Frequency Information for Next-basket Recommendationcited by 24
- 2020Predicting Temporal Sets with Deep Neural Networkscited by 16
- 2021A Next Basket Recommendation Reality Checkcited by 15
- 2021Modeling Dynamic Attributes for Next Basket Recommendationcited by 6
Built on by
Citing papers per year: 2023: 1; 2024: 2; 2025: 2; 2026: 2.
7 papers.
- 2025TGB-Seq Benchmark: Challenging Temporal GNNs with Complex Sequential Dynamicscited by 15
- 2024Transformers Meet ACT-R: Repeat-Aware and Sequential Listening Session Recommendationcited by 4
- 2026CASE: Cadence-Aware Set Encoding for Large-Scale Next Basket Repurchase Recommendationcited by 4
- 2023To Copy, or not to Copy; That is a Critical Issue of the Output Softmax Layer in Neural Sequential Recommenderscited by 2
- 2024A Case Study of Next Portfolio Prediction for Mutual Fundscited by 1
- 2025Diversity Augmentation of Dynamic User Preference Data for Boosting Personalized Text Summarizerscited by 0
- 2026NEST: Nested Event Stream Transformer for Sequences of Multisetscited by 0
- 2026CASE: Cadence-Aware Set Encoding for Large-Scale Next Basket Repurchase Recommendation8 Apr 2026
- 2026NEST: Nested Event Stream Transformer for Sequences of Multisets31 Jan 2026
- 2025Diversity Augmentation of Dynamic User Preference Data for Boosting Personalized Text Summarizers11 Oct 2025
- 2025TGB-Seq Benchmark: Challenging Temporal GNNs with Complex Sequential Dynamics5 Feb 2025
- 2024A Case Study of Next Portfolio Prediction for Mutual Funds8 Oct 2024
- 2024Transformers Meet ACT-R: Repeat-Aware and Sequential Listening Session Recommendation29 Aug 2024
- 2023To Copy, or not to Copy; That is a Critical Issue of the Output Softmax Layer in Neural Sequential Recommenders21 Oct 2023