<?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="1080"/><title>Latent-Variable Modeling of String Transductions with Finite-State Methods</title><author surname="Dreyer" givenname="Markus"><org  name="Johns Hopkins University" country="USA" city="Baltimore"/></author><author surname="Smith" givenname="Jason"><org  name="Johns Hopkins University" country="USA" city="Baltimore"/></author><author surname="Eisner" givenname="Jason"><org  name="Johns Hopkins University" country="USA" city="Baltimore"/></author></firstpageheader><frontmatter><p><b>Latent-Variable Modeling of String Transductions with Finite-State Methods*</b></p><p><b>Markus Dreyer </b>and <b>Jason R. Smith </b>and <b>Jason Eisner</b></p><p>Department of Computer Science Johns Hopkins University Baltimore, MD 21218, USA</p><p>{markus,jsmith,jason}@cs.jhu.edu</p></frontmatter><abstract>String-to-string transduction is a central prob­lem in computational linguistics and natural language processing. It occurs in tasks as di­verse as name transliteration, spelling correc­tion, pronunciation modeling and inflectional morphology. We present a conditional log­linear model for string-to-string transduction, which employs overlapping features over la­tent alignment sequences, and which learns la­tent classes and latent string pair regions from incomplete training data. We evaluate our ap­proach on morphological tasks and demon­strate that latent variables can dramatically improve results, even when trained on small data sets. On the task of generating mor­phological forms, we outperform a baseline method reducing the error rate by up to 48%. On a lemmatization task, we reduce the error rates in Wicentowski (2002) by 38-92%. </abstract></header><body><section number="1" title="Introduction"><p>A recurring problem in computational linguistics and language processing is transduction of charac­ter strings, e.g., words. That is, one wishes to model some systematic mapping from an input string x to an output string y. Applications include:</p><p>• <i>phonology: </i>underlying representation &lt;-&gt; surface representation</p><p>• <i>orthography: </i>pronunciation &lt;-&gt; spelling</p><p>• <i>morphology: </i>inflected form &lt;-&gt; lemma, or differ­ently inflected form</p><p>• <i>fuzzy name matching </i>(duplicate detection) and <i>spelling correction: </i>spelling &lt;-&gt; variant spelling</p><p>*This work was supported by the Human Language Tech­nology Center of Excellence and by National Science Founda­tion grant No. 0347822 to the final author. We would also like to thank Richard Wicentowski for providing us with datasets for lemmatization, and the anonymous reviewers for their valuable feedback.</p><p>• <i>lexical translation </i>(cognates, loanwords, translit­erated names): English word &lt;-&gt; foreign word</p><p>We present a configurable and robust framework for solving such word transduction problems. Our results in morphology generation show that the pre­sented approach improves upon the state of the art.</p></section><section number="2" title="Model Structure"><p>A weighted edit distance model (Ristad and Yian-ilos, 1998) would consider each character in isola­tion. To consider more context, we pursue a very natural generalization. Given an input x, we evalu­ate a candidate output y by moving a sliding window over the aligned (x, y) pair. More precisely, since many alignments are possible, we sum over all these possibilities, evaluating each alignment <i>separately.<footnote anchor="1"/></i>At each window position, we accumulate log-probability based on the material that appears within the current window. The window is a few charac­ters wide, and successive window positions <i>over­lap. </i>This stands in contrast to a competing approach (Sherif and Kondrak, 2007; Zhao et al., 2007) that is inspired by phrase-based machine translation (Koehn et al., 2007), which <i>segments </i>the input string into substrings that are transduced <i>independently, </i>ig­noring context.<footnote anchor="2"/></p><footnote label="1">At the other extreme, Freitag and Khadivi (2007) use no alignment; each feature takes its own view of how (x,  y) relate.</footnote><footnote label="2">We feel that this independence is inappropriate. By anal­ogy, it would be a poor idea for a language model to score a string highly if it could be segmented into independently fre­quent n-grams. Rather, language models use overlapping n-grams (indeed, it is the language model that rescues phrase-based MT from producing disjointed translations). We believe phrase-based MT avoids overlapping phrases in the channel model only because these would complicate the modeling of reordering (though see, e.g., Schwenk et al. (2007) and Casacu-berta (2000)). But in the problems of section 1, letter reordering is rare and we may assume it is local to a window.</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1080</doubt><p><i>Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing, </i>pages 1080-1089, Honolulu, October 2008. ©2008 Association for Computational Linguistics<page local="2" global="1081"/></p><p>Figure 1: One of many possible alignment strings A for the observed pair <i>breaking/broke, </i>enriched with latent strings <b><i>l\ </i></b>and t2. Observed letters are shown in bold. The box marks a trigram to be scored. See Fig. 2 for features that fire on this trigram.</p><p>Joint n-gram models over the input and output di­mensions have been used before, but not for mor­phology, where we will apply them.<footnote anchor="3"/> Most notable is the local log-linear grapheme-to-phoneme model of Chen (2003), as well as generative models for that task (Deligne et al. (1995), Galescu and Allen (2001), Bisani and Ney (2002)).</p><p>We advance that approach by adding new <b><i>latent </i></b>dimensions to the (input, output) tuples (see Fig. 1).<footnote anchor="4"/>This enables us to use certain linguistically inspired features and discover unannotated information. Our features consider <b><i>less </i></b>or <b><i>more </i></b>than a literal n-gram. On the one hand, we generalize with features that abstract away from the n-gram window contents; on the other, we specialize the n-gram with features that make use of the added latent linguistic structure.</p><p>In section 5, we briefly sketch our framework for concisely expressing and efficiently implementing models of this form. Our framework uses familiar log-linear techniques for stochastic modeling, and weighted finite-state methods both for implementa­tion and for specifying features. It appears general enough to cover most prior work on word transduc-tion. We imagine that it will be useful for future work as well: one might easily add new, linguisti­cally interesting classes of features, each class de­fined by a regular expression.</p><subsection number="2.1" title="Basic notation"><p>We use an <b>input alphabet </b>Ex and <b>output alphabet</b></p><p>Ey. We conventionally use x G E* to denote the input string and y G E* to denote the output string.</p><footnote label="3">Clark (2001) does use pair HMMs for morphology.</footnote><footnote label="4">Demberg et al. (2007) similarly added extra dimensions. However, their added dimensions were supervised, not latent, and their model was a standard generative n-gram model whose generalization was limited to standard n-gram smoothing.</footnote><p>There are many possible alignments between x and y. We represent each as an <b>alignment string </b>A G E* , over an <b>alignment alphabet </b>of ordered pairs, Ex'y = ((Ex U {e}) x (Ey U {e})) - {(e, e)}.</p><p>For example, one alignment of x = breaking with y = broke is the 9-character string A = (b lo<b>X^ </b>r)(e C<b>JX^X^ </b>k)(<b>^ </b>e)(i,e)(n,e)(g,e).</p><p>It is pictured in the first two lines of Fig. 1.</p><p>The remainder of Fig. 1 shows how we intro­duce latent variables, by enriching the alignment characters to be tuples rather than pairs. Let E = (Exy x <i>E£l </i><i>x</i><i> </i><i>Eh </i><i>x</i><i> </i><i>•••</i><i> </i><i>x</i><i> </i><i>E1k</i>), where <i>E£i </i>are al­phabets used for the latent variables <i>t{.</i></p><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">def</doubt><p><b>FSA </b>and <b>FST </b>stand for "finite-state acceptor" and "finite-state transducer," while <b>WFSA </b>and <b>WFST </b>are their weighted variants. The o symbol denotes composition.</p><p>Let T be a relation and w a string. We write T[w] to denote the image of w under T (i.e., range(w o T)), a set of 0 or more strings. Similarly, if W is a weighted language (typically encoded by a WFSA), we write W [w] to denote the weight of w in W.</p><p>Let nx Ç E* x E* denote the deterministic reg­ular relation that projects an alignment string to its corresponding input string, so that nx [A] = x. Sim­ilarly, define ny Ç E* x E* so that ny[A] = y. Let <b><i>Axy </i></b>be the set of alignment strings A compatible with x and y; formally, <b><i>Axy </i></b>=f {A G E* : nx [A] = x A ny [A] = y}. This set will range over all possible alignments between x and y, and <b><i>also </i></b>all possible configurations of the latent variables.</p></subsection><subsection number="2.2" title="Log-linear modeling"><p>We use a standard log-linear model whose features are defined on alignment strings A G <b><i>Axy</i></b>, allow­ing them to be sensitive to the alignment of x and y. Given a collection of features <i>fi </i>: E* — R with as­sociated weights <i>9i</i><i> </i>G R, the conditional likelihood of the training data is</p><doubt alpha="56.5" length="23" tooSmall="False" monospace="0.0">(,)^AGAxyeXP£i#i/i(A)n,</doubt><p>Ey'E<i>A</i><b><i>£Axy, </i></b>eXpE<i>i </i><i>0</i><i>i</i><i>f</i><i>i(A)</i></p><p>Given a parameter vector <b>6, </b>we compute equa­tion (1) using a finite-state machine. We define a WFSA, Uq, such that Uq [A] yields the unnormalized probability <i>uQ</i>(A) =f exp^i (A) for any A G E*. (See section 5 for the construction.) To obtain the numerator of equation (1), with its ^A<b>GAxy</b>, we sum over all paths in Uq that are compatible with x and y.<page local="3" global="1082"/> That is, we build x o n-1 o Uq o ny o y and sum over all paths. For the denominator we build the larger machine x o n-1 o Uq and again compute the pathsum. We use standard algorithms (Eisner, 2002) to compute the pathsums as well as their gradients with respect to <b>6 </b>for optimization (section 4.1).</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1081</doubt><p>Below, we will restrict our notion of <i>valid </i>align­ment strings in E*. Uq is constructed not to accept <i>invalid </i>ones, thus assigning them probability 0.</p><p>Note that the possible output strings y' in the de­nominator in equation (1) may have arbitrary length, leading to an infinite summation over alignment strings. Thus, for some values of <b><i>6, </i></b>the sum in the denominator diverges and the probability dis­tribution is undefined. There exist principled ways to avoid such <b><i>6 </i></b>during training. However, in our current work, we simply restrict to finitely many alignment strings (given x), by prohibiting as invalid those with &gt; k <i>consecutive </i>insertions (i.e., charac­ters like (e, a)).<footnote anchor="5"/> Finkel et al. (2008) and others have similarly bounded unary rule cycles in PCFGs.</p></subsection><subsection number="2.3" title="Latent variables"><p>The alignment between x and y is a latent ex­planatory variable that helps model the distribution p(y I x) but is not observed in training. Other latent variables can also be useful. Morphophonological changes are often sensitive to <i>phonemes </i>(whereas x and y may consist of graphemes); <i>syllable bound­aries; </i>a <i>conjugation class; morpheme boundaries; </i>and the <i>position </i>of the change within the form.</p><p>Thus, as mentioned in section 2.1, we enrich the alignment string A so that it specifies additional la­tent variables to which features may wish to refer. In Fig. 1, two latent strings are added, enabling the features in Fig. 2(a)-(h). The first character is not</p><doubt alpha="65.9" length="41" tooSmall="False" monospace="0.0">ngram       vc-ngram    targel-LMid/subst</doubt><footnote label="5">We set k to a value between 1 and 3, depending on the tasks, always ensuring that no input/output pairs observed in training are excluded. The insertion restriction does slightly enlarge the FSA U e : a state must keep track of the number of consecutive e symbols in the immediately preceding x input, and for a few states, this cannot be determined just from the immediately pre­ceding (n — 1)-gram. Despite this, we found empirically that our approximation is at least as fast as the exact method of Eis­ner (2002), who sums around cyclic subnetworks to numerical convergence. Furthermore, our approximation does not require us to detect divergence during training.</footnote><doubt alpha="85.7" length="7" tooSmall="False" monospace="0.0">VÇe eCV</doubt><doubt alpha="11.1" length="9" tooSmall="False" monospace="0.0">222 i 2 3</doubt><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">ngram</doubt><doubt alpha="85.7" length="7" tooSmall="False" monospace="0.0">VÇs èCV</doubt><doubt alpha="0.0" length="5" tooSmall="False" monospace="0.0">? ? ?</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">12 3</doubt><p>Figure 2: The boxes (a)-(h) represent some of the features that fire on the trigram shown in Fig. 1. These features are explained in detail in section 3.</p><p>just an input/output pair, but the 4-tuple (b, b, 2,1).</p><p>Here, t1 indicates that this form pair <i>(breaking / broke) </i>as a whole is in a particular cluster, or <i>word class, </i>labeled with the arbitrary number 2 . Notice in Fig. 1 that the class 2 is visible in all local windows throughout the string. It allows us to model how cer­tain phenomena, e.g. the vowel change from ea to o, are more likely in one class than in another. Form pairs in the same class as the <i>breaking / broke </i>ex­ample might include the following Germanic verbs: <i>speak, break, steal, tear, </i>and <i>bear.</i></p><p>Of course, word classes are latent (not labeled in our training data). Given x and y, <b><i>Axy </i></b>will include alignment strings that specify class 1 , and others that are identical except that they specify class 2 ; equation (1) sums over both possibilities.<footnote anchor="6"/> In a valid alignment string A, t1 must be a constant string such as 111... or 222..., as in Fig. 1, so that it spec­ifies a single class for the entire form pair. See sec­tions 4.2 and 4.3 for examples of what classes were learned in our experiments.</p><p>The latent string t2 splits the string pair into num­bered <i>regions. </i>In a valid alignment string, the re­gion numbers must increase throughout t2, although numbers may be skipped to permit omitted regions. To guide the model to make a useful division into regions, we also require that identity characters such as ( b, b) fall in even regions while change charac­ters such as (e, o) (substitutions, deletions, or insertions) fall in odd regions.<page local="4" global="1083"/><footnote anchor="7"/> Region numbers must not increase within a sequence of consecutive changes or consecutive identities.<footnote anchor="8"/> In Fig. 1, the start of re­gion 1 is triggered by e:o, the start of region 2 by the identity k:k, region 3 by e :e.</p><footnote label="6">The latent class is comparable to the latent variable on the tree root symbol S in Matsuzaki et al. (2005).</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1082</doubt><p>Allowing region numbers to be skipped makes it possible to consistently assign similar labels to sim­ilar regions across different training examples. Ta­ble 2, for example, shows pairs that contain a vowel change in the middle, some of which contain an ad­ditional insertion of ge in the begining <i>(verbinden /verbunden, reibt /gerieben). </i>We expect the model to learn to label the ge insertion with a 1 and vowel change with a 3, skipping region 1 in the examples where the ge insertion is not present (see section 4.2, Analysis).</p><p>In the next section we describe features over these enriched alignment strings.</p></subsection></section><section number="3" title="Features"><p>One of the simplest ways of scoring a string is an n-gram model. In our log-linear model (1), we include ngram features fi(A), each of which counts the oc­currences in A of a particular n-gram of alignment characters. The log-linear framework lets us include ngram features of different lengths, a form of back­off smoothing (Wu and Khudanpur, 2000).</p><p>We use additional backoff features on alignment strings to capture phonological, morphological, and orthographic generalizations. Examples are found in features (b)-(h) in Fig. 2. Feature (b) matches <i>vowel and consonant </i>character classes in the input and output dimensions. In the id/subst ngram feature, we have a similar abstraction, where the character classes ins, del, id, and subst are defined over in­put/output pairs, to match insertions, deletions, iden­tities (matches), and substitutions.</p><p>In string transduction tasks, it is helpful to in­clude a language model of the target. While this can be done by mixing the transduction model with a separate language model, it is desirable to in­clude a target language model within the transduction model. We accomplish this by creating target language model features, such as (c) and (g) from Fig. 2, which ignore the input dimension. We also have features which mirror features (a)-(d) but ig­nore the latent classes and/or regions (e.g. features (e)-(h)).</p><footnote label="7">This strict requirement means, perhaps unfortunately, that a single region cannot accommodate the change ayc:xyz unless the two y's are not aligned to each other. It could be relaxed, however, to a prior or an initialization or learning bias.</footnote><footnote label="8">The two boundary characters #, numbered 0 and max (max=6 in our experiments), are neither changes nor identities.</footnote><p>Notice that our choice of E only permits mono­tonic, 1-to-1 alignments, following Chen (2003). We may nonetheless favor the 2-to-1 alignment (ea,o) with bigram features such as (e,o)(a,e). A "collapsed" version of a feature will back off from the specific alignment of the characters within a win­dow: thus, (ea,o) is itself a feature. Currently, we only include collapsed target language model fea­tures. These ignore epsilons introduced by deletions in the alignment, so that collapsed ok fires in a win­dow that contains oek.</p></section><section number="4" title="Experiments"><p>We evaluate our model on two tasks of morphol­ogy generation. Predicting morphological forms has been shown to be useful for machine translation and other tasks.<footnote anchor="9"/> Here we describe two sets of exper­iments: an inflectional morphology task in which models are trained to transduce verbs from one form into another (section 4.2), and a lemmatization task (section 4.3), in which <i>any </i>inflected verb is to be re­duced to its root form.</p><subsection number="4.1" title="Training and decoding"><p>We train <b><i>6 </i></b>to maximize the regularized<footnote anchor="10"/> conditional log-likelihood<footnote anchor="11"/> where C is a supervised training corpus. To max­imize (2) during training, we apply the gradient-based optimization method L-BFGS (Liu and No-cedal, 1989).<footnote anchor="12"/><page local="5" global="1084"/></p><doubt alpha="29.0" length="31" tooSmall="False" monospace="0.0">£logpq(y* I x) +||6||2/2&lt;t2,(2)</doubt><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">(x,y*)GC</doubt><footnote label="9">E.g., Toutanova et al. (2008) improve MT performance by selecting correct morphological forms from a knowledge source. We instead focus on generalizing from observed forms and generating new forms (but see with rootlist in Table 3).</footnote><footnote label="10">The variance a 2 of the L 2  prior is chosen by optimizing on development data. We are also interested in trying an L\ prior.</footnote><footnote label="11">Alternatives would include faster error-driven methods (perceptron, MIRA) and slower max-margin Markov networks.</footnote><footnote label="12">This worked a bit better than stochastic gradient descent.</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1083</doubt><p>To decode a test example x, we wish to find y = argmaxy€S| pQ (y | x). Constructively, y is the highest-probability string in the WFSA T [x], where T = n-1 o Uq o ny is the trained transducer that maps x nondeterministically to y. Alas, it is NP-hard to find the highest-probability string in a WFSA, even an acyclic one (Casacuberta and Higuera, 2000). The problem is that the probability of each string y is a sum over many paths in T [x] that reflect differ­ent alignments of y to x. Although it is straightfor­ward to use a determinization construction (Mohri, 1997)<footnote anchor="13"/> to collapse these down to a single path per y (so that y is easily read off the single best path), determinization can increase the WFSA's size expo­nentially. We approximate by pruning T[ x] back to its 1000-best paths before we determinize.<footnote anchor="14"/></p><p>Since the alignments, classes and regions are not observed in C, we do not enjoy the convex objec­tive function of fully-supervised log-linear models. Training equation (2) therefore converges only to some <i>local </i>maximum that depends on the starting point in parameter space. To find a good starting point we employ <i>staged training, </i>a technique in which several models of ascending complexity are trained consecutively. The parameters of each more complex model are initialized with the trained pa­rameters of the previous simpler model.</p><p>Our training is done in four stages. All weights are initialized to zero. ® We first train only fea­tures that fire on unigrams of alignment charac­ters, ignoring features that examine the latent strings or backed-off versions of the alignment characters (such as vowel/consonant or target language model features). The resulting model is equivalent to weighted edit distance (Ristad and Yianilos, 1998). ® Next,<footnote anchor="15"/> we train all n-grams of alignment charac­ters, including higher-order n-grams, but no backed-off features or features that refer to latent strings.</p><footnote label="13">Weighted determinization is not always possible, but it is in our case because our limit to k consecutive insertions guar­antees that T[x] is acyclic.</footnote><footnote label="14">This value is high enough; we see no degradations in per­formance if we use only 100 or even 10 best paths. Below that, performance starts to drop slightly. In both of our tasks, our conditional distributions are usually peaked: the 5 best output candidates amass &gt; 99% of the probability mass on average. Entropy is reduced by latent classes and/or regions.</footnote><footnote label="15">When unclamping a feature at the start of stages ©-©, we initialize it to a random value from [—0.01, 0.01].</footnote><p><b>13SIA. </b>lieb<b>te, </b>pick<b>te, </b>red<b>ete, </b>r<b>ieb, </b>tr<b>ieb, </b>zu<b>zog 13SKE. </b>lieb<b>e, </b>pick<b>e, </b>red<b>e,   </b>r<b>eibe, </b>tr<b>eibe, </b>zu<b>ziehe 2PIE. </b>lieb<b>t,   </b>pick<b>t, </b>red<b>et, </b>reib<b>t, </b>treib<b>t, </b>zuzieh<b>t 13PKE</b>.lieb<b>en, </b>pick<b>en, </b>red<b>en, </b>reib<b>en, </b>treib<b>en, </b>zuzieh<b>en 2PKE. </b>abbreche<b>t,   </b>entgegentrete<b>t, </b>zuziehe<b>t z.   </b>ab<b>zu</b>breche<b>n, </b>entgegen<b>zu</b>trete<b>n, </b>zu<b>zu</b>ziehe<b>n rP. </b>redet,     r<b>eibt,   </b>tr<b>eibt,    </b>verb<b>i</b>nde<b>t, </b>uberfischt <b>pA.ge</b>redet, <b>ge</b>r<b>ieben, ge</b>tr<b>ieben, </b>verb<b>u</b>nde<b>n, </b>uberfischt</p><p>Table 2: CELEX forms used in our experiments. Changes from one form to the other are in bold (information not given in training). The changes from rP to pA are very complex. Note also the differing positions of zu in z.</p><p>® Next, we add backed-off features as well as all collapsed features. © Finally, we train all features. In our experiments, we permitted latent classes 1 -2 and, where regions are used, regions 0-6. For speed, stages ©-© used a pruned E that included only "plausible" alignment characters: a may not align to b unless it did so in the trained stage-(1) model's optimal alignment of <i>at least one </i>training pair (x, y*).</p></subsection><subsection number="4.2" title="Inflectional morphology"><p>We conducted several experiments on the CELEX morphological database. We arbitrarily consid­ered mapping the following German verb forms:<footnote anchor="16"/>13SIA — 13SKE, 2PIE — 13PKE, 2PKE — z, and rP — pA.<footnote anchor="17"/> We refer to these tasks as 13SIA, 2PIE, 2PKE and rP. Table 2 shows some examples of regular and irregular forms. Common phenomena include stem changes (ei:ie), prefixes inserted af­ter other morphemes <i>(ab</i><b><i>zu</i></b><i>brechen) </i>and circumfixes <b><i>(ge</i></b><i>rieb</i><b><i>en).</i></b></p><p>We compile lists of form pairs from CELEX. For each task, we sample 2500 data pairs without re­placement, of which 500 are used for training, 1000 as development and the remaining 1000 as test data. We train and evaluate models on this data and repeat<page local="6" global="1085"/></p><footnote label="16">From the available languages in CELEX (German, Dutch, and English), we selected German as the language with the most interesting morphological phenomena, leaving the mul­tilingual comparison for the lemmatization task (section 4.3), where there were previous results to compare with. The 4 Ger­man datasets were picked arbitrarily.</footnote><footnote label="17">A key to these names: 13SIA =1st/3rd sg. ind. past; 13SKE =1st/3rd sg. subjunct. pres.; 2PIE =2nd pl. ind. pres.; 13PKE =1st/3rd pl. subjunct. pres.; 2PKE =2nd pl. subjunct. pres.; z =infinitive; rP =imperativepl.; pA =pastpart.</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1084</doubt><p>Table 1: Exact-match accuracy and average edit distance (the latter in parentheses) versus the correct answer on the German inflection task, using different combinations of feature classes. The label <i>ngrams </i>corresponds to the second stage of training, <i>ngrams+x </i>to the third where backoff features may fire (vc = vowel/consonant, tlm = target LM, tlm-coll = collapsed tlm, id = identity/substitution/deletion features), and <i>ngrams+x+latent </i>to the fourth where features sensitive to latent classes and latent regions are allowed to fire. The highest n-gram order used is 3, except for <i>Moses9 </i>and <i>Mosesl5 </i>which examine windows of up to 9 and 15 characters, respectively. We mark in <b>bold </b>the best result for each dataset, along with all results that are statistically indistinguishable (paired permutation test, p &lt; 0.05).</p><p>the process 5 times. All results are averaged over these 5 runs.</p><p>Table 1 and Fig. 3 report separate results after stages ®, ®, and © of training, which include suc­cessively larger feature sets. These are respectively labeled <i>ngrams, ngrams+x, </i>and <i>ngrams+x+latent. </i>In Table 1, the last row in each section shows the full feature set at that stage (cf. Fig. 3), while earlier rows test feature subsets.<footnote anchor="18"/></p><p>Our baseline is the SMT toolkit Moses (Koehn et al., 2007) run over letter strings rather than word strings. It is trained (on the same data splits) to find substring-to-substring phrase pairs and translate from one form into another (with phrase reordering turned off). Results reported as <i>moses3 </i>are obtained from Moses runs that are constrained to the same context windows that our models use, so the maxi­mum phrase length and the order of the target lan­guage model were set to 3. We also report results using much larger windows, <i>moses9 </i>and <i>mosesl5.</i></p><footnote label="18">The number k of consecutive insertions was set to 3.</footnote><p>Results. The results in Table 1 show that including <i>latent classes and/or regions </i>improves the results dramatically. Compare the last line in <i>ngrams+x </i>to the last line in <i>ngrams+x+latent. </i>The accuracy numbers improve from 82.8 to 87.5 (13SIA), from 88.7 to 93.4 (2PIE), from 74.7 to 87.4 (2PKE), and</p><p>from 69.9 to 84.9 (rP).<footnote anchor="19"/> This shows that error re­ductions between 27% and 50% were reached. On 3 of 4 tasks, even our simplest <i>ngrams </i>method beats the <i>moses3 </i>method that looks at the same amount of context.<footnote anchor="20"/> With our full model, in particular using latent features, we always outperform <i>moses3</i>—and even outperform <i>mosesl5 </i>on 3 of the 4 datasets, re­ducing the error rate by up to 48.3% (rP). On the fourth task (2PIE), our method and <i>moses15 </i>are sta­tistically tied. <i>Mosesl5 </i>has access to context win­dows of five times the size than we allowed our methods in our experiments.</p><footnote label="19">All claims in the text are statistically significant under a paired permutation test (p  &lt;  .05).</footnote><footnote label="20">This bears out our contention in footnote 2 that a "segment­ing" channel model is damaging. Moses cannot fully recover by using overlapping windows in the language model.</footnote><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1085</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><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></p></td><td class="cell"><p></p></td><td class="cell"><p><b>Features</b></p></td><td class="cell"><p></p></td><td class="cell"><p><b>Task</b></p></td><td class="cell"><p></p></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>vc</p></td><td class="cell"><p>tlm</p></td><td class="cell"><p>tlm-coll</p></td><td class="cell"><p>id</p></td><td class="cell"><p>lat.cl.</p></td><td class="cell"><p>lat.reg.</p></td><td class="cell"><p><b>13SIA</b></p></td><td class="cell"><p><b>2PIE</b></p></td><td class="cell"><p><b>2PKE</b></p></td><td class="cell"><p><b>rP</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ngrams</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>82.3 (.23)</p></td><td class="cell"><p>88.6 (.11)</p></td><td class="cell"><p>74.1 (.52)</p></td><td class="cell"><p>70.1 (.66)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>82.8 (.21)</p></td><td class="cell"><p>88.9 (.11)</p></td><td class="cell"><p>74.3 (.52)</p></td><td class="cell"><p>70.0 (.68)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>82.0 (.23)</p></td><td class="cell"><p>88.7 (.11)</p></td><td class="cell"><p>74.8 (.50)</p></td><td class="cell"><p>69.8 (.67)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>82.5 (.22)</p></td><td class="cell"><p>88.6 (.11)</p></td><td class="cell"><p>74.9 (.50)</p></td><td class="cell"><p>70.0 (.67)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>81.2 (.24)</p></td><td class="cell"><p>88.7 (.11)</p></td><td class="cell"><p>74.5 (.50)</p></td><td class="cell"><p>68.6 (.69)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ngrams+x</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>82.5 (.22)</p></td><td class="cell"><p>88.8 (.11)</p></td><td class="cell"><p>74.5 (.50)</p></td><td class="cell"><p>69.2 (.69)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>82.4 (.22)</p></td><td class="cell"><p>88.9 (.11)</p></td><td class="cell"><p>74.8 (.51)</p></td><td class="cell"><p>69.9 (.68)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>83.0 (.21)</p></td><td class="cell"><p>88.9 (.11)</p></td><td class="cell"><p>74.9 (.50)</p></td><td class="cell"><p>70.3 (.67)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>82.2 (.22)</p></td><td class="cell"><p>88.8 (.11)</p></td><td class="cell"><p>74.8 (.50)</p></td><td class="cell"><p>70.0 (.67)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>82.9 (.21)</p></td><td class="cell"><p>88.6 (.11)</p></td><td class="cell"><p>75.2 (.50)</p></td><td class="cell"><p>69.7 (.68)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>81.9 (.23)</p></td><td class="cell"><p>88.6 (.11)</p></td><td class="cell"><p>74.4 (.51)</p></td><td class="cell"><p>69.1 (.68)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>82.8 (.21)</p></td><td class="cell"><p>88.7 (.11)</p></td><td class="cell"><p>74.7 (.50)</p></td><td class="cell"><p>69.9 (.67)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ngrams+x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p>84.8 (.19)</p></td><td class="cell"><p><b>93.6 (.06)</b></p></td><td class="cell"><p>75.7 (.48)</p></td><td class="cell"><p>81.8 (.43)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p></p></td><td class="cell"><p>x</p></td><td class="cell"><p><b>87.4 (.16)</b></p></td><td class="cell"><p><b>93.8 (.06)</b></p></td><td class="cell"><p><b>88.0 (.28)</b></p></td><td class="cell"><p>83.7 (.42)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>+latent</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p>x</p></td><td class="cell"><p><b>87.5 (.16)</b></p></td><td class="cell"><p>93.4 (.07)</p></td><td class="cell"><p><b>87.4 (.28)</b></p></td><td class="cell"><p><b>84.9 (.39)</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Moses3</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>73.9 (.40)</p></td><td class="cell"><p>92.0 (.09)</p></td><td class="cell"><p>67.1 (.70)</p></td><td class="cell"><p>67.6 (.77)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Moses9</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>85.0 (.21)</p></td><td class="cell"><p><b>94.0 (.06)</b></p></td><td class="cell"><p>82.3 (.31)</p></td><td class="cell"><p>70.8 (.67)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Moses15</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>85.3 (.21)</p></td><td class="cell"><p><b>94.0 (.06)</b></p></td><td class="cell"><p>82.8 (.30)</p></td><td class="cell"><p>70.8 (.67)</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><td class="cell"></td></tr></table><page local="7" global="1086"/><p>While the gains from <i>backoff features </i>in Table 1 were modest (significant gains only on 13SIA), the learning curve in Fig. 3 suggests that they were help­ful for smaller training sets on 2PKE (see <i>ngrams </i>vs <i>ngrams+x </i>on 50 and 100) and helped consistently over different amounts of training data for 13SIA.</p><p><b>Analysis. </b>The types of errors that our system (and the moses baseline) make differ from task to task. Due to lack of space, we mainly focus on the com­plex rP task. Here, most errors come from wrongly copying the input to the output, without making a change (40-50% of the errors in all models, except for our model with latent classes and no regions, where it accounts for only 30% of the errors). This is so common because about half of the training ex­amples contain identical inputs and outputs (as in the imperative <i>berechnet </i>and the participle <i>(ihr habt) berechnet). </i>Another common error is to wrongly as­sume a regular conjugation (just insert the prefix <i>ge-</i>at the beginning). Interestingly, this error by sim­plification is more common in the Moses models (44% of moses3 errors, down to 40% for moses15) than in our models, where it accounts for 37% of the errors of our <i>ngrams </i>model and only 19% if la­tent classes <i>or </i>latent regions are used; however, it goes up to 27% if both latent classes and regions are used.<footnote anchor="21"/> All models for rP contain errors where wrong analogies to observed words are made <i>(ver-schweisst/verschwissen </i>in analogy to the observed <i>durchweicht/durchwichen, </i>or <i>bebt/geboben </i>in anal­ogy to <i>hebt/gehoben). </i>In the 2PKE task, most errors result from inserting the <i>zu </i>morpheme at a wrong place or inserting two of them, which is always wrong. This error type was greatly reduced by la­tent regions, which can discover different parame­ters for different positions, making it easier to iden­tify where to insert the <i>zu.</i></p><p>Analysis of the 2 latent classes (when used) shows that a <i>split into regular and irregular conjugations </i>has been learned. For the rP task we compute, for each data pair in development data, the poste­rior probabilities of membership in one or the other class. 98% of the regular forms, in which the past participle is built with <i>ge- </i><i>...</i><i> -t, </i>fall into one class,</p><footnote label="21">We suspect that training of the models that use classes and regions together was hurt by the increased non-convexity; an­nealing or better initialization might help.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">100</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">300</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">500</doubt><doubt alpha="68.6" length="35" tooSmall="True" monospace="0.0">ngrams+x+lat0/—*— ngrams+x-A-ngrams</doubt><doubt alpha="52.6" length="19" tooSmall="True" monospace="0.0">moses15 -©■- moses3</doubt><p>Figure 3: Learning curves for German inflection tasks, 13SIA (left) and 2PKE (right), as a function of the num­ber of training pairs. <i>ngrams+x </i>means all backoff fea­tures were used, <i>ngrams+x+latent </i>means all latent fea­tures were used in addition. <i>Mosesl5 </i>examines windows of up to 15 characters.</p><p>which in turn consists nearly exclusively (96%) of these forms. Different irregular forms are lumped into the other class.</p><p>The learned regions are consistent across different pairs. On development data for the rP task, 94.3% of all regions that are labeled 1 are the insertion se­quence (e,ge), region 3 consists of vowel changes 93.7% of the time; region 5 represents the typical suffixes (t, en), (et, en), (t, n) (92.7%). In the <i>2PKE </i>task, region 0 contains different prefixes (e.g. <i>entgegen </i>in <i>entgegenzutreten), </i>regions 1 and 2 are empty, region 3 contains the <i>zu </i>affix, region 4 the stem, and region 5 contains the suffix.</p><p>The pruned alignment alphabet excluded a few gold standard outputs so that the model contains paths for 98.9%-99.9% of the test examples. We verified that the insertion limit did not hurt oracle accuracy.</p></subsection><subsection number="4.3" title="Lemmatization"><p>We apply our models to the task of lemmatization, where the goal is to generate the lemma given an in­flected word form. We compare our model to Wicen-towski (2002, chapter 3), an alternative supervised approach. Wicentowski's <i>Base </i>model simply learns how to replace an arbitrarily long suffix string of an input word, choosing some previously observed suf­fix — suffix replacement based on the input word's<page local="8" global="1087"/></p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1086</doubt><table class="main" frame="box" rules="all" border="0" 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b><i>-a-</i></b></p></td><td class="cell"><p>ngrams+x+latent</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>-*-</p></td><td class="cell"><p>ngrams+x</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></p></td><td class="cell"><p>ngrams</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><b>-•-</b></p></td><td class="cell"><p>moses15</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>-o-</p></td><td class="cell"><p>moses3</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></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>Za</p></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></p></td><td class="cell"><p></p></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></p></td><td class="cell"><p></p></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></p></td><td class="cell"><p></p></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></p></td><td class="cell"><p><b>„ o</b></p></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></p></td><td class="cell"><p></p></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>O""</p></td><td class="cell"><p></p></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></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>O "</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"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Table 3: Exact-match accuracy and average edit distance (the latter in parentheses) on the 8 lemmatization tasks (2 tasks x 4 languages). The numbers from Wicentowski (2002) are for his Base, Affix and WFAffix models. The numbers for our models are for the feature sets <i>ngrams, ngrams+x, ngrams+x+latent. </i>The best result per task is in <b>bold </b>(as are statistically indistinguishable results when we can do the comparison, i.e., for our own models). Corpus sizes: Basque 5,842, English 4,915, Irish 1,376, Tagalog 9,479.</p><p>final n characters (interpolating across different val­ues of n). His <i>Affix </i>model essentially applies the Base model after stripping canonical prefixes and suffixes (given by a user-supplied list) from the input and output. Finally, his <i>WFAffix </i>uses similar meth­ods to also learn substring replacements for a stem vowel cluster and other linguistically significant re­gions in the form (identified by a <i>deterministic </i>align­ment and segmentation of training pairs). This ap­proach is a bit like our change regions combined with Moses's region-independent phrase pairs.</p><p>We compare against all three models. Note that <i>Affix </i>and <i>WFAffix </i>have an advantage that our mod­els do not, namely, user-supplied lists of canonical affixes for each language. It is interesting to see how our models with their more non-committal tri-gram structure compare to this. Table 3 reports re­sults on the data sets used in Wicentowski (2002), for Basque, English, Irish, and Tagalog. Follow­ing Wicentowski, 10-fold cross-validation was used. The columns <i>n+x </i>and <i>n+x+l </i>mean <i>ngram+x </i>and <i>ngram+x+latent, </i>respectively. As latent variables, we include 2 word classes but no change regions.<footnote anchor="22"/></p><p>For completeness, Table 3 also compares with Wi-centowski (2002) on a <i>selection </i>(rather than genera­tion) task. Here, at test time, the lemma is selected from a candidate list of known lemmas, namely, all the output forms that appeared in training data.<footnote anchor="23"/>These additional results are labeled <i>with rootlist </i>in the right half of Table 3.</p><p>On the supervised generation task <i>without rootlist,</i> our models outperform Wicentowski (2002) by a large margin. Comparing our results that use la­tent classes <i>(n+x+l) </i>with Wicentowski's best mod­els we observe error reductions ranging from about 38% (Tagalog) to 92% (Irish). On the selection task <i>with rootlist, </i>we outperform Wicentowski (2002) in English, Irish, and Tagalog.</p><footnote label="22">The insertion limit k was set to 2 for Basque and 1 for the other languages.</footnote><footnote label="23">Though test data contained no (input, output) pairs from training data, it reused many of the output forms, since many inflected inputs are to be mapped to the same output lemma.</footnote><p><b>Analysis. </b>We examined the classes learned on En­glish lemmatization by our <i>ngrams+x+latent </i>model. For each of the input/output pairs in development data, we found the most probable latent class. For the most part, the 2 classes are separated based on whether or not the correct output ends in e. This use of latent classes helped address many errors like <i>wronging/wronge </i>or <i>owed/ow). </i>Such missing or surplus final e's account for 72.5% of the errors for <i>ngrams </i>and 70.6% of the errors for <i>ngrams+x, </i>but only 34.0% of the errors for <i>ngrams+x+latent.</i></p><p>The test oracles are between 99.8% - 99.9%, due to the pruned alignment alphabet. As on the inflec­tion task, the insertion limit does not exclude any gold standard paths.</p></subsection></section><section number="5" title="Finite-State Feature Implementation"><p>We used the OpenFST library (Allauzen et al., 2007) to implement all finite-state computations, using the expectation semiring (Eisner, 2002) for training.</p><p>Our model is defined by the WFSA Ue, which is used to score alignment strings in X* (section 2.2). We now sketch how to construct U<b><i>e </i></b>from features.</p><p>n<b>-gram construction </b>The construction that we currently use is quite simple. All of our current features fire on windows of width &lt; 3. We build a WFSA with the structure of a 3-gram language model over X*.<page local="9" global="1088"/> Each of the |X|<footnote anchor="2"/> states remembers two previous alignment characters ab of history; for each c G X, it has an outgoing arc that accepts c (and leads to state bc). The weight of this arc is the total weight (from 6) of the small set of features that fire when the trigram window includes abc. By conven­tion, these also include features on bc and c (which may be regarded as backoff features ?bc and ??c). Since each character in X is actually a 4-tuple, this trigram machine is fairly large. We build it lazily ("on the fly"), constructing arcs only as needed to deal with training or test data.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1087</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><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>Lang.</p></td><td class="cell"><p>Without n</p><p>Wicentowski (2002) Base    Af. WFA.</p></td><td class="cell"><p>»tlist (generation)</p><p>This paper n          n+x n+x+l</p></td><td class="cell"><p>With ro</p><p>Wicentowski (2002) Base    Af. WFA.</p></td><td class="cell"><p>otlist (selection)</p><p>This paper n          n+x n+x+l</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Basque</p></td><td class="cell"><p>85.3</p></td><td class="cell"><p>81.2</p></td><td class="cell"><p>80.1</p></td><td class="cell"><p>91.0 (.20)</p></td><td class="cell"><p>91.1 (.20)</p></td><td class="cell"><p><b>93.6 </b><b>(.14)</b></p></td><td class="cell"><p>94.5</p></td><td class="cell"><p>94.0</p></td><td class="cell"><p><b>95.0</b></p></td><td class="cell"><p>90.9 (.29)</p></td><td class="cell"><p>90.8 (.31)</p></td><td class="cell"><p>90.9 (.30)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>English</p></td><td class="cell"><p>91.0</p></td><td class="cell"><p>94.7</p></td><td class="cell"><p>93.1</p></td><td class="cell"><p>92.4 (.09)</p></td><td class="cell"><p>93.4 (.08)</p></td><td class="cell"><p><b>96.9 </b><b>(.05)</b></p></td><td class="cell"><p>98.3</p></td><td class="cell"><p>98.6</p></td><td class="cell"><p>98.6</p></td><td class="cell"><p><b>98.7 </b><b>(.04)</b></p></td><td class="cell"><p><b>98.7</b><b>(.04)</b></p></td><td class="cell"><p><b>98.7</b><b>(.04)</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Irish</p></td><td class="cell"><p>43.3</p></td><td class="cell"><p>-</p></td><td class="cell"><p>70.8</p></td><td class="cell"><p>96.8 (.07)</p></td><td class="cell"><p>97.0 (.06)</p></td><td class="cell"><p><b>97.8 </b><b>(.04)</b></p></td><td class="cell"><p>43.9</p></td><td class="cell"><p>-</p></td><td class="cell"><p>89.1</p></td><td class="cell"><p><b>99.6 </b><b>(.02)</b></p></td><td class="cell"><p><b>99.6 </b><b>(.02)</b></p></td><td class="cell"><p><b>99.5 </b><b>(.03)</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Tagalog</p></td><td class="cell"><p>0.3</p></td><td class="cell"><p>80.3</p></td><td class="cell"><p>81.7</p></td><td class="cell"><p>80.5 (.32)</p></td><td class="cell"><p>83.0 (.29)</p></td><td class="cell"><p><b>88.6 </b><b>(.19)</b></p></td><td class="cell"><p>0.8</p></td><td class="cell"><p>91.8</p></td><td class="cell"><p>96.0</p></td><td class="cell"><p>97.0 (.07)</p></td><td class="cell"><p>97.2 (.07)</p></td><td class="cell"><p><b>97.7 </b><b>(.05)</b></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><td class="cell"></td><td class="cell"></td></tr></table><p><b>Feature templates </b>Our experiments use over 50,000 features. How do we <i>specify </i>these features to the above construction? Rather than writing ordi­nary code to extract features from a window, we find it convenient to harness FSTs as a "little language" (Bentley, 1986) for specifying entire sets of features.</p><p>A <b>feature template </b>T is an nondeterministic FST that maps the contents of the sliding window, such as abc, to one or more <b>features, </b>which are also described as strings.<footnote anchor="24"/> The n-gram machine de­scribed above can compute T[((a?b)?c)?] to find out what features fire on abc and its suffixes. One simple feature template performs "vowel/consonant backoff"; e.g., it maps abc to the feature named VCC. Fig. 2 showed the result of applying several actual feature templates to the window shown in Fig. 1. The extended regular expression calculus provides a flexible and concise notation for writ­ing down these FSTs. As a trivial example, the tri-gram "vowel/consonant backoff" transducer can be described as T = VVV, where V is a transducer that performs backoff on a <i>single </i>alignment charac­ter. Feature templates should make it easy to experi­ment with adding various kinds of linguistic knowl­edge. We have additional algorithms for compiling U<b><i>e </i></b>from a set of <i>arbitrary </i>feature templates,<footnote anchor="25"/> in­cluding templates whose features consider windows of variable or even unbounded width. The details are beyond the scope of this paper, but it is worth point­ing out that they exploit the fact that feature tem­plates are FSTs and not arbitrary code.</p><footnote label="24">Formally, if i is a string naming a feature, then f (A) counts the number of positions in A that are immediately pre­ceded by some string in T -1 [i].</footnote><footnote label="25">Provided that the total number of features is finite.</footnote></section><section number="6" title="Conclusions"><p>The modeling framework we have presented here is, we believe, an attractive solution to most string transduction problems in NLP. Rather than learn the topology of an arbitrary WFST, one specifies the topology using a small set of feature templates, and simply trains the weights.</p><p>We evaluated on two morphology generation tasks. When inflecting German verbs we, even with the simplest features, outperform the <i>moses3 </i>base­line on 3 out of 4 tasks, which uses the same amount of context as our models. Introducing more sophis­ticated features that have access to latent classes and regions improves our results dramatically, even on small training data sizes. Using these we outper­form <i>moses9 </i>and <i>moses15, </i>which use long context windows, reducing error rates by up to 48%. On the lemmatization task we were able to improve the re­sults reported in Wicentowski (2002) on three out of four tested languages and reduce the error rates by 38% to 92%. The model's errors are often reason­able misgeneralizations (e.g., assume regular con­jugation where irregular would have been correct), and it is able to use even a small number of latent variables (including the latent alignment) to capture useful linguistic properties.</p><p>In future work, we would like to identify a set of features, latent variables, and training methods that port well across languages and string-transduction tasks. We would like to use features that look at wide context on the <i>input </i>side, which is inexpen­sive (Jiampojamarn et al., 2007). Latent variables we wish to consider are an increased number of word classes; more flexible regions—see Petrov et al. (2007) on learning a state transition diagram for <i>acoustic </i>regions in phone recognition—and phono­logical features and syllable boundaries. Indeed, our local log-linear features over several aligned latent strings closely resemble the soft constraints used by phonologists (Eisner, 1997). Finally, rather than de­fine a fixed set of feature templates as in Fig. 2, we would like to refine empirically useful features during training, resulting in language-specific back­off patterns and adaptively sized n-gram windows. Many of these enhancements will increase the com­putational burden, and we are interested in strategies to mitigate this, including approximation methods.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1088</doubt><page local="10" global="1089"/></section><references><p>Cyril Allauzen, Michael Riley, Johan Schalkwyk, Woj-ciech Skut, and Mehryar Mohri. 2007. OpenFst: A general and efficient weighted finite-state transducer library. In <i>Proc. ofCIAA, </i>volume 4783. Jon Bentley. 1986. Programming pearls [column]. <i>Com­munications of the ACM, </i>29(8), August. Maximilian Bisani and Hermann Ney.   2002. Inves­tigations on jointmultigram models for grapheme-to-phoneme conversion. Francisco Casacuberta and Colin De La Higuera. 2000. Computational complexity of problems on probabilis­tic grammars and transducers. In <i>Proc. of the 5th Inter­national Colloquium on Grammatical Inference: Al­gorithms and Applications, </i>volume 1891. Francisco Casacuberta.    2000.    Inference of finite-state transducers by using regular grammars and mor-phisms. In A.L. Oliveira, editor, <i>Grammatical Infer­ence: Algorithms and Applications, </i>volume 1891. Stanley F. Chen. 2003. Conditional and joint models for grapheme-to-phoneme conversion. In <i>Proc. ofInter-speech.</i></p><p>Alexander Clark. 2001. Learning morphology with Pair Hidden Markov Models. In <i>Proc. ofthe Student Work­shop at the 39th Annual Meeting ofthe Association for Computational Linguistics, </i>Toulouse, France, July. Sabine Deligne, Francois Yvon, and Frederic Bimbot. 1995. Variable-length sequence matching for phonetic transcription using joint multigrams. In <i>Eurospeech. </i>Vera Demberg, Helmut Schmid, and Gregor Möhler. 2007.   Phonological constraints and morphological preprocessing for grapheme-to-phoneme conversion. In <i>Proc. ofACL, </i>Prague, Czech Republic, June. Jason Eisner. 1997. Efficient generation in primitive Op-timality Theory. In <i>Proc. ofACL-EACL, </i>Madrid, July. Jason Eisner. 2002. Parameter estimation for probabilis­tic finite-state transducers. In <i>Proc. of ACL. </i>Jenny Rose Finkel, Alex Kleeman, and Christopher D. Manning. 2008. Efficient, feature-based, conditional random field parsing.   In <i>Proceedings of ACL-08: HLT, </i>pages 959-967, Columbus, Ohio, June. Associa­tion for Computational Linguistics. Dayne Freitag and Shahram Khadivi. 2007. A sequence alignment model based on the averaged perceptron. In <i>Proc. of EMNLP-CoNLL. </i>Lucian Galescu and James F. Allen. 2001. Bi-directional conversion between graphemes and phonemes using a joint N-gram model. Sittichai Jiampojamarn, Grzegorz Kondrak, and Tarek Sherif.  2007.  Applying many-to-many alignments and hidden markov models to letter-to-phoneme con­version.   In <i>Proc. ofNAACL-HLT, </i>Rochester, New York, April.</p><p>Philipp Koehn, Hieu Hoang, Alexandra Birch, Chris Callison-Burch, Marcello Federico, Nicola Bertoldi,</p><p>Brooke Cowan, Wade Shen, Christine Moran, Richard Zens, Chris Dyer, Ondrej Bojar, Alexandra Con­stantin, and Evan Herbst. 2007. Moses: Open source toolkit for statistical machine translation. In <i>Proc. ofACL, Companion Volume, </i>Prague, Czech Republic, June.</p><p>Dong C. Liu and Jorge Nocedal. 1989. On the limited memory BFGS method for large scale optimization.</p><p><i>Math. Programming, </i>45(3, (Ser. B)):503-528.</p><p>Takuya Matsuzaki, Yusuke Miyao, and Jun'ichi Tsujii. 2005. Probabilistic CFG with latent annotations. In <i>Proc. ofACL, </i>Ann Arbor, Michigan, June. Mehryar Mohri. 1997. Finite-state transducers in lan­guage and speech processing. <i>Computational Linguis­tics, </i>23(2).</p><p>Slav Petrov, Adam Pauls, and Dan Klein. 2007. Learning structured models for phone recognition. In <i>Proc. of</i> <i>EMNLP-CoNLL.</i><i></i></p><p>Eric Sven Ristad and Peter N. Yianilos. 1998. Learn­ing string-edit distance. <i>IEEE Transactions on Pattern Analysis and Machine Intelligence, </i>20(5). Holger Schwenk, Marta R. Costa-jussa, and Jose A. R. Fonollosa. 2007. Smooth bilingual n-gram transla­tion. In <i>Proc. ofEMNLP-CoNLL, </i>pages 430-438.</p><p>Tarek Sherif and Grzegorz Kondrak. 2007. Substring-based transliteration. In <i>Proc. ofACL, </i>Prague, Czech Republic, June. Kristina Toutanova, Hisami Suzuki, and Achim Ruopp. 2008. Applying morphology generation models to machine translation. In <i>Proceedings ofACL-08: HLT, </i>Columbus, Ohio, June. Richard Wicentowski. 2002. <i>Modeling and Learning Multilingual Inflectional Morphology in a Minimally Supervised Framework. </i>Ph.D. thesis, Johns-Hopkins University.</p><p>Jun Wu and Sanjeev Khudanpur. 2000. Efficient training methods for maximum entropy language modeling. In <i>Proc. ofICSLP, </i>volume 3, Beijing, October. Bing Zhao, Nguyen Bach, Ian Lane, and Stephan Vo­gel. 2007. A log-linear block transliteration model based on bi-stream HMMs. In <i>Proc. ofNAACL-HLT, </i>Rochester, New York, April.</p><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">1089</doubt></references></body></article>