Large-Scale Semi-Supervised Learning for Natural Language ...

Large-Scale Semi-Supervised Learning for Natural Language ... Large-Scale Semi-Supervised Learning for Natural Language ...

old.site.clsp.jhu.edu
from old.site.clsp.jhu.edu More from this publisher
12.07.2015 Views

Here, we simply provide some intuitions on what kinds of weights will be learned. Tobe clear, note that ¯Wr , the rth row of the weight-matrix W, corresponds to the weights forpredicting candidate c r . Recall that in generation tasks, the set C and the set F may beidentical. So some of the weights in ¯W r will therefore correspond to features for patternsfilled with filler f r . Intuitively, these weights will be positive. That is, we will predictthe class among when there are high counts for the patterns filled with the filler among(c r =f r =among). On the other hand, we will choose not to pick among if the counts onpatterns filled with between are high. These tendencies are all learned by the learningalgorithm. The learning algorithm can also place higher absolute weights on the morepredictive context positions and sizes. For example, for many tasks, the patterns that beginwith a filler are more predictive than patterns that end with a filler. The learning algorithmattends to these differences in predictive power as it maximizes prediction accuracy on thetraining data.We now note some special features used by our classifier. If a pattern spans outside thecurrent sentence (when v 0 is close to the start or end), we use zero for the correspondingfeature value, but fire an indicator feature to flag that the pattern crosses a boundary. Thisfeature provides a kind of smoothing. Other features are possible: for generation tasks,we could also include synonyms of the output candidates as fillers. Features could also becreated for counts of patterns processed in some way (e.g. converting one or more contexttokens to wildcards, POS-tags, lower-case, etc.), provided the same processing can be doneto the N-gram corpus (we do such processing for the non-referential pronoun detectionfeatures described in Section 3.7).We call this approach SUPERLM because it is SUPERvised, and because, like an interpolatedlanguage model (LM), it mixes N-gram statistics of different orders to produce anoverall score for each filled context sequence. SUPERLM’s features differ from previouslexical disambiguation feature sets. In previous systems, attribute-value features flag thepresence or absence of a particular word, part-of-speech, or N-gram in the vicinity of thetarget [Roth, 1998]. Hundreds of thousands of features are used, and pruning and scalingcan be key issues [Carlson et al., 2001]. Performance scales logarithmically with thenumber of examples, even up to one billion training examples [Banko and Brill, 2001]. Incontrast, SUPERLM’s features are all aggregate counts of events in an external (web) corpus,not specific attributes of the current example. It has only 14|F|K parameters, for theweights assigned to the different counts. Much less training data is needed to achieve peakperformance. Chapter 5 contrasts the performance of classifiers with N-gram features andtraditional features on a range of tasks.3.3.2 SUMLMWe create an unsupervised version of SUPERLM. We produce a score for each filler bysumming the (unweighted) log-counts of all context patterns filled with that filler. Forexample, the score for among could be the sum of all 14 context patterns filled with among.For generation tasks, the filler with the highest score is taken as the label. For analysis tasks,we compare the scores of different fillers to arrive at a decision; Section 3.7.2 explains howthis is done for non-referential pronoun detection.We refer to this approach in our experiments as SUMLM.For generation problems where F =C, SUMLM is similar to a naive bayes classifier,41

ut without counts for the class prior. 3 Naive bayes has a long history in disambiguationproblems [Manning and Schütze, 1999], so it is not entirely surprising that our SUMLMsystem, with a similar form to naive bayes, is also effective.3.3.3 TRIGRAMPrevious web-scale approaches are also unsupervised. Most use one context pattern foreach filler: the trigram with the filler in the middle: {v −1 ,f,v 1 }. |F| counts are needed foreach example, and the filler with the most counts is taken as the label [Lapata and Keller,2005; Liu and Curran, 2006; Felice and Pulman, 2007]. Using only one count for eachlabel is usually all that is feasible when the counts are gathered using an Internet searchengine, which limits the number of queries that can be retrieved. With limited context, andsomewhat arbitrary search engine page counts, performance is limited. Web-based systemsare regarded as “baselines” compared to standard approaches [Lapata and Keller, 2005], or,worse, as scientifically unsound [Kilgarriff, 2007]. Rather than using search engines, higheraccuracy and reliability can be obtained using a large corpus of automatically downloadedweb documents [Liu and Curran, 2006]. We evaluate the trigram pattern approach, withcounts from the Google 5-gram corpus, and refer to it as TRIGRAM in our experiments.3.3.4 RATIOLMCarlson et al. [2008] proposed an unsupervised method for spelling correction that alsouses counts for various pattern fillers from the Google 5-gram Corpus. For every contextpattern spanning the target word, the algorithm calculates the ratio between the highestand second-highest filler counts. The position with the highest ratio is taken as the “mostdiscriminating,” and the filler with the higher count in this position is chosen as the label.The algorithm starts with 5-grams and backs off to lower orders if no 5-gram counts3 In this case, we can think of the features, x i, as being the context patterns, and the classes y as being thefillers. In a naive bayes classifier, we select the class, y, that has the highest score under:H(¯x) =Kargmaxr=1= KPr(y r|¯x)argmax Pr(y r)Pr(¯x|y r)r=1argmax Pr(y ∏ r) Pr(x i|y r)r=1i= KBayes decision rulenaive bayes assumption= Kargmaxlog(Pr(y ∑ r))+r=1i= Kargmaxlog(Pr(y ∑ r))+r=1ilog(Pr(x i|y r))logcnt(x i,y r)−logcnt(y r)= Kargmaxg(y ∑ r)+r=1ilogcnt(x i,f r)y r = f rwhere we collect all the terms that depend solely on the class into g(y r). Our SUMLM system is exactlythe same as this naive bayes classifier if we drop the g(y r) term. We tried various ways to model the classpriors using N-gram counts and incorporating them into our equations, but nothing performed as well as simplydropping them altogether. Another option we haven’t explored is simply having a single class bias parameterfor each class, λ r = g(y r), to be added to the filler counts. We would tune the λ r’s by hand for each taskwhere SUMLM is applied. However, this would make the model require some labeled data to tune, whereasour current SUMLM is parameter-free and entirely unsupervised.42

Here, we simply provide some intuitions on what kinds of weights will be learned. Tobe clear, note that ¯Wr , the rth row of the weight-matrix W, corresponds to the weights <strong>for</strong>predicting candidate c r . Recall that in generation tasks, the set C and the set F may beidentical. So some of the weights in ¯W r will there<strong>for</strong>e correspond to features <strong>for</strong> patternsfilled with filler f r . Intuitively, these weights will be positive. That is, we will predictthe class among when there are high counts <strong>for</strong> the patterns filled with the filler among(c r =f r =among). On the other hand, we will choose not to pick among if the counts onpatterns filled with between are high. These tendencies are all learned by the learningalgorithm. The learning algorithm can also place higher absolute weights on the morepredictive context positions and sizes. For example, <strong>for</strong> many tasks, the patterns that beginwith a filler are more predictive than patterns that end with a filler. The learning algorithmattends to these differences in predictive power as it maximizes prediction accuracy on thetraining data.We now note some special features used by our classifier. If a pattern spans outside thecurrent sentence (when v 0 is close to the start or end), we use zero <strong>for</strong> the correspondingfeature value, but fire an indicator feature to flag that the pattern crosses a boundary. Thisfeature provides a kind of smoothing. Other features are possible: <strong>for</strong> generation tasks,we could also include synonyms of the output candidates as fillers. Features could also becreated <strong>for</strong> counts of patterns processed in some way (e.g. converting one or more contexttokens to wildcards, POS-tags, lower-case, etc.), provided the same processing can be doneto the N-gram corpus (we do such processing <strong>for</strong> the non-referential pronoun detectionfeatures described in Section 3.7).We call this approach SUPERLM because it is SUPERvised, and because, like an interpolatedlanguage model (LM), it mixes N-gram statistics of different orders to produce anoverall score <strong>for</strong> each filled context sequence. SUPERLM’s features differ from previouslexical disambiguation feature sets. In previous systems, attribute-value features flag thepresence or absence of a particular word, part-of-speech, or N-gram in the vicinity of thetarget [Roth, 1998]. Hundreds of thousands of features are used, and pruning and scalingcan be key issues [Carlson et al., 2001]. Per<strong>for</strong>mance scales logarithmically with thenumber of examples, even up to one billion training examples [Banko and Brill, 2001]. Incontrast, SUPERLM’s features are all aggregate counts of events in an external (web) corpus,not specific attributes of the current example. It has only 14|F|K parameters, <strong>for</strong> theweights assigned to the different counts. Much less training data is needed to achieve peakper<strong>for</strong>mance. Chapter 5 contrasts the per<strong>for</strong>mance of classifiers with N-gram features andtraditional features on a range of tasks.3.3.2 SUMLMWe create an unsupervised version of SUPERLM. We produce a score <strong>for</strong> each filler bysumming the (unweighted) log-counts of all context patterns filled with that filler. Forexample, the score <strong>for</strong> among could be the sum of all 14 context patterns filled with among.For generation tasks, the filler with the highest score is taken as the label. For analysis tasks,we compare the scores of different fillers to arrive at a decision; Section 3.7.2 explains howthis is done <strong>for</strong> non-referential pronoun detection.We refer to this approach in our experiments as SUMLM.For generation problems where F =C, SUMLM is similar to a naive bayes classifier,41

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!