Top Banner
POOLSIDE: An Online Probabilistic Knowledge Base for Shopping Decision Support Ping Zhong, Zhanhuai Li, n Chen, Yanyan Wang, Lianping Wang, Murtadha HM Ahmed, Fengfeng Fan School of Computer Science Northwestern Polytechnical University 127 West Youyi Road, Xian,P.R.China, 710072 zhongping@mail,lizhh@,chenbenben@,wangyanyan@mail,wanglp@mail,a.murtadha@mail,fanfengfeng@mail. nwpu.edu.cn ABSTRACT We present POOLSIDE, an online PrObabilistic knOwLedge base for ShoppIng DEcision support, that provides with the on-target recommendation service based on explicit user requirement. With a natural language interface, POOLSIDE can answer question in real- time. We present how to construct the knowledge base and how to enable real-time response in POOLSIDE. Finally, we demonstrate that Poolside can give high-quality product recommendations with high eciency.(e demo video can be accessed via the link:hps: //www.youtube.com/watch?v=D8ALi11CUcc) CCS CONCEPTS Mathematics of computing Probabilistic reasoning algorithms; Information systems Decision support systems; Online shop- ping; KEYWORDS knowledge base, decision support system, markov logic network 1 INTRODUCTION e existing shopping decision support systems [2] focus on prod- uct price comparison or product recommendation based on user’s past shopping behaviors. Unfortunately, none of them provides with the on-target service that can recommend products based on explicit user requirements. e challenge of providing such service results from the observation that the user-specied requirements may involve not only the basic aributes of products but their multi- aspect and more obscure concepts. For instance, a user may ask the system to recommend a mobile phone priced around 500$ and with high performance. e concept of high performance is composite and obscure. It should be evaluated on various factors including memory size, CPU frequency and number, and most importantly, the user comments. To this end, we propose an online knowledge base, denoted by POOLSIDE, that can support real-time decision making. POOLSIDE provides a natural language interface and uses Deepdive [3], the state-of-the-art KB tool, to facilitate reasoning Permission to make digital or hard copies of all or part of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for prot or commercial advantage and that copies bear this notice and the full citation on the rst page. Copyrights for components of this work owned by others than ACM must be honored. Abstracting with credit is permied. To copy otherwise, or republish, to post on servers or to redistribute to lists, requires prior specic permission and/or a fee. Request permissions from [email protected]. CIKM’17, November 6–10, 2017, Singapore. © 2017 ACM. ISBN 978-1-4503-4918-5/17/11. . . $15.00 DOI: hp://dx.doi.org/10.1145/3132847.3133168 KBC Product Attributes Comments Product Relationship QP Query Transformation Execution Planning CR Grounding Offline Inference GUI Raw data Data Structuralization Web Data Natural Language Query Answer Answer Retrieval Product Concepts Weight Module Rule Module Online Inference Knowledge Retrieval Data Fusion Aspect Analysis Figure 1: System Overview about obscure concepts. POOLSIDE is an ongoing project. Our major contributions can be summarized as follows: We develop the demo system POOLSIDE that can rec- ommend products based on explicit user requirement in real-time. We outline the major challenges of building POOLSIDE, concept reasoning and real-time response, and present the corresponding solutions in Section 4 and 5; We demo how POOLSIDE interacts with users and pro- vides high-quality product recommendations with high eciency; (Section 6) Based on our experience with POOLSIDE, we identify two future directions for the research on probabilistic knowl- edge base. (Section 7) 2 SYSTEM OVERVIEW Figure 1 gives an overview of the POOLSIDE system. It represents all knowledge facts by rst-order relations, which are stored in relational databases (Postgresql in our demo). It consists of three components, Knowledge Base Construction (KBC), Concept Rea- soning (CR) and ery Processing (QP). KBC extracts data from Web and transforms them into struc- tured data. It has a data fusion module that can merge product informations from dierent sources. It also contains an aspect analysis module that performs aspect and sentimental analysis on natural language comments. CR is responsible for reasoning about obscure product concepts. It is built on the KB tool Deepdive and provides a rule module and a weight module to facilitate rule deni- tion and rule weight seing respectively. QP transforms a natural language question into a SQL query and retrieves answers from the knowledge base in real-time. Demonstration CIKM’17, November 6-10, 2017, Singapore 2559
4

POOLSIDE: An Online Probabilistic Knowledge Base for ...POOLSIDE: An Online Probabilistic Knowledge Base for Shopping Decision Support Ping Zhong, Zhanhuai Li, ‰n Chen, Yanyan Wang,

Sep 14, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: POOLSIDE: An Online Probabilistic Knowledge Base for ...POOLSIDE: An Online Probabilistic Knowledge Base for Shopping Decision Support Ping Zhong, Zhanhuai Li, ‰n Chen, Yanyan Wang,

POOLSIDE: An Online Probabilistic Knowledge Base forShopping Decision Support

Ping Zhong, Zhanhuai Li, �n Chen, Yanyan Wang, Lianping Wang,Murtadha HM Ahmed, Fengfeng Fan

School of Computer Science Northwestern Polytechnical University127 West Youyi Road, Xian,P.R.China, 710072

zhongping@mail,lizhh@,chenbenben@,wangyanyan@mail,wanglp@mail,a.murtadha@mail,[email protected]

ABSTRACTWe present POOLSIDE, an online PrObabilistic knOwLedge basefor ShoppIng DEcision support, that provides with the on-targetrecommendation service based on explicit user requirement. With anatural language interface, POOLSIDE can answer question in real-time. We present how to construct the knowledge base and how toenable real-time response in POOLSIDE. Finally, we demonstratethat Poolside can give high-quality product recommendations withhigh e�ciency.(�e demo video can be accessed via the link:h�ps://www.youtube.com/watch?v=D8ALi11CUcc)

CCS CONCEPTS•Mathematics of computing→Probabilistic reasoning algorithms;•Information systems →Decision support systems; Online shop-ping;

KEYWORDSknowledge base, decision support system, markov logic network

1 INTRODUCTION�e existing shopping decision support systems [2] focus on prod-uct price comparison or product recommendation based on user’spast shopping behaviors. Unfortunately, none of them provideswith the on-target service that can recommend products based onexplicit user requirements. �e challenge of providing such serviceresults from the observation that the user-speci�ed requirementsmay involve not only the basic a�ributes of products but their multi-aspect and more obscure concepts. For instance, a user may ask thesystem to recommend a mobile phone priced around 500$ and withhigh performance. �e concept of high performance is compositeand obscure. It should be evaluated on various factors includingmemory size, CPU frequency and number, and most importantly,the user comments. To this end, we propose an online knowledgebase, denoted by POOLSIDE, that can support real-time decisionmaking. POOLSIDE provides a natural language interface and usesDeepdive [3], the state-of-the-art KB tool, to facilitate reasoningPermission to make digital or hard copies of all or part of this work for personal orclassroom use is granted without fee provided that copies are not made or distributedfor pro�t or commercial advantage and that copies bear this notice and the full citationon the �rst page. Copyrights for components of this work owned by others than ACMmust be honored. Abstracting with credit is permi�ed. To copy otherwise, or republish,to post on servers or to redistribute to lists, requires prior speci�c permission and/or afee. Request permissions from [email protected]’17, November 6–10, 2017, Singapore.© 2017 ACM. ISBN 978-1-4503-4918-5/17/11. . .$15.00DOI: h�p://dx.doi.org/10.1145/3132847.3133168

KBC

Product Attributes CommentsProduct

Relationship

QP

Query Transformation

Execution Planning

CR

Grounding

Offline Inference

GU

I

Raw data

Data Structuralization

Web Data

Natural Language

Query

Answer

Answer RetrievalProduct Concepts

Weight Module

Rule Module

Online Inference

Knowledge Retrieval

Data Fusion

Aspect Analysis

Figure 1: System Overview

about obscure concepts. POOLSIDE is an ongoing project. Ourmajor contributions can be summarized as follows:

• We develop the demo system POOLSIDE that can rec-ommend products based on explicit user requirement inreal-time. We outline the major challenges of buildingPOOLSIDE, concept reasoning and real-time response, andpresent the corresponding solutions in Section 4 and 5;

• We demo how POOLSIDE interacts with users and pro-vides high-quality product recommendations with highe�ciency; (Section 6)

• Based on our experience with POOLSIDE, we identify twofuture directions for the research on probabilistic knowl-edge base. (Section 7)

2 SYSTEM OVERVIEWFigure 1 gives an overview of the POOLSIDE system. It representsall knowledge facts by �rst-order relations, which are stored inrelational databases (Postgresql in our demo). It consists of threecomponents, Knowledge Base Construction (KBC), Concept Rea-soning (CR) and�ery Processing (QP).

KBC extracts data from Web and transforms them into struc-tured data. It has a data fusion module that can merge productinformations from di�erent sources. It also contains an aspectanalysis module that performs aspect and sentimental analysis onnatural language comments. CR is responsible for reasoning aboutobscure product concepts. It is built on the KB tool Deepdive andprovides a rule module and a weight module to facilitate rule de�ni-tion and rule weight se�ing respectively. QP transforms a naturallanguage question into a SQL query and retrieves answers from theknowledge base in real-time.

Demonstration CIKM’17, November 6-10, 2017, Singapore

2559

Page 2: POOLSIDE: An Online Probabilistic Knowledge Base for ...POOLSIDE: An Online Probabilistic Knowledge Base for Shopping Decision Support Ping Zhong, Zhanhuai Li, ‰n Chen, Yanyan Wang,

Extraction Data Fusion

First-Order Transformation

Figure 2: Basic Product Information Extraction

Word2Vec Transformation Aspect Extraction& Sentiment Analysis

User1:The app works not fluently.User2:It's a good mobile for running fast. It also has a amazing price. User3:...

Word: fastVector:-0.29, -0.23...-0.008Word: AmazingVector:-0.01, ,0.23Word: price Vector:0,-0.12,...0.13Word: battery life Vector:0,0.02,...0.51 .

First-Order Transformation

Figure 3: Aspect Analysis on Comments

3 KNOWLEDGE BASE CONSTRUCTIONKnowledge base construction involves processing both basic prod-uct a�ribute information and user comments. �e work�ow ofprocessing basic product a�ribute information is presented in Fig-ure 2.We extract products� data from business website by a crawlertool BaZhuaYu1. . For each product type, it �rst directly extractsbasic a�ribute values of products (e.g. price and memory size ofa mobile phone) from di�erent e-commerce Web pages and thenmerges them into a uni�ed relational data. It also extracts productrelationship information (if it exists) for concept reasoning. Forinstance, two products are considered to be similar if they are listedas competing products on a shopping site.

�e work�ow of processing user comments is shown in Figure 3.Aspect analysis identi�es the product aspect a user comments onand the sentiment of the comment (positive or negative). Our so-lution for aspect identi�cation and sentimental analysis are basedon the NLP tool Word2Vec [1] and [4]. It transforms a commentinto a 6-tuple, (Uid,Pid,T,C,W,S), in which Uid and Pid denotes theidentities of user and product respectively, T the time of commentbeing submi�ed, C the product aspect commented by user, W thestring of comment keywords, and S the result of sentiment analy-sis (positive or negative). For example, in Figure 3, the commentof user2 contains the terms of “running” and “fast”. KBC wouldclassify the comment into the aspect class of performance and alsounderstand that the sentiment of the comment is positive.

4 CONCEPT REASONINGTo answer the query containing obscure concepts, POOLSIDE treatsthese concepts as uncertain �rst-order relations stored in probabilis-tic knowledge base. It uses Deepdive, a state-of-the-art probabilisticknowledge base construction tool based on Markov logic network(MLN), to reason about obscure concepts. Deepdive represents aMLN by a factor graph and reasons the probabilities of uncertainknowledge using Gibbs sampling. In Deepdive, factor graph is con-structed by rules. In the rest of this section, we describe how tospecify the rules and set their weights in POOLSIDE.1h�p://www.bazhuayu.com/download

4.1 Knowledge Rule GenerationGiven a target concept, the rule module generates the rules accord-ing to a concept reasoning tree, which needs to be speci�ed by users.A concept reasoning tree is directed, and consists of three typesof nodes, including concept node, a�ribute node and product rela-tionship node. A concept node corresponds to a product-relevantconcept. An a�ribute node corresponds to a product a�ribute oruser comments. A product relationship node has the target to speci-�y the relationship between two products. An edge from a parentto a child means that the evaluation on the child node would havean impact on the evaluation on the parent node.

An example of concept reasoning tree is shown in Figure 4 (a). Itsroot speci�es the target concept that needs to be reasoned, in thisexample it is labeled “highPerformance”. �e concept nodes alsoinclude “bigMemory”, “positiveComments” and “fastCPU”. �eirevaluation would in�uence the evaluation of their parent node“highPerformance”. �e node of “Similar” is a product relationshipnode. �e edge between “highPerformance” and “Similar” dictatesthat if two products are similar, high performance on one of themwouldmean that another one is also of high performance. �e nodesof “Memory”, “Core”, “Frequency” and “Comments” are a�ributenodes. �e edge between “bigMemory” and “Memory” dictatesthat a product’s a�ribute value at memory has an impact on theevaluation of the concept “bigMemory”. It can be observed thatin a concept reasoning tree, an internal node should be a conceptnode, and the leaf nodes can be either a�ribute nodes or productrelationship nodes.

�e rule model automatically translates a concept reasoningtree into a set of rules. An example of the translation is shown inFigure 4. Each edge in the tree corresponds to a generated rule.Formally, given an edge between two concept nodes, Ci → Cj , inwhich Ci and Cj denote two concepts, its corresponding rule canbe speci�ed byCj (p) → Ci (p), in which p denotes a product ID. Anedge between a concept node and an a�ribute node, Ci → Aj , inwhich Aj denotes the label of the a�ribute node, can be translatedinto the rule: Aj (p,ak ) → Ci (p), in which ak denotes the a�ributevalue ofp atAj . An edge between a concept node and a product rela-tionship node, Ci → Rj , in which Ri denotes the relationship label,is translated into the rule: Ci (pl ),Ri (pl ,pk ) → Ci (pk ). For instance,in Figure 4, the edge between “highPerformance” and “bigMemory”corresponds to the rule r1: biдMemory(p) → hiдhPer f ormance(p).�e edge between “bigMemory” and “Memory” corresponds to therule r2: Memory(p,m) → biдMemory(p).

4.2 Rule Weight TuningPOOLSIDE labels some nodes in a factor graph and then uses thetraining mechanism provided by Deepdive to learn the rule weightsin the factor graph. For instance, in the factor graph for reasoningabout performance of mobile phone, it can label some phones ashigh performance beforehand according to user comments. Unfor-tunately, it can be observed that Deepdive was primarily designedto support reasoning about the knowledges de�ned over stringvalues, but not numerical values. As a result, the learned weightassignment may not be consistent with the plain knowledge involv-ing numerical value comparison. For instance, in Figure 5, the ruler3, Memory(p, 2GB) → biдMemory(p), has even a lower weight

Demonstration CIKM’17, November 6-10, 2017, Singapore

2560

Page 3: POOLSIDE: An Online Probabilistic Knowledge Base for ...POOLSIDE: An Online Probabilistic Knowledge Base for Shopping Decision Support Ping Zhong, Zhanhuai Li, ‰n Chen, Yanyan Wang,

Concept:highPerformance(p)bigMemory(p)positiveComments(p)fastCPU(c)

p Phone, c CPU

highPerformance

bigMemory fastCPU

hasFrequency

Similar positiveComments

hasCore

:Concept :Attributes :Product Relationship

Concept Definition Concept Reasoning Tree Specification Rule generation

hasMemory

r1r2

r3r8

hasComments

r4r5

r6r7

Figure 4: rule module

R7:hasMemory(p,v) bigMemory(p)Weight:f(v)

labels

machine learning Weight

turning

Figure 5: weight module

than the rule r4, Memory(p, 1GB) → biдMemory(p). However, r3should have a larger weight than r4 because the memory of 2 GB isindeed bigger than the memory of 1GB. To overcome the shortcom-ing of Deepdive’s weigh learning mechanism, we tune the learnedweights such that they satisfy the monotonacity relationship: ahigher a�ribute value would consistently result in be�er (or worse)evaluation on its corresponding concept. Formally speaking, letX = {x1 · · · xn } denotes the weight vector sorted by its a�ributesvalues(be�er or worse), it tunes each xi ∈ X to xi by followingfomula:

xi = xi +i−1∑j=1

s(x j )x j +n∑

j=i+1s(−x j )x j (1)

where s(x) is a signal function where s(x) = 1 if x > 0 ands(x) = 0 otherwise. In Figure 5, a�er tuning, the weight of therule,Memory(p,m) → biдMemory(p), increases with memory size.

5 ENABLING REAL-TIME RESPONSE�e whole factor graph constructed by Deepdive can be very largedue to the large number of di�erent products. �erefore, probabilis-tic inference over all the variables in the resulting factor graph isusually very time-consuming, and unnecessary as well because notall the products are interesting to users. Even though the techniqueof k-hop approximation [5] can be used to speed up inference, itremains very challenging to simultaneously achieve good-qualityresults and real-time response. To address this challenge, we pro-pose a novel query-driven online inference technique, which canachieve both good-quality inference results and real-time responseby reusing the inferred values of the variable nodes.

Query Noden5

f9

f6

f5

f2

f8

f1

f2

x1n1

n3n4

: Uninferred Variables : inferred Variables

f4

f7

f1n6

f7

f3

f3

n2

(a) original factor graph

: Virtual Approximation Factors

: Factors

Query Nodef2

f1

f2

x1n1

n3

f3

f7

n2

f3

(b) approximation subgraphFigure 6: Online Inference: An Example

�e online technique labels the nodes whose values have beeninferred as inferred nodes. When a variable node vi has to be in-ferred as quested by user, it �rst identi�esvi ’s neighbors of inferrednodes, then creates virtual factor nodes to approximate the in�u-ence of the factor graph on the inferred nodes, and �nally infersthe probability of vi based on the constructed small graph. Anexample of visual factor construction is shown in Figure 6. �e sizeof subgraph(Figure 6(b)) is small that can be inferred in real-time.

�e process of online inference consists of three steps: subgraphextraction, visual factor construction and sugraph inference. Sup-pose that the original factor graph is denoted by G. �e step ofsubgraph extraction searches for the limited-sized subgraph forreasoning about vi in G. It searches for the k-hop subgraph of niin G in a breadth-�rst manner. However, the search process stopsat any inferred node. Suppose that the resulting factor subgraphis denoted by Gk . �e second step of visual factor constructionconstructs a visual approximation factor for each inferred node inGk to simulate the inference in�uence of G/Gk on Gk . We denotethe resulting factor subgraph with visual factors as Gk . In Gk , anyinferred node vj should satisfy

P(vj ) = P(vj ) (2)

in which P(vj ) denotes vj ’s inferred probability on G and P(vj )denotes vj ’s inferred probability on Gk .

Now we describe how to estimate the weights of inserted visualfactors in Gk . Suppose that V denotes the variable set in Gk , mdenotes the number of factors in Gk , and m denotes the numberof inserted visual factors in Gk . fi (1 ≤ i ≤ m) denotes the factorfunction of a factor in Gk , and fj (1 ≤ j ≤ m) denotes the factor

Demonstration CIKM’17, November 6-10, 2017, Singapore

2561

Page 4: POOLSIDE: An Online Probabilistic Knowledge Base for ...POOLSIDE: An Online Probabilistic Knowledge Base for Shopping Decision Support Ping Zhong, Zhanhuai Li, ‰n Chen, Yanyan Wang,

function of a visual factor in Gk . �e factor function of fj corre-sponds to the variable (node) vj in Gk . Note that we have fj=1 ifvj=0, and fj=ewj if vj=0, wherew j denotes the visual factor weight.�erefore, for each inferred node vp , the condition speci�ed inEquation 2 corresponds to the following equation

p(vp ) =1Z

∑V \vp(∏i, j

fi · f ∗j ), 1 ≤ i ≤ m, 1 ≤ j ≤ m, (3)

where Z is a normalization constant.Since there are totally m inferred nodes (visual factors), we have

to solve the equation group consisting of m equations of m order.It can be observed that the equation group can be easily solved ifthe value of m is small. In case that the value of m is large, we alsopropose a divide-and-conquer approach to speed up the processof weight estimation. It �rst splits Gk into multiple subgraphs andthen solves their corresponding equation groups independently.

Since the resulting factor subgraph Gk is usually small, we canuse exact inference algorithms (belief propagation algorithm in ourdemo) in the �nal step of probability inference over Gk .

Figure 7: GUI Screenshots

6 DEMONSTRATION PLANTo construct a mobile phone knowledge base, we use POOLSIDEGUI to construct the product KB in an interactive way. It �rst runsKBC module to transform data into �rst order knowledge, and thenlet the user to de�ne the concepts and choose its relating knowledgefrom existing knowledge �les. A�er that, GUI runs Rule moduleto generate knowledge rules according to user’s input and createfactor graph by Deepdive. Finally, GUI demands user to specify thedirectory of label data �le and then infers the concepts.

�e query demonstration consists of three parts: query interface,recommendation and product detail presentation. �e demo willuse the KB system that we have built for the mobile phone products.

Figure 8: Interface Screenshots

�e query interface accepts the user query. �e interface of recom-mendation lists the products satisfying a user query and orders themby user-speci�ed a�ributes/concepts. Finally, clicking on productshyperlinks on the page of recommendation would take you to a newpage detailing its major properties and strengths/weaknesses com-pared with other popular products. �e results recommended byPOOLSIDE are very similar to what are reported on the professionalmobile phone testing website Zealer2.

7 THOUGHTS ON FUTUREWORKOur work on POOLSIDE points out two interesting directions forfuture research on probabilistic knowledge base. Firstly, the infer-ence engines of the existing probabilistic KBs are optimized fortext values. �ey are usually clumsy in handling the knowledgesde�ned on numerical value comparisons, which can however berichly found in real applications. For instance, a phone with afaster CPU should be considered to have correspondingly higherperformance. Secondly, the reasoning rules in a knowledge basecurrently have to be speci�ed by experts beforehand. Automaticrule detection can greatly reduce human workload and signi�cantlyimprove the intelligence of KB systems as well.

ACKNOWLEDGMENTS�is work is supported by the Ministry of Science and Technol-ogy of China, National Key Research and Development Program(Project Number:2016YFB1000703 ), the Natural Science Foundationof China under Grant No.61332006, No.61672432, No.61472321 andNo.61502390.

REFERENCES[1] Tomas Mikolov, Kai Chen, Greg Corrado, and Je�rey Dean. 2013. E�cient

Estimation of Word Representations in Vector Space. Computer Science (2013).[2] Bhavik Pathak. 2010. A Survey of �e Comparison Shopping Agent-based

Decision Support Systems. Journal of Electronic Commerce Research 11, 3 (2010),178–192.

[3] Christopher De Sa, Alex Ratner, Christopher R, Jaeho Shin, FeiranWang, SenWu,and Ce Zhang. 2016. Incremental knowledge base construction using DeepDive.Vldb Journal (2016), 1–25.

[4] Dongwen Zhang, Hua Xu, Zengcai Su, and Yunfeng Xu. 2015. Chinese commentssentiment classi�cation based on word2vec and SVM perf. Expert Systems withApplications 42, 4 (2015), 1857–1863.

[5] Xiaofeng Zhou, Yang Chen, and Daisy Zhe Wang. 2016. ArchimedesOne: �eryProcessing over Probabilistic Knowledge Bases. Proceedings of the VLDB Endow-ment 9, 13 (2016).

2h�p://tool.zealer.com/

Demonstration CIKM’17, November 6-10, 2017, Singapore

2562