In large-scale retail environments involving thousands of products, understanding how products are purchased, in particular if and how they interact together -- through complementarity or substitution -- is critical for assortment optimization, promotion planning, and store layout design. While online and offline transaction logs contain rich implicit signals of consumer behavior, effectively modeling an unordered basket of products remains a challenge due to nested purchase intents and high-dimensional product spaces. In this paper, we propose a novel architecture for basket completion that combines self-attention with a custom loss inspired by late-interaction. Our approach explicitly disentangles distinct purchase intents within a single basket, and does not impose an artificial sequence order. We introduce a tailored architecture, training scheme, and scoring function designed specifically for the set-based structure of transaction data, yielding a model that is both computationally efficient and highly interpretable. Extensive evaluations demonstrate that our method achieves state-of-the-art predictive performance on the basket completion task across multiple public benchmarks and a large-scale proprietary retail dataset from Fortenova Group, one of the leading retail company in Southeast Europe. Furthermore, we provide detailed architectural ablations and show how our learned representations can be interpreted to extract meaningful product clusters, popularity dynamics, and cross-product interactions.
翻译:暂无翻译