7
Learning User’s Intrinsic and Extrinsic Interests for Point-of-Interest Recommendation: A Unified Approach Huayu Li 1 , Yong Ge 2 , Defu Lian 3* , Hao Liu 1 1 University of North Carolina at Charlotte 2 Nanjing University of Finance and Economic 3 Big Data Research Center, University of Electronic Science and Technology of China [email protected], [email protected], [email protected], [email protected] Abstract Point-of-Interest (POI) recommendation has been an important service on location-based social net- works. However, it is very challenging to generate accurate recommendations due to the complex na- ture of user’s interest in POI and the data sparse- ness. In this paper, we propose a novel unified ap- proach that could effectively learn fine-grained and interpretable user’s interest, and adaptively model the missing data. Specifically, a user’s general in- terest in POI is modeled as a mixture of her intrin- sic and extrinsic interests, upon which we formu- late the ranking constraints in our unified recom- mendation approach. Furthermore, a self-adaptive location-oriented method is proposed to capture the inherent property of missing data, which is formu- lated as squared error based loss in our unified opti- mization objective. Extensive experiments on real- world datasets demonstrate the effectiveness and advantage of our approach. 1 Introduction Recent years have witnessed the rapid prevalence of location- based social network (LBSN) services, such as Foursquare, Yelp, and Facebook, which can significantly facilitate users’ outdoor activities by providing a large number of nearby Point-of-Interests (POIs) in a real-time fashion. The avail- ability of large-scale user interaction data with these LBSN services, such as sharing check-in information, provides un- paralleled opportunities for developing personalized POI rec- ommender systems [Li et al., 2015; 2016b]. However, the complex nature of user interest and the spar- sity of check-in data present significant challenges to develop POI recommender systems. First, only with check-in records, it is difficult to explain which reason impels a user to check- in a location. Thus, modeling user’s true and interpretable interest becomes a thorny issue. For example, when an un- visited POI is far away from a user, she may not visit it due to the external geographical restriction, even though she likes the POI. This imposes a challenge on interpreting and model- ing a user’s decision making on POI check-in. Second, loca- * The corresponding author. tion recommender systems usually suffer from another criti- cal challenge caused by the extremely sparse data. In a real system, there are over millions of locations and users. How- ever, each user only has limited historical check-ins, signifi- cantly increasing the difficulty of recommendation. Recently, a variety of approaches have been proposed for POI recommendation with matrix factorization from squared error based loss. For example, [Hu et al., 2008; Pan et al., 2008; Devooght et al., 2015] treat user’s preferences for ob- served and unobserved locations as binary values with vary- ing weights. [Liu et al., 2014] models geo-neighboring influ- ence in both instance and region levels, where a user’s choice to a location is affected by its neighboring locations, and lo- cations in a region share a similar sparsity structure. [Li et al., 2016a] first utilizes additional knowledge, such as social network, to learn a set of potential locations from a user’s all unobserved locations, and then assigns a small fixed value to fit this user’s preference for these potential locations. How- ever, all these existing approaches have two limitations. First, they model user’s preference in a too general way, and thus fail to capture user’s true interest, not to mention interpret- ing user’s check-in decision making process. For example, a low predicted rating of a user for an unvisited POI can not reveal the reason why this user does not like the location. Is it because she does not like or due to the external environment restriction? Second, most existing methods treat user’s all unobserved feedbacks as negative in the same way, and thus cannot capture the inherent property of missing data, i.e., a mixture of missed negative and positive values. To address the aforementioned issues, in this paper, we propose a unified approach that could effectively learn fine- grained and interpretable user’s interest, and adaptively model missing data. Each user’s general interest is modeled as a mixture of her intrinsic and extrinsic interests, where the former one is personal-taste driven and characterizes her own satisfaction regardless of any restriction, and the latter one is environment driven and influenced by external environment, i.e., geographical distance. To capture and distinguish both of them, we first formally define a user’s activity area as a set of locations geographically accessible by this user, and then for- mulate them into pairwise ranking constraints in our unified recommendation approach. Specifically, upon intrinsic inter- est, one user prefers each visited POI over any unvisited one within the corresponding activity area. On the other hand, Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17) 2117

Learning User's Intrinsic and Extrinsic Interests for ... User’s Intrinsic and Extrinsic Interests for Point-of-Interest Recommendation: A Unified Approach Huayu Li1, Yong Ge2,

Embed Size (px)

Citation preview

Page 1: Learning User's Intrinsic and Extrinsic Interests for ... User’s Intrinsic and Extrinsic Interests for Point-of-Interest Recommendation: A Unified Approach Huayu Li1, Yong Ge2,

Learning User’s Intrinsic and Extrinsic Interests for Point-of-InterestRecommendation: A Unified Approach

Huayu Li1, Yong Ge2, Defu Lian3∗, Hao Liu1

1 University of North Carolina at Charlotte2 Nanjing University of Finance and Economic

3 Big Data Research Center, University of Electronic Science and Technology of [email protected], [email protected], [email protected], [email protected]

AbstractPoint-of-Interest (POI) recommendation has beenan important service on location-based social net-works. However, it is very challenging to generateaccurate recommendations due to the complex na-ture of user’s interest in POI and the data sparse-ness. In this paper, we propose a novel unified ap-proach that could effectively learn fine-grained andinterpretable user’s interest, and adaptively modelthe missing data. Specifically, a user’s general in-terest in POI is modeled as a mixture of her intrin-sic and extrinsic interests, upon which we formu-late the ranking constraints in our unified recom-mendation approach. Furthermore, a self-adaptivelocation-oriented method is proposed to capture theinherent property of missing data, which is formu-lated as squared error based loss in our unified opti-mization objective. Extensive experiments on real-world datasets demonstrate the effectiveness andadvantage of our approach.

1 IntroductionRecent years have witnessed the rapid prevalence of location-based social network (LBSN) services, such as Foursquare,Yelp, and Facebook, which can significantly facilitate users’outdoor activities by providing a large number of nearbyPoint-of-Interests (POIs) in a real-time fashion. The avail-ability of large-scale user interaction data with these LBSNservices, such as sharing check-in information, provides un-paralleled opportunities for developing personalized POI rec-ommender systems [Li et al., 2015; 2016b].

However, the complex nature of user interest and the spar-sity of check-in data present significant challenges to developPOI recommender systems. First, only with check-in records,it is difficult to explain which reason impels a user to check-in a location. Thus, modeling user’s true and interpretableinterest becomes a thorny issue. For example, when an un-visited POI is far away from a user, she may not visit it dueto the external geographical restriction, even though she likesthe POI. This imposes a challenge on interpreting and model-ing a user’s decision making on POI check-in. Second, loca-∗The corresponding author.

tion recommender systems usually suffer from another criti-cal challenge caused by the extremely sparse data. In a realsystem, there are over millions of locations and users. How-ever, each user only has limited historical check-ins, signifi-cantly increasing the difficulty of recommendation.

Recently, a variety of approaches have been proposed forPOI recommendation with matrix factorization from squarederror based loss. For example, [Hu et al., 2008; Pan et al.,2008; Devooght et al., 2015] treat user’s preferences for ob-served and unobserved locations as binary values with vary-ing weights. [Liu et al., 2014] models geo-neighboring influ-ence in both instance and region levels, where a user’s choiceto a location is affected by its neighboring locations, and lo-cations in a region share a similar sparsity structure. [Li etal., 2016a] first utilizes additional knowledge, such as socialnetwork, to learn a set of potential locations from a user’s allunobserved locations, and then assigns a small fixed value tofit this user’s preference for these potential locations. How-ever, all these existing approaches have two limitations. First,they model user’s preference in a too general way, and thusfail to capture user’s true interest, not to mention interpret-ing user’s check-in decision making process. For example, alow predicted rating of a user for an unvisited POI can notreveal the reason why this user does not like the location. Is itbecause she does not like or due to the external environmentrestriction? Second, most existing methods treat user’s allunobserved feedbacks as negative in the same way, and thuscannot capture the inherent property of missing data, i.e., amixture of missed negative and positive values.

To address the aforementioned issues, in this paper, wepropose a unified approach that could effectively learn fine-grained and interpretable user’s interest, and adaptivelymodel missing data. Each user’s general interest is modeledas a mixture of her intrinsic and extrinsic interests, where theformer one is personal-taste driven and characterizes her ownsatisfaction regardless of any restriction, and the latter one isenvironment driven and influenced by external environment,i.e., geographical distance. To capture and distinguish both ofthem, we first formally define a user’s activity area as a set oflocations geographically accessible by this user, and then for-mulate them into pairwise ranking constraints in our unifiedrecommendation approach. Specifically, upon intrinsic inter-est, one user prefers each visited POI over any unvisited onewithin the corresponding activity area. On the other hand,

Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17)

2117

Page 2: Learning User's Intrinsic and Extrinsic Interests for ... User’s Intrinsic and Extrinsic Interests for Point-of-Interest Recommendation: A Unified Approach Huayu Li1, Yong Ge2,

upon extrinsic interest, she prefers each visited POI over anyunvisited one outside activity area. Moreover, a self-adaptivelocation-oriented method is proposed to capture the charac-teristic of missing data, which is formulated as squared errorbased loss in our unified optimization objective. Finally, theproposed model is evaluated via different validation metricsand compared with several state-of-the-art baseline modelson real-world datasets. The experimental results illustrate thesuperiority of our model for POI recommendation. The majorcontributions of this paper can be summarized as follows.• We propose to learn user interest in a precise and inter-

pretable way, which is a mixture of the intrinsic and ex-trinsic interests. Based on these two types of interests, weformulate pairwise ranking constraints.

• We propose a location-oriented method to adaptively modelthe missing data, upon which we formulate the squared er-ror based loss.

• We conduct extensive evaluations with real-world datasetsto demonstrate the effectiveness of our model.

2 The Proposed MethodProblem Statement. The recommendation task is defined as:given the check-in behaviors of n users over m locations, weaim at recommending each user with top-K new locations thatshe might be interested in but has never visited before.

Notations. Scalars, vectors and matrices are denoted bylower case letters, bold face lower case letters and bold facecapital letters, respectively. Sets are represented by calli-graphic capital letters. ui denotes the i-th column of matrixU. Frobenius and Euclidean norms are denoted by || · ||F and|| · ||, respectively. Rn is defined as the set {1, · · · , n}. Apredicted value is denoted with aˆ(hat) over it. C is used todenote the n-by-m check-in frequency matrix.

2.1 Our FrameworkMatrix factorization techniques have been popularly used tosolve recommendation tasks by mapping both user and loca-tion into latent low-dimensional spaces [Salakhutdinov andMnih, 2007; Hu et al., 2008; He et al., 2016]. Specifically,each user-specific hidden vector is used to model this user’sinterest, and is then learned via an appropriate loss func-tion. However, unlike traditional product consumption, user’scheck-in behaviors are constrained by many external factors,such as geographical distance. The complex nature in humanmobility leads to the incapability of previous approaches formodeling a user’s true interest in POI and interpreting her de-cision making process. Inspired by the studies in psychologyand sociology about distinguishing whether or not a user’s be-havior is affected by external factors [Ryan and Deci, 2000;Calder and Staw, 1975], we propose to model each user’s gen-eral interest from two aspects: (1) intrinsic interest, where shevisits a location for the sake of her own inherent likeness re-gardless of any restriction, (2) extrinsic interest, where hercheck-in decision making process is influenced by geograph-ical distance. Formally, they are are defined as:

Definition 1 (Intrinsic Interest) It is an internal form of in-terest and driven by personal taste. For example, it is theself-desire for a user to visit a POI with her own satisfaction.

u(g)i1 u

(g)i2 u

(g)i3 u

(g)i4 u

(g)i5 u

(g)i6 u

(g)i7

u(i)i1 u

(i)i2 u

(i)i3 u

(i)i4 u

(i)i5 u

(i)i6 u

(i)i7

u(e)i1 u

(e)i2 u

(e)i3 u

(e)i4 u

(e)i5 u

(e)i6 u

(e)i7

ai1

bi1

ai2 ai3 ai4 ai5 ai6 ai7

bi2 bi3 bi4 bi5 bi6 bi7

u(g)i

ai

bi

u(i)i

u(e)i

Figure 1: An example of the illustration for u(g)i , u(i)

i , andu(e)i , where u

(g)i is a mixture of u

(i)i and u

(e)i with corre-

sponding mixture weights ai and bi.

Definition 2 (Extrinsic Interest) It is an external form of in-terest and driven by environment. For example, a user’s pref-erence for a POI is influenced by geographical distance.

These two types of user interest have different contribu-tions to each individual user’s check-in decision. Hence, eachuser’s general interest is regarded as a mixture of her intrin-sic and extrinsic interests. Suppose the general, intrinsic andextrinsic interests of user i are represented by d-dimensionalvectors u

(g)i , u(i)

i , and u(e)i , respectively. Their relationship

can be formulated as follows,

u(g)i = ai � u

(i)i + bi � u

(e)i , (1)

s.t. aik ∈ [0, 1], bik ∈ [0, 1], aik + bik = 1, ∀k ∈ Rd,

where � denotes the element-wise multiplication. And ai ∈Rd×1 and bi ∈ Rd×1 are the mixture weights of intrinsic andextrinsic interest, respectively. Figure 1 provides an illustra-tion example for u(g)

i , u(i)i , and u

(e)i .

We also propose to capture the characteristic of missingdata (or unobserved data), i.e., a mixture of negative andmissed positive values, for addressing the data sparseness is-sue in location recommendations. Let us assume each loca-tion j is also characterized by a latent vector vj ∈ Rd×1 as inthe matrix factorization technique [Salakhutdinov and Mnih,2007]. Consequently, towards modeling user’s intrinsic andextrinsic interest and the missing data, the overall loss func-tion of our framework is formulated as:

min `(P,U(g),V) + θc(U(e),U(i),V) + θr(·), (2)

where θr(·) is the regularization term placed on all variablesto avoid over-fitting. θc(·) incorporates additional constraintsthat model user’s intrinsic interest U(i) and extrinsic interestU(e), and will be introduced in Section 2.2. `(·) is the empir-ical loss used to model both observed and unobserved data,and introduced in Section 2.3 (P is aslo introduced).

2.2 Modeling User Intrinsic and ExtrinsicInterests

Based on the definition 1 and 2, the distinction between user’sintrinsic and extrinsic interests sheds light on whether thereexists the involvement of external influence. In POI recom-mendation task, a user’s check-in decision making process issignificantly affected by geographical factor. Thus, in this pa-per, we focus on modeling user’s interests with geographicalinfluence. Before introducing how to model user’s two typesof interests, we first define user’s activity area as follows:

Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17)

2118

Page 3: Learning User's Intrinsic and Extrinsic Interests for ... User’s Intrinsic and Extrinsic Interests for Point-of-Interest Recommendation: A Unified Approach Huayu Li1, Yong Ge2,

l2l1

l4

l3l5

l6

l7

l8

u

Figure 2: An example of a user’s observed and unobservedlocations. The solid lines indicate observed behaviors, andother dashed lines represent unobserved ones. The red circlerepresent a activity area of this user, where locations l1 ∼ l5is assumed to be geographically accessible by this user.

Definition 3 (User’s Activity Area) Each individual userhas one or more activity areas, within each of which this useris capable of geographically accessing each POI regardlessof any geo-restriction.

Each user’s activity areas can be calculated through manyways according to real-world application scenarios. Onemethod is using clustering technique based on user’s histor-ical locations. In each cluster, we first select all locationswithin a circle with a specified distance as radius and eachvisited location as a center, and then merge them as the ac-tivity area. Formally, we define nai as the number of activityareas for the i-th user, where each of them h ∈ Rna

icomprises

a set of her visited locations Aih. Based on the definition ofactivity area, we will introduce how to model user’s intrinsicand extrinsic interests in followings of this section.

Modeling User Intrinsic Interest U(i). Based on the def-inition 1, each user’s intrinsic interest suggests her to chooseany locations that she likes regardless of any external geo-restriction. Within each activity area, the user is able to ge-ographically access each location. It indicates that a user’scheck-in decision making process on those locations withinher activity areas is restriction-free. Thus, within each activ-ity area, compared to those unobserved locations, one user’sintrinsic interest in an observed location plays an importantrole in her decision making process. In other words, upon in-trinsic interest, each individual user i prefers each observedlocation j over any unobserved location l in each activityarea, which can be formulated as follows:

(u(i)i )Tvj > (u

(i)i )Tvl, ∀j ∈ Aih, l ∈ Aih, h ∈ Rna

i, (3)

where Aih is a set of unvisited locations of user i in her h-th activity area, and (u

(i)i )Tvj indicates her preference for

location j driven by intrinsic interest. Figure 2 shows an ex-ample to illustrate Eq.(3), where user uwould like to check-inl1 ∼ l2 rather than l3 ∼ l5 upon her intrinsic interest.

Modeling User Extrinsic Interest U(e). For those loca-tions outside a user’s activity areas, she has a small chanceto visit them due to long distance. For example, although auser living at California likes a restaurant in New York, she

would not go to check-in this restaurant for the sake of dis-tance restriction. Thus, compared to those unobserved loca-tions outside a user’s activity areas, her extrinsic interest inan observed location has more impact on her check-in deci-sion than her intrinsic one. Thus, upon extrinsic interest, eachuser i prefers each observed location j over any unobservedone outside the activity areas, which is formulated as follows:

(u(e)i )Tvj > (u

(e)i )Tvl, ∀j ∈ Aih, l ∈ A∗i , h ∈ Rna

i, (4)

whereA∗i is a set of unvisited locations of user i outside activ-ity areas, and (u

(e)i )Tvj indicates her preference for location

j driven by extrinsic interest. Figure 2 shows an example toillustrate Eq.(4), where user u would like to check-in l1 ∼ l2rather than l6 ∼ l8 upon her extrinsic interest.

Our Method V.S. Existing Approaches. We would clar-ify that the existing approaches can be viewed as a specialcase of our method. If the size of activity area is infinite,which means the activity area of each user includes the wholelocation set, the constraints in Eq.(4) then will be eliminated,i.e., U(e) = 0. If the size of activity area is zero, indicat-ing that each location is a single activity area, the constraintsin Eq.(3) then will be eliminated, i.e., U(i) = 0. In bothsituations, only either intrinsic or extrinsic interest of useri contributes to her general interest, i.e., U(g) = U(i) orU(g) = U(e), which is the same as existing approaches with-out distinguishing user’s two types of interests. Thus, intro-ducing the activity area can provide us finer-grained granular-ity to explore better accuracy of POI recommender systems.

The advantage of modeling user’s general interest from twoaspects is as follows: (1) It makes location recommendationsystems behave in an explainable way by interpreting user’schoice for locations from both internal and external perspec-tive. (2) It provides a fine-grained and accurate way to learnuser’s interest. Finally, we can obtain the ranking constraintθc(·) of Eq.(2) by penalizing those violated constraints shownin Eq.(3) and Eq.(4) as follows:

θc(·) =

∑i,h,j∈T

λic

∑l∈Aih

(r(i)il − r

(i)ij )+ + λ

ec

∑l∈A∗

i

(r(e)il − r

(e)ij )+

(5)

where r(i)ij = (u(i)i )Tvj , r

(e)ij = (u

(e)i )Tvj , T = {i, h, j|i ∈

Rn, h ∈ Rnai, j ∈ Aih}, (x)+ = max(x, 0) is plus function,

and λic, λec are parameters weighting two ranking constraints.

2.3 Modeling the Missing DataDue to the large set of locations, it is crucial to model themissing data as well for addressing data sparseness and im-proving learning accuracy. Most recent approaches [Hu etal., 2008; Liu et al., 2014] focus on squared error based lossand treat all unobserved feedbacks as negative in the sameway. However, it is not realistic in real-world scenario. Anunvisited location of one user does not necessarily indicatethat she dislikes it, whereas it happens possibly due to herunawareness. In other words, some of the unvisited locationsmight be those users are interested in, while others are ac-tually those they dislike. Thus, each user’s preferences forunobserved locations are a mixture of negative and missedpositive values. Motivated by this intuition, we propose a

Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17)

2119

Page 4: Learning User's Intrinsic and Extrinsic Interests for ... User’s Intrinsic and Extrinsic Interests for Point-of-Interest Recommendation: A Unified Approach Huayu Li1, Yong Ge2,

location-oriented method to adaptively learn the potential val-ues for missing entries, instead of treating them equally asa predefined value. To achieve this, we introduce an aug-mented matrix P ∈ Rn×m that is designed only for unob-served feedbacks and learned during the training. Supposethe predicted preference of user i for location j is approxi-mated by rij = (u

(g)i )Tvj

1. The empirical loss `(·) of Eq.(2)with squared error is formulated as:

`(·) =1

2||W � (R + P− R)||2F , (6)

where W ∈ Rn×m is a weight matrix associated with check-in frequency and a parameter γ ∈ (0,+∞), and defined aswij =

√1 + γ ∗ cij . R ∈ Rn×m is a one-class feedback ma-

trix with observed feedback as one and unobserved feedbackas zero, i.e., rij = 1 if cij 6= 0 and rij = 0 if cij = 0. Specif-ically, P has two properties: (1) It is location-oriented, i.e.,comprising m latent factors, for efficient computing; (2) Ithas a small variation range for decreasing the noise in modellearning. Thus, P can be formulated by introducing a m-dimensional vector q as follows,

pij =

{0 if rij = 1,

qj if rij = 0,(7)

s.t. q ∈ [qmin, qmax],

where qmin and qmax are parameters used to bound P into asmall range around zero. In Eq.(6), it is clear that R is used tomodel observed feedbacks, while P accounts for unobservedfeedbacks and explains the difference of missing data.

Discussion. If qmin = qmax = 0, it leads to the basicimplicit-feedback based approaches by fitting a binary ma-trix [Hu et al., 2008; Pan et al., 2008]. If qmin = qmax 6= 0,it leads to the constant imputation-based approaches by as-signing a predefined non-zero numeric value for unobservedfeedback [Yao et al., 2014; Li et al., 2016a]. If qmin 6= qmax,our method is distinct from existing approaches by adaptivelyseparating all the unobserved feedbacks, which has two ad-vantages: (1) capturing the inherent property exhibited in un-observed data, i.e., a mixture of negative and positive values,and (2) automatically learning the optimal values for unob-served data instead of specifying a fixed value.

2.4 Optimization AlgorithmSo far we have introduced our solutions to capture user’s in-trinsic and extrinsic interests, and address missing data issuein POI recommendation. With these solutions, the loss func-tion of the proposed model, denoted as IEMF, is achieved byintegrating Eq.(5) and Eq.(6) into the framework in Eq.(2):

argminU(i),U(e),V,A,B,q

1

2||W � (R+P− R)||2F + θr(·)+ (8)

∑i,h,j∈T

wij

λic

∑l∈Aih

(r(i)il − r

(i)ij )+ + λe

c

∑l∈A∗i

(r(e)il − r

(e)ij )+

,

s.t. A ∈ [0, 1],B ∈ [0, 1],A+B = 1n×d,q ∈ [qmin, qmax],

1We will also incorporate geographical influence into final pre-diction with rij in a multiplicative or additive manner as [Li et al.,2016a; Ye et al., 2011].

Algorithm 1: IEMF OptimizationInput: λi

c, λec , λi

u, λeu, λv , λz , λp, α, γ, qmin, qmax, η,maxIter

Output: U(i), U(e), V, Z, q1 Randomly initialize U(i), U(e), V, Z, q, t← 12 while t 6 maxIter do3 Randomly sample a tuple (i, h, j, k, l,S−), where i is a user, h is activity

area index, j is a visited location within the acticity area, k is an unvisitedlocation within this activity area, l is an unvisited location outside activityareas, and S− is a set of other unvisited locations with size as |S−|.

4 eio ← wio(rio − rio), ∀o ∈ S5 ejk ← λi

cwijy′(r

(i)ik − r

(i)ij ), ejl ← λe

cwijy′(r

(e)il − r

(e)ij )

6 u(i)i ← u

(i)i − η(

∑o∈S eio(ai � vo) + ejk(vk − vj) + λi

uu(i)i )

7 u(e)i ← u

(e)i − η(

∑o∈S eio(bi � vo) + ejl(vl − vj) + λe

uu(e)i )

8 zi ← zi − η(∑

o∈S eio(a′i � u

(i)i + b′i � u

(e)i )� vo + λzzi)

9 vj ← vj − η(eiju(g)i − ejku(i)

i − ejlu(e)i + λvvj)

10 vk ← vk − η(eiku(g)i + ejku

(i)i + λvvk)

11 vl ← vl − η(eilu(g)i + ejlu

(e)i + λvvl)

12 vo ← vo − η(eiou(g)i + λvvo), ∀o ∈ S−

13 qo ← (vo − η(−eio + λqqj))q, ∀o ∈ S∗−14 t← t+ 1

15 end16 return U(i), U(e), V, Z, q

where 1n×d is a n-by-dmatrix of ones, and the weight matrixW is also used to balance the optimization of squared errorand ranking error. To solve above optimization problem, weneed some preprocessing and approximation steps. First, weeliminate the constraints imposed on A and B by introducinga helper matrix Z ∈ Rn×d with zik ∈ (−∞,+∞), and usinga sigmoid function to bound the value to [0, 1] as follows,

aik = σ(zij), bik = 1− σ(zij), (9)

where σ(x) = 11+exp(−x) is sigmoid function. Second, the

plus function used in Eq.(5) is not twice differentiable andcan be smoothly approximated by the integral to a smooth ap-proximation of the sigmoid function [Lee and Mangasarian,2001; Chen and Mangasarian, 1993], given by:

(x)+ ≈ y(x) = x+1

αlog(1 + exp(−αx)), (10)

where α ∈ (0,+∞) is a parameter. With these two steps, theoptimization problem shown in Eq.(8) can be transformed to,

argminU(i),U(e),V,Z,q

1

2||W � (R− R)||2F + θr(U(i),U(e),V,Z,q)+

∑i,h,j∈T

wij

λic

∑l∈Aih

y(r(i)il − r

(i)ij ) + λe

c

∑l∈A∗i

y(r(e)il − r

(e)ij )

,

where R = R + P, q ∈ [qmin, qmax], and θr(·) is definedwith regularization parameters λ∗ as follows:

θr(·) =

λiu

2||U(i)||2F +

λeu

2||U(e)||2F +

λv

2||V||2F +

λz

2||Z||2F +

λq

2||q||2.

As there is no close-form for each variable with ALS ap-proach, a Stochastic Gradient Descent (SGD) using the boos-trap sampling with replacement algorithm is developed tosolve the optimization problem. The optimization algorithmis iteratively performed by sampling a tuple (i, h, j, k, l,S−)and updating corresponding variables. More details of opti-mization are provided in Algorithm 1, where S = {j, k, l} ∪

Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17)

2120

Page 5: Learning User's Intrinsic and Extrinsic Interests for ... User’s Intrinsic and Extrinsic Interests for Point-of-Interest Recommendation: A Unified Approach Huayu Li1, Yong Ge2,

S−, S∗− = {k, l} ∪ S−, a′i = σ′(zi), b′i = −σ′(zi), (·)qis bounded value between qmin and qmax, and σ′(x) =σ(x)(1 − σ(x)), y′(x) = 1

1+exp(−αx) are the derivatives ofσ(x) and y(x), respectively.

Complexity Analysis. Sampling a tuple (i, h, j, k, l,S−)has a constant cost O(|S−|) in each update, where |S−| isthe size of sampled unobserved POIs and usually very small.Hence, the overall complexity of optimization algorithm isO(d|S−|#iter), where #iter is the total number of itera-tions. In practical, #iter � d|S−| is proportional to thenumber of the observed check-ins.

3 Experiments3.1 DatasetsWe use Gowalla and Foursquare datasets to evaluate modelperformance. Gowalla and Foursquare contain check-in data,ranging from January 2009 to August 2010, and from Decem-ber 2009 to June 2013, respectively. Each check-in record inthe datasets includes a user ID, a location ID and a timestamp,where each location has latitude and longitude information.We split the training and testing data as follows: for each in-dividual user, (1) aggregating check-ins for each location; (2)sorting locations according to the first checked-in timestamp;(3) selecting the earliest 80% to train the model and using thenext 20% as testing. The data statistics are shown in Table 1.

Table 1: The statistics of data sets.Data Set #Users #Locations #Records SparsityGowalla 52,216 98,351 2,577,336 0.0399%

Foursquare 2,551 13,474 124,933 0.2910%

3.2 Parameter SettingsAll regularization parameters are set as 0.01. The parameterλiu, α, η and d are set as 0.01, 5, 0.001, and 10. The λeu, |S−|,qmin, and qmax are set as 0.1 (or 1), 10 (or 150), −0.3 (or−0.05) and 0 (or 0.05) in Gowalla (or Foursquare) dataset.The number and radius of activity area are set as 1 and 2km.

3.3 Evaluation MetricsWe quantitatively evaluate model performance in terms oftop-K recommendation performance, i.e., Precion@K andRecall@K, and ranking performance, i.e., MAP. They are for-mally defined as follows:

Precision@K =1

n

n∑i=1

Si(K) ∩ TiK

,Recall@K =1

n

n∑i=1

Si(K) ∩ Ti|Ti|

,

MAP =1

n

n∑i=1

∑mj=1 p(j)× rel(j)

|Ti|,

where Si(K) is a set of top-K unvisited locations recom-mended to user i excluding those locations in the training,and Ti is a set of locations that are visited by user i in thetesting. p(j) is the precision of a cut-off rank list from 1 toj, and rel(j) is an indicator function that equals to 1 if thelocation is visited in the testing, otherwise equals to 0.

3.4 Baseline MethodsTo comprehensively demonstrate the effectiveness of ourmodel, we compare them with the following popular models:

5 8 10 12 15 20

K

0.03

0.04

0.05

0.06

BPR

WRMF

IRenMF

USG

ARMF

IEMF

(a) Precision@K on Foursquare

5 8 10 12 15 20

K

0.03

0.04

0.05

0.06

0.07BPR

WRMF

IRenMF

USG

ARMF

IEMF

(b) Precision@K on Gowalla

5 8 10 12 15 20

K

0.02

0.03

0.04

0.05

0.06

0.07

0.08BPR

WRMF

IRenMF

USG

ARMF

IEMF

(c) Recall@K on Foursquare

5 8 10 12 15 20

K

0.02

0.04

0.06

0.08

0.1

0.12BPR

WRMF

IRenMF

USG

ARMF

IEMF

(d) Recall@K on Gowalla

Figure 3: Performance comparison in terms of precision@Kand recall@K on Foursquare and Gowalla datasets.

• ARMF [Li et al., 2016a], which learns a set of user’s po-tential locations from her unobserved locations using socialnetwork, and then incorporates them into matrix factoriza-tion with category and geographical information.

• IRenMF [Liu et al., 2014], which incorporates neighbor-ing characteristics in both instance level and region levelinto weighted matrix factorization;

• USG [Ye et al., 2011], which incorporates geographicalinfluence, social network and user interest into user-basedcollaborative filtering in an additive manner;

• BRP [Rendle et al., 2009], which optimizes the orderingrelationship of user’s preferences for the observed locationand the unobserved location;

• WRMF [Hu et al., 2008], which minimizes the squared er-ror loss by assigning both observed and unobserved check-ins with different weights based on matrix factorization.

3.5 Performance ComparisonIn this section, we evaluate model performance from Preci-sion@K, Recall@K and MAP on two datasets shown in Fig-ure 3 and Table 2. We summarize the following observations.

First, our method outperforms all the other baseline meth-ods. This superior result is for the sake of modeling fine-grained user interest, unobserved data and geographical in-fluence together. Our better performance over those baselinemethods with geo-influence, i.e., ARMF, USG, and IRenMF,further illustrates the benefit of capturing user’s two forms ofinterest and adaptively learning unobserved data.

Second, WRMF and BRP perform differently in twodatasets, where the former one is based on squared errorand the latter is based on ranking error. Until now, there isno explicit clue to demonstrate which method is suitable forwhich type of data from Precision@K, Recall@K and MAP.From the technical viewpoint, our approach can be viewedas a unified method for ranking and squared error based lossfunctions. It is a tradeoff between these two popular matrix

Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17)

2121

Page 6: Learning User's Intrinsic and Extrinsic Interests for ... User’s Intrinsic and Extrinsic Interests for Point-of-Interest Recommendation: A Unified Approach Huayu Li1, Yong Ge2,

1 10 100 1000 100000.04

0.045

0.05

0.055

0.06

0.065

0.07

(a) [email protected] 1 10 100 1000 10000

0.064

0.066

0.068

0.07

0.072

(b) Precision@5

1 10 100 1000 100000.03

0.035

0.04

0.045

0.05

0.055

(c) [email protected] 1 10 100 1000 10000

0.048

0.049

0.05

0.051

0.052

0.053

0.054

(d) Recall@5

1 10 100 1000 10000

0.03

0.035

0.04

0.045

(e) MAP0.1 1 10 100 1000 10000

0.055

0.056

0.057

0.058

0.059

0.06

0.061

(f) MAP

Figure 4: The influence of λiu and λeu on Foursquare dataset(left) and Gowalla dataset (right). The x-axis is λeu/λ

iu.

factorization methods. Although our approach does not haveclosed-form solution as WRMF does, the effective SGD withsampling can achieve the same effectiveness.

Third, those methods with geo-influence, i.e., IEMF,ARMF, USG, and IRenMF, are better than other methodswithout geo-influence, i.e., BPR and WRMF. This result fur-ther clarifies the importance of geo-influence in location rec-ommendation, which also distinguishes location recommen-dation task from traditional item recommendation task.

Table 2: Performance comparison in terms of MAP.Foursquare Dataset

IEMF ARMF USG IRenMF WRMF BPR0.0440 0.0391 0.0346 0.0368 0.0363 0.0192

Gowalla DatasetIEMF ARMF USG IRenMF WRMF BPR0.0601 0.0571 0.0521 0.0255 0.0247 0.0365

3.6 Study of Influence of Parameters λiu and λeuWe study the influence of parameters λiu and λeu. Specifi-cally, we set λiu = 0.01 and then train our model with dif-ferent λeu, where the results are shown in Figure 4. From theresults, we observe that the optimal λeu/λ

iu is 100 and 10 on

Foursquare and Gowalla datasets, respectively. It indicatesthat the weight placed on the ranking constraint about extrin-sic interest should be larger than the one about intrinsic in-terest. There are two reasons: for each user, (1) the numberof unobserved locations outside her activity areas is usuallylarger than those within activity areas, and thus, a large λeucan allow IEMF to model more unobserved data; (2) she has

a large probability to check-in the locations within her activ-ity areas due to geo-influence, and thus, a too large λiu willincrease the noise for model learning. If λeu/λ

iu is too large,

IEMF almost focuses on optimizing the ranking constraint re-lated to extrinsic interest, definitely resulting in a poor result.

4 Related WorkRelated work of this paper can be grouped into two cat-egories. The first category is about matrix factorization(MF) [He et al., 2016; Chen et al., 2016; Kabbur et al.,2013; Balakrishnan and Chopra, 2012; Pilaszy et al., 2010;Salakhutdinov and Mnih, 2007; Pan and Chen, 2013]. Thecore of MF is to map user and item with two into low di-mensional latent space. Different loss has been developed tomodel the implicit feedback. For example, [Hu et al., 2008;Pan et al., 2008] propose to minimize the sum-of-squared er-ror with different weight over all user-item pairs, where theobserved and unobserved feedbacks are assigned to one andzero, respectively. Another loss function is based on rankingerror [Rendle et al., 2009; Rendle and Freudenthaler, 2014]by optimizing the ranking order between observed examplesand unobserved ones.

The second category is about POI recommendation withgeo-influence [Li et al., 2015; Lian et al., 2014; Lichman andSmyth, 2014; Li et al., 2016c]. For example, [Ye et al., 2011;Li et al., 2016a] propose to use a power law distribution toestimate the check-in probability with distance. With geo-influence, one user’s interest in a location then can be calcu-lated by a user-based collaborative filtering [Ye et al., 2011]or learned by MF models [Li et al., 2016a]. Also, [Liu et al.,2014] proposes to model geographical neighboring influencefrom both instance level and region level.

Different from the aforementioned methods, in this paper,we propose a new fine-grained approach to model a user’sgeneral interest from both intrinsic and extrinsic perspectives.In addition, the unobserved feedbacks (i.e., missing data) aremodeled by a self-adaptive location-oriented approach.

5 ConclusionIn this paper, we proposed a unified approach to integratesquared error loss and ranking error loss for solving loca-tion recommendation task by effectively learning fine-grainedand interpretable user interest, and adaptively modeling themissing data. Specifically, each user’s general interest ismodeled as a mixture of her intrinsic and extrinsic interests,upon which we formulated the ranking constraints in our uni-fied approach. Additionally, a self-adaptive location-orientedmethod is proposed to capture the characteristic of missingdata, and is then formulated as the squared error loss in ourunified optimization objective. To evaluate our model, weconducted extensive experiments on real-world datasets andcompared our method with several baselines. The experimen-tal results have shown the effectiveness of our model.

AcknowledgmentsThis work is partially supported by the NIH(1R21AA023975-01) and NSFC (61602234, 61572032,91646204, 61502077).

Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17)

2122

Page 7: Learning User's Intrinsic and Extrinsic Interests for ... User’s Intrinsic and Extrinsic Interests for Point-of-Interest Recommendation: A Unified Approach Huayu Li1, Yong Ge2,

References[Balakrishnan and Chopra, 2012] Suhrid Balakrishnan and

Sumit Chopra. Collaborative ranking. In Proceedings ofWSDM, pages 143–152, 2012.

[Calder and Staw, 1975] Bobby J. Calder and Barry M. Staw.Journal of personality and social psychology, 31(4):599–605, 1975.

[Chen and Mangasarian, 1993] Chunhui Chen and O. L.Mangasarian. Smoothing methods for convex inequalitiesand linear complementarity problems. Mathematical Pro-gramming, 71:51–69, 1993.

[Chen et al., 2016] Haolan Chen, Di Niu, Kunfeng Lai,Yu Xu, and Masoud Ardakani. Separating-plane factor-ization models: Scalable recommendation from one-classimplicit feedback. In Proceedings of CIKM, pages 669–678, 2016.

[Devooght et al., 2015] Robin Devooght, Nicolas Kourtellis,and Amin Mantrach. Dynamic matrix factorization withpriors on unknown values. In Proceedings of the 21th ACMSIGKDD International Conference on Knowledge Discov-ery and Data Mining, pages 189–198, 2015.

[He et al., 2016] Xiangnan He, Hanwang Zhang, Min-YenKan, and Tat-Seng Chua. Fast matrix factorization foronline recommendation with implicit feedback. In Pro-ceedings of the 39th International ACM SIGIR Conferenceon Research and Development in Information Retrieval,pages 549–558, 2016.

[Hu et al., 2008] Yifan Hu, Yehuda Koren, and Chris Volin-sky. Collaborative filtering for implicit feedback datasets.In Proceedings of ICDM, pages 263–272, 2008.

[Kabbur et al., 2013] Santosh Kabbur, Xia Ning, and GeorgeKarypis. Fism: Factored item similarity models for top-nrecommender systems. In Proceedings of SIGKDD, pages659–667, 2013.

[Lee and Mangasarian, 2001] YUH-JYE Lee and O. L. Man-gasarian. Ssvm: A smooth support vector machine forclassification. Computational Optimization and Applica-tions, 20(1):5–22, 2001.

[Li et al., 2015] Huayu Li, Richang Hong, Shiai Zhu, andYong Ge. Point-of-interest recommender systems: Aseparate-space perspective. In Proceedings of ICDM,pages 231–240, 2015.

[Li et al., 2016a] Huayu Li, Yong Ge, Richang Hong, andHengshu Zhu. Point-of-interest recommendations: Learn-ing potential check-ins from friends. In Proceedings of the22nd ACM SIGKDD International Conference on Knowl-edge Discovery and Data Mining, pages 975–984, 2016.

[Li et al., 2016b] Huayu Li, Richang Hong, Defu Lian, Zhi-ang Wu, Meng Wang, and Yong Ge. A relaxed ranking-based factor model for recommender system from implicitfeedback. In Proceedings of IJCAI, pages 1683–1689,2016.

[Li et al., 2016c] Huayu Li, Richang Hong, Zhiang Wu, andYong Ge. A spatial-temporal probabilistic matrix factor-

ization model for point-of-interest recommendation. InProceedings of SDM, pages 117–125, 2016.

[Lian et al., 2014] Defu Lian, Cong Zhao, Xing Xie,Guangzhong Sun, Enhong Chen, and Yong Rui. Ge-omf: Joint geographical modeling and matrix factorizationfor point-of-interest recommendation. In Proceedings ofSIGKDD, pages 831–840, 2014.

[Lichman and Smyth, 2014] Moshe Lichman and PadhraicSmyth. Modeling human location data with mixtures ofkernel densities. In Proceedings of SIGKDD, pages 35–44, 2014.

[Liu et al., 2014] Yong Liu, Wei Wei, Aixin Sun, and Chun-yan Miao. Exploiting geographical neighborhood charac-teristics for location recommendation. In Proceedings ofCIKM, pages 739–748, 2014.

[Pan and Chen, 2013] Weike Pan and Li Chen. Gbpr: grouppreference based bayesian personalized ranking for one-class collaborative filtering. In Proceedings of IJCAI,pages 2691–2697, 2013.

[Pan et al., 2008] Rong Pan, Yunhong Zhou, Bin Cao,Nathan N. Liu, Rajan Lukose, Martin Scholz, and QiangYang. One-class collaborative filtering. In Proceedings ofICDM, pages 502–511, 2008.

[Pilaszy et al., 2010] Istvan Pilaszy, David Zibriczky, andDomonkos Tikk. Fast als-based matrix factorization forexplicit and implicit feedback datasets. In Proceedingsof the Fourth ACM Conference on Recommender Systems,pages 71–78, 2010.

[Rendle and Freudenthaler, 2014] Steffen Rendle andChristoph Freudenthaler. Improving pairwise learningfor item recommendation from implicit feedback. InProceedings of WSDM, pages 273–282, 2014.

[Rendle et al., 2009] Steffen Rendle, Christoph Freuden-thaler, Zeno Gantner, and Lars Schmidt-Thieme. Bpr:Bayesian personalized ranking from implicit feedback. Inthe Twenty-Fifth Conference on Uncertainty in ArtificialIntelligence (UAI), pages 452–461, 2009.

[Ryan and Deci, 2000] Richard M. Ryan and Edward L.Deci. Intrinsic and extrinsic motivations: Classic defini-tions and new directions. Contemporary Educational Psy-chology, 25(1):54–67, January 2000.

[Salakhutdinov and Mnih, 2007] Ruslan Salakhutdinov andAndriy Mnih. Probabilistic matrix factorization. In NIPS,pages 1257–1264, 2007.

[Yao et al., 2014] Yuan Yao, Hanghang Tong, Guo Yan,Feng Xu, Xiang Zhang, Boleslaw K. Szymanski, and JianLu. Dual-regularized one-class collaborative filtering. InProceedings of the 23rd ACM International Conference onConference on Information and Knowledge Management,pages 759–768, 2014.

[Ye et al., 2011] Mao Ye, Peifeng Yin, Wang-Chien Lee, andDik-Lun Lee. Exploiting geographical influence for col-laborative point-of-interest recommendation. In Proceed-ing of SIGIR, pages 325–334, 2011.

Proceedings of the Twenty-Sixth International Joint Conference on Artificial Intelligence (IJCAI-17)

2123