<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="75"/><title>Automatic Topic Model Adaptation for Sentiment Analysis in Structured Domains</title><pubinfo>Proceedings of the 5th International Joint Conference on Natural Language Processing,pages 75-83, Chiang Mai, Thailand, November 8 - 13, 2011. ©2011 AFNLP</pubinfo><author surname="Levine" givenname="Geoffrey"><org  name="University of Illinois at Urbana-Champaign" country="USA" city="Urbana"/></author><author surname="DeJong" givenname="Gerald"><org  name="University of Illinois at Urbana-Champaign" country="USA" city="Urbana"/></author></firstpageheader><frontmatter><p><b>Automatic Topic Model Adaptation for Sentiment Analysis in Structured</b></p><p><b>Domains</b></p><p><b>Geoffrey Levine </b>and <b>Gerald DeJong</b></p><p>University of Illinois at Urbana-Champaign Urbana, IL</p><p>levine@illinois.edu and mrebl@illinois.edu</p></frontmatter><abstract>We present a novel topic modeling ap­proach to sentiment analysis for docu­ments organized into hierarchical cate­gories. In our approach, positive, nega­tive, and subject matter topics are learned and used to infer document labels. A Markov chain Monte Carlo model pro­cedure adapts the number and structure of topics based on a minimum descrip­tion length objective function. We ap­ply our approach to Yelp.com business re­views and Amazon.com book reviews and demonstrate that 1) the model adaptation procedure selects a high quality model from the space of alternatives, and 2) the resulting model performs well relative to state of the art regression and topic model­ing approaches. </abstract></header><body><section number="1" title="Introduction"><p>Selecting an appropriate model is an important part of any machine learning endeavor. The model must be chosen in a manner so as to balance two objectives: 1) Be sufficiently rich to capture the relevant patterns in the data, and 2) Be simple enough to avoid spurious patterns in the training data (overfitting). In natural language processing tasks, there are often many modeling choices to be made regarding what feature granularities and interactions to consider. It is important to make these decisions in a manner such that the resulting model strikes a balance between these two some­what contradictory objectives.</p><p>In order to appropriately make these choices, we must consider not only the task involved but also the training data available. With copious data we can reliably calibrate complex models, but with limited data complex models risk overfitting. Many general model selection techniques exist in which each candidate model is fit to the training data and scored with respect to a particular cri­terion. While these approaches allow us to com­pare a small number of models in order to select the most appropriate, they require calibrating each model's parameters to the training data. However, when there are many modeling choices to be made and thus a large space of alternative models, fitting all of them to the training data is computationally prohibitive.</p><p>In this paper, we present a novel topic mod­eling approach for structured sentiment analysis domains and an automatic model adaptation ap­proach that takes advantage of categorical meta­data. This model adaptation approach resolves the structure of the metadata with the significant pat­terns in the training data to determine the number and range of latent topics.</p><p>We demonstrate our approach on Yelp.com business reviews as well as Amazon.com book re­views. We show that our model adaptation ap­proach selects an appropriate model given a par­ticular amount of training data, and the resulting model is high quality relative to alternative regres­sion and topic modeling approaches.</p></section><section number="2" title="Background"><p>Sentiment analysis, in which the opinion of the au­thor is estimated from a document, has recently grown in popularity. Many works have explored unigram models (Pang and Lee, 2005; Snyder and Barzilay, 2007). Higher-order n-gram models are explored in (Pang and Lee, 2008; Baccianella et al., 2009). In order to combat the high dimensional feature space that accompanies such models, mod­els restricting features based on part of speech pat­terns (Baccianella et al., 2009) or opinion tem­plates (root, modifiers, negation words) (Qu et al., 2010) have been introduced.</p><p>Topic models are generative models in which the words in a document are assumed to be associated with one of a number of abstract "topics.<page local="2" global="76"/>" Latent Dirichlet allocation (Blei et al., 2003) is a popular topic model in which the topic distribu­tion per document is assumed to have a Dirich-let prior. In supervised LDA (Blei and McAuliffe, 2007), the distribution of document topics is used to produce a document label. (Zhao et al., 2010;</p><p>Titov and McDonald, 2008b; Titov and McDon­ald, 2008a) focus on topic modeling based ap­proaches to aspect-based sentiment summariza­tion, identifying product features and the opinion associated with each.</p><p>Model selection is the act of using data to choose a statistical model from a set of candidates. Often, this task is performed by fitting each can­didate model to the training data and using a cri­terion to score the models and select one. Popu­lar criteria include the Akaike information crite­rion (AIC) (Akaike, 1974), the Bayesian informa­tion criterion (BIC) (Schwarz, 1978), and the min­imum description length principle (MDL) (Rissa-nen, 1978; Grunwald, 2007). Structural Risk Min­imization (Vapnik, 1995) defines a general frame­work in which a nested hierarchy of hypotheses can be defined based on prior knowledge of the do­main, such that a hypothesis balancing goodness of fit with simplicity can be identified. The work presented in this paper is closely related to the model adaptation procedure presented in (Levine et al., 2010), in which a hill-climbing approach is used to explore a large space of generative models.</p></section><section number="3" title="Topic Modeling for Sentiment Analysis in Structured Domains"><p>Our approach takes advantage of hierarchical cat­egorical metadata. Formally, this hierarchy forms a tree structure, which we refer to as C (See Figure 1). Individual nodes in the tree are called <i>cate­gories, </i>for which we use notation c. A <i>categoriza­tion, </i>c, is a set of categories, c = {cd;1, cd;2,...}. c can be thought of as metadata about a prod­uct/service being reviewed. For example, with re­gard to a book review, c could equal {"Fiction", "Fiction\Drama", "Fiction\Drama\Romance", ... }. c must be well formed. That is, if a node c G C appears in categorization c, all ancestors of c (in the tree C) must also appear in c. c can contain multiple distantly related categories. For exam­ple, a particular book could belong to both "Fic-tion\Poetry" and "Children\Humor."</p><p>Documents, or examples, are denoted <i>d =</i> (x<b>d, </b><i>cd,yd).</i><i></i><i> </i>xd = [wd,i,Wd,2,Wd<b>,|xd| </b>] is a vec­tor of <i>words. </i>Each word is an element from the <i>vocabulary, V = </i><i>{w1,w2</i>, ...,W|V|}. cd is the document's categorization. yd is a numeric <i>rat­ing </i>from a discrete space ({1,2,3,4,5} for our do­mains). The rating is an overall score given by the document's author to the product or service being reviewed.</p><figure caption="Figure 1: A subtree of the category tree, C, corre­sponding to the Amazon Books domain."></figure><p>We are given a collection of documents, D, and our goal is to learn a function f ((x, c)) to predict rating y from an <i>unlabeled document </i>so as to min­imize the expected loss over the unknown distri­bution of documents:</p><doubt alpha="64.7" length="85" tooSmall="False" monospace="0.0">E(loss(y,f((x, c)))) (1) We use the squared error loss function.3.1   Model Structure</doubt><p>We will start by presenting our generative docu­ment topic model. In this model, each review is composed of a mixture of topics, and each topic is associated with a distribution over words. We use t <i>G</i><i> </i>T to denote a topic, and Pt to denote <i>t's</i><i> </i>word distribution. Within a document, each word is as­sumed to be generated from a particular topic, al­though which topic is unobservable. In many topic model approaches, such as latent Dirichlet alloca­tion (Blei et al., 2003), topics are learned in an unsupervised or weekly supervised fashion (as is the case with supervised LDA).</p><p>In our model, we assume each document is gen­erated according to a rigid topic distribution (more similar to labeled LDA (Ramage et al., 2011)). Each document is a mixture of three topics: 1) a <i>positive </i>topic (+), in which the reviewer is speak­ing favorably about the product/service, 2) a <i>nega­tive </i>topic (-), in which the reviewer is speaking un­favorably, and 3) a <i>subject </i>topic (sj) correspond­ing to general text about the content/features ofthe product.</p><page local="3" global="77"/><p>The proportion of positive words to negative words is a function of the rating score. Subject topics reflect the language used when discussing a particular product or group of products, and do not directly influence a document's rating. Still, learning these topics appropriately is crucial to the performance of the model. When a word is indica­tive of either the positive or negative topic, it is im­portant to account for its probability in the subject topic. For example, the word "good" may be less indicative of a book review's rating if the review discusses a book about ethics. Furthermore, if subject topics are not learned appropriately, words related to the subject matter of products/services with a disproportionate number of positive train­ing reviews would be attributed to the positive word topic. This will lead to poor performance on unseen data. On the other hand, if these words are correctly attributed to the subject topic, then the high ratings will appropriately be attributed to the unconditional positive words appearing in the reviews.</p><p>What constitutes a subject worthy of having its own topic? For books, should we only make broad distinctions such as fiction vs. non-fiction? Should we learn a unique subject topic for each book? Should we use something in between these two ex­tremes? In answering these questions, we need to balance goodness of fit to the training data with model simplicity. There is no optimal answer, it is a function both of the domain (in that we need to make the most "significant" distinctions), and the amount of training data available to calibrate our model (more training data allows us to reli­ably learn the additional parameters introduced by making additional distinctions).</p><p>There exists a many-to-one relationship be­tween documents and subject topics. The mapping from document to subject topic is a function of the document's categorization, si = g(cd), si G T. We call the function g the <i>topic mapping func­tion. </i>The range of g is the set of subject topics, <i>{s1,s2,</i><i> </i>sN<i>}</i><i> </i>C T. In Sections 3.1.1 and 3.1.2 we assume that g is fixed. In Section 3.2, we con­sider exploring the space of alternative topic map­ping functions.</p><p>We assume that in expectation, a fixed but un­known fraction, <i>a </i>of each document is composed of the subject topic. The remainder of the review is composed of the positive and negative topics, and the positive/negative ratio is related to the document's rating. Let <i>ymjn </i>and <i>ymax </i>represent the minimum and maximum scores in the rating scale. For document d with score <i>yd </i>the expected frac­tional breakdown into topics is as follows:</p><p>Positive:</p><p>Negative:</p><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">ydymin</doubt><p><i>- ymjn ymax - yd</i></p><p>Subject:    <i>f</i><i>s</i><i>(y</i><i>d)</i><i> </i><i>=a</i></p><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">ymjn</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(2)</doubt><p>In total, a model M is composed of the topic mapping function, the value a, and the word distributions associated with each topic.   M =</p><subsection title=""><subsubsection number="3.1.1" title="Training"><p>Expectation maximization (Hastie et al., 2001) can be used to train our topic model. The procedure works by iteratively updating 1) the assignment of words in each document to latent topics (Expec­tation Step), and 2) the word distributions asso­ciated with each topic (Maximization Step). EM proceeds as follows: <b>Expectation Step</b></p><p>Each word is assigned an expected topic distri­bution. For word i in document d:</p><doubt alpha="42.9" length="14" tooSmall="False" monospace="0.0">Qd,j(+)Qd,i(-)</doubt><doubt alpha="54.5" length="11" tooSmall="False" monospace="0.0">Qd,i(g(cd))</doubt><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">Zd,i</doubt><doubt alpha="55.6" length="18" tooSmall="False" monospace="0.0">f+(yd)P+(wd,i)Zd,i</doubt><doubt alpha="55.6" length="18" tooSmall="False" monospace="0.0">f_(yd)P_(wd,j)Zd,i</doubt><doubt alpha="63.6" length="22" tooSmall="False" monospace="0.0">fs(yd)Pg(cd)(wd,i)Zd,i</doubt><doubt alpha="52.9" length="17" tooSmall="False" monospace="0.0">ft(yd)Pt(wd,j)(3)</doubt><doubt alpha="30.8" length="13" tooSmall="False" monospace="0.0">*e{+,_,g(cd)}</doubt><p><b>Maximization Step</b></p><p>Topic word distributions are updated so as to maximize the likelihood of the training data. For each topic <i>t:</i></p><doubt alpha="62.5" length="32" tooSmall="False" monospace="0.0">Pt(w) =Ed€pEiXdi|Iw(wd,i)qd,j(t)</doubt><doubt alpha="61.1" length="18" tooSmall="False" monospace="0.0">J2deVSj=d1|qd,i(t)</doubt><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">where</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">Iw(wd,i)</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">1</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">0</doubt><p>if <i>wd,i </i>= <i>w</i>otherwise<page local="4" global="78"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(5)</doubt><doubt alpha="38.5" length="13" tooSmall="False" monospace="0.0">f+(yd)=(1-a)y</doubt><doubt alpha="33.3" length="15" tooSmall="False" monospace="0.0">f_(yd)=(1 - a)y</doubt><doubt alpha="64.3" length="14" tooSmall="False" monospace="0.0">3.1.2Inference</doubt><p>Given the trained topic models we use Bayes' the­orem to compute the probability that an unlabeled document <i>(xd,</i><i> </i>cd) is associated with a particular rating. Let <i>Td = </i><i>{+,</i><i> </i>-,g(cd)}:</p><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">Pcd)=P(fX^</doubt><doubt alpha="58.1" length="31" tooSmall="False" monospace="0.0">=P(v)n!=di'(Zterdft(v)Pt(wd,i))</doubt><p><i>E</i><i>s</i><i> </i><i>p </i>(v<b>o </b>n<b>M </b><i>(Z</i><i>t</i><i>e</i><i>Td</i><i> </i><i>f</i><i>t</i><i>(v)P</i><i>t</i><i>(w</i><i>d,i))</i></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(6)</doubt><p>For evaluation purposes, we output the expected value of <i>v </i>and compute the squared error to the true value.</p></subsubsection></subsection><subsection number="3.2" title="Model Adaptation"><p>In this section we introduce a Markov chain Monte Carlo approach to selecting a topic mapping func­tion <i>g.</i><i> </i>Here, we stochastically explore the space of topic mapping functions, driven by the mini­mum description length principle and estimates of the effect of modifications to g. This approach re­sists local minima and efficiently finds a high qual­ity topic mapping function.</p><subsubsection number="3.2.1" title="Minimum Description Length Objective"><p>Our goal is to find a model that balances fit to the training data with simplicity, and concentrates its flexibility where most useful to capture relevant patterns in the domain. We accomplish this by utilizing a two part minimum description length objective function. The objective is the sum of 1) the description length (in bits) required to encode the model and 2) the description length of the data given the model.</p><doubt alpha="38.1" length="21" tooSmall="False" monospace="0.0">L(M,D)=L(M)+L(D|M)(7)</doubt><p>where L(M) is a function of the number of model parameters the product of the number of topics and the vocabulary size) and L(D|M) is the negative log likelihood of the data given the model. Thus the goal is to jointly minimize the complexity of the model and maximize the likeli­hood of the data given the model, and the objective can be rewritten as:</p><doubt alpha="37.9" length="29" tooSmall="False" monospace="0.0">L(M,D)=ß(N+2)|V|+-log(1(D|M))</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(8)</doubt><p>Figure 2: Two possible partitioning trees for the Amazon.com Books category tree (Figure 1). Tree b) is formed by splitting <i>s2 </i>in a) based on member­ship in the "Computer\Software" category.</p><p>where <i>ß </i>is a complexity penalty constant, which is selected via cross-validation.</p></subsubsection><subsubsection number="3.2.2" title="Topic Mapping Functions"><p>The topic mapping function <i>g </i>maps from catego­rization c to a subject topic <i>S</i><i>i </i><i>G </i>T. We select a particular <i>g </i>from the space of <i>binar</i><i>y </i><i>partitioning trees, </i><i>G.</i><i> </i>In a binary partitioning tree, each in­ternal node references a category c, and each leaf node references a subject topic <i>s</i><i>i. </i>See Figure 2. Starting at the root, a categorization, c is recur­sively assigned by each internal node to 1) the left subtree if the referenced category <i>c </i>is in c, and 2) the right subtree otherwise, until a leaf (with associated subject topic) is reached. For exam­ple, within the book review domain, a node may reference the category "Computers." In this case, computer books are recursively assigned a subject topic by the left subtree, and all others by the right subtree. We allow only well formed partitioning trees: Any node in <i>g </i>that references a category <i>c </i>with parent category <i>parent </i>(c) G <i>C </i>must have an ancestor that references <i>parent(c). </i>For example, we do not allow a node in <i>g </i>to reference "Com-puters\Software", unless we have already condi­tioned on the "Computers" category. This con­straint guarantees that we partition the space of categorizations into coherent regions (we would never assign "Computer\Hardware" and "Fiction" books to the same subject topic while assigning "Computer\Software" to a different topic).</p></subsubsection><subsubsection number="3.2.3" title="Adjacent Model Estimation"><p>In order to guide the search through <i>G,</i><i> </i>we con­sider 2 types of modification operations: We can 1) Split a leaf based on category <i>c </i>G C, splitting one partition into two, adding an additional subject topic to the model, or 2) Merge two leaves with the same parent, combining two partitions into one, removing a subject topic from the model.</p><page local="5" global="79"/><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">where</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">1</doubt><p>Given a particular <i>g,</i><i> </i>there are a finite number of possible merge and split operations to the leaves. Key to our search is the fact that we can estimate the change to the description length objective that each possible modification will cause, using the la­tent topic distributions assigned to each topic dur­ing expectation maximization. Consider merging two subject topics si and <i>S</i><i>j </i>:</p><doubt alpha="42.9" length="21" tooSmall="False" monospace="0.0">AL = -ß\V|-E#*(w)log-</doubt><p><i>t</i><i>e</i><i>{si,sj</i><i>} </i><i>w</i><i>e</i><i>v</i></p><doubt alpha="37.5" length="8" tooSmall="False" monospace="0.0">Pt(w)(9)</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">|Xd|</doubt><doubt alpha="58.1" length="31" tooSmall="False" monospace="0.0">#t(w) =Y YIw(Wd,i)qd,i(t)deVi=l</doubt><doubt alpha="62.1" length="29" tooSmall="False" monospace="0.0">Y,te{si,sj}Sde(D)Y,i=iQd,i(t)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(10)</doubt><p>Now consider splitting subject topic <i>S</i><i>i </i>based on category c:</p><doubt alpha="60.0" length="5" tooSmall="False" monospace="0.0">Pt(w)</doubt><doubt alpha="64.3" length="14" tooSmall="False" monospace="0.0">AL= ß\V \where</doubt><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">#Si,c(W)</doubt><doubt alpha="55.2" length="29" tooSmall="False" monospace="0.0">£ £ #t(w)logte{si,c,si,!c}weV</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">Psi(W)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(11)</doubt><doubt alpha="51.9" length="27" tooSmall="False" monospace="0.0">Psi,c(W)#si,!c(w)=Psi,!c(w)</doubt><doubt alpha="60.0" length="15" tooSmall="False" monospace="0.0">Y(wd,i)Qd,i(Si)</doubt><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">#si,c(w)</doubt><doubt alpha="57.1" length="14" tooSmall="False" monospace="0.0">d=(x,c,y)eVi=l</doubt><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">s.t.cec</doubt><doubt alpha="60.7" length="28" tooSmall="False" monospace="0.0">Ed=(x,c,s)ev]CiX=di|Qd,i(si)</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">|xd|</doubt><doubt alpha="57.1" length="21" tooSmall="False" monospace="0.0">Y   YIw(wd,i)qd,i(si)</doubt><doubt alpha="50.0" length="14" tooSmall="False" monospace="0.0">d=(x,c,y)eVi=1</doubt><doubt alpha="33.3" length="12" tooSmall="False" monospace="0.0">= _#sj,e(w)_</doubt><doubt alpha="62.5" length="24" tooSmall="False" monospace="0.0">Ed=(x,c,y)eVSi=iQd,i(si)</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">s.t.c/c</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(12)</doubt><p>These estimates are upper bounds on the change to the description length objective function. Incor­porating these changes (and the associated word distributions) and then retraining the model with expectation maximization may further reduce the objective. These bounds serve as a guide to esti­mate the objective for models that have not been it to the training data, which will drive our search through G for the optimal topic mapping function.</p></subsubsection><subsubsection number="3.2.4" title="MCMC exploration"><p>Markov chain Monte Carlo (Gilks et al., 1996) stochastically steps through the space of alterna­tive topic mapping functions. At each iteration of MCMC, the topic model with the current topic mapping function is it to the training data and the objective change associated with all possible merges and splits is estimated. We then construct a proposal distribution for alternative models that can be reached with these operations. Limiting the proposal distribution to these candidate models, as in (Titov and Klementiev, 2011) and (Singh et al., 2011) induces a decomposable, feasible computa­tion. A model is sampled from this distribution and adopted if certain criteria on its fitness are met.</p><p>MCMC will converge to a probability distribu­tion over models. By making better models (those with a lower objective) more probable, the MCMC chain will be driven towards higher quality mod­els. We use an exponential distribution over mod­els:</p><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">P(M)</doubt><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">e-L(M,V)</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">Zp</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(13)</doubt><p>with normalization factor Zp.</p><p>The proposal distribution, Q assigns some prob­ability to all candidate models that can be reached by a single merge or split to each of the leaves in the current partitioning tree. In <i>Q,</i><i> </i>splits and merges to leaves without a common parent are in­dependent by construction. Now, consider a par­ticular leaf, l, that has the following possible splits, <i>S = </i>{c1; c2,q}, and cannot be merged with another leaf. For example, in Figure 2a, the leaf corresponding to s1 meets this condition as it can­not be merged to another leaf and has possible splits {"Fiction\Drama", "Fiction\Poetry", "Non-fiction", "Computers", "Children", ... }. Let <i>Ml</i>represent the subset of models where <i>l </i>is not split, and M1ci represent the subset of candidate models where <i>l </i>has been split with respect to category <i>c</i><i>i.</i></p><doubt alpha="50.0" length="16" tooSmall="False" monospace="0.0">Q(Mi )Q(Mi,ci) =</doubt><doubt alpha="57.1" length="14" tooSmall="False" monospace="0.0">Zi=e-rL(M,V)+Y</doubt><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">ces</doubt><doubt alpha="55.6" length="9" tooSmall="False" monospace="0.0">e-rL(M,V)</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">= z</doubt><doubt alpha="53.8" length="13" tooSmall="False" monospace="0.0">e-rL(M;,Ci,V)</doubt><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">isjzi</doubt><doubt alpha="41.7" length="12" tooSmall="False" monospace="0.0">-L(m!,c,v)n\</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(14)</doubt><p>0 &lt; <i>t &lt; </i>1 controls a balance between having the proposal distribution completely influenced by the estimated objectives vs.<page local="6" global="80"/> a uniform proposal distribution.</p><p>For all pairs of leaves that share a common par­ent, we entertain a merge operation. In Figure 2a the leaves corresponding to s2 and <i>s3 </i>meet this criteria. Suppose two leaves, l and <i>l' </i>have possible splits S = {ci, C2,ci} and S' = <i>{d1,d2,</i><i>dv}</i><i> </i>respectively. In addition to the one merged alterna­tive, there are w = (\S\ + 1)(\S'\ + 1) alternatives that involve only splits to the two leaves. Let Mi;i/ represent the subset of candidate models where l and l' are merged</p><doubt alpha="44.4" length="9" tooSmall="False" monospace="0.0">Q(Mi,i- )</doubt><doubt alpha="55.6" length="9" tooSmall="False" monospace="0.0">w-2 e-rLl</doubt><doubt alpha="50.0" length="2" tooSmall="True" monospace="0.0">_i</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">w2</doubt><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">L(MIiI,,V)</doubt><doubt alpha="45.0" length="20" tooSmall="False" monospace="0.0">e-rL(MV,V)+ (z1)(Zv)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(15)</doubt><p>The factor of w- 2 accounts for the difference be­tween the number of neighbors that the models with l and l' merged vs. split have. If the two leaves are not merged, then the conditional proba­bility for each ofthe (\ S\ + 1)(\ S'\ + 1) remaining structural alternatives is computed in Equation 14.</p><p>A new topic mapping function <i>g' </i>is sampled from Q and fit to the training data via the expec­tation maximization presented in Section 3.1.1. If a random value sampled uniformly from U [0,1) is less than then g' is accepted as the new topic mapping func­tion gt+1. This guarantees that the Markov chain will converge to the distribution P as t <i>— </i>oo. Be­cause the ratio P (Mg )/P (Mg ) appears in Equa­tion 16, the normalization factor Zp in Equation 13 cancels out and does not need to be computed.</p><doubt alpha="46.4" length="28" tooSmall="False" monospace="0.0">P (Mg )Q(g\g')P (Mfl)Q(g'\g)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(16)</doubt></subsubsection></subsection></section><section number="4" title="Empirical Evaluation"><p>We perform a set of experiments to demonstrate the following:</p><p>1) Given the topic model structure outlined in Section 3.1, the model adaptation procedure in section 3.2 selects a high performing topic map­ping function while only evaluating a small frac­tion of the total number of funtions.</p><p>2) The topic model resulting from model adap­tation is high quality relative to alternative state-of-the-art approaches.</p><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">4.1 Data</doubt><p>We demonstrate our approach to two structured sentiment analysis datasets. First, we gathered a collection of approximately 8,000 Yelp.com busi­ness reviews from the greater New York area. For this data, businesses are assigned into cate­gories and subcategories based on the Yelp.com business hierarchy. There are 22 primary cate­gories { Arts and Entertainment, Education, Finan­cial Services, Restaurants,...}, each with 6 to 100 subcategories (restaurants have the most subcat-egories, {Japanese, Barbeque, Cafe, Fast Food, Burgers, Ultra High Enc, Formal, Full Bar,...}). Businesses can be assigned to multiple categories and subcategories within the hierarchy.</p><p>Second, we utilize 20,000 Amazon.com book reviews, extracted from the data set irst pre­sented in (Qu et al., 2010). Categorical distinc­tions in these domains are related to the Ama­zon.com product hierarchy. A small portion of the product hierarchy appears in Figure 1. Books can be assigned to multiple distantly related cate­gories. For example, the book <i>Six Wives of Henry VIII </i>belongs to "History\Europe\England\Tudor and Stuart," "Biographies and Memoirs\Speciic Groups\Women" and three other categories</p><p>For each domain, we have at most one review corresponding to any particular business/book. This allows for a broad coverage of the space of categorizations.</p><subsection number="4.2" title="Results and Discussion"><p>To compensate for extreme variations in the train­ing data we apply two smoothing steps. First, we found that for longer reviews, the assumption that each word is drawn independently from the docu­ment's topics is too strong, and so for reviews with more than 35 words, we scale the term counts such that the total is 35. Second, because of the large size of the vocabulary, after training, some rare words have zero or near zero probability in some of the topics. When these words are observed dur­ing inference, they have a very strong effect on the document's expected rating. We found that smoothing the subject topics with the overall word distribution across topics stabilizes the predicted ratings and improves performance. The amount of smoothing could be optimized to maximize the likelihood of the test data, but we found that per­formance varied little for a wide range of values and so we choose a 1 to 1 smoothing.</p><p>From each dataset, we sample a subset of size 1000 for cross validation parameter tuning and use the remaining examples for experimentation.</p><page local="7" global="81"/><p>Figure 3: Learning curves for three model sam­pling approaches on Yelp.com test data with 500 training examples (averaged over 20 trials).</p><p>Figure 4: A representative partitioning tree learned from 500 training examples on the Yelp.com data.</p><p>The validation data is used to learn the values of a, the subject topic fraction, and ß, the complex­ity penalty. We found that setting t , the MCMC smoothing factor, equal to .1 worked well across our datasets. For each trial, then, disjoint training and test sets are sampled from the remaining data.</p><p>First, we apply our Markov chain Monte Carlo model adaptation procedure along with greedy and random alternatives to demonstrate the necessity of a directed and stochastic approach. In the greedy approach, at each iteration we estimate the objective for all candidate models that can be reached with a single split/merge to each subject topic and adopt the model with the minimum es­timate. For the random approach, at each itera­tion we start with the simplest topic mapping func­tion (mapping all categorizations to one subject topic), and uniformly at random add distinctions until the model has the same number of subject topics as the optimal model found by the MCMC approach. We choose this instead of sampling at random from all possible topic mapping functions as the vast majority of such functions have nearly as many subject topics as training examples. For each approach, at iteration i, we chart the test mean squared error for the best (lowest objective) model observed during training in iterations 1 to i.</p><p>Figure 3 charts the per iteration mean squared error on the Yelp test data for the three model adaptation approaches. The greedy approach ini­tially makes the fastest progress, but it is suscepti­ble to local minima, and it levels off before being overtaken by the MCMC approach. As the random approach does not leverage the data in determining what distinctions to make, it fails to make progress at the rate of the other approaches. Its poor per­formance is indicative of the importance of having an efficient directed model adaptation approach, as high performing models are few and far between, even if we limit our search to models of the appro­priate complexity level (number of subject topics). Figure 4 shows a representative partitioning tree learned from the Yelp.com dataset.</p><p>Next we compare our approach to alternative re­gression and topic modeling approaches. In or­der to implement regression, we 1) Form a vector of unigram (and optionally bigram) occurrences normalized to length 1 (which we found to work better than unnormalized or frequency vectors), and 2) Form a vector corresponding to categori­cal membership with one element for each node in category tree C. For each example, we set each element in the vector to value 7 if the example be­longs to the corresponding category, and 0 other­wise. The feature vector is the concatenation of these two vectors. We tested three regression ap­proaches: ridge regression, lasso, and e-support vector regression with a quadratic kernel (Chang and Lin, 2001). In each case, the cross valida­tion dataset is used to tune the value of 7 and the regularization parameter (for ridge regression and lasso) or e and the cost parameter (for eSVR). We found that in all cases, lasso and eSVR were ouperformed by ridge regression, and so omit their results.</p><p>For the supervised latent Dirichlet allocation approach, as the space of labels is numeric and discrete, we can treat the task either as a regression problem (Blei and McAuliffe, 2007), or as a mul-ticlass classiication problem (Wang et al., 2009).</p><page local="8" global="82"/><p>Figure 5: Mean Squared Error for 1) the presented topic model for structured domains (TMSD) using MCMC Model Adaptation (MCMC), the simplest topic mapping function (Simple), or the most com­plex topic mapping function (Complex), 2) ridge regression (RR) with unigrams (Uni) or unigrams and bigrams (Uni/Bi), and 3) multiclass supervised latent Dirichlet allocation (SLDA). Results are averaged over 10 trials, each with 1000 test examples. The MCMC approach significantly outperforms all other approaches for each training set size (Yelp.com: p &lt; .01, Amazon.com: p &lt; .05).</p><p>We used an open source implementation of each approach, (Chang, 2010) and (Wang, 2009), and found that utilizing the multiclass approach and predicting the expected rating based on the pos­terior likelihood of each class outperformed the regression approach, so we present these results. The cross validation data is used to learn the num­ber of latent topics and Dirichlet distribution pa­rameter.</p><p>For the Markov chain Monte Carlo approach, in order to hasten learning for this comparison, start­ing from the simplest topic mapping function, we perform a greedy model adaptation until reaching an estimated local minimum, and then apply 50 additional iterations of MCMC model adaptation.</p><p>Figure 5 shows the average mean squared error for each approach for various amounts of training data. Our topic model with model adaptation has lower error than each of the alternatives. Paired t-tests reveal that the differences are statistically sig­nificant in all cases (p &lt; .01 for all Yelp.com and p &lt; .05 for all Amazon.com tests). Using MCMC model adaptation also outperforms using either the simplest topic mapping function or the most com­plex mapping function (which maps each distinct training categorization to a different subject topic).</p><p>Ridge regression with unigrams uses the same word and categorical representations as our ap­proach. However, it is unable to entertain the non­linear relationships between document categoriza­tions and words and is outperformed in all cases. Bigrams improve the performance of ridge regres­sion, especially for larger amounts of training data. This suggests that accounting for word ordering could potentially improve the performance of our topic model as well. sLDA is unable to take advantage of the categorical information during topic construction, and with the limited training data available, its performance is marginally bet­ter than guessing the mean label (MSE: 1.675 for Yelp.com data and 1.660 for Amazon.com data).</p></subsection></section><section number="5" title="Conclusion"><p>We present an approach to sentiment analysis for structured domains. In our approach, positive, negative, and subject topics are learned and used to infer document labels. Partitioning tree based topic mapping functions define the number and structure of subject topics. A Markov chain Monte Carlo model adaptation procedure explores the space of topic mapping functions based on a min­imum description length objective. We demon­strate the approach on two sentiment analysis do­mains and show that the model adaptation proce­dure efficiently finds a high performance model that leverages the categorical structure of the doc­uments to outperform other regression and topic modeling approaches.</p><p><b>Acknowledgment</b></p><p>This material is based upon work supported by the Office of Naval Research under Award No. ONR Grant N00014-09-1-0693. Any opinions, findings, and conclusions or recommendations expressed in this publication are those of the authors and do not necessarily reflect the views of the Office of Naval Research.</p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Yelp.com Data</p></td><td class="cell"><p>Amazon.com Data</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Training Examples</p></td><td class="cell"><p>Training Examples</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>500</p></td><td class="cell"><p>1000</p></td><td class="cell"><p>2000</p></td><td class="cell"><p>4000</p></td><td class="cell"><p>6000</p></td><td class="cell"><p>500</p></td><td class="cell"><p>1000</p></td><td class="cell"><p>2000</p></td><td class="cell"><p>4000</p></td><td class="cell"><p>6000</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TMSD, MCMC</p></td><td class="cell"><p><b>1.207</b></p></td><td class="cell"><p><b>1.062</b></p></td><td class="cell"><p><b>.983</b></p></td><td class="cell"><p><b>.915</b></p></td><td class="cell"><p><b>.870</b></p></td><td class="cell"><p><b>1.243</b></p></td><td class="cell"><p><b>1.161</b></p></td><td class="cell"><p><b>1.090</b></p></td><td class="cell"><p><b>1.019</b></p></td><td class="cell"><p><b>.981</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TMSD, Simple</p></td><td class="cell"><p>1.252</p></td><td class="cell"><p>1.108</p></td><td class="cell"><p>1.017</p></td><td class="cell"><p>.951</p></td><td class="cell"><p>.893</p></td><td class="cell"><p>1.300</p></td><td class="cell"><p>1.256</p></td><td class="cell"><p>1.158</p></td><td class="cell"><p>1.075</p></td><td class="cell"><p>1.027</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>TMSD, Complex</p></td><td class="cell"><p>1.284</p></td><td class="cell"><p>1.123</p></td><td class="cell"><p>—</p></td><td class="cell"><p>—</p></td><td class="cell"><p>—</p></td><td class="cell"><p>1.281</p></td><td class="cell"><p>1.198</p></td><td class="cell"><p>—</p></td><td class="cell"><p>—</p></td><td class="cell"><p>—</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RR, Uni</p></td><td class="cell"><p>1.319</p></td><td class="cell"><p>1.182</p></td><td class="cell"><p>1.103</p></td><td class="cell"><p>1.020</p></td><td class="cell"><p>.949</p></td><td class="cell"><p>1.337</p></td><td class="cell"><p>1.265</p></td><td class="cell"><p>1.145</p></td><td class="cell"><p>1.081</p></td><td class="cell"><p>1.033</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>RR, Uni/Bi</p></td><td class="cell"><p>1.285</p></td><td class="cell"><p>1.164</p></td><td class="cell"><p>1.059</p></td><td class="cell"><p>.971</p></td><td class="cell"><p>.903</p></td><td class="cell"><p>1.310</p></td><td class="cell"><p>1.237</p></td><td class="cell"><p>1.119</p></td><td class="cell"><p>1.041</p></td><td class="cell"><p>1.001</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>SLDA</p></td><td class="cell"><p>1.664</p></td><td class="cell"><p>1.649</p></td><td class="cell"><p>1.606</p></td><td class="cell"><p>1.556</p></td><td class="cell"><p>1.479</p></td><td class="cell"><p>1.621</p></td><td class="cell"><p>1.632</p></td><td class="cell"><p>1.607</p></td><td class="cell"><p>1.581</p></td><td class="cell"><p>1.555</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="9" global="83"/></section><references><p>H. Akaike. 1974. A new look at the statistical model identification. <i>IEEE Transactions on Auto­matic Control, </i>19(6):716-723.</p><p>S. Baccianella, A. Esuli, and F. Sebastiani. 2009. Muli-facet rating of product reviews. In <i>The 31st European Conference on Information Retrieval Re­search, </i>pages 461-472.</p><p>D. BleiandJ.McAuliffe. 2007. Supervised topic mod­els. In <i>Neural Information Processing Systems.</i></p><p>D. Blei, A. Ng, and M. Jordan. 2003. Latent dirichlet allocation. <i>Journal ofMachine Learning Research, </i>3:993-1022.</p><p>Chih-Chung Chang and Chih-Jen Lin, 2001. <i>LIB-SVM: A Library for Support Vector Machines. </i>Software available at http://www.csie.ntu. edu.tw/~cjlin/libsvm.</p><p>J. Chang. 2010. Lda: Collapsed gibbs sampling meth­ods for topic models. online.</p><p>W. Gilks, S. Richardson, and D. Spiegelhalter. 1996.</p><p><i>Markov Chain Monte Carlo in Practice. </i>Chapman</p><p>and Hall.</p><p>P. Grunwald. 2007. <i>The Minimum Description Length Principle. </i>The MIT Press, Cambridge, Mass.</p><doubt alpha="64.7" length="51" tooSmall="False" monospace="0.0">T. Hastie, R. Tibshirani, and J. Friedman. 2001.The</doubt><p><i>Elements ofStatistical Learning. </i>Springer, New York, NY.</p><p>G. Levine, G. DeJong, L. Wang, R. Samdani, S. Vembu, and D. Roth. 2010. Automatic model adaptation for complex structured domains. In <i>The</i></p><p><i>European Conference on Machine Learning and Principles and Practice ofKnowledge Discovery in Databases, </i>pages 243-258.</p><p>B. Pang and L. Lee. 2005. Seeing stars: Exploiting class relationships for sentiment categorization with respect to rating scales. In <i>The 43rd Annual Meet­ing ofthe Association for Computational Linguis­tics: Human Language Technologies, </i>page 124.</p><p>B. Pang and L. Lee. 2008. Opinion mining and senti­ment analysis. <i>Foundations and Trends in Informa­tion Retrieval, </i>2(1-2):1-135.</p><p>L. Qu, G. Ifrim, and G. Weikum. 2010. The bag-of-opinions method for review rating prediction from sparse text patterms. In <i>The International Confer­ence on Computational Linguistics, </i>pages 913-921.</p><p>D. Ramage, D. Hall, R. Nallapati, and C. Manning. 2011. Labeled lda: A supervised topic model for credit attribution in multi-labeled corpora. In <i>The</i></p><p><i>Conference on Empirical Methods in Natural Lan­guage Processing.</i></p><p>J. Rissanen. 1978. Modeling by shortest data descrip­tion. <i>Automatica, </i>14:445-471.</p><p>G. E. Schwarz. 1978. Estimating the dimension of a model. <i>Annals of Statistics, </i>6(2):461-464.</p><p>S. Singh, A. Subramanya, F. Pereira, and A. McCallum. 2011. Large-scale cross-document coreference us­ing distributed inference and hierarchical models.</p><p>In <i>The 49th Annual Meeting of the Association for Computational Linguistics: Human Language Tech­nologies.</i></p><p>B. Snyder and R. Barzilay. 2007. Multiple aspect rank­ing using the good grief algorithm. In <i>The 8th An­nual Conference ofthe North American Chapter of the Association for Computational Linguistics: Hu­man Language Technologies, </i>pages 300-307.</p><p>I. Titov and A. Klementiev. 2011. A bayesian model for unsupervised semantic parsing. In <i>The 49th An­nual Meeting ofthe Association for Computational Linguistics.</i></p><doubt alpha="65.3" length="49" tooSmall="False" monospace="0.0">I. Titov and R. McDonald. 2008a. A joint model of</doubt><p>text and aspect ratings for sentiment summarization. In <i>The 46th Annual Meeting of the Association for Computational Linguistics: Human Language Tech­nologies, </i>pages 308-316.</p><p>I. Titov and R. McDonald. 2008b. Modeling online re­views with multi-grain topic models. In <i>The Seven­teenth International Conference on World Wide Web, </i>pages 111-120.</p><p>V. Vapnik. 1995. <i>The Nature ofStatistical Learning Theory. </i>Springer-Verlag.</p><p>C. Wang, D. Blei, and L. Fei-Fei. 2009. Simultane­ous image classification and annotation. In <i>IEEE Conference on Computer Vision and Pattern Recog­nition.</i></p><p>C. Wang. 2009. Supervised latent dirichlet allocation for classification. online.</p><p>W. Zhao, J. Jiang, H. Yan, and X. Li. 2010. Jointly modeling aspects and opinions with a maxent-lda hybrid. In <i>The Conference on Empirical Methods in Natural Language Processing, </i>pages 56-65.</p></references></body></article>