<?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="689"/><title>Online Methods for Multi-Domain Learning and Adaptation</title><author surname="Dredze" givenname="Mark"><org  name="University of Pennsylvania" country="USA" city="Philadelphia"/></author><author surname="Crammer" givenname="Koby"><org  name="University of Pennsylvania" country="USA" city="Philadelphia"/></author></firstpageheader><frontmatter><p><b>Online Methods for Multi-Domain Learning and Adaptation</b></p><p><b>Mark Dredze </b>and <b>Koby Crammer</b></p><p>Department of Computer and Information Science University of Pennsylvania Philadelphia, PA 19104 USA</p><p>{mdredze,crammer}@cis.upenn.edu</p></frontmatter><abstract>NLP tasks are often domain specific, yet sys­tems can learn behaviors across multiple do­mains. We develop a new multi-domain online learning framework based on parameter com­bination from multiple classifiers. Our algo­rithms draw from multi-task learning and do­main adaptation to adapt multiple source do­main classifiers to a new target domain, learn across multiple similar domains, and learn across a large number of disparate domains. We evaluate our algorithms on two popular NLP domain adaptation tasks: sentiment clas­sification and spam filtering. </abstract></header><body><section number="1" title="Introduction"><p>Statistical classifiers routinely process millions of websites, emails, blogs and other text every day. Variability across different data sources means that training a single classifier obscures differences and separate classifiers ignore similarities. Similarly, adding new domains to existing systems requires adapting existing classifiers.</p><p>We present new online algorithms for three <i>multi-domain learning </i>scenarios: adapting existing classi­fiers to new domains, learning across multiple simi­lar domains and scaling systems to many disparate domains. Multi-domain learning combines char­acteristics of both multi-task learning and domain adaptation and drawing from both areas, we de­velop a multi-classifier parameter combination tech­nique for confidence-weighted (CW) linear classi­fiers (Dredze et al., 2008). We focus on online algo­rithms that scale to large amounts of data.</p><p>Next, we describe multi-domain learning and re­view the CW algorithm. We then consider our three settings using multi-classifier parameter combina­tion. We conclude with related work.</p></section><section number="2" title="Multi-Domain Learning"><p>In online multi-domain learning, each instance x is drawn from a domain <i>d </i>specific distribution x ~ Ddover a vectors space RN and labeled with a domain specific function <i>fd </i>with label y G {—1, +1} (for binary classification.) On round i the classifier re­ceives instance xj and domain identifier dj and pre­dicts label yj G {—1, +1}. It then receives the true label yj G {—1, +1} and updates its prediction rule.</p><p>As an example, consider a multi-user spam fil­ter, which must give high quality predictions for new users (without new user data), learn on multi­ple users simultaneously and scale to thousands of accounts. While a single classifier trained on all users would generalize across users and extend to new users, it would fail to learn user-specific prefer­ences. Alternatively, separate classifiers would cap­ture user-specific behaviors but would not general­ize across users. The approach we take to solv­ing multi-domain problems is to combine domain-specific classifiers. In the adaptation setting, we combine source domain classifiers for a new tar­get domain. For learning across domains, we com­bine domain-specific classifiers and a shared classi­fier learned across all domains. For learning across disparate domains we learn which domain-specific and shared classifiers to combine.</p><p>Multi-domain learning combines properties of both multi-task learning and domain adaptation. As</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">689</doubt><p><i>Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing, </i>pages 689-697, Honolulu, October 2008. ©2008 Association for Computational Linguistics<page local="2" global="690"/></p><p>in multi-task learning, we consider domains that are labeled with different classification functions. For example, one user may enjoy some emails that an­other user considers spam: differing in their classifi­cation function. The goal of multi-task learning is to generalize across tasks/domains (Dekel et al., 2006; Evgeniou and Pontil, 2004). Furthermore, as in do­main adaptation, some examples are draw from dif­ferent distributions. For example, one user may re­ceive emails about engineering while another about art, differing in their distribution over features. Do­main adaptation deals with these feature distribution changes (Blitzer et al., 2007; Jiang and Zhai, 2007). Our work combines these two areas by learning both across distributions and behaviors or functions.</p></section><section number="3" title="Confidence-Weighted Linear Classifiers"><p>Confidence-weighted (CW) linear classification (Dredze et al., 2008), a new online algorithm, main­tains a probabilistic measure of parameter confi­dence, which may be useful in combining parame­ters from different domain distributions. We sum­marize CW learning to familiarize the reader.</p><p>Parameter confidence is formalized by a Gaussian distribution over weight vectors with mean <b>ß </b><i>G</i><i> </i><i>RN</i><i></i>and diagonal covariance S G RN xN. The values ßj and <i>Sjj </i>represent knowledge of and confidence in the parameter for feature j. The smaller Sj j, the more confidence we have in the mean parameter value <i>ßj</i>. In this work we consider diagonal covari-ance matrices to scale to NLP data.</p><p>A model predicts the highest probability label,</p><doubt alpha="46.2" length="39" tooSmall="False" monospace="0.0">arg maxPtw^m(E)[yi(w •Xi) &gt; 0] . ye{±1}</doubt><p>The Gaussian distribution over parameter vectors <b>w </b>induces a univariate Gaussian distribution over the score Si <i>=</i><i> </i><i>w</i><i> </i><i>•</i><i> </i><i>xi</i><i> </i>parameterized by <b>ß, </b>S and the instance <b>xi: </b>Si ~ N (ßi, o<footnote anchor="2"/>), with mean ßi = <i>^•xi</i>and variance o<footnote anchor="2"/> <i>= xj </i>S<b>xi.</b></p><p>The CW algorithm is inspired by the Passive Ag­gressive (PA) update (Crammer et al., 2006) — which ensures a positive margin while minimizing parameter change. CW replaces the Euclidean dis­tance used in the PA update with the Kullback-Leibler (KL) divergence over Gaussian distribu­tions. It also replaces the minimal margin constraint with a minimal probability constraint: with some given probability r G (0.5,1] a drawn classifier will assign the correct label. This strategy yields the fol­lowing objective solved on each round of learning:</p><doubt alpha="46.2" length="52" tooSmall="False" monospace="0.0">minDkl(N(ß,S)\\N(ßi,Si))s.t. Pr [yi(w•Xi) &gt; 0] &gt; r ,</doubt><p>where Si) are the parameters on round i and <b>w </b>~ N <b>(ß, </b>S). Tl<b>i</b>e constraint ensures that the re­sulting parameters <b>(ßi+1, </b>S<b>i+i) </b>will correctly clas­sify <b>x</b>i with probability at least r. For convenience we write &lt;&lt; = $-<b><footnote anchor="1"/> </b>(r), where $ is the cumula­tive function of the normal distribution. The opti­mization problem above is not convex, but a closed form approximation of its solution has the follow­ing additive form: <b>ßi+1 </b>= <b>ßi </b>+ <i>aiyiSixi</i><i> </i>and = S-1 + 2ai0<b>X</b>i<b>Xj</b><b> </b>for,</p><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">ai=</doubt><p>Each update changes the feature weights <b>ß, </b>and in­creases confidence (variance S always decreases). We employ CW classifiers since they provide con­fidence estimates, which are useful for classifier combination. Additionally, since we require per­parameter confidence estimates, other confidence based classifiers are not suitable for this setting.</p></section><section number="4" title="Multi-Classifier Parameter Combination"><p>The basis of our approach to multi-domain learning is to combine the parameters of CW classifiers from separate domains while respecting parameter confi­dence. A combination method takes M CW classi­fiers each parameterized by its own mean and vari­ance parameters <i>{(ßm, </i>Sm))M=1 and produces a single combined classifier <b>(ßc, </b>Sc). A simple tech­nique would be to average the parameters of classi­fiers into a new classifier. However, this ignores the difference in feature distributions. Consider for ex­ample that the weight associated with some word in a source classifier has a value of 0. This could either mean that the word is very rare or that it is neutral for prediction (like the work "the"). The informa­tion captured by the variance parameter allow us to distinguish between the two cases: an high-variance indicates a lack of confidence in the value of the weight vectors because of small number of exam­ples (first case), and vise-versa, small-variance indi­cates that the value of the weight is based on plenty of evidence.<page local="3" global="691"/> We favor combinations sensitive to this distinction.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">690</doubt><p>Since CW classifiers are Gaussian distributions, we formalize classifier parameter combination as finding a new distribution that minimizes the weighted-divergence to a set of given distributions:</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">M</doubt><doubt alpha="51.2" length="41" tooSmall="False" monospace="0.0">(ßc,Sc) = arg min^D((ßc,Sc)||(ßm,Sm) ;bm)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">m</doubt><p>where (since S is diagonal),</p><doubt alpha="40.0" length="20" tooSmall="False" monospace="0.0">D((ßc,Sc)||(ß,S);b)=</doubt><doubt alpha="33.3" length="27" tooSmall="False" monospace="0.0">£/bfD((ßf,S/,/)||(ßf,S/,/))</doubt><p>The (classifier specific) importance-weights <b>bm </b>G RN are used to weigh certain parameters of some domains differently in the combination. When D is the Euclidean distance (L2), we have,</p><p>D<b>((ß</b>f, S/,/<b>)||(ß/</b>, S/,/)) = <b>(ß</b>f - <b>ß/</b>)<b><footnote anchor="2"/> </b>+ (S/,/ - S/,/)<b><footnote anchor="2"/> </b>.</p><p>and we obtain:</p><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">ß/</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">1</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">mb/</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">b/mß/m</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">/,/</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">mm</doubt><doubt alpha="46.2" length="13" tooSmall="False" monospace="0.0">V bmZ_&gt;b/S/,/</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(1)</doubt><p>Note that this is a (weighted) average of parameters. The other case we consider is when D is a weighted KL divergence we obtain a weighting of <b>ß </b>by S-1:</p><doubt alpha="25.0" length="8" tooSmall="False" monospace="0.0">/ M \-1M</doubt><doubt alpha="38.7" length="31" tooSmall="False" monospace="0.0">ßc/=(S/m,/)-1b/m(S/m,/)-1ß/mb/m</doubt><doubt alpha="19.0" length="21" tooSmall="False" monospace="0.0">mm/       M      \-1M</doubt><doubt alpha="36.0" length="25" tooSmall="False" monospace="0.0">(Sc)-1=Mb/m(S/m)-1b/m.(2)</doubt><p>While each parameter is weighed by its variance in the KL, we can also explicitly encode this behavior as bm = <i>a - </i>Sm/ &gt; 0, where <i>a </i>is the initializa­tion value for S/m/. We call this weighting "vari­ance" as opposed to a uniform weighting of param­eters <i>(b/m</i><i> </i>= 1 ). We therefore have two combination methods (L2 and KL) and two weighting methods (uniform and variance).</p></section><section number="5" title="Datasets"><p>For evaluation we selected two domain adaptation datasets: spam (Jiang and Zhai, 2007) and sentiment (Blitzer et al., 2007). The spam data contains two tasks, one with three users (task A) and one with 15 (task B). The goal is to classify an email (bag-of-words) as either spam or ham (not-spam) and each user may have slightly different preferences and fea­tures. We used 700 and 100 training messages for each user for task A and B respectively and 300 test , emails for each user.</p><p>The sentiment data contains product reviews from Amazon for four product types: books, dvds, elec­tronics and kitchen appliances and we extended this with three additional domains: apparel, music and videos. We follow Blitzer <i>et. al. </i>for feature ex­traction. We created different datasets by modify­ing the decision boundary using the ordinal rating of each instance (1-5 stars) and excluding boundary instances. We use four versions of this data:</p><p><b>• All </b>- 7 domains, one per product type</p><p><b>• Books </b>- 3 domains of books with the binary decision boundary set to 2, 3 and 4 stars</p><p><b>• DVDs </b>- Same as <i>Books </i>but with DVD reviews</p><p><b>• Books+DVDs </b>- Combined <i>Books </i>and <i>DVDs</i></p><p>The <i>All </i>dataset captures the typical domain adap­tation scenario, where each domain has the same decision function but different features. <i>Books </i>and <i>DVDs </i>have the opposite problem: the same features but different classification boundaries. <i>Books+DVDs </i>combines both issues. Experiments use 1500 training and 100 test instances per domain.</p></section><section number="6" title="Multi-Domain Adaptation"><p>We begin by examining the typical domain adapta­tion scenario, but from an online perspective since learning systems often must adapt to new users or domains quickly and with no training data. For ex­ample, a spam filter with separate classifiers trained on each user must also classify mail for a new user. Since other user's training data may have been deleted or be private, the existing classifiers must be combined for the new user.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">691</doubt><page local="4" global="692"/><p>Table 1: Test error for multi-source adaptation on sentiment and spam data. Combining classifiers improves over selecting a single classifier a priori (Avg Src).</p><p>We combine the existing user-specific classifiers into a single new classifier for a new user. Since nothing is known about the new user (their deci­sion function), each source classifier may be useful. However, feature similarity - possibly measured us­ing unlabeled data - could be used to weigh source domains. Specifically, we combine the parameters of each classifier according to their confidence us­ing the combination methods described above.</p><p>We evaluated the four combination strategies - L2 vs. KL, uniform vs. variance - on spam and sen­timent data. For each evaluation, a single domain was held out for testing while separate classifiers were trained on each source domain, i.e. no target training. Source classifiers are then combined and the combined classifier is evaluated on the test data (400 instances) of the target domain. Each classi­fier was trained for 5 iterations over the training data (to ensure convergence) and each experiment was repeated using 10-fold cross validation. The CW parameter 0 was tuned on a single randomized run for each experiment. We include several baselines: training on target data to obtain an upper bound on performance <i>(Target), </i>training on all source do­mains together, a useful strategy if all source data is maintained <i>(A//</i><i> Src), </i>selecting (with omniscience) the best performing source classifier on target data <i>(Best Src), </i>and the expected real world performance of randomly selecting a source classifier (Avg Src).</p><p>While at least one source classifier achieved high performance on the target domain <i>(Best Src), </i>the correct source classifier cannot be selected without target data and selecting a random source classifier yields high error. In contrast, a combined classifier almost always improved over the best source domain classifier (table 1). That some of our results improve over the best training scenario is likely caused by in­creased training data from using multiple domains. Increases over all available training data are very in­teresting and may be due to a regularization effect of training separate models.</p><p>The L2 methods performed best and KL improved 7 out of 10 combinations. Classifier parameter com­bination can clearly yield good classifiers without prior knowledge of the target domain.</p></section><section number="7" title="Learning Across Domains"><p>In addition to adapting to new domains, multi­domain systems should learn common behaviors across domains. Naively, we can assume that the domains are either sufficiently similar to warrant one classifier or different enough for separate clas­sifiers. The reality is often more complex. Instead, we maintain shared and domain-specific parameters and combine them for learning and prediction.</p><p>Multi-task learning aims to learn common behav­iors across related problems, a similar goal to multi­domain learning. The primary difference is the na­ture of the domains/tasks: in our setting each domain is the same task but differs in the types of features in addition to the decision function. A multi-task ap­proach can be adapted to our setting by using our classifier combination techniques.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">692</doubt><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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>Train</p></td><td class="cell"><p></p></td><td class="cell"><p>L2</p></td><td class="cell"><p>KL</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Target Domain</p></td><td class="cell"><p>A// <i>Src</i></p></td><td class="cell"><p><i>Target</i></p></td><td class="cell"><p><i>Best Src</i></p></td><td class="cell"><p>Avg Src</p></td><td class="cell"><p><i>Uniform</i></p></td><td class="cell"><p><i>Variance</i></p></td><td class="cell"><p><i>Uniform</i></p></td><td class="cell"><p><i>Variance</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>g </b>userO ^ userl <footnote anchor="00"/> user2</p></td><td class="cell"><p>3.85</p></td><td class="cell"><p>1.80</p></td><td class="cell"><p>4.80</p></td><td class="cell"><p>8.26</p></td><td class="cell"><p>5.25</p></td><td class="cell"><p>4.63</p></td><td class="cell"><p>4.53</p></td><td class="cell"><p><b>4.32</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>3.57</p></td><td class="cell"><p>3.17</p></td><td class="cell"><p>4.28</p></td><td class="cell"><p>6.91</p></td><td class="cell"><p>4.53</p></td><td class="cell"><p><b>3.80</b></p></td><td class="cell"><p>4.23</p></td><td class="cell"><p>3.83</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>3.30</p></td><td class="cell"><p>2.40</p></td><td class="cell"><p>3.77</p></td><td class="cell"><p>5.75</p></td><td class="cell"><p>4.75</p></td><td class="cell"><p><b>4.60</b></p></td><td class="cell"><p>4.93</p></td><td class="cell"><p>4.67</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>apparel</p></td><td class="cell"><p>12.32</p></td><td class="cell"><p>12.02</p></td><td class="cell"><p>14.12</p></td><td class="cell"><p>21.15</p></td><td class="cell"><p>14.03</p></td><td class="cell"><p><b>13.18</b></p></td><td class="cell"><p>13.50</p></td><td class="cell"><p>13.48</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>0 </b>books e</p><p>S dvd ti</p><p><b>g </b>kitchen <footnote anchor="00"/> electronics</p></td><td class="cell"><p>16.85</p></td><td class="cell"><p>18.95</p></td><td class="cell"><p>22.95</p></td><td class="cell"><p>25.76</p></td><td class="cell"><p>19.58</p></td><td class="cell"><p><b>18.63</b></p></td><td class="cell"><p>19.53</p></td><td class="cell"><p>19.05</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>13.65</p></td><td class="cell"><p>17.40</p></td><td class="cell"><p>17.30</p></td><td class="cell"><p>21.89</p></td><td class="cell"><p>15.53</p></td><td class="cell"><p><b>13.73</b></p></td><td class="cell"><p>14.48</p></td><td class="cell"><p>14.15</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>13.65</p></td><td class="cell"><p>14.40</p></td><td class="cell"><p>15.52</p></td><td class="cell"><p>22.88</p></td><td class="cell"><p>16.68</p></td><td class="cell"><p>15.10</p></td><td class="cell"><p>14.78</p></td><td class="cell"><p><b>14.02</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>15.00</p></td><td class="cell"><p>14.93</p></td><td class="cell"><p>15.52</p></td><td class="cell"><p>23.84</p></td><td class="cell"><p>18.75</p></td><td class="cell"><p>17.37</p></td><td class="cell"><p>17.45</p></td><td class="cell"><p><b>16.82</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>music</p></td><td class="cell"><p>18.20</p></td><td class="cell"><p>18.30</p></td><td class="cell"><p>20.75</p></td><td class="cell"><p>24.19</p></td><td class="cell"><p>18.38</p></td><td class="cell"><p><b>17.83</b></p></td><td class="cell"><p>18.10</p></td><td class="cell"><p>18.22</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>video</p></td><td class="cell"><p>17.00</p></td><td class="cell"><p>19.27</p></td><td class="cell"><p>19.43</p></td><td class="cell"><p>25.78</p></td><td class="cell"><p>17.13</p></td><td class="cell"><p><b>16.25</b></p></td><td class="cell"><p>16.33</p></td><td class="cell"><p>16.42</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></tr></table><page local="5" global="693"/><p>Table 3: Test data error: learning across domains (MDR) improves over the baselines and Daume (2007).</p><p>We seek to learn domain specific parameters guided by shared parameters. Dekel et al. (2006) followed this approach for an online multi-task algo­rithm, although they did not have shared parameters and assumed that a training round comprised an ex­ample from each task. Evgeniou and Pontil (2004) achieved a similar goal by using shared parameters for multi-task regularization. Specifically, they as­sumed that the weight vector for problem <i>d </i>could be represented as wc = <i>wd+ws</i>, where <i>wd</i><i> </i>are task spe­cific parameters and ws are shared across all tasks. In this framework, all tasks are close to some under­lying mean <i>ws</i><i> </i>and each one deviates from this mean by wd. Their SVM style multi-task objective mini­mizes the loss of wc and the norm of wd and ws, with a tradeoff parameter allowing for domain deviance from the mean. The simple domain adaptation al­gorithm of feature splitting used by Daume (2007) is a special case of this model where the norms are equally weighted. An analogous CW objective is:</p><doubt alpha="47.9" length="96" tooSmall="False" monospace="0.0">min -A-Dkl(N(V,£d)|| N(ßd,Xd+-1Dkl(N(ßs,Xs)||N(/zts, Xs)) s.t. Prw~N(Mc,sc)[Vi(w•xi) &gt;o]&gt;n • (3)</doubt><p><b>(/zd, </b>£d<b>) </b>are the parameters for domain d, <b>(/Lts, </b><i>Xs) </i>for the shared classifier and <b>(/Ltc, </b>Xc) for the com­bination of the domain and shared classifiers. The parameters are combined via (2) with only two ele­ments summed - one for the shared parameters s and the other for the domain parameters d . This captures the intuition of Evgeniou and Pontil: updates en­force the learning condition on the combined param­eters and minimize parameter change. For conve­nience, we rewrite A2 = 2 — 2A<b>i, </b>where A<b>i </b>G [0, lj. If classifiers are combined using the sum of the indi­vidual weight vectors and Ai =0.5, this is identical to feature splitting (Daume) for CW classifiers. The domain specific and shared classifiers can be<page local="6" global="694"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">693</doubt><table caption="Table 2: Online training error for learning across domains." 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><i>Spam</i></p></td><td class="cell"><p></p></td><td class="cell"><p><i>Sentiment</i></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Method</i></p></td><td class="cell"><p><i>Task A</i></p></td><td class="cell"><p><i>TaskB</i></p></td><td class="cell"><p><i>Books</i></p></td><td class="cell"><p><i>DVD</i></p></td><td class="cell"><p><i>Books+DVD</i></p></td><td class="cell"><p><i>a//</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Single</p></td><td class="cell"><p>3.88</p></td><td class="cell"><p>8.75</p></td><td class="cell"><p>23.7</p></td><td class="cell"><p>25.11</p></td><td class="cell"><p>23.26</p></td><td class="cell"><p>16.57</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Separate</p></td><td class="cell"><p>5.46</p></td><td class="cell"><p>14.53</p></td><td class="cell"><p>22.22</p></td><td class="cell"><p>21.64</p></td><td class="cell"><p>21.23</p></td><td class="cell"><p>21.89</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Feature Splitting</p></td><td class="cell"><p>4.16</p></td><td class="cell"><p>8.93</p></td><td class="cell"><p>15.65</p></td><td class="cell"><p>16.20</p></td><td class="cell"><p>14.60</p></td><td class="cell"><p>17.45</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MDR</p></td><td class="cell"><p>4.09</p></td><td class="cell"><p>9.18</p></td><td class="cell"><p>15.65</p></td><td class="cell"><p>15.12</p></td><td class="cell"><p>13.76</p></td><td class="cell"><p>17.45</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MDR+L2</p></td><td class="cell"><p>4.27</p></td><td class="cell"><p>8.61</p></td><td class="cell"><p><b>12.70</b></p></td><td class="cell"><p>14.95</p></td><td class="cell"><p>12.73</p></td><td class="cell"><p><b>17.16</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MDR+L2-Var</p></td><td class="cell"><p><b>3.75</b></p></td><td class="cell"><p><b>7.52</b></p></td><td class="cell"><p>12.90</p></td><td class="cell"><p>14.21</p></td><td class="cell"><p><b>12.52</b></p></td><td class="cell"><p>17.37</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MDR+KL</p></td><td class="cell"><p>4.32</p></td><td class="cell"><p>9.22</p></td><td class="cell"><p>13.51</p></td><td class="cell"><p><b>13.81</b></p></td><td class="cell"><p>13.32</p></td><td class="cell"><p>17.20</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MDR+KL-Var</p></td><td class="cell"><p>4.02</p></td><td class="cell"><p>8.70</p></td><td class="cell"><p>14.93</p></td><td class="cell"><p>14.03</p></td><td class="cell"><p>14.22</p></td><td class="cell"><p>18.40</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></tr></table><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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><i>Spam</i></p></td><td class="cell"><p></p></td><td class="cell"><p><i>Sentiment</i></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Method</i></p></td><td class="cell"><p><i>Task A</i></p></td><td class="cell"><p><i>TaskB</i></p></td><td class="cell"><p><i>Books</i></p></td><td class="cell"><p><i>DVD</i></p></td><td class="cell"><p><i>Books+DVD</i></p></td><td class="cell"><p><i>A//</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Single</p></td><td class="cell"><p>2.11</p></td><td class="cell"><p>5.60</p></td><td class="cell"><p>18.43</p></td><td class="cell"><p>18.67</p></td><td class="cell"><p>19.08</p></td><td class="cell"><p>14.09</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Separate</p></td><td class="cell"><p>2.43</p></td><td class="cell"><p>8.5</p></td><td class="cell"><p>18.87</p></td><td class="cell"><p>15.97</p></td><td class="cell"><p>16.45</p></td><td class="cell"><p>17.23</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Feature Splitting</p></td><td class="cell"><p>1.94</p></td><td class="cell"><p>5.51</p></td><td class="cell"><p>9.97</p></td><td class="cell"><p>9.70</p></td><td class="cell"><p>9.05</p></td><td class="cell"><p>14.73</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MDR</p></td><td class="cell"><p>1.94</p></td><td class="cell"><p>5.69</p></td><td class="cell"><p>9.97</p></td><td class="cell"><p>8.33</p></td><td class="cell"><p>8.20</p></td><td class="cell"><p>14.73</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MDR+L2</p></td><td class="cell"><p><b>1.87</b></p></td><td class="cell"><p>5.16</p></td><td class="cell"><p>6.63</p></td><td class="cell"><p>7.97</p></td><td class="cell"><p>7.62</p></td><td class="cell"><p><b>14.20</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MDR+L2-Var</p></td><td class="cell"><p>1.90</p></td><td class="cell"><p><b>4.78</b></p></td><td class="cell"><p><b>6.40</b></p></td><td class="cell"><p>7.83</p></td><td class="cell"><p><b>7.30</b></p></td><td class="cell"><p>14.33</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MDR+KL</p></td><td class="cell"><p>1.94</p></td><td class="cell"><p>5.61</p></td><td class="cell"><p>8.37</p></td><td class="cell"><p><b>7.07</b></p></td><td class="cell"><p>8.43</p></td><td class="cell"><p>14.60</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>MDR+KL-Var</p></td><td class="cell"><p>1.97</p></td><td class="cell"><p>5.46</p></td><td class="cell"><p>9.40</p></td><td class="cell"><p>7.50</p></td><td class="cell"><p>8.05</p></td><td class="cell"><p>15.50</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></tr></table><p>updated using the closed form solution to (3) as:</p></section><section number="8" title="Learning in Many Domains"><doubt alpha="65.0" length="20" tooSmall="False" monospace="0.0">/Lts=/Lts+ A2«ViXcXi</doubt><doubt alpha="40.0" length="25" tooSmall="False" monospace="0.0">(Xs)-1= (Xs)-1+ 2A2a0XiXT</doubt><p><b>ßd </b>= <b>ßd </b>+ A<b>i</b>aViXc <i>xi</i></p><doubt alpha="44.0" length="25" tooSmall="False" monospace="0.0">(Xd)-1= (Xd)-1+ 2Aia0XiXT</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(4)</doubt><p>We call this objective Multi-Domain Regulariza-tion (MDR). As before, the combined parameters are produced by one of the combination methods. On each round, the algorithm receives instance <b>x</b>i and domain di for which it creates a combined clas­sifier <b>(/Ltc, </b>Xc) using the shared <b>(/Lts, </b>Xs) and domain specific parameters <b>(/Ltd, </b>Xd). A prediction is is­sued using the standard linear classifier prediction rule sign<b>(/Ltc </b>• <b>x) </b>and updates follow (4). The ef­fect is that features similar across domains quickly converge in the shared classifier, sharing informa­tion across domains. The combined classifier re­flects shared and domain specific parameter confi­dences: weights with low variance (i.e. greater con­fidence) will contribute more.</p><p>We evaluate MDR on a single pass over a stream of instances from multiple domains, simulating a real world setting. Parameters A1 and 0 are iter-atively optimized on a single randomized run for each dataset. All experiments use 10-fold CV. In ad­dition to evaluating the four combination methods with MDR, we evaluate the performance of a sin­gle classifier trained on all domains <i>(Sing/e), </i>a sep­arate classifier trained on each domain <i>(Separate), Feature Sp/itting </i>(Daume) and feature splitting with optimized A1 <i>(MDR). </i>Table 3 shows results on test data and table 2 shows online training error.</p><p>In this setting, L2 combinations prove best on 5 of 6 datasets, with the variance weighted combina­tion doing the best. MDR (optimizing A1) slightly improves over feature splitting, and the combination methods improve in every case. Our best result is statistically significant compared to <i>Feature Sp/it­ting </i>using McNemar's test <i>(p </i>= .001) for <i>Task B, Books, DVD, Books+DVD. </i>While a single or sepa­rate classifiers have a different effect on each dataset, MDR gives the best performance overall.</p><p>So far we have considered settings with a small number of similar domains. While this is typical of multi-task problems, real world settings present many domains which do not all share the same be­haviors. Online algorithms scale to numerous ex­amples and we desire the same behavior for numer­ous domains. Consider a spam filter used by a large email provider, which filters billions of emails for millions of users. Suppose that spammers control many accounts and maliciously label spam as legiti­mate. Alternatively, subsets of users may share pref­erences. Since behaviors are not consistent across domains, shared parameters cannot be learned. We seek algorithms robust to this behavior.</p><p>Since subsets of users share behaviors, these can be learned using our MDR framework. For example, discovering spammer and legitimate mail accounts would enable intra-group learning. The challenge is the online discovery of these subsets while learning model parameters. We augment the MDR frame­work to additionally learn this mapping.</p><p>We begin by generalizing MDR to include k shared classifiers instead of a single set of shared pa­rameters. Each set of shared parameters represents a different subset of domains. If the corresponding shared parameters are known for a domain, we could use the same objective (3) and update (4) as before. If there are many fewer shared parameters than do­mains (k &lt;C D), we can benefit from multi-domain learning. Next, we augment the learning algorithm to learn a mapping between the domains and shared classifiers. Intuitively, a domain should be mapped to shared parameters that correctly classify that do­main. A common technique for learning such ex­perts in the Weighted Majority algorithm (Little­stone and Warmuth, 1994), which weighs a mixture of experts (classifiers). However, since we require a hard assignment — pick a single shared parameter set s — rather than a mixture, the algorithm reduces to picking the classifier s with the fewest mistakes in predicting domain d. This requires tracking the number of mistakes made by each shared classifier on each domain once a label is revealed. For learn­ing, the shared classifier with the fewest mistakes for a domain is selected for an MDR update. Clas­sifier ties are broken randomly. While we experi-<page local="7" global="695"/></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">694</doubt><p>Figure 2: Learning across many domains - spam (left) and sentiment (right) - with no domain specific parameters.</p><p>mented with more complex techniques, this simple method worked well in practice. When a new do­main is added to the system, it takes fewer exam­ples to learn which shared classifier to use instead of learning a new model from scratch.</p><p>While this approach adds another free parameter (k) that can be set using development data, we ob­serve that k can instead be fixed to a large constant. Since only a single shared classifier is updated each round, the algorithm will favor selecting a previ­ously used classifier as opposed to a new one, using as many classifiers as needed but not scaling up to k. This may not be optimal, but it is a simple.</p><p>To evaluate a larger number of domains, we cre­ated many varying domains using spam and senti­ment data. For spam, 6 email users were created by splitting the 3 task A users into 2 users, and flipping the label of one of these users (a malicious user), yielding 400 train and 100 test emails per user. For sentiment, the book domain was split into 3 groups with binary boundaries at a rating of 2, 3 or 4. Each of these groups was split into 8 groups of which half had their labels flipped, creating 24 domains. The same procedure was repeated for DVD reviews but for a decision boundary of 3, 6 groups were created, and for a boundary of 2 and 4, 3 groups were created with 1 and 2 domains flipped respectively, resulting in 12 DVD domains and 36 total domains with var­ious decision boundaries, features, and inverted de­cision functions. Each domain used 300 train and 100 test instances. 10-fold cross validation with one training iteration was used to train models on these two datasets.<page local="8" global="696"/> Parameters were optimized as before. Experiments were repeated for various settings of k. Since L2 performed well before, we evaluated</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">695</doubt><p>MDR+L2 and MDR+L2-Var.</p><p>The results are shown in figure 1. For both spam and sentiment adding additional shared parameters beyond the single shared classifier significantly re­duces error, with further reductions as k increases. This yields a 45% error reduction for spam and a 38% reduction for sentiment over the best baseline. While each task has an optimal k (about 5 for spam, 2 for sentiment), larger values still achieve low error, indicating the flexibility of using large k values.</p><p>While adding parameters clearly helps for many domains, it may be impractical to keep domain-specific classifiers for thousands or millions of do­mains. In this case, we could eliminate the domain-specific classifiers and rely on the k shared clas­sifiers only, learning the domain to classifier map­ping. We compare this approach using the best result from MDR above, again varying k. Figure 2 shows that losing domain-specific parameters hurts perfor­mance, but is still an improvement over baseline methods. Additionally, we can expect better perfor­mance as the number of similar domains increases. This may be an attractive alternative to keeping a very large number of parameters.</p></section><section number="9" title="Related Work"><p>Multi-domain learning intersects two areas of re­search: domain adaptation and multi-task learning. In domain adaptation, a classifier trained for a source domain is transfered to a target domain using either unlabeled or a small amount of labeled target data. Blitzer et al. (2007) used structural correspondence learning to train a classifier on source data with new features induced from target unlabeled data. In a complimentary approach, Jiang and Zhai (2007) weighed training instances based on their similarity to unlabeled target domain data. Several approaches utilize source data for training on a limited number of target labels, including feature splitting (Daume, 2007) and adding the source classifier's prediction as a feature (Chelba and Acero, 2004). Others have considered transfer learning, in which an existing domain is used to improve learning in a new do­main, such as constructing priors (Raina et al., 2006;</p><p>Marx et al., 2008) and learning parameter functions for text classification from related data (Do and Ng, 2006). These methods largely require batch learn­ing, unlabeled target data, or available source data at adaptation. In contrast, our algorithms operate purely online and can be applied when no target data is available.</p><p>Multi-task algorithms, also known as inductive transfer, learn a set of related problems simultane­ously (Caruana, 1997). The most relevant approach is that of Regularized Multi-Task Learning (Evge-niou and Pontil, 2004), which we use to motivate our online algorithm. Dekel et al. (2006) gave a sim­ilar online approach but did not use shared parame­ters and assumed multiple instances for each round. We generalize this work to both include an arbi­trary classifier combination and many shared classi­fiers. Some multi-task work has also considered the grouping of tasks similar to our learning of domain subgroups (Thrun and O'Sullivan, 1998; Bakker and</p><p>Heskes, 2003).</p><p>There are many techniques for combining the out­put of multiple classifiers for ensemble learning or mixture of experts. Kittler et al. (Mar 1998) provide a theoretical framework for combining classifiers. Some empirical work has considered adding versus multiplying classifier output (Tax et al., 2000), using local accuracy estimates for combination (Woods et al., 1997), and applications to NLP tasks (Florian et al., 2003). However, these papers consider combin­ing classifier output for prediction. In contrast, we consider parameter combination for both prediction and learning.</p></section><section number="10" title="Conclusion"><p>We have explored several multi-domain learning settings using CW classifiers and a combination method. Our approach creates a better classifier for a new target domain than selecting a random source classifier a prior, reduces learning error on multiple domains compared to baseline approaches, can han­dle many disparate domains by using many shared classifiers, and scales to a very large number of do­mains with a small performance reduction. These scenarios are realistic for NLP systems in the wild. This work also raises some questions about learning on large numbers of disparate domains: can a hierarchical online clustering yield a better represen­tation than just selecting between k shared parame­ters?<page local="9" global="697"/> Additionally, how can prior knowledge about domain similarity be included into the combination methods? We plan to explore these questions in fu­ture work.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">696</doubt><p><b>Acknowledgements </b>This material is based upon work supported by the Defense Advanced Re­search Projects Agency (DARPA) under Contract</p><doubt alpha="48.4" length="31" tooSmall="False" monospace="0.0">No. FA8750-07-D-0185.References</doubt><p>B. Bakker and T. Heskes. 2003. Task clustering and gat­ing for bayesian multi-task learning. <i>Journa/ of Ma­chine Learning Research, </i>4:83-99.</p><p>John Blitzer, Mark Dredze, and Fernando Pereira. 2007. Biographies, bollywood, boom-boxes and blenders: Domain adaptation for sentiment classification. In <i>As­sociation for Computationa/ Linguistics (ACL).</i></p><p>Rich Caruana. 1997. Multitask learning. <i>Machine Learning, </i>28:41-75.</p><p>Ciprian Chelba and Alex Acero. 2004. Adaptation of max- imum entropy classifier: Little data can help a lot. In <i>Empirica/ Methods in Natura/ Language Pro­cessing (EMNLP).</i></p><p>Koby Crammer, Ofer Dekel, Joseph Keshet, Shai Shalev-Shwartz, and Yoram Singer. 2006. Online passive-aggressive algorithms. <i>Journa/ ofMachine Learning Research, </i>7:551-585.</p><p>Hal Daume. 2007. Frustratingly easy domain adaptation. In <i>Association for Computationa/ Linguistics (ACL).</i></p><p>Ofer Dekel, Philip M. Long, and Yoram Singer. 2006. Online multitask learning. In <i>Conference on Learning Theory (COLT).</i></p><p>Chuong B. Do and Andrew Ng. 2006. Transfer learning for text classification. In <i>Advances in Neura/ Informa­tion Processing Systems (NIPS).</i></p><p>Mark Dredze, Koby Crammer, and Fernando Pereira. 2008. Confidence-weighted linear classification. In <i>Internationa/ Conference on Machine Learning</i> <i>(ICML).</i><i></i></p><p>Theodoros Evgeniou and Massimiliano Pontil. 2004. Regularized multi-task learning. In <i>Conference on Know/edge Discovery and Data Mining (KDD).</i></p><p>Radu Florian, Abe Ittycheriah, Hongyan Jing, and Tong Zhang. 2003. Named entity recognition through clas­sifier combination. In <i>Conference on Computationa/ Natura/ Language Learning (CONLL).</i></p><p>Jing Jiang and ChengXiang Zhai. 2007. Instance weight­ing for domain adaptation in nlp. In <i>Association for Computationa/ Linguistics (ACL).</i></p><p>J. Kittler, M. Hatef, R.P.W. Duin, and J. Matas. Mar 1998. On combining classifiers. <i>Pattern Analy­sis and Machine Inte//igence, IEEE Transactions on,</i> 20(3):226-239.</p><p>N. Littlestone and M. K. Warmuth. 1994. The weighted majority algorithm. <i>Information and Computation, </i>108:212-261.</p><p>Zvika Marx, Michael T. Rosenstein, Thomas G. Diet-terich, and Leslie Pack Kaelbling. 2008. Two algo­rithms for transfer learning. In <i>Inductive Transfer: 10 years /ater.</i></p><p>Rajat Raina, Andrew Ng, and Daphne Koller. 2006. Constructing informative priors using transfer learn­ing. In <i>Internationa/ Conference on Machine Learn­ing (ICML).</i></p><p>David M. J. Tax, Martijn van Breukelen, Robert P. W. Duina, and Josef Kittler. 2000. Combining multiple classifiers by averaging or by multiplying? <i>Pattern Recognition, </i>33(9):1475-1485, September.</p><p>S. Thrun and J. O'Sullivan. 1998. Clustering learning tasks and the selective cross-task transfer of knowl­edge. In S. Thrun and L.Y. Pratt, editors, <i>Learning </i><i>To</i><i> Learn. </i>Kluwer Academic Publishers.</p><p>Kevin Woods, W. Philip Kegelmeyer Jr., and Kevin Bowyer. 1997. Combination of multiple classifiers using local accuracy estimates. <i>IEEE Transactions on Pattern Ana/ysis and Machine Inte//igence, </i>19(4):405-410.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">697</doubt></section></body></article>