# Jointly Modeling Intra- and Inter-transaction Dependencies with Hierarchical Attentive Transaction Embeddings for Next-item Recommendation

arXiv: https://arxiv.org/abs/2006.04530 · HTML: https://mlsanity.com/paper/2006.04530/

## Key facts

- Cited by 7 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 30 May 2020.

## Built on by (most cited first, 7 of 7)

- [Dual Contrastive Transformer for Hierarchical Preference Modeling in Sequential Recommendation](https://mlsanity.com/paper/2410.22790/) (2024)
- [Modeling Temporal Positive and Negative Excitation for Sequential Recommendation](https://mlsanity.com/paper/2410.22013/) (2024)
- [Aspect-driven User Preference and News Representation Learning for News Recommendation](https://mlsanity.com/paper/2110.05792/) (2021)
- [Modeling Multi-interest News Sequence for News Recommendation](https://mlsanity.com/paper/2207.07331/) (2022)
- [RecBase: Generative Foundation Model Pretraining for Zero-Shot Recommendation](https://mlsanity.com/paper/2509.03131/) (2025)
- [Modeling Complex Dependencies for Session-based Recommendations via Graph Neural Networks](https://mlsanity.com/paper/2201.12532/) (2022)
- [Towards Unified Approaches in Self-Supervised Event Stream Modeling: Progress and Prospects](https://mlsanity.com/paper/2502.04899/) (2025)

## Abstract (arXiv)

A transaction-based recommender system (TBRS) aims to predict the next item by modeling dependencies in transactional data. Generally, two kinds of dependencies considered are intra-transaction dependency and inter-transaction dependency. Most existing TBRSs recommend next item by only modeling the intra-transaction dependency within the current transaction while ignoring inter-transaction dependency with recent transactions that may also affect the next item. However, as not all recent transactions are relevant to the current and next items, the relevant ones should be identified and prioritized. In this paper, we propose a novel hierarchical attentive transaction embedding (HATE) model to tackle these issues. Specifically, a two-level attention mechanism integrates both item embedding and transaction embedding to build an attentive context representation that incorporates both intraand inter-transaction dependencies. With the learned context representation, HATE then recommends the next item. Experimental evaluations on two real-world transaction datasets show that HATE significantly outperforms the state-ofthe-art methods in terms of recommendation accuracy.
