EconPapers    
Economics at your fingertips  
 

Contextual Product Recommendation Using Transformer-Based Models: Uncovering Product Dependencies in Transactional Data

Mohammed Mghari (), Abdelilah Mhamedi and Abdelaaziz El Hibaoui
Additional contact information
Mohammed Mghari: Abdelmalek Essaâdi University
Abdelilah Mhamedi: Abdelmalek Essaâdi University
Abdelaaziz El Hibaoui: Abdelmalek Essaâdi University

SN Operations Research Forum, 2025, vol. 6, issue 3, 1-25

Abstract: Abstract Understanding the relationships between products within an invoice can significantly enhance the accuracy and effectiveness of recommendation systems in e-commerce. In this paper, we propose a novel approach to model transactional data using transformer architectures, treating invoices as analogous to sentences and products as words. Using the Online Retail dataset, we construct sequences of products for each invoice and train a Generative Pre-trained Transformer (GPT)-based model with multi-head attention to uncover latent relationships based on product co-occurrence within transactions. This approach captures contextual dependencies, enabling the model to predict complementary and alternative products more effectively than traditional methods. For example, products frequently purchased together can reveal nuanced contextual patterns that are often overlooked by standard recommendation techniques. Our results demonstrate the potential of natural language processing techniques for transactional data and show that this method leads to more accurate, diverse, and context-aware recommendations. These improvements can directly impact e-commerce platforms by increasing cross-selling opportunities, enhancing customer satisfaction, and driving sales through more personalized shopping experiences.

Keywords: Recommendation systems; Transformer models; E-commerce; Product recommendation (search for similar items in EconPapers)
Date: 2025
References: Add references at CitEc
Citations:

Downloads: (external link)
http://link.springer.com/10.1007/s43069-025-00521-1 Abstract (text/html)
Access to the full text of the articles in this series is restricted.

Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.

Export reference: BibTeX RIS (EndNote, ProCite, RefMan) HTML/Text

Persistent link: https://EconPapers.repec.org/RePEc:spr:snopef:v:6:y:2025:i:3:d:10.1007_s43069-025-00521-1

Ordering information: This journal article can be ordered from
https://www.springer.com/journal/43069

DOI: 10.1007/s43069-025-00521-1

Access Statistics for this article

SN Operations Research Forum is currently edited by Marco Lübbecke

More articles in SN Operations Research Forum from Springer
Bibliographic data for series maintained by Sonal Shukla () and Springer Nature Abstracting and Indexing ().

 
Page updated 2025-08-09
Handle: RePEc:spr:snopef:v:6:y:2025:i:3:d:10.1007_s43069-025-00521-1