---
title: "Intention2Basket: A Neural Intention-driven Approach for Dynamic Next-basket Planning"
authors:
  - "Shoujin Wang"
  - "Liang Hu"
  - "Yan Wang"
  - "Quan Z. Sheng"
  - "Mehmet Orgun"
  - "Longbing Cao"
doi: "10.24963/ijcai.2020/323"
url: "https://ijcai.org/proceedings/2020/323"
pdf: "https://ijcai.org/proceedings/2020/0323.pdf"
venue: "Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence"
year: 2020
pages: "2333-2339"
track: "Main track"
keywords:
  - "Data Mining: Applications"
  - "Humans and AI: Personalization and User Modeling"
  - "Machine Learning: Recommender Systems"
  - "Multidisciplinary Topics and Applications: Recommender Systems"
---

# Intention2Basket: A Neural Intention-driven Approach for Dynamic Next-basket Planning

Shoujin Wang, Liang Hu, Yan Wang, Quan Z. Sheng, Mehmet Orgun, Longbing Cao

*Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence*, pages 2333-2339. DOI: [10.24963/ijcai.2020/323](https://doi.org/10.24963/ijcai.2020/323)

## Abstract

User  purchase  behaviours  are  complex  and  dynamic,  which  are  usually  observed  as  multiple choice actions across a sequence of shopping baskets.   Most of the existing next-basket prediction approaches model user actions as homogeneous sequence data without considering complex and heterogeneous user intentions, impeding deep under-standing of user behaviours from the perspective of human inside drivers and thus reducing the prediction performance.  Psychological theories have indicated that user actions are essentially driven by certain underlying intentions (e.g., diet and entertainment).  Moreover, different intentions may influence each other while different choices usually have different utilities to accomplish an  intention.   Inspired by such psychological insights, we formalize the next-basket prediction as an Intention Recognition, Modelling and Accomplishing problem and  further design the Intention2Basket (Int2Ba in short) model. In Int2Ba, an Intention Recognizer, a Coupled Intention Chain Net, and a Dynamic Basket Planner are specifically designed to respectively recognize, model and accomplish the heterogeneous intentions behind a sequence of baskets to better plan the next-basket. Extensive experiments on real-world datasets show the superiority of Int2Ba over the state-of-the-art approaches.

## Full text

## 1 Introduction

Human behaviors are usually complex, uncertain and dynamic [Cone, 2012], which brings great challenges to model and predict them. For instance, purchasing a basket of products is a common user behaviour in our daily life but is hard to precisely predict. Psychologists have been trying to deeply reveal the essential complexities in human behaviours and indicate that human behaviours are essentially driven by certain inner intentions and one intention is usually accomplished by a series of actions with certain utilities [Ajzen et al., 2009]. Inspired by this, in this paper, we take the next-basket prediction problem as a typical example to study the complex user behaviours from the Psychological perspective, where the choices on a variety of items across shopping baskets form the user action sequence.

∗Corresponding author.

The commonly recognized Psychological theories [Albarracin and Wyer Jr, 2000; Albarracin et al., 2001] have revealed the complex relations between user behaviour and intentions. On the one hand, a user's behaviours are driven by a variety of heterogeneous intentions to achieve a certain goal and different intentions may influence each other. Specifically, a user's future actions are decided by the current intention states (i.e., intention accomplishment status) and are taken to accomplish the corresponding intentions. On the other hand, the user's intentions are disclosed by the happened actions and the state of each intention depends on the actions that have been taken for it. Furthermore, the goal (e.g., a shopping basket) is achieved on the basis of the perfect accomplishment of each intention [Wang et al., 2020].

However, most of the existing next-basket prediction approaches make predictions by simply modelling a user's actions in a sequence of shopping baskets as homogeneous time series data points, e.g., the stock price. Markov chain based approaches and Recurrent Neural Networks (RNN) based approaches are the two most representative approaches for nextbasket prediction. Markov chain based ones [Rendle and et al., 2010] mechanically factorize the overall transition matrix over items from adjacent baskets without differentiating the possible heterogeneous intentions behind different transitions and thus fail to capture the complex and heterogeneous dependencies over items across baskets. RNN-based ones [Yu et al., 2016; Le et al., 2019] model the inter-basket sequential dependencies by treating all the baskets in a sequence as homogeneous data points with rigid order. Therefore, they are not able to capture the complex and heterogeneous transitions over items for various intentions across baskets. As a result, all these approaches fail to consider the humans' heterogeneous intentions behind their choice actions in baskets, let alone well accomplish a user's different intentions to achieve his/her goal with a good basket planning procedure.

In this paper, inspired by the aforementioned Psychological theories on human behaviour reasoning and formation, we propose Int2Ba to deeply model the complex and heterogeneous user behaviours in a sequence of shopping baskets for better planning the next-basket. First, we design Intention Recognizer as a component of Int2Ba to automatically recognize the user's possible intentions behind the observed choices on items in baskets and then build an intentionspecific action representation by integrating the embeddings of all the items associated with the same intention in each basket. All the actions for the same intention across baskets constitute a chain for accomplishing the corresponding intention. Second, we devise Coupled Intention Chain Nets (CICN) to model the state transitions of different intentions along with the actions taken in the corresponding chains. Each Intention Chain Net (ICN) in CICN models one intention. Since different intentions may influence each other, accordingly, we particularly design Coupled Intention Unit (CIU) as the basic cell of ICN to model the intra-intention state transitions while incorporating the inter-intention influence. Consequently, the current state of each intention is obtained as the intention representation to guide the subsequent basket generation. Finally, we specifically design a Dynamic Basket Planner (DBP) to generate the next basket with a maximumutility optimizer in an iterative way, which can more effectively model the real-world basket formation process where items are put into a basket step by step. Hence, the basket with the highest utility generated in the last iteration is selected as the next-basket to best accomplish all the intentions.

The main contributions of our work are summarized below:

- We propose intention modelling for in-depth understanding of complex and heterogeneous user behaviours from the Psychological perspective.
- We design Int2Ba to model the heterogeneous intentions behind the user's complex behaviours. Specially, Intention Recognizer, CICN and DBP are devised to recognize, model and accomplish intentions respectively.
- Int2Ba is demonstrated by being applied to next-basket prediction to model the heterogeneous intentions which drive the complex purchasing actions.

## 2 RelatedWork

The existing work on next-basket prediction can be generally categorized into pattern-mining based, Markov chain based and neural network based approaches [Wang et al., 2019b].

Pattern mining is an intuitive solution to next-basket prediction by utilizing the mined sequence patterns as guidance. For example, Temporal Annotated Recurring Sequence was proposed to capture different factors (e.g., co-occurrence and sequentuality) influencing user choices for next-basket predictions [Guidotti and et al., 2018]. Pattern-mining based approaches usually focus on the frequent items while ignoring less-frequent ones, and reducing prediction performance.

Markov chain models are an alternative solution to avoid this drawback. Particularly, the Factorized Personalized Markov Chains (FPMC) was proposed for next-basket prediction by factorizing the transition matrix built on underlying Markov chains over items from adjacent baskets [Rendle and et al., 2010]. However, FPMC only captures the firstorder dependencies while ignoring higher-order ones, leading to poor performance on next-basket prediction [Wang et al., 2017; Wang et al., 2018; Lian et al., 2020b].

In recent years, various neural networks were employed for next-basket prediction. [Wang et al., 2015] constructed a hybrid representation of the last basket using shallow neural networks to predict the next basket, but it still only captures firstorder dependencies. Different from shallow neural networks, deep neural networks like RNN are more powerful in modeling complex dependencies due to their complex architectures. For example, a Dynamic REcurrent bAsket Model (DREAM) was proposed in [Yu et al., 2016] to learn the dynamic representation of a user and global sequential features across baskets for next-basket recommendations. An RNN-based sequence encoder was developed to incorporate the intra-basket correlations for predicting more coherent next basket [Le et al., 2019]. Attention mechanism was incorporated into RNN by [Bai et al., 2018] to highlight those more relevant items for next-basket prediction. RNN-based approaches can capture higher-order dependencies across multiple baskets, but they may also generate false dependencies due to the employed rigid order assumption over the baskets and bias to the recent baskets due to the memory decay [Wang et al., 2019a].

In summary, all these aforementioned works mechanically model users' behaviours in shopping baskets as homogeneous sequence data without considering the human's intentions behind, impeding the deep understanding of user behaviours. Consequently, the next-basket prediction performance is reduced. Very limited works have been reported to consider intention in users' behaviour modelling from our observation. [Chen et al., 2019] employed attention mechanism to predict users' category-wise intention, which was defined as an arbitrary pair of action type and item category, totally different from the Psychology intention in our work. In practice, the Psychology theories [Albarracin et al., 2001] have indicated that users' actions are driven by certain intentions and one intention is accomplished by the corresponding choice actions with good utility. Inspired by these, we develop Int2Ba to model the users' complex and heterogeneous actions in next-basket prediction by recognizing, modelling and accomplishing the intentions behind actions successively.

## 3 Problem Statement

Given a transaction dataset, D = {s1, ..., s|D|} denotes a collection of sequences of shopping baskets (called baskets for short), where each sequence s = {b1, ..., b|s|}(s ∈ D) consists of a list of time-ordered baskets purchased by an anonymous user. |D| is the number of sequences in D. Each basket b = {v1, ..., v|b|}(b ∈ s) contains a collection of items purchased in one transaction without rigid order. All the items in the whole dataset constitute the universal item set V = {v1, ..., v|V |}. For a target basket bt(bt ∈ s) to be predicted, all the baskets occurring prior to bt in s together form its sequential context (called context for short), denoted as Cbt = {b1, ..., bt-1} where each basket b ∈ Cbt is a contextual basket and each item v ∈ b is a contextual item. Given a context C with preceding (t - 1) baskets, a next-basket planner is to plan the items for the tth basket bt to best accomplish the intentions embeded in the context.

## 4 Intention2Basket Model

The architecture of our proposed Intention2Basket (Int2Ba for short) is shown in Figure 1 (a). Int2Ba is mainly comprised of three components: (1) Intention Recognizer, (2) Coupled Intention Chain Nets (CICN), and (3) Dynamic Basket Planner (DBP). An intention recognizer first recognizes the intentions behind the items in each contextual basket and accordingly builds the intention-specific action representation as the input of CICN. CICN models the state transitions of different intentions and accordingly generates an intention representation for basket generation. DBP iteratively generates baskets to best accomplish all the recognized intentions.

Figure 1: (a) The Int2B model mainly consists of three components: Intention Recognizer (IR), CICN and DBP (the circle with arrow means the basket generation is iterative); (b) each CIU in CICN introduces an attention model (denoted as A.) and an influence gate (σs in green color) to attentively integrate the other intention states and then selectively absorb them into the current intention transition respectively.

![Image](https://ijcai.org/proceedings/2020/fulltext/323/image_000000_e6460b4e8d6175ce551bbcb4cc4393bc51d083350ff3e43504980d34c317f0ef.png)

## 4.1 Intention Recognizer

Given the items in each contextual basket, intention recognizer discovers the potential intentions behind them. Given item vi, its embedding vi ∈ We is input into the intention recognizer to compute the probability αi,k of the kth intention to drive the choice on vi. We ∈ RK×|V | is the embedding matrix and softmax is employed to fit the case that sometimes there may be several intentions behind one item.

<!-- formula-not-decoded -->

where Wf ∈ RK×m is the intention filtering matrix, and m is the number of possible intentions which is tuned by cross validation. τ ∈ (0,+∞) is the temperature parameter [Jang et al., 2017] to tune, when τ → 0+, vi tends to be driven by a single intention. In this paper, τ is empirically set to 0.01.

Then, the intention-specific action representation aj,k for the kth intention in the j th basket bj is calculated by integrating the embedings of items according to their intentions:

<!-- formula-not-decoded -->

## 4.2 Coupled Intention Chain Nets (CICN)

CICN consists of m ICNs that are coupled together, where each for one intention as shown in Figure 1 (a). Each ICN is composed of (t-1) sequentially connected CIUs to model the corresponding intention state transitions while incorporating the inter-intention influence.

## Coupled Intention Unit (CIU)

As mentioned in Section 1, different intentions usually influence each other in the sequential purchase behaviours [Morwitz, 2014]. Traditional RNN cells including Long ShortTermMemory (LSTM) [Shi and et al., 2015] and Gated Recurrent Unit (GRU) [Chung et al., 2014] are not capable of modelling such inter-intention influence since they are originally deigned for one homogeneous sequence and thus can model the state transitions within sequences only. To this end, we design CIUs to serve as the basic cells of each ICN. To be specific, a CIU first introduces an attention model to weigh the different importance scales of other intentions w.r.t. the current one and then introduces an influence gate to selectively absorb their states into that of the current intention, as shown by the green part in Figure 1 (b). Next, we formalize the work mechanism of the CIU step by step.

First, the update gate vector rj and reset gate vector zj in preparation for the subsequent state updating at the j th step in the current kth ICN are calculated below:

<!-- formula-not-decoded -->

<!-- formula-not-decoded -->

where σs is the activation function and is specified as sigmoid in this work. Wr and Wz are the weight matrices while br and bz are the corresponding bias.

Then we calculate the importance weights of all other intentions w.r.t. the current kth intention by employing a softmax function [Peng et al., 2017] as most attention models do. The importance weight for intention sate is:

<!-- formula-not-decoded -->

Wa and ba are the attention filtering matrix and bias respectively. h(j-1,l) is the state at the (j-1)th step of lth intention.

With the attention weights, the states of all other intentions are integrated into a compound intention state hc(j-1) :

<!-- formula-not-decoded -->

The influence weight to measure the degree to which the compound intention state can influence the current kth intention is calculated via a particularly designed influence gate:

<!-- formula-not-decoded -->

whereWc andWg are the weighting matrices to be learned while σs is the sigmoid function.

The candidate intention state is calculated by taking the last state h(j-1,k), the compound state hcj-1 from other intentions, and the current action representation aj,k as the inputs:

<!-- formula-not-decoded -->

Wo and bo are the weighting matrix and bias respectively.

Finally, the intention state is obtained by combining the last state and the candidate intention state with the reset gate:

<!-- formula-not-decoded -->

The unified intention representation ht-1 is obtained by putting all the m intention states at the last step together:

<!-- formula-not-decoded -->

## 4.3 Dynamic Basket Planner (DBP)

Existing next-basket predictors [Yu et al., 2016; Bai et al., 2018] often simply select those Top-K items with the highest probabilities at once to form the next-basket. However, such manner not only ignores the correlations between these K candidate items but also overlooks the increasing preceding items in the forming basket along with a user's choice actions, reducing the accomplishment of a user's intentions. To form the next basket in a way more approaching to the real-world cases where the items are put into the basket in multi-steps, we propose DBP to plan the next-basket with a maximumutility optimizer in an iterative way to better accomplish the user's intentions. Specifically, given the learned intentions, we generate a size-K basket with the maximum utility w.r.t. all the intentions by K steps. Next, we present DBP in detail.

A utility function U(·) is defined in the optimizer to measure the utility of each item or basket w.r.t. the accomplishment of an intention. In this paper, U(·) is specified as the inner product between the embedding v of the item or basket and the intention representation h to measure the interactions between them since a stronger interaction indicates better accomplishment of the intention [Louviere et al., 2000].

<!-- formula-not-decoded -->

Given the representation h(t-1,k) of the kth intention, we select those Top-L (K ≤ L ≤ N) items with the highest utilities w.r.t. such intention from the whole item population to build an intention-specific candidate item set. L is a parameter to be tuned over specific datasets and is empirically set to 1,000 in this paper. K and N are the size of next-basket and the total number of items respectively. Then we employ an iterative generation process to generate the next-basket of size-K in K steps. In the first step, we select top-K items with the highest utilities from the whole item population to build K size-1 candidate baskets by taking each of them as one basket. In each of the following steps, first, we select Top-H items from each intention-specific candidate item set to get mH items and then we add each of them into each of the K baskets generated in the last step to form mHK new candidate baskets. Finally, we chose the Top-K ones with highest utilities w.r.t. all the intentions as the optimal ones. H is a parameter to be tuned in the specific dataset and is empirically set to 100 in our experiments. Following Eq. (11), the utility of a candidate basket ˆbt w.r.t. all the intentions in the context is calculated below:

<!-- formula-not-decoded -->

where ˆbt = [ˆat,1, ..., ˆat,m] is the intention-specific basket representation. Finally, we generate K size-K candidate baskets and select the one with the highest utility.

## 4.4 Optimization Objective and Training

## Ranking Loss

Each basket sequence used for the next-basket prediction is usually regarded as a context-target basket pair &lt; C, bt &gt;. Such data is referred to as one-class data [Hu et al., 2016] and learning from it is often treated as a ranking problem [Rendle and et al., 2009; Wu et al., 2019; Lian et al., 2020a]. Specifically, given a context C, a contrastive pair is constructed to specify the utility order b(C,x) ⪰ b(C,y) over a basket b(C,x) ∈ BC that is observed to match the context C and an unobserved basket b(C,y) /∈ BC, where BC is the set of target baskets w.r.t. the context C. Then the following max-margin loss [Lecun et al., 2006] is employed to optimize the ranking order over pairs:

<!-- formula-not-decoded -->

where the margin needs to be tuned according to the range of utility values and is empirically set to 3 in this work.

## Training Procedure

Our model is implemented using Tensorflow 1.11 and its parameters are learned based on a mini-batch learning procedure. Adam [Kingma and Ba, 2015] is used for gradient learning. The initial learning rate is empirically set to 0.001 and the batch size is set to 50.

## 5 Experiments and Evaluation

## 5.1 Data Preparation

Two real-world transaction datasets commonly used to test the performance of next-basket prediction [Guidotti and et al., 2018; Le et al., 2019] are used for the experiments: (1) Tmall 1 released by IJCAI-15 competition. It records the shopping baskets purchased by each anonymous user on Tmall.com (The Chinese version of Amazon) in six months. The purchase date of each basket is given while no timestamp for those items inside it; and (2) Tafeng 2 released on Kaggle. It contains the transaction data of a Chinese grocery store produced in four months, whose format is similar to Tmall.

First, all the purchased baskets by each user are ordered according to the purchase time to form a basket sequence s.

1 https://tianchi.aliyun.com/dataset/dataDetail?dataId=42

2 https://www.kaggle.com/chiranjivdas09/ta-feng-grocerydataset

Table 1: The characteristics of experimental datasets

| Statistics           |   Tmall |   Tafeng |
|----------------------|---------|----------|
| #Sequences           | 135,014 |   10,453 |
| #Baskets             | 399,008 |   60,392 |
| #Items               |  98,727 |   11,207 |
| Avg. sequence length |    2.96 |     5.78 |
| Avg. basket size     |    3.08 |     8.42 |

Then, following the common practice for sequence data processing, given an s, we build training and test sequence instances of length t in the form of context-target basket pair &lt; C, bt &gt; (C = {b1, b2, ..., bt-1}) by using the sliding window technique [Tanbeer et al., 2009] when |s| ≥ t or padding and masking [Collins and et al., 2012] otherwise. To feed the data into the model well, t is fixed (i.e., 5 and 8 for Tmall and Tafeng respectively) according to the data characteristics. Finally, we randomly select 20%, 30% and 40% of the instances whose target basket happens in the last 30 days to form three test sets, while the reminder for the corresponding training set respectively. Our method consistently outperforms all the baselines on all the three splits, and only the results w.r.t. the 30% split are reported for saving space. The characteristics of experimental datasets are shown in Table 1.

## 5.2 Experimental Settings

## Comparison Methods

Seven representative and state-of-the-art approaches built on various models are used as baselines. In addition, three simplified versions of our model are used for ablation analysis.

- TBP: a next-basket predictor using temporal annotated recurring sequences to capture different factors affecting users' choices [Guidotti and et al., 2018].
- FPMC: a Markov chain based next-basket predictor factorizing the transition matrix over items from adjacent baskets [Rendle and et al., 2010].
- HRM: a next-basket predictor building a hierarchical lastbasket representation for prediction [Wang et al., 2015].
- DERAM: a next-basket predictor using RNN to learn a dynamic representation of a user based on historical baskets for the prediction [Yu et al., 2016].
- NAM: a next-basket predictor incorporating attention mechanism into RNN for tracking users' evolving appetite for items for the prediction [Bai et al., 2018].
- Beacon: a state-of-the-art next-basket predictor using RNN to encode the basket sequences while considering intra-basket correlations [Le et al., 2019].
- MCPRN: a next-item predictor using mixed-channels to model different types of items [Wang et al., 2019a] and is modified to be applicable for next-basket prediction.
- Int2Ba-S: a simplified version of Int2Ba, which is composed of a single ICN based on the homogeneous intention assumption. It is built to verify the effectiveness of CICN of Int2Ba in handling heterogeneous intentions.
- Int2Ba-GRU: a simplified version of Int2Ba replacing the CIUs in Int2Ba with GRUs. It is to justify the efficacy of CIUs in modeling inter-intention influence.
- Int2Ba-Top-K: a simplified version of Int2Ba replacing the DBP in Int2Ba with commonly used Top-K next-basket predictor to demonstrate the effectiveness of DBP.

## Evaluation Metrics

Four accuracy metrics, i.e., Recall, F-1 Score, Hit-Ratio (HR) and normalized Discounted Cumulative Gain (nDCG) that are commonly used to test the next-basket prediction performance [Bai et al., 2018; Liu et al., 2020] are employed to evaluate the performance of all comparison methods.

## Parameter Settings

For a fair comparison, we first initialize each baseline model with the parameter settings in the original papers and then carefully tune them on our datasets for best performance. In our model, the dimensions of embeddings and intention states are empirically set to 100, while the number of channels m and the candidate number H in DBP is set to 3 and 100 respectively by tuning on the validation set.

## 5.3 Performance Evaluation and Analysis

Extensive experiments are conducted to evaluate our model in terms of accuracy by answering the following questions:

Q1: How does our Int2Ba perform compared with the baseline approaches in terms of prediction accuracy?

Q2: How does CICN modeling various heterogeneous intentions perform compared with a single ICN modeling only a homogeneous intention?

Q3: How does the CIU perform in modeling the interintention influence?

Q4: How does our DBP perform in accomplishing the various heterogeneous intentions?

Reply to Q1: Int2Ba vs. baselines. The prediction accuracy of our Int2Ba and those of the seven baselines are reported in Table 2. In TBP, the minimum item occurrence times in the whole dataset and the minimum number of baskets per user are empirically set to 5 and 10 respectively for the best performance. TBP is a frequent-pattern mining based approach with a user-centralized design, leading to its ignorance of infrequent items and poor performance on sparse data. The number of factors is set to 50 in FPMC for the best performance. Although it can cover more items and thus performs better than TBP, the strict assumption of first-order dependencies between any adjacent baskets prevents FPMC from being always in line with the real-world cases. The dimensions of both item embeddings and state vectors (if there is any) are empirically set to 100 in the other five baselines for best performance. Although HRM performs better by learning latent representations of baskets to relax the strict assumption in FPMC, it still only captures first-order dependencies. DERAM employs an RNN to model the higher-order dependencies over a sequence of baskets for more accurate prediction. NAM and Beacon incorporate the attention mechanism and intra-basket correlations into RNN respectively for better prediction. To avoid the noisy information from irrelevant items, MCPRN employs mixture-channel models built on RNN to model dependencies for different types of items independently. In summary, all these approaches not only ignore the heterogeneous intentions behind users' choice behaviours, but also form the next-basket by simply selecting the Top-K items with the highest probabilities, without considering the correlations between them, failing to better accomplish all the intentions by taking the basket as a whole. In contrast, by modeling the state transitions of different intentions over a sequence of baskets with different ICNs while considering the inter-intention influence, Int2Ba is able to comprehensively model the complex user behaviours driven by heterogeneous intentions. More importantly, the carefully designed DBP generates the next-basket in an iterative way driven by the intentions, and thus better accomplishes the user's intentions. As a result, Int2Ba achieves clear improvement ranging from 3.22% to 23.86% over the best performing baselines w.r.t. all the metrics on both datasets (cf. the bottom row of Table 2). The recall also shows Int2Ba leads the baselines with a clear margin (cf. Figure 2).

Table 2: Prediction accuracy on two real-world datasets

|                 | F1@5 F1@20    |   HR@5 |   Tmall HR@20 |   nDCG@5 |   nDCG@20 |   Tafeng - F1@5 |   Tafeng - F1@20 |   Tafeng - HR@5 |   Tafeng - HR@20 |   Tafeng - nDCG@5 |   Tafeng - nDCG@20 |
|-----------------|---------------|--------|---------------|----------|-----------|-----------------|------------------|-----------------|------------------|-------------------|--------------------|
| TBP             | 0.0284 0.0312 | 0.0212 |        0.0490 |   0.0642 |    0.1006 |          0.0252 |           0.0312 |          0.0187 |           0.0382 |            0.0844 |             0.1000 |
| FPMC            | 0.0614 0.0540 | 0.0878 |        0.2068 |   0.0648 |    0.1094 |          0.0620 |           0.0566 |          0.0670 |           0.1471 |            0.0565 |             0.1012 |
| HRM             | 0.0848 0.0788 | 0.1012 |        0.2326 |   0.0854 |    0.1364 |          0.0847 |           0.0785 |          0.0802 |           0.1789 |            0.0786 |             0.1325 |
| DERAM           | 0.1081 0.0816 | 0.1228 |        0.2552 |   0.1029 |    0.1602 |          0.1038 |           0.0825 |          0.0908 |           0.1956 |            0.1314 |             0.1629 |
| NAM             | 0.1090 0.0818 | 0.1224 |        0.2499 |   0.1149 |    0.1717 |          0.1110 |           0.0740 |          0.0979 |           0.1740 |            0.1302 |             0.1508 |
| Beacon          | 0.1200 0.0882 | 0.1269 |        0.2749 |   0.1265 |    0.1877 |          0.1100 |           0.0898 |          0.0989 |           0.2012 |            0.1306 |             0.1627 |
| MCPRN           | 0.1205 0.0884 | 0.1228 |        0.2756 |   0.1269 |    0.1892 |          0.1092 |           0.0898 |          0.1014 |           0.2137 |            0.1330 |             0.1670 |
| Int2Ba-S        | 0.1100 0.0856 | 0.1279 |        0.2559 |   0.1127 |    0.1615 |          0.1089 |           0.0816 |          0.0940 |           0.1942 |            0.1321 |             0.1635 |
| Int2Ba-GRU      | 0.1282 0.0910 | 0.1281 |        0.2802 |   0.1293 |    0.1936 |          0.1142 |           0.0862 |          0.0982 |           0.1990 |            0.1360 |             0.1686 |
| Int2Ba-Top-K    | 0.1302 0.0914 | 0.1320 |        0.2806 |   0.1363 |    0.2021 |          0.1174 |           0.0894 |          0.1002 |           0.2066 |            0.1366 |             0.1715 |
| Int2Ba          | 0.1527 0.0988 | 0.1635 |        0.2898 |   0.1659 |    0.2086 |          0.1261 |           0.1021 |          0.1148 |           0.2346 |            0.1454 |             0.2025 |
| Improvement (%) | 17.28 8.10    |  23.86 |          3.28 |    21.72 |      3.22 |            7.41 |            13.70 |           13.21 |             9.78 |              6.40 |              17.39 |

Figure 2: Recalls of Intention2Basket and other compared methods.

![Image](https://ijcai.org/proceedings/2020/fulltext/323/image_000001_119b962d5fe26e88bc402d051f7599d00c57b5d9a36f45f8cc6ad038b764c263.png)

Reply to Q2: heterogeneous intention modeling by CICN vs. homogeneous intention modeling by ICN. We compare the performance of Int2Ba with that of Int2Ba-S to demonstrate the effectiveness of CICN to model multiple heterogeneous intentions. As shown in Table 2 and Figure 2, Int2Ba achieves clearly higher accuracy compared with Int2Ba-S with an improvement ranging from 10.07% (nDCG@5 on Tafeng) to 47.20% (nDCG@5 on Tmall). This verifies the rationality to model uers' actions across baskets by considering their heterogeneous intentions behind.

Reply to Q3: CIU vs. GRU in modeling the inter-intention influence. Similarly, the accuracy improvement ranging from 3.43% (HR@20 on Tmall) to 28.31% (nDCG@5 on Tmall) of Int2Ba over Int2Ba-GRU in Table 2 proves the existence of inter-intention influence and it can be better captured by our designed CIU.

Reply to Q4: DBP vs. Top-K predictor in accomplishing various heterogeneous intentions. For the verification of the efficacy of our devised DBP, we compare the performance of Int2Ba with that of Int2Ba-Top-K. As reported in Table 2, Int2Ba obviously outperforms Int2Ba-Top-K w.r.t. all the metrics on both datasets, specifically, Int2Ba brings an improvement ranging from 3.22% (nDCG@20 on Tmall) to 23.86% (HR@5 on Tmall) over Int2Ba-Top-K. Such improvement demonstrates the superiority of our devised DBP in basket formation over the Top-K predictor commonly used in existing works [Yu et al., 2016; Liu et al., 2018].

## 6 Conclusions

In this paper, we have proposed Intention2Basket (Int2Ba) to effectively model the complex and heterogeneous user behaviours for better planning next-basket, which cannot be well addressed by existing works. Int2Ba harnesses an intention recognizer to recognize the possible intentions behind each basket, coupled intention chain nets to model the state transitions of different intentions and a dynamic basket planner to iteratively generate optimal basket with the highest utility to best accomplish the recognized intentions. Empirical evaluations on real-world data show the superiority of Int2Ba over the state-of-the art methods.

## Acknowledgements

This work was supported by Australian Research Council Discovery Project DP180102378.

## References

1. [Ajzen et al., 2009] Icek Ajzen, Cornelia Czasch, and et al. From intentions to behavior: Implementation intention, commitment, and conscientiousness 1. Journal of Applied Social Psychology, 39(6):1356-1372, 2009.
2. [Albarracin and Wyer Jr, 2000] Dolores Albarracin and Robert S Wyer Jr. The cognitive impact of past behavior: influences on beliefs, attitudes, and future behavioral decisions. Journal of Personality and Social Psychology, 79(1):5, 2000.
3. [Albarracin et al., 2001] Dolores Albarracin, Blair T John- son, and et al. Theories of reasoned action and planned behavior as models of condom use: a meta-analysis. Psy- chological Bulletin, 127(1):142, 2001.
4. [Bai et al., 2018] Ting Bai, Jian-Yun Nie, Wayne Xin Zhao, Yutao Zhu, Pan Du, and Ji-Rong Wen. An attribute-aware neural attentive model for next basket recommendation. In SIGIR, pages 1201-1204. ACM, 2018.
5. [Chen et al., 2019] Tong Chen, Hongzhi Yin, and et al. Air: Attentional intention-aware recommender systems. In ICDE, pages 304-315. IEEE, 2019.
6. [Chung et al., 2014] Junyoung Chung, Caglar Gulcehre, and et al. Empirical evaluation of gated recurrent neural net- works on sequence modeling. In NIPS, pages 1-9, 2014.
7. [Collins and et al., 2012] John E Collins and et al. Incorpo- rating rna-seq data into the zebrafish ensembl genebuild. Genome Research, 22(10):2067-2078, 2012.
8. [Cone, 2012] John D Cone. Applied behavior analysis. Hu- man Behavior and Environment: Advances in Theory and Research, 2:129, 2012.
9. [Guidotti and et al., 2018] Riccardo Guidotti and et al. Per- sonalized market basket prediction with temporal anno- tated recurring sequences. IEEE Transactions on Knowl- edge and Data Engineering, 31(11):2151-2163, 2018.
10. [Hu et al., 2016] Liang Hu, Longbing Cao, and et al. Learn- ing informative priors from heterogeneous domains to im- prove recommendation in cold-start user domains. ACM Transactions on Information Systems, 35(2):13, 2016.
11. [Jang et al., 2017] Eric Jang, Shixiang Gu, and Ben Poole. Categorical reparametrization with gumble-softmax. In ICLR, pages 1-13, 2017.
12. [Kingma and Ba, 2015] Diederik P. Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In ICLR, pages 1-15, 2015.
13. [Le et al., 2019] Duc-Trong Le, Hady W Lauw, and Yuan Fang. Correlation-sensitive next-basket recommendation. In IJCAI, pages 2808-2814. AAAI Press, 2019.
14. [Lecun et al., 2006] Yann Lecun, Sumit Chopra, and et al. A tutorial on energy-based learning. In Predicting Structured Data. MIT Press, 2006.
15. [Lian et al., 2020a] Defu Lian, Qi Liu, and Enhong Chen. Personalized ranking with importance sampling. In WWW, page 1093-1103, 2020.
16. [Lian et al., 2020b] Defu Lian, Haoyu Wang, and et al. Lightrec: A memory and search-efficient recommender system. In WWW, page 695-705, 2020.
17. [Liu et al., 2018] Yong Liu, Lifan Zhao, Guimei Liu, Xinyan Lu, and Peng Gao. Dynamic bayesian logistic matrix fac- torization for recommendation with implicit feedback. In IJCAI, pages 3463-3469, 2018.
18. [Liu et al., 2020] Yong Liu, Yingtai Xiao, and et al. Diver- sified interactive recommendation with implicit feedback. In AAAI, pages 1-8, 2020.
19. [Louviere et al., 2000] Jordan J Louviere, David A Hensher, and Joffre D Swait. Stated choice methods: analysis and applications. Cambridge university press, 2000.
20. [Morwitz, 2014] Vicki Morwitz. Consumers' purchase in- tentions and their behavior. Foundations and Trends in Marketing, 7(3):181-230, 2014.
21. [Peng et al., 2017] Hao Peng, Jianxin Li, Yangqiu Song, and Yaopeng Liu. Incrementally learning the hierarchical soft- max function for neural language models. In AAAI, pages 3267-3273. AAAI Press, 2017.
22. [Rendle and et al., 2009] Steffen Rendle and et al. Bpr: Bayesian personalized ranking from implicit feedback. In UAI, pages 452-461, 2009.
23. [Rendle and et al., 2010] Steffen Rendle and et al. Factor- izing personalized markov chains for next-basket recom- mendation. In WWW, pages 811-820. ACM, 2010.
24. [Shi and et al., 2015] Xingjian Shi and et al. Convolutional lstm network: a machine learning approach for precipita- tion nowcasting. In NIPS, pages 802-810, 2015.
25. [Tanbeer et al., 2009] Syed Khairuzzaman Tanbeer, Chowd- hury Farhan Ahmed, and et al. Sliding window-based fre- quent pattern mining over data streams. Information Sci- ences, 179(22):3843-3865, 2009.
26. [Wang et al., 2015] Pengfei Wang, Jiafeng Guo, and et al. Learning hierarchical representation model for nextbasket recommendation. In SIGIR, pages 403-412. ACM, 2015.
27. [Wang et al., 2017] Shoujin Wang, Liang Hu, and Longbing Cao. Perceiving the next choice with comprehensive trans- action embeddings for online recommendation. In ECML- PKDD, pages 285-302, 2017.
28. [Wang et al., 2018] Shoujin Wang, Liang Hu, Longbing Cao, and et al. Attention-based transactional context em- bedding for next-item recommendation. In AAAI, pages 2532-2539, 2018.
29. [Wang et al., 2019a] Shoujin Wang, Liang Hu, Yan Wang, and et al. Modeling multi-purpose sessions for next- item recommendations via mixture-channel purpose rout- ing networks. In IJCAI, pages 3771-3777, 2019.
30. [Wang et al., 2019b] Shoujin Wang, Liang Hu, Yan Wang, and et al. Sequential recommender systems: challenges, progress and prospects. In IJCAI, pages 6332-6338, 2019.
31. [Wang et al., 2020] Shoujin Wang, Liang Hu, Yan Wang, and et al. Intention nets: psychology-inspired user choice behavior modeling for next-basket prediction. In AAAI, pages 1-8, 2020.
32. [Wu et al., 2019] Qiong Wu, Yong Liu, and et al. Pd-gan: adversarial learning for personalized diversity-promoting recommendation. In IJCAI, pages 3870-3876, 2019.
33. [Yu et al., 2016] Feng Yu, Qiang Liu, Shu Wu, Liang Wang, and Tieniu Tan. A dynamic recurrent model for next basket recommendation. In SIGIR, pages 729-732. ACM, 2016.
