The Market Basket Transformer: A New Foundation Model for Retail

54 Pages Posted: 7 Nov 2024 Last revised: 15 Nov 2024

See all articles by Sebastian Gabel

Sebastian Gabel

Rotterdam School of Management, Erasmus University Rotterdam

Daniel Ringel

University of North Carolina (UNC) at Chapel Hill - Marketing Area

Date Written: November 03, 2024

Abstract

This paper proposes a market basket transformer (MBT), an adaptation of large language model architectures to market basket data. Our transformer learns purchase patterns in unordered product sets, predicting basket composition more than twice as accurately as existing approaches. Three features differentiate the MBT from large language models. First, we incorporate covariates to account for varying purchase probabilities across heterogeneous shopping trips. Second, we improve the pretraining of the transformer by leveraging available data more efficiently. Third, we generate synthetic training examples to ensure that the market basket transformer can learn meaningful product representations for all products in the retailer's assortment. These extensions ensure that the MBT accurately learns purchase patterns, especially for long-tail products typically underrepresented in the training data. We demonstrate the model’s adaptability by fine-tuning it to predict coupon redemptions using data from a coupon experiment. Because the market basket transformer learns rich patterns in market basket data, it is a foundation model that can be easily adapted to various retail analytics applications.

Keywords: transformer models, foundation models, fine-tuning, retailing analytics, market basket analysis, long-tail products

Suggested Citation

Gabel, Sebastian and Ringel, Daniel, The Market Basket Transformer: A New Foundation Model for Retail (November 03, 2024). Available at SSRN: https://ssrn.com/abstract=4335141 or http://dx.doi.org/10.2139/ssrn.4335141

Sebastian Gabel (Contact Author)

Rotterdam School of Management, Erasmus University Rotterdam ( email )

Netherlands

HOME PAGE: http://https://www.eur.nl/en/people/sebastian-gabel

Daniel Ringel

University of North Carolina (UNC) at Chapel Hill - Marketing Area ( email )

Chapel Hill, NC 27599
United States

Do you have a job opening that you would like to promote on SSRN?

Paper statistics

Downloads
124
Abstract Views
369
Rank
455,277
PlumX Metrics