<?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="628"/><title>Multilayer Sequence Labeling</title><pubinfo>Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing,pages 628-637, Edinburgh, Scotland, UK, July 27-31, 2011. ©2011 Association for Computational Linguistics</pubinfo><author surname="Azuma" givenname="Ai"><org  name="Korea Institute of Science and Technology" country="Korea" city="Seoul"/></author><author surname="Matsumoto" givenname="Yuji"><org  name="Nara Institute of Science and Technology" country="Japan" city="Nara"/></author></firstpageheader><frontmatter><p><b>Multilayer Sequence Labeling</b></p><p><b>Ai Azuma Yuji Matsumoto</b></p><p>Graduate School of Information Science Nara Institute of Science and Technology Ikoma, Nara 630-0192, Japan {ai-a,matsu}@is.naist.jp</p></frontmatter><abstract>In this paper, we describe a novel approach to cascaded learning and inference on sequences. We propose a weakly joint learning model on cascaded inference on sequences, called multilayer sequence labeling. In this model, inference on sequences is modeled as cas­caded decision. However, the decision on a sequence labeling sequel to other decisions utilizes the features on the preceding results as marginalized by the probabilistic models on them. It is not novel itself, but our idea central to this paper is that the probabilis­tic models on succeeding labeling are viewed as indirectly depending on the probabilistic models on preceding analyses. We also pro­pose two types of efficient dynamic program­ming which are required in the gradient-based optimization of an objective function. One of the dynamic programming algorithms re­sembles back propagation algorithm for mul­tilayer feed-forward neural networks. The other is a generalized version of the forward-backward algorithm. We also report experi­ments of cascaded part-of-speech tagging and chunking of English sentences and show ef­fectiveness of the proposed method. </abstract></header><body><section number="1" title="Introduction"><p>Machine learning approach is widely used to clas­sify instances into discrete categories. In many tasks, however, some set of inter-related labels should be decided simultaneously. Such tasks are called structured prediction. Sequence labeling is the simplest subclass of structured prediction prob­lems.   In sequence labeling, the most likely one among all the possible label sequences is predicted for a given input. Although sequence labeling is the simplest subclass, a lot of real-world tasks are modeled as problems of this simplest subclass. In addition, it might offer valuable insight and a toe­hold for more general and complex structured pre­diction problems. Many models have been proposed for sequence labeling tasks, such as Hidden Markov Models (HMM), Conditional Random Fields (CRF) (Lafferty et al., 2001), Max-Margin Markov Net­works (Taskar et al., 2003) and others. These models have been applied to lots of practical tasks in natural language processing (NLP), bioinformatics, speech recognition, and so on. And they have shown great success in recent years.</p><p>In real-world tasks, it is often needed to cascade multiple predictions. A cascade of predictions here means the situation in which some of predictions are made based upon the results of other predictions. Sequence labeling is not an exception. For exam­ple, in NLP, we perform named entity recognition or base-phrase chunking for given sentences based on part-of-speech (POS) labels predicted by another se­quence labeler. Natural languages are especially in­terpreted to have a hierarchy of sequential structures on different levels of abstraction. Therefore, many tasks in NLP are modeled as a cascade of sequence predictions.</p><p>If a prediction is based upon the result of another prediction, we call the former upper stage and the latter lower stage.</p><p>Methods pursued for a cascade of predictions -including sequence predictions, of course-, are de­sired to perform certain types of capability. One desired capability is rich forward information propa­gation, that is, the learning and estimation on each stage of predictions should utilize rich informa­tion of the results of lower stages whenever pos­sible.<page local="2" global="629"/> "Rich information" here includes next bests and confidence information of the results of lower stages. Another is backward information propaga­tion, that is, the rich annotated data on an upper stage should affect the models on lower stages retroac­tively.</p><p>Many current systems for a cascade of sequence predictions adopt a simple 1-best feed-forward ap­proach. They simply take the most likely output at each prediction stage and transfer it to the next upper stage. Such a framework can maximize reusability of existing sequence labeling systems. On the other hand, it exhibits a strong tendency to propagate er­rors to upper labelers.</p><p>Typical improvement on the 1 -best approach is to keep k-best results in the cascade of predictions. However, the larger k becomes, the more difficult it is to enumerate and maintain the k-best results. It is particularly prominent in sequence labeling.</p><p>The essence of this orientation is that the labeler on an upper stage utilizes the information of all the possible output candidates on lower stages. How­ever, the size of the output space can become quite large in sequence labeling. It effectively forbids ex­plicit enumeration of all possible outputs, so it is required to represent all the labeling possibilities compactly or employ some approximation schemes. Several studies are in this direction. In the method proposed in Finkel et al. (2006), a cascades of se­quence predictions is viewed as a Bayesian network, and sample sequences are drawn at each stage ac­cording to the output distribution. The samples are then used to estimate the entire distribution of the cascade. In the method proposed in Bunescu (2008), an upper labeler uses the probabilities marginalized on the parts of the output sequences on lower stages as weights for the features. The weighted features are integrated in the model of the labeler on the upper stage. A k-best approach (e.g., (Collins and Duffy, 2002)) and the methods mentioned above are effective to improve the forward information propa­gation. However, they can never contribute on back­ward information propagation.</p><p>To improve the both directions of information propagation, Some studies propose the joint learning of multiple sequence labelers. Sutton et al. (2007) proposes the joint learning method in case where multiple labels are assigned to each time slice of the input sequences. It enables simultaneous learn­ing and estimation of multiple sequence labelings on the same input sequences, where time slices of the outputs of all the out sequences are regularly aligned. However, it puts the distribution of states into Bayesian networks with cyclic dependencies, and exact inference is not tractable in such a model in general. Therefore, it requires some approxi­mate inference algorithms in learning or predictions. Moreover, it only considers the cases where labels of an input sequence and all output sequences are reg­ularly aligned. It is not clear how to build a joint labeling model which handles irregular output label sequences like semi-Markov models (Sarawagi and Cohen, 2005).</p><p>In this paper, we propose a middle ground for a cascade of sequence predictions. The proposed method adopts the basic idea of Bunescu (2008). We first assume that the model on all the sequence la­beling stages is probabilistic one. In modeling of an upper stage, a feature is weighted by the marginal probability of the fragment of the outputs from a lower stage. However, this is not novel itself be­cause it is just a paraphrase of Bunescu's core idea. Our intuition behind the proposed method is as fol­lows. Features integrated in the model on each stage are weighted by the marginal probabilities of the fragments of the outputs on lower stages. So, if the output distributions on lower stages change, the marginal probabilities of any fragments also change, and this in turn can change the value of the features on the upper stage. In other words, the features on an upper stage indirectly depend on the models on the lower stages. Based on this intuition, the learn­ing procedure of the model on an upper stage can affect not only direct model parameters, but also the weights of the features by changing the model on the lower stages. Supervised learning based on an­notated data on an upper stage may affect the model or model parameters on the lower stages. It could be said that the information of annotation data on an upper stage is propagated back to the model on lower stages.</p><p>In the next section, we describe the formal notation of our model.<page local="3" global="630"/> In Section 3, we propose an opti­mization procedure according to the intuition noted above. In Section 4, we report an experimental result of our method. The proposed method shows some improvements on a real-world task in comparison with ordinary methods.</p></section><section number="2" title="Formalization"><p>In this section, we introduce the formal notation of our model. Hereafter, for the sake of simplicity, we only describe the simplest case in which there are just two stages, one lower stage ofsequence labeling named <i>L\ </i>and one upper stage of sequence labeling named L2. In Li, the most likely one among a set of possible sequences is predicted for a given input <b>x. </b>L2 is also a sequence labeling stage for the same input <b>x </b>and the output of L1. No assumption is made on the structure of <b>x. </b>The information of <b>x </b>is totally encoded in feature functions. It is only assumed that the output spaces of both L1 and L2 are conditioned on the initial input <b>x.</b></p><p>First of all, we describe the formalization of the probabilistic model for L1 . The model for L1 per se is the same as ordinary ones for sequence label­ing. For a given input <b>x, </b>consider a directed acyclic graph (DAG) <i>G</i><i>i</i><i> </i><i>=</i><i> </i>(Vi, Ei). A source of a DAG G is a node whose in-degree is equal to zero. A sink of a DAG G is nodes whose out-degree is equal to zero. Let src(G), snk(G) denote the set of source and sink nodes in G, respectively. A successful path of a DAG G is defined as a directed path on G whose starting node is a source and end node is a sink. If <b>y </b>denotes a path on a DAG, let <b>y </b>also denote the set of all the arcs appearing on <b>y </b>for the sake of shorthand. We denote the set of all the possible successful paths on G1 by <b>Y1. </b>The space of the output candidates for L1 is exactly equal to <b>Y1. </b>For the modeling of L1, it is assumed that features of the form /(1,fc1,ei,x&gt; S R (k1 <i>S K1,e1 S E1) </i>are allowed to be used. Here, K1 is the index set of the feature types for L1. Such a feature can capture an aspect of the correlation be­tween adjacent nodes. We call this kind of features input features for L1 . This naming is used to distin­guish them from another kind of features defined on L1 , which comes later. Although features on V1 can be also defined, they are totally omitted in this paper for brevity. Hereafter, if a symbol has subscripts, then missing subscript indicates a set that range over the omitted subscript.   For example, <b>f</b>(i,ei,x&gt; =</p><doubt alpha="42.3" length="52" tooSmall="False" monospace="0.0">{/&lt;1,fcl,ei,x&gt;}k1eK1,f&lt;1,fcl&gt;x&gt;={/&lt;1&gt;kl&gt;ei,x&gt;}e1eE1,</doubt><p><b>f</b>(1,x&gt; = {/(1)fc1,e1 ,x&gt;}^ed^eE!, and so on.The probabilistic model on L1 forms the log-linear model, that is,</p><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">def1</doubt><doubt alpha="30.0" length="30" tooSmall="False" monospace="0.0">p1(y1|x;6&gt;1)=;ex^Ö1•F&lt;1)y1)x&gt;)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(1)</doubt><p>where #(1)k1&gt; <i>S </i>R (k1 S K1) is the weight for the feature of the same index k1, and the k1 -th element operator (• ) denotes the inner product with respect to the subscripts commonly missing in both operands. Z1 is the partition function for Pi, defined as</p><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">def</doubt><doubt alpha="38.3" length="47" tooSmall="False" monospace="0.0">ofF(1)y1)x&gt;,F(1)k1)y1,x&gt;=Ee1€y1/(1)k1)e1,x&gt;.Dot</doubt><doubt alpha="41.2" length="34" tooSmall="False" monospace="0.0">Z1(x; Ö1)d=Ylexp(Ö1•,x&gt;). (2)y1eY1</doubt><p>It is worth noting that this formalization subsumes both directed and undirected linear-chain graphical models, which are the most typical models for se­quence labeling, including HMM and CRF. That is, if the elements of V1 are aligned into regular time slices, and the nodes in each time slice are associated with possible assignments oflabels for that time, we obtain the representation equivalent to the ordinary linear-chain graphical models, in which all possible label assignments for each state are expanded. In such configuration, all the possible successful paths defined in our notation have strict one-to-one corre­spondence to all the possible joint assignments of labels in linear-chain graphical models. We pur­posely employ this DAG-based notation because; it is convenient to describe the models and algorithms for our purpose, it allows for labels to stay in arbi­trary time as in semi-Markov models, and it is easily extended to models for a set of trees instead of se­quences by replacing the graph-based notation with hypergraph-based notation.</p><p>Next, we formalize the probabilistic model on the upper stage L2. Like L1, consider a DAG G2 = ( V2, E2) conditioned on the input <b>x, </b>and the set of all the possible successful paths on G2, denoted <b>Y</b>2. The space of the output candidates for L2 becomes</p><p><b>Y</b>2.</p><page local="4" global="631"/><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">def1</doubt><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">def</doubt><p>The form of the features available in designing the probabilistic model for L2, denoted by P2, is the key of this paper. A feature on an arc e2 G E2 can ac­cess local characteristics of the confidence-rated su­perposition of the Li's outputs, in addition to the information of the input x. To formulate local char­acteristics of the superposition of the Li 's outputs, we first define output features of L1, denoted by <i>h</i><i>(i</i><i>,k'1 </i>,ei&gt; G R (kl G <i>K'i</i><i>, e</i><i>i</i><i> </i>G Ei). Here, Ki is the index set of the output feature types of Li. Be­fore the output features are integrated into the model for L2, they all are confidence-rated with respect to Pi, that is, each output feature h^i k/ ei&gt; is numer­ically rated by the estimated probabilities summed over the sequences emitting that feature. More for­mally, all the Li's output features are integrated in features for P2 in the form of the marginalized out­put features, which are defined as follows;</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">h</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">&lt;i,k</doubt><doubt alpha="48.4" length="31" tooSmall="False" monospace="0.0">,ei)(0i)=h{i,k'1,ei&gt;Pi(ei|x;Oi)</doubt><doubt alpha="52.6" length="19" tooSmall="False" monospace="0.0">(k'iG K'i, eiG Ei),</doubt><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">where</doubt><doubt alpha="53.8" length="26" tooSmall="False" monospace="0.0">Pi(ei|x;Oi)= £ Pi(yi|x;Oi)</doubt><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">yi~ei</doubt><doubt alpha="66.7" length="21" tooSmall="False" monospace="0.0">= Ylöei^yiPi(yi|x;Oi)</doubt><doubt alpha="100.0" length="5" tooSmall="False" monospace="0.0">yieYi</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">(eiG Ei)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(3)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(4)</doubt><p>Here, the notation ^yi^ei represents the sum­mation over sequences consistent with an arc ei G Ei, that is, the summation over the set {yi G Yi | ei G yi}. bp denotes the indicator function for a predicate P. The input features for P2on an arc e2 G E2 are permitted to arbitrarily com­bine the information of x and the Li 's marginalized output features hi, in addition to the local charac­teristics of the arc at hand e2. In summary, an input feature for L2 on an arc e2 G E2 is ofthe form where K2 is the index set of the input feature types for L2. To make the optimization procedure feasible, smoothness condition on any L2's input feature is assumed with respect to all the Li 's output features, that is,    &lt;2&gt;fc2&gt;e2,x&gt; is always guaranteed to exist for vki, ei, k2, e2. For example, additions and mul­tiplications between some elements of hhi<i>(O</i>i <b>) </b>can appear in the definition of L2's input features. For given input features f^2x&gt; (h<i>i(Oi))</i><i> </i>and parameters ^(2)k2&gt; G R (k2 G K2), the probabilistic model for L2 is defined as follows;</p><doubt alpha="38.7" length="31" tooSmall="False" monospace="0.0">/&lt;2,k2)e2)x&gt;(hi(Oi))G R (k2GK2)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(5)</doubt><doubt alpha="58.3" length="12" tooSmall="False" monospace="0.0">dh(i,k'i,ei&gt;</doubt><doubt alpha="42.9" length="14" tooSmall="False" monospace="0.0">P2(y2|x;Oi,O2)</doubt><doubt alpha="45.5" length="11" tooSmall="False" monospace="0.0">Z2(x;Oi,O2)</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">Fi,</doubt><doubt alpha="38.9" length="18" tooSmall="False" monospace="0.0">exp(O2• F(2;y2,x&gt;'</doubt><doubt alpha="55.6" length="9" tooSmall="False" monospace="0.0">hhi(Oi)))</doubt><doubt alpha="30.0" length="10" tooSmall="False" monospace="0.0">(y2G Y2) ,</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(6)</doubt><doubt alpha="36.8" length="19" tooSmall="False" monospace="0.0">"(2,k(V2,x&gt;(hi(Oi))</doubt><doubt alpha="64.5" length="76" tooSmall="False" monospace="0.0">Ee2ey2/&lt;2,k2,e2,x&gt;(hi(Oi))and Z2is the par­tition function of P2, defined by</doubt><doubt alpha="41.7" length="12" tooSmall="False" monospace="0.0">Z2(x; Oi,O2)</doubt><doubt alpha="41.2" length="34" tooSmall="False" monospace="0.0">=Yexp(O2• F(2;y2;x&gt;(hi(Oi))).y2€Y2</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(7)</doubt><p>The definition of P2 (6) reveals one of the most im­portant points in this paper. P2 is viewed not only as the function of the ordinary direct parameters <b>O</b>2 but also as the function of <b>O</b>i , which represents the parameters for the Li's model, through the interme­diate variables <b>h</b>i. So optimization procedure on P2may affect the determination of the values not only of the direct parameters <b>O</b>2 but also of the indirect ones <b>O</b>i .</p><p>If the result of Li is reduced to the single golden output <b>y</b>i, i.e. Pi<b>(y</b>i| <b>x) </b>— byi=yi, the definitions above boil down to the formulation of the simple <b>1-</b>best feed forward architecture.</p></section><section number="3" title="Optimization Algorithm"><p>In this section, we describe optimization procedure for the model formulated in the previous section.</p><p>Let D = {(x, (Gi, yi), (G2, y2))m}m=i)2)... ,M de­note annotated data for the supervised learning of the model. Here, (G1, yi) is a pair of a DAG and correctly annotated successful sequence for Li . The same holds for (G2, y2). For given D, we can define the conditional log-likelihood function on Li and L2 respectively, that is,<page local="5" global="632"/></p><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">Li(Oi;D)</doubt><doubt alpha="52.2" length="23" tooSmall="False" monospace="0.0">Ylog(Pi(yi|x;Oi))- M(8)</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">(x,yi&gt;eD</doubt><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">def</doubt><figure caption="Figure 1: Computation Graph of the Proposed Model"></figure><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">and</doubt><doubt alpha="27.3" length="11" tooSmall="False" monospace="0.0">L2(0i,02;D)</doubt><doubt alpha="34.8" length="23" tooSmall="False" monospace="0.0">Ylog(P2(y2|x; 0i,02)) -</doubt><doubt alpha="44.4" length="9" tooSmall="False" monospace="0.0">(X,y2)ev2</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(9)</doubt><p>Here, <i>a1<footnote anchor="2"/>, a2<footnote anchor="2"/> </i>are the variances of the prior distribu­tions of the parameters. For the sake of simplicity, we set the prior distribution as the zero-mean uni-variance Gaussian. To optimize the both probabilis­tic models <i>P1 </i>and P2 jointly, we also define the joint conditional log-likelihood function</p><doubt alpha="30.0" length="10" tooSmall="False" monospace="0.0">L(0i,02;D)</doubt><doubt alpha="50.0" length="6" tooSmall="False" monospace="0.0">Li+ L2</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(10)</doubt><p>The parameter values to be learned are the ones that (possibly locally) maximize this objective function. Note that this objective function is not guaranteed to be globally convex.</p><p>We employ gradient-based parameter optimiza­tion here. Optimization procedure repeatedly searches a direction in the parameter space which is ascendent with respect to the objective function, and updates the parameter values into that direction by small advances. Many existing optimization rou­tines like steepest descent or conjugation gradient do that job only by giving the objective value and gra­dients on parameter values to be updated. So, the optimization problem here boils down to the calcu­lation of the objective value and gradients on given parameter values.</p><p>Before entering the detailed description of the al­gorithm for calculating the objective function and gradients, we note the functional relations among the objective function and previously defined vari­ables. The diagram shown in Figure 1 illustrates the functional relations among the parameters, input and output feature functions, models, and objective function. The variables at the head of a directed ar­row in the figure is directly defined in terms of the ones at the tail of the same arrow. The value of the objective function on given parameter values can be calculated in order of the arrows shown in the di­agram. On the other hand, the parameter gradients are calculated step-by-step in reverse order ofthe ar­rows. The functional relations illustrated in the Fig­ure 1 ensure some forms of the chain rule of dif­ferentiation among the variables. The chain rule is iteratively used to decompose the calculation of the gradients into a divide-and-conquer fashion. These two directions of stepwise computation are analo­gous to the forward and back propagation for multi­layer feedforward neural networks, respectively.</p><p>Algorithm 1 shows the whole picture of the gradient-based optimization procedure for our model. We first describe the flow to calculate the objective value for a given parameters <b>0</b>i and <b>0</b>2, which is shown from line 2 through 4 in Algo­rithm 1. The values of marginalized output features <b>h</b>(1)X) can be calculated by (3). Because they are the simple marginals of features, the ordinary forward-backward algorithm (hereafter, abbreviated as "F­B") on <i>G1 </i>offers an efficient way to calculate their values. Although nothing definite about the forms of the input features for <i>L2 </i>is presented in this pa­per, <b>f(2&gt;x&gt; </b>can be calculated once the values of <b>h</b>(1;x&gt; have been obtained. Finally, L1, L2 and then L are easy to calculate because they are no different from the ordinary log-likelihood computation.</p><p>Now we describe the algorithm to calculate the parameter gradients,</p><doubt alpha="0.0" length="27" tooSmall="False" monospace="0.0">901=901     901,902=902 '()</doubt><p>Line 5 through line 7 in Algorithm 1 describe the gradient computation. The terms and in (11) become the same forms that appear in the ordi­nary CRF optimization, i.e., the difference between the empirical frequencies of the features and the model expectations of them,</p><doubt alpha="13.3" length="15" tooSmall="False" monospace="0.0">9L1 901 9L2 902</doubt><doubt alpha="41.7" length="12" tooSmall="False" monospace="0.0">E[F(1,yi,x&gt;]</doubt><doubt alpha="33.3" length="12" tooSmall="False" monospace="0.0">E[F(2,y2,x&gt;]</doubt><doubt alpha="37.1" length="35" tooSmall="False" monospace="0.0">Epi [F(1,yi,x&gt;]-^EP2[F(2,y2,x&gt;]-j0^</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(12)</doubt><p>These calculations are performed by the ordinary F­B on <i>G1 </i>and G2, respectively. Using the chain rule of differentiation derived from the functional rela­tions illustrated in Figure 1, the remaining term <b>Algorithm 1 </b>Gradient-based optimization of the model parameters <b>Input:</b><page local="6" global="633"/><b> </b><b>0</b>1, <b>02</b><b>Output: </b>arg max L</p><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">def</doubt><p>1: <b>while </b><b>01 </b>or <b>02 </b>changes significantly <b>do</b> 7:    calculate ffi<footnote anchor="2"/> by (18) with Algorithm 2</p><doubt alpha="66.1" length="115" tooSmall="False" monospace="0.0">2:calculateZ1by (2), h1by (3) with the F-B on Gi,and then L1by (8)3:calculate f(2,x&gt; according to their definitions</doubt><doubt alpha="57.3" length="143" tooSmall="False" monospace="0.0">4:calculate Z2by (7) with the F-B on G2, and then L2by (9) and L by (10)5:calculate      and      by (12) with the F-B onG1and G2, respectively</doubt><doubt alpha="55.2" length="67" tooSmall="False" monospace="0.0">6:calculatef^-by (16) with the F-B on G2,df^-, and them ^= f^-•dfx-</doubt><doubt alpha="47.2" length="53" tooSmall="False" monospace="0.0">8:(01,02)&lt;- update-parameters (01,02,L, , 9:end while</doubt><p>in (11) can be decomposed as follows;</p><doubt alpha="26.7" length="30" tooSmall="False" monospace="0.0">9L2=9L29 f(2,x&gt;=9L29 f(2,x&gt;9h1</doubt><doubt alpha="15.6" length="32" tooSmall="False" monospace="0.0">901=9f(2,x&gt;'901=9f(2,x&gt;'9h1'901'</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(13)</doubt><p>Note that Leibniz's notation here denotes a Jacobian with the index sets omitted in the numerator and the denominator, for example,</p><doubt alpha="25.0" length="8" tooSmall="False" monospace="0.0">9 f(2,x&gt;</doubt><doubt alpha="25.0" length="4" tooSmall="False" monospace="0.0">9 h1</doubt><doubt alpha="35.5" length="31" tooSmall="False" monospace="0.0">f9/(2,fc2,e2,x&gt;\\9h(1,fc'1,ei&gt;J</doubt><doubt alpha="53.8" length="26" tooSmall="False" monospace="0.0">fc2€K2 ,e2EE2,k'1G/q,eiGEi</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(14)</doubt><p>And also recall that dot operators here stand for the inner product with respect to the index sets com­monly omitted in both operands, for example, can be transformed as follows;</p><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">9L2</doubt><doubt alpha="25.0" length="4" tooSmall="False" monospace="0.0">9 f2</doubt><doubt alpha="33.3" length="6" tooSmall="False" monospace="0.0">9f29h1</doubt><doubt alpha="28.6" length="35" tooSmall="False" monospace="0.0">9L29/(2,fc2,e2,x&gt;9/(2,fc2,e2,x&gt;9 h1</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(15)</doubt><doubt alpha="66.2" length="157" tooSmall="False" monospace="0.0">We describe the manipulation of each factor in the right side of (13) in turn. Noting|{&lt;2,fc2'e2'x)=(5fc2=fc2#e2=è2, each element of the first factor of (13)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">f</doubt><doubt alpha="20.0" length="5" tooSmall="False" monospace="0.0">&lt;2,x)</doubt><doubt alpha="28.6" length="14" tooSmall="False" monospace="0.0">9/(2,fc2,e2,x&gt;</doubt><doubt alpha="32.1" length="28" tooSmall="False" monospace="0.0">G{2M&gt;Yj(^2ey2-p2(e2|x;0^02))</doubt><doubt alpha="37.5" length="8" tooSmall="False" monospace="0.0">(x,y2&gt;€D</doubt><p>P2(e2 |X; <b>01</b>, <b>02), </b>the marginal probability on e2, can be obtained as a by-product of the F-B for (12).</p><p>As described in the previous section, it is assumed that the values of the second factor |h'x) is guaran­teed to exists for any given <b>0</b>1 , and the procedure for calculating them is fixed in advance. The procedure for some of concrete features is exemplified in the previous section.</p><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">-f</doubt><p>From the definition of h 1 (3), each element of the third factor of (13) -j^- becomes</p><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">9 h</doubt><doubt alpha="45.5" length="11" tooSmall="False" monospace="0.0">(1,fc'i,ei&gt;</doubt><footnote label="9">^(1,fci&gt;</footnote><doubt alpha="57.4" length="47" tooSmall="False" monospace="0.0">=h(1,fc'1,ei&gt;CoVpi(yijx)[beiGyi,F&lt;1,fci,yi,x&gt;]'</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(17)</doubt><p>There exists efficient dynamic programming to cal­culate the covariance value (17) (without goint into that detail because it is very similar to the one shown later in this paper), and of course we can run such dynamic programming for vfc/1 G K, e1 G E1. However, the size of the Jacobian -j^ is equal to x |E1| x Since it is too large in many tasks likely to arise in practice, we should avoid to calcu­late all the elements of this Jacobian in a straight­forward way. Instead of such naive computation, if the values of J-^2 and a&lt;2<b>x</b>) are obtained, then we<page local="7" global="634"/></p><doubt alpha="38.9" length="18" tooSmall="False" monospace="0.0">• ^, and from (13)</doubt><doubt alpha="35.7" length="14" tooSmall="False" monospace="0.0">&lt;2,x)lhi   'v'</doubt><doubt alpha="52.6" length="19" tooSmall="False" monospace="0.0">(16)    can compute</doubt><doubt alpha="16.7" length="6" tooSmall="False" monospace="0.0">■&lt;2,x)</doubt><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">dhi</doubt><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">def</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">c)L20hi</doubt><doubt alpha="54.0" length="63" tooSmall="False" monospace="0.0">EPi(yi|x)[H&lt;i,yi&gt;F&lt;i,yi,x&gt; -E^(yi|x)H(i,yi&gt;EPi(yi|x)[F(i)yi,x&gt;]</doubt><doubt alpha="66.7" length="12" tooSmall="False" monospace="0.0">whereH'^Hf £</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">BC2</doubt><p>eiGyi dh</p><doubt alpha="50.0" length="6" tooSmall="False" monospace="0.0">&lt;i,ei&gt;</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(18)</doubt><p><b>h'i)ei&gt;. </b>In other</p><p>words, o,fL2 becomes the covariance between the ki-th input feature for <i>Li </i>and the hypothetical fea­</p><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">0L2</doubt><p>h(i,ei&gt;.</p><p>The final problem is to derive an efficient way to compute the first term of (18). The second term of (18) can be calculated by the ordinary F-B because it consists ofthe marginals ofarc features. There are two derivations of the algorithm for calculating the first term. We describe briefly the both derivations.</p><p>One is a variant of the F-B on the expectation semi-ring proposed in Li and Eisner (2009). First, the F-B is generalized to the expectation semi-ring with respect to the hypothetical feature <i>h'i </i>ei&gt;, and by summing up the marginals of the feature vectors <b>f</b>'i,ei)X&gt; on all the arcs under the distribution of the semi-ring, then we obtain the expectation ofthe fea­ture vector <b>f'i)ei)X&gt; </b>on the semi-ring potential. This expectation is equal to the first term of (18). <footnote anchor="1"/></p><p>Another derivation is to apply the automatic dif­ferentiation (AD)(Wengert, 1964; Corliss et al., 2002) on the F-B calculating <i>EPi </i><b>[F'i y</b>i)<b>X</b>&gt;]. It exploits the fact that     Epi <b>[F'i</b>equal to the first term of (18), R is a dummy parameter, and</p><p>Ziiexp(#i ' <b>F</b>'i<b>)y</b>i<b>)x&gt; </b>+ AH|iyi&gt;). It is easy to derive the F-B for calculating the value Epi <b>[F'i y</b>i)<b>X</b>&gt;] . AD transforms this F-B into another algorithm for calculating the differentiation w.r.t. A evaluated at the point A = 0. This trans­formation is achieved in an automatic manner, by replacing all appearances of A in the F-B with a dual number A + e. The dual number is a variant of the complex number, with a kind of the imaginary unit e with the property e<footnote anchor="2"/> = 0. Like the usual complex</p><footnote label="1">For the detailed description, see Li and Eisner (2009) and its references.</footnote><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">is</doubt><p>where A G</p><p>Pi<b>(y</b>i<b>|x) </b>if numbers, the arithmetic operations and the exponen­tial function are generalized to the dual numbers, and the ordinary F-B is also generalized to the dual numbers. The imaginary part of the resulting values is equal to the needed differentiation. <footnote anchor="2"/> Anyway, these two derivations lead to the same algorithm, and the resulting algorithm is shown as Algorithm 2.</p><p>The final line in the loop of Algorithm 1 can be implemented by various optimization routines and line search algorithms.</p><p>The time and space complexity to compute the ob­jective and gradient values for given parameter vec­tors <b>6</b>1, <b>62 </b>is the same as that for that for Bunescu (2008), up to a constant factor. Because the calcula­tion of the objective function is essentially the same as that for Bunescu (2008), and in gradient com­putation, the time complexity of Algorithm 1 is the same as that for the ordinary F-B (up to a constant factor), and the proposed optimization procedure is only required to store additional scalar values h'i ei&gt; on each Gi's arc.</p></section><section number="4" title="Experiment"><p>We examined effectiveness of the method proposed in this paper on a real task. The task is to annotate the POS tags and to perform base-phrase chunking on English sentences.</p><p>Base-phrase chunking is a task to classify con­tinuous subsequences of words into syntactic cat­egories. This task is performed by annotating a chunking label on each word (Ramshaw and Mar­cus, 1995). The types of chunking label consist of <i>"Begin-Category", </i>which represents the beginning of a chunk, "Inside-Category", which represents the inside of a chunk, and "Other." Usually, POS la­beling runs first before base-phrase chunking is per­formed. Therefore, this task is a typical interesting case where a sequence labeling depends on the out­put from other sequence labelers.</p><p>The data used for our experiment consist of En­glish sentences from the Penn Treebank project (Marcus et al., 1993) consisting of 10948 sentences and 259104 words. We divided them into two groups, training data consisting of 8936 sentences and 211727 words and test data consisting of 2012 ture <i>hh.</i><i></i></p><footnote label="2">For example, Berz (1992) gives a detailed description of the reason why the dual number is used for this purpose.</footnote><doubt alpha="33.3" length="9" tooSmall="False" monospace="0.0">and (17),</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">061</doubt><page local="8" global="635"/><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">def</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">0L2</doubt><p><b>Algorithm 2 </b>Forward-backward Algorithm for Calculating Feature Covariances</p><doubt alpha="60.7" length="84" tooSmall="False" monospace="0.0">IllJUrt:f'iX^0ei=exp(6i 'f'i)ei)X&gt;),h'ei~Output:qki= C0Vp(yi|X)H|i)yi&gt;,F'i)fci)yi)X&gt;</doubt><p>1: for vvi G src(Gi), <i>avi </i>&lt;— 1, <i>a'vi</i><i> </i>&lt;— 1 2: <b>for all </b><i>vi </i>G <i>Vi</i><i> </i>in a topological order <b>do</b></p><doubt alpha="64.7" length="17" tooSmall="False" monospace="0.0">3:prev{xGVi| GEi}</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">dh</doubt><doubt alpha="61.1" length="18" tooSmall="False" monospace="0.0">h'i)ei&gt;(VfciG /Ci)</doubt><doubt alpha="25.0" length="4" tooSmall="False" monospace="0.0">a &lt;—</doubt><doubt alpha="54.2" length="24" tooSmall="False" monospace="0.0">4:avi ^E0(X)Vi^ x G prev</doubt><doubt alpha="66.7" length="9" tooSmall="False" monospace="0.0">5:end for</doubt><p>xGsnk(Gi)</p><doubt alpha="51.4" length="35" tooSmall="False" monospace="0.0">7: forvvi Gsnk(Gi),ßvi &lt;-1, ßVi&lt;- 1</doubt><p>8: <b>for all </b><i>vi </i>G Vi in a reverse topological order <b>do</b></p><doubt alpha="43.8" length="32" tooSmall="False" monospace="0.0">9:     next     {xGVi|(vi;x)GEi}</doubt><doubt alpha="57.6" length="33" tooSmall="False" monospace="0.0">E0(X)Vi) (h(X)Vi)ax +aX) xGprevx7</doubt><p>x G next</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">v</doubt><doubt alpha="47.6" length="21" tooSmall="False" monospace="0.0">E0(vi)x) (h(vi)x)ßx +</doubt><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">xGnext</doubt><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">11:end for</doubt><doubt alpha="57.1" length="21" tooSmall="False" monospace="0.0">12:forvkiG Ki,qki&lt;- 0</doubt><p>13: <b>for all </b><i>(ui,</i><i> </i>vi) G Ei <b>do</b></p><doubt alpha="51.7" length="29" tooSmall="False" monospace="0.0">14:p&lt;~ 0(«i)Vi)ßVi+aUißvi)/Zi</doubt><doubt alpha="65.8" length="38" tooSmall="False" monospace="0.0">15:forvki G Ci,gjfei&lt;-qfci+pf{iM,ei,X&gt;</doubt><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">16:end for</doubt><p>sentences and 47377 words. The number ofthe POS label types is equal to 45. The number of the label types used in base-phrase chunking is equal to 23.</p><p>We compare the proposed method to two exist­ing sequence labeling methods as baselines. The POS labeler is the same in all the three methods used in this experiment. This labeler is a simple CRF and learned by ordinary optimization proce­dure. One baseline method is the 1-best pipeline method. A simple CRF model is learned for the chunking labeling, on the input sentences and the most likely POS label sequences predicted by the already learned POS labeler. We call this method "CRF + CRF." The other baseline method has a CRF model for the chunking labeling, which uses the marginalized features offered by the POS la­beler. However, the parameters of the POS labeler are fixed in the training of the chunking model. This method corresponds to the method proposed proposed method is the same as "CRF + CRF-MF", except that the both labelers are jointly trained by the procedure described in Section 3. We call this pro­posed method "CRF + CRF-BP" ("BP" for "back propagation").</p><doubt alpha="66.3" length="95" tooSmall="False" monospace="0.0">in Bunescu (2008). We call this baseline "CRF + CRF-MF" ("MF" for "marginalized features"). The</doubt><p>In "CRF + CRF-BP," the objective function for joint learning (10) is not guaranteed to be convex, so optimization procedure is sensible to the initial con­figuration of the model parameters. In this experi­ment, we set the parameter values learned by "CRF + CRF-MF" as the initial values for the training of the "CRF + CRF-BP" method. Feature templates used in this experiment are listed in Table 1. Al­though we only described the formalization and op­timization procedure of the models with arc features, We use node features in the experiment.</p><table caption="Table 2 shows the result of the methods we men-"></table><table caption="Table 2: Experimental result (F-measure)" 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>CRF + CRF</p></td><td class="cell"><p>CRF</p><p>+ CRF-MF</p></td><td class="cell"><p>CRF</p><p>+CRF-BP</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POS labeling</p></td><td class="cell"><p>95.6</p></td><td class="cell"><p>(95.6)</p></td><td class="cell"><p>95.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Base-phrase chunking</p></td><td class="cell"><p>92.1</p></td><td class="cell"><p>92.7</p></td><td class="cell"><p><b>93.1</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></tr></table><page local="9" global="636"/><p>=== Node feature templates === Node is source Node is sink</p><p>Input word on the same time slice</p><p>Suffix of input word on the same time slice, n characters    (n G [1,2,3]) Initial word character is capitalized^ All word characters are capitalized^</p><p>Input word included in the vocabulary of POS Tt    (T G {(All possible POS labels)}) Input word contains numberst <u>POS label*</u>_ === Arc feature templates === Tail node is source Head node is sink</p><p>Corresponding ordered pair of POS labels*</p><p>Table 1: List of feature templates. All node features are combined with the corresponding node label (POS or chunking label) feature. All arc features are combined with the feature of the corresponding arc label pair. t features are instantiated on each time slice in five character window. * features are not used in POS labeler, and marginalized as output features for "CRF + CRF-MF" and "CRF + CRF-BP." tioned. In Table 2, bold numbers indicate significant improvement over the baseline models with <i>a </i>= 0.05. From Table 2, the proposed method signifi­cantly outperforms two baseline methods on chunk­ing performance. Although the improvement on POS labeling performance by the proposed method "CRF + CRF-BP" is not significant, it might show that optimization procedure provides some form of backward information propagation in comparison to</p><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">"CRF + CRF-MF."</doubt></section><section number="5" title="Conclusions"><p>In this paper, we adopt the method to weight features on an upper sequence labeling stage by the marginal­ized probabilities estimated by the model on lower stages. We also point out that the model on an upper stage is considered to depend on the model on lower stages indirectly. In addition, we propose optimiza­tion procedure that enables the joint optimization of the multiple models on the different level of stages. We perform an experiment on a real-world task, and our method significantly outperforms existing meth­ods.</p><p>We examined the effectiveness of the proposed method only on one task in comparison to just a few existing methods. In the future, we hope to compare our method to other competing methods like joint learning approaches in terms of both accuracy and computational efficiency, and perform extensive ex­periments on various tasks.</p></section><references><p>M. Berz. 1992. Automatic differentiation as nonar-chimedean analysis. In <i>Computer Arithmetic and En­closure, </i>pages 439-450. R.C. Bunescu. 2008. Learning with probabilistic fea­tures for improved pipeline models. In <i>Proceedings of the 2008 Conference on Empirical Methods in Natural Language Processing, </i>pages 670-679. M. Collins and N. Duffy. 2002. New ranking algorithms for parsing and tagging: Kernels over discrete struc­tures, and the voted perceptron. In <i>Proceedings of the 40th Annual Meeting on Association for Compu­tational Linguistics, </i>pages 263-270. Association for Computational Linguistics. G.F. Corliss, C. Faure, and A. Griewank. 2002. <i>Auto­matic differentiation ofalgorithms: from simulation to optimization. </i>Springer Verlag. J.R. Finkel, C.D. Manning, and A.Y. Ng. 2006. Solv­ing the problem of cascading errors: Approximate bayesian inference for linguistic annotation pipelines. In <i>Proceedings of the 2006 Conference on Empirical Methods in Natural Language Processing, </i>pages 618­626.</p><p>J. Lafferty, A. McCallum, and F. Pereira. 2001. Con­ditional random fields: Probabilistic models for segmenting and labeling sequence data.<page local="10" global="637"/> In <i>Proceedings of the Eighteenth International Conference on Machine Learning, </i>pages 282-289. Z. Li and J. Eisner. 2009. First-and second-order ex­pectation semirings with applications to minimum-risk training on translation forests. In <i>Proceedings ofthe 2009 Conference on Empirical Methods in Natural Language Processing: Volume 1-Volume 1, </i>pages 40­51.</p><p>M.P. Marcus, M.A. Marcinkiewicz, and B. Santorini. 1993. Building a large annotated corpus of En­glish: The Penn Treebank. <i>Computational linguistics,</i> 19(2):330.</p><p>L.A. Ramshaw and M.P. Marcus. 1995. Text chunking using transformation-based learning. In <i>Proceedings ofthe Third ACL Workshop on Very Large Corpora,</i></p><p>pages 82-94. Cambridge MA, USA. S. Sarawagi and W.W. Cohen. 2005. Semi-markov conditional random fields for information extraction. <i>Advances in Neural Information Processing Systems, </i>17:1185-1192. C. Sutton, A. McCallum, and K. Rohanimanesh. 2007. Dynamic conditional random fields: Factorized proba­bilistic models for labeling and segmenting sequence data.   <i>The Journal ofMachine Learning Research,</i> 8:693-723.</p><p>B. Taskar, C. Guestrin, and D. Koller. 2003. Max-margin Markov networks. In <i>Advances in Neural Information Processing Systems 16. </i>RE Wengert.   1964.   A simple automatic derivative evaluation program.   <i>Communications </i><i>ofthe</i><i> ACM,</i> 7(8):464.</p></references></body></article>