Maxim Zhelnin, Redko Dmitry, Volkov Daniil, Anna Volodkevich, Petr Sokerin, Valeriy Shevchenko, Egor Shvetsov, Alexey Vasilev, Daria Denisova, Ruslan Izmailov, Alexey Zaytsev · ACM Transactions on Information Systems 2026 · 2026
DOI: 10.1145/3862474
Counts differ because each database indexes a different set of publications. We treat OpenAlex as the canonical count; Google Scholar is not shown (no API, and crawling it violates its ToS).
Transformer-based sequential recommender systems are retrained frequently, yet their training is dominated by cross-entropy (CE) over item catalogs that can reach millions of items. Its logit tensor scales with catalog size × batch size × sequence length, forcing practitioners to trade these quantities against each other or use negative sampling. However, how to allocate memory among negatives, batch size, and sequence length remains an open question. We study this trade-off with nearly 1,000 SASRec training runs on six datasets and find that no single memory-related hyperparameter should be maximized in isolation. Scaling both the number of negatives and batch size outperforms maximizing only one, while the choice between full CE and CE with negative sampling is dataset-dependent. We further introduce a memory-efficient and GPU-optimized replacement for CE with negative sampling that avoids materializing the logit tensor. It speeds up training by up to 3.5× and reduces memory by 4–24× relative to PyTorch CE with negative sampling. Reallocating memory saved by our replacement and Cut Cross-Entropy, which we adapt to sequential recommender systems, into larger batches, longer sequences, and more negatives improves NDCG@10 by up to 54.7% under the same memory budget. We release the Triton kernel and a public dataset of all training runs at https://github.com/On-Point-RND/MemoryEfficientSRS.
Computer 2009 · 2009 · 11869 citations90% match
IEEE Transactions on Knowledge and Data Engineering 2005 · 2005 · 10342 citations90% match
2001 · 9083 citations90% match
2017 · 6758 citations90% match
ACM Transactions on Information Systems 2004 · 2004 · 5805 citations95% match
IEEE Internet Computing 2003 · 2003 · 5396 citations90% match
arXiv (Cornell University) 2012 · 2012 · 4397 citations90% match
Last synced
This work has 2 recorded citations, but citing papers have not been linked locally yet.
No comments yet — start the discussion below.
2020 · 4331 citations90% match
2008 · 3954 citations90% match
ACM Transactions on Interactive Intelligent Systems 2015 · 2015 · 3913 citations90% match