Real Time Personalized Search on Social Networks

Real Time Personalized Search on Social Networks

Real Time Personalized Search on Social Networks # + # Yuchen Li , Zhifeng Bao ⇤, Guoliang Li , Kian-Lee Tan # + National University of Singapore ⇤University of Tasmania Tsinghua University liyuchen, tankl @comp.nus.edu.sg [email protected] [email protected] { } Abstract—Internet users are shifting from searching on tra- global major trends but not personalized search results which ditional media to social network platforms (SNPs) to retrieve may easily result in biased views [8]. Thus, it calls for a up-to-date and valuable information. SNPs have two unique new and general framework to provide real time personalized characteristics: frequent content update and small world phe- nomenon. However, existing works are not able to support these search over the social network data that leverages all unique two features simultaneously. To address this problem, we develop characteristics of SNPs. a general framework to enable real time personalized top-k As a preliminary effort to support the above two charac- query. Our framework is based on a general ranking function teristics, we focus on three most important dimensions on that incorporates time freshness, social relevance and textual SNPs: Time Freshness, Social Relevance and Text Similarity. similarity. To ensure efficient update and query processing, there Time Freshness is essential as outdated information means are two key challenges. The first is to design an index structure that is update-friendly while supporting instant query processing. nothing to user in a highly dynamic SNP. Social Relevance The second is to efficiently compute the social relevance in a must be adopted in the search framework as well. Leveraging complex graph. To address these challenges, we first design a the personal network to rank results will greatly improve novel 3D cube inverted index to support efficient pruning on the the search experience as people tend to trust those who are three dimensions simultaneously. Then we devise a cube based “closer” and will also enable more user-interactions. E.g., a threshold algorithm to retrieve the top-k results, and propose several pruning techniques to optimize the social distance compu- basketball fan is more likely to respond to a post on “NBA tation, whose cost dominates the query processing. Furthermore, Finals” posted by a friend than unfamiliar strangers. Lastly, we optimize the 3D index via a hierarchical partition method Text Similarity is the fundamental dimension where keywords to enhance our pruning on the social dimension. Extensive are used to distinguish the results from available records. experimental results on two real world large datasets demonstrate There are many challenges to support the search over these the efficiency and the robustness of our proposed solution. three dimensions. First, it is challenging to design an index I. INTRODUCTION structure that is update-friendly while supporting powerful With the rise of online social networks, Internet users are pruning for instant query processing. Specifically, when a new shifting from searching on traditional media to social network record is posted, it must be made available immediately in platforms (SNPs) to retrieve up-to-date and valuable informa- the search index rather than being periodically loaded. The tion [1]. For example, one may search on Twitter to see the second challenge lies in the query evaluation based on the latest news and comments on Malaysia Airlines flight MH17. index. In particular, how to enable an efficient computation However, searching SNP data is rather challenging due to its along the social dimension, whose performance dominates its unique properties: not only containing user-generated contents counterparts on the other two dimensions. The social distance from time to time, but also having a complex graph structure. is usually modeled as the shortest distance on the social graph In particular, there are two distinguishing characteristics: [9], [10], [6], [5], [7]. These solutions either compute the : Twitter has over 288M active users distance on-the-fly [7] or pre-compute all-pairs distances [5]. • High Update Rate with 400 million posts per day in 20131. The first is extremely inefficient for large networks, which : People in the social network renders it unacceptable for real time response, while the • Small World Phenomenon are not very far away from each other. For Facebook, the latter requires prohibitively large storage. A natural way is average degrees of separation between users are 4.742. to develop query processing techniques based on index with Moreover, unlike traditional road networks where each reasonable size. However, existing distance indices are unable vertex has a small degree, the vertex degree of a social to handle massive social network because they neglect at least network follows the power law distribution [2]. one of the unique characteristics of SNPs. To address these challenges, we present a novel solution Top-k keyword search is an important tool for users to to support real time personalized top-k query on SNPs. The consume Web data. However, existing works on keyword contributions of this paper are summarized as follows: search over social networks [3], [4], [5], [6], [7] usually ignore We present a 3D cube inverted index to support efficient one or many of the above characteristics of SNPs and lead • pruning on the three dimensions (time, social, textual) to several drawbacks, e.g. returning user with meaningless simultaneously. Such index is update-efficient, while flex- or outdated search results, low query performance, providing ible in size w.r.t. different system preferences. 1 We design a general ranking function that caters to http://www.statisticbrain.com/twitter-statistics/ • 2http://www.facebook.com/DegreesApp/ various user preferences on the three dimensions, and devise a cube threshold algorithm (CubeTA) to retrieve sorted lists w.r.t keyword frequencies requires huge number of the top-k results in the 3D index by this ranking function. random I/Os. Besides, [6] only considers the documents posted We propose several pruning techniques to accelerate the from a user’s direct friends while we consider all documents • social distance computation, and a single distance query in SNPs. Thus, there is a need to design novel indices that can be answered with an average of less than 1µs for a are update-efficient and support efficient search with social graph with 10M vertices and over 230M edges. relevance feature. We optimize the 3D index via a hierarchical partition • Distance Indices on Social Networks. Road network distance method to enhance the pruning on the social dimension. A query has been well studied in [13], [14]. However, they deeper partition tree will lead to better query performance cannot work on large social networks because the vertex and the flexibility of the index allows the space occupied degree in road networks is generally constant but dynamic to be the same as the basic 3D index. in social networks due to the power law property. Existing We conduct extensive experimental studies on two real- • distance indices for social networks [15], [16], [17], [18] world large datasets: Twitter and Memetracker. Our pro- cannot be applied to our scenario for several reasons. First, the posed solution outperforms the two baselines with aver- schemes in [15], [16], [17] assume un-weighted graphs and are age 4-8x speedups for most of the experiments. not able to handle weighted graphs. Second, the mechanisms Our framework has a general design of ranking function, in [15], [16] are only efficient for social graphs with low tree- index and search algorithm. It enables opportunities to support width property. Unfortunately, as reported in [19], the low personalized-only (regardless results’ freshness) and real-time- tree width property does not hold in real world social graphs. only (regardless of social locality) search. It is also a good We also made this observation in our real datasets. Lastly, complement to the global search provided by existing SNPs. personalized top-k query requires one-to-many distance query Our vision is: search results are not the end of story, instead whereas the methods in [17], [16] are applicable only for one- they will be fed into data analytic modules, e.g. sentiment anal- to-one query and the solution in [18] only supports one-to-all ysis, to support real-time social network analysis ultimately. query. It is hard to extend these schemes to fit our case. It We present related work in Sec. II and problem definition therefore motivates us to design pruning methods to overcome in Sec. III. We propose the 3D inverted index in Sec. IV and the distance query problem on large social networks. the CubeTA in Sec. V. In Sec. VI we present several pruning III. PROBLEM DEFINITION methods to speed up the distance query evaluation. We propose a hierarchical partition scheme for our 3D inverted index to Data Model. Let G =(V,E) be an undirected social graph, optimize CubeTA in Sec. VII, and report experiment results where V is the set of vertices representing users in the network in Sec. VIII. Finally we conclude in Sec. IX. and E is the set of edges in G denoting social links. For each vertex v, Rv is a set of records attached to v (e.g., microblogs II. RELATED WORK published by the user). A record r R is formulated as 2 v Search on Social Media Platform. Facebook developed r = r.v, r.W, r.t where: h i Unicorn [11] to handle large-scale query processing. While r.v shows which vertex this record belongs to. • it supports socially related search, the feature is only available r.W is a set of keywords contained in r. • for predefined entities rather than for arbitrary documents. r.t denotes the time when the record is published by r.v. • Moreover, Unicorn is built on list operators like LISTAND Each edge is associated with a weight, which quantifies the and LISTOR to merge search results.

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    12 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us