<?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="941"/><title>Entire Relaxation Path for Maximum Entropy Problems</title><pubinfo>Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing,pages 941-948, Edinburgh, Scotland, UK, July 27-31, 2011. ©2011 Association for Computational Linguistics</pubinfo><author surname="Dubiner" givenname="Moshe"><org  name="Google Google"/></author><author surname="Singer" givenname="Yoram"><org  name="Google Google"/></author></firstpageheader><frontmatter><p><b>Entire Relaxation Path for Maximum Entropy Problems</b></p><p><b>Moshe Dubiner Yoram Singer</b></p><p>Google Google moshe@google.com singer@google.com</p></frontmatter><abstract>We discuss and analyze the problem of find­ing a distribution that minimizes the relative entropy to a prior distribution while satisfying max-norm constraints with respect to an ob­served distribution. This setting generalizes the classical maximum entropy problems as it relaxes the standard constraints on the ob­served values. We tackle the problem by in­troducing a re-parametrization in which the unknown distribution is distilled to a single scalar. We then describe a homotopy between the relaxation parameter and the distribution characterizing parameter. The homotopy also reveals an aesthetic symmetry between the prior distribution and the observed distribu­tion. We then use the reformulated problem to describe a space and time efficient algorithm for tracking the <i>entire </i>relaxation path. Our derivations are based on a compact geomet­ric view of the relaxation path as a piecewise linear function in a <i>two </i>dimensional space of the relaxation-characterization parameters. We demonstrate the usability of our approach by applying the problem to Zipfian distribu­tions over a large alphabet. </abstract></header><body><section number="1" title="Introduction"><p>Maximum entropy (max-ent) models and its dual counterpart, logistic regression, is a popular and ef­fective tool in numerous natural language process­ing tasks. The principle of maximum entropy was spelled out explicitly by E.T. Jaynes (1968). Ap­plications of maximum entropy approach to natural language processing are numerous. A notable ex­ample and probably one of the earliest usages and generalizations of the maximum entropy principle to language processing is the work of Berger, Della Pietrax2, and Lafferty (Berger et al., 1996, Della Pietra et al., 1997). The original formulation of max-ent cast the problem as the task of finding the distribution attaining the highest entropy subject to <i>equality </i>constraints. While this formalism is aes­thetic and paves the way to a simple dual in the form of a unique Gibbs distribution (Della Pietra et al., 1997), it does not provide sufficient tools to deal with input noise and sparse representation of the target Gibbs distribution. To mitigate these issues, numerous relaxation schemes of the equality con­straints have been proposed. A notable recent work by Dudik, Phillips, and Schapire (2007) provided a general constraint-relaxation framework. See also the references therein for an in depth overview of other approaches and generalizations of max-ent. The constraint relaxation surfaces a natural param­eter, namely, a relaxation value. The dual form of this free parameter is the regularization value of pe­nalized logistic regression problems. Typically this parameter is set by experimentation using cross val­idation technique. The relaxed maximum-entropy problem setting is the starting point of this paper.</p><p>In this paper we describe and analyze a frame­work for <i>efficiently </i>tracking the entire relaxation path of constrained max-ent problems. We start in Sec. 2 with a generalization in which we discuss the problem of finding a distribution that minimizes the relative entropy to a given prior distribution while satisfying max-norm constraints with respect to an observed distribution. In Sec. 3 we tackle the prob­lem by introducing a re-parametrization in which the unknown distribution is distilled to a single scalar.<page local="2" global="942"/> We next describe in Sec. 4 a homotopy between the relaxation parameter and the distribution character­izing parameter. This formulation also reveals an aesthetic symmetry between the prior distribution and the observed distribution. We use the reformu­lated problem to describe in Secs. 5-6 space and time efficient algorithms for tracking the <i>entire </i>relaxation path. Our derivations are based on a compact ge­ometric view of the relaxation path as a piecewise linear function in a <i>two </i>dimensional space of the relaxation-characterization parameters. In contrast to common homotopy methods for the Lasso Os-borne et al. (2000), our procedure for tracking the max-ent homotopy results in an uncharacteristically low complexity bounds thus renders the approach applicable for large alphabets. We provide prelim­inary experimental results with Zipf distributions in Sec. 8 that demonstrate the merits of our approach. Finally, we conclude in Sec. 9 with a brief discus­sion of future directions.</p></section><section number="2" title="Notations and Problem Setting"><p>We denote vectors with bold face letters, e.g. v. Sums are denoted by calligraphic letters, e.g. <i>M </i><i>= </i><i>J2</i><i>j mj</i>. We use the shorthand [n] to denote the set of integers {1,..., n}. The n'th dimensional sim­plex, denoted A, consists of all vectors p such that, <i>Yl</i><i>jj=i</i><i> </i><i>P</i><i>j</i><i> </i><i>= 1 </i>and for all j G [n], <i>p</i><i>j</i><i> </i>&gt; 0. We gen­eralize this notion to multiplicity weighted vectors. Formally, we say that a vector p with multiplicity m is in the simplex, (p, m) G A, if ^ jj=1 mj pj = 1, and for all j G [n], pj &gt; 0, and mj &gt; 0.</p><p>The generalized relaxed maximum-entropy prob­lem is concerned with obtaining an estimate p, given a prior distribution u and an observed distribution q such that the relative entropy between p and u is as small as possible while p and q are within a given max-norm tolerance. Formally, we cast the follow­ing constrained optimization problem,</p><p>mm <i>Y</i><i>^mfPj </i>kg <i>[^-J</i> v is a relaxation parameter. We use 1/v rather than v itself for reasons that become clear in the sequel.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(1)</doubt><p>We next describe the dual form of (1). We derive the dual by introducing Lagrange-Legendre multi­pliers for each of the constraints appearing in (1). Let <i>a+</i><i> </i><i>&gt; </i><i>0</i><i> </i>denote the multiplier for the constraint Qj <i>— </i><i>P</i><i>j </i><b>&lt; </b>1/v and a- <b>&gt; </b>0 the multiplier for the constraint Qj <i>— </i><i>p</i><i>j &gt; </i><i>—1/v</i>. In addition, we use 7 as the multiplier for the constraint <i>j </i><i>m</i><i>j </i><i>p</i><i>j </i><i>= </i>1. fter some routine algebraic manipulations we get that the Lagrangian is,</p><doubt alpha="41.4" length="29" tooSmall="False" monospace="0.0">ZUm (Pilog ({*) +a3(q3-Vj)+^)</doubt><doubt alpha="63.6" length="11" tooSmall="False" monospace="0.0">+7(En=imjpj</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(2)</doubt><p>To find the dual form we take the partial derivative of the Lagrangian with respect to each pj, equate to zero, and get that <b>log j +</b>1 <b>— </b><i>aj </i>+ 7 = 0, which implies that pj ~ <i>U</i><i>j </i><i>eaj</i>. We now employ the fact that (p, m) G A to get that the exact form for p<i>j </i>is</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(3)</doubt><p>Ej=1 <i>m</i><i>i</i><i>U</i><i>i</i><i>eai</i><i></i>Using (3) in the compact form of the Lagrangian we obtain the following dual problem</p><doubt alpha="60.0" length="5" tooSmall="False" monospace="0.0">max ■</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">log(Z )</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">j=1</doubt><doubt alpha="61.8" length="144" tooSmall="False" monospace="0.0">such that (p, m) G A ; ||p — q||oo &lt; 1/v. The vectors u and q are dimensionally compatible with p, namely, (q, m) G A and (u, m) G A. The scalar</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">— I</doubt><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">j=1v</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">'(4)</doubt><p>where <i>Z </i>= ^ n=1 mj Uj <i>eaj</i>. We make rather little use of the dual form of the problem. However, the complementary slackness conditions that are neces­sary for optimality to hold play an important role in the next section in which we present a reformulation of the relaxed maximum entropy problem.</p></section><section number="3" title="Problem Reformulation"><p>First note that the primal problem is a strictly con­vex function over a compact convex domain. Thus, its optimum exists and is unique. Let us now charac­terize the form of the solution. We partition the set of indices in [n] into three disjoint sets depending on whether the constraint |pj — Qj | &lt; 1/v is active and its form. Concretely, we define</p><doubt alpha="28.6" length="28" tooSmall="False" monospace="0.0">I-   =   {1&lt;j&lt;n|pj= Qj —1/v}</doubt><doubt alpha="24.2" length="33" tooSmall="False" monospace="0.0">1o=   {1&lt;j&lt;n ||pj —Qj |&lt; 1/v} (5)</doubt><p>i+   =   {<footnote anchor="1"/> &lt; j &lt; n | pj = Qj + 1/v} .</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">1</doubt><page local="3" global="943"/><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">pj</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">j=1</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">1</doubt><figure caption="Figure 1: The capping functionF."></figure><p>Recall that Z = Ej=1 mj Uj <i>eaj</i>. Thus, from (3) we can rewrite pj = Uj<i>eaj </i>/Z. We next use the complementary slackness conditions (see for in­stance (Boyd and Vandenberghe, 2004)) to further characterize the solution. For any j <b>G </b>I_ we must have a- =0 and a+ <b>&gt; </b>0 therefore aj <b>&gt; </b>0, which immediately implies that pj <b>&gt; </b>Uj/Z. By definition we have that pj = Qj <b>— </b>1/v for j <b>G </b>I-. Combin­ing these two facts we get that Uj/Z <b>&lt; </b>Qj <b>— </b>1/v for j <b>G </b>I-. Analogous derivation yields that Uj/Z <b>&gt; </b>Qj + 1/v for j <b>G </b>I+. Last, if the set I0 is not empty then for each j in I0 we must have a+ = 0 and a j- = 0 thus a j = 0. Resorting again to the def­inition of p from (3) we get that pj = Uj/Z for j <b>G </b>I0. Since |pj <b>— </b>Qj <b>| </b>&lt; 1/v for j <b>G </b>I0 we get that <b>| </b>Uj/Z <b>— </b>Qj| &lt; 1/v. To recap, there ex­ists Z &gt; 0 such that the optimal solution takes the following form,</p><doubt alpha="50.0" length="6" tooSmall="False" monospace="0.0">Qj—1/v</doubt><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">Uj/Z</doubt><doubt alpha="37.5" length="8" tooSmall="False" monospace="0.0">Qj + 1/v</doubt><doubt alpha="54.5" length="11" tooSmall="False" monospace="0.0">Uj/Z&lt;Qj—1/v</doubt><doubt alpha="28.6" length="21" tooSmall="False" monospace="0.0">|Uj/Z—Qj|&lt;1/v    .(6)</doubt><doubt alpha="46.2" length="13" tooSmall="False" monospace="0.0">Uj/Z&gt;Qj + 1/v</doubt><p>We next introduce an key re-parametrization, defining ß = v/Z. We also denote by F(<b>•</b>) the capping function F (x) = max <b>{ —</b>1, min A simple illustration of the capping function is given in Fig. 1. Equipped with these definition we can rewrite (6) as follows, structure of the general solution. Note that ß, u are interchangeable with v, q. We can thus swap the roles of the prior distribution with the observed dis­tribution and obtain an analogous characterization. In the next section we further explore the depen­dence of ß on v. The structure we reveal shortly serves as our infrastructure for deriving efficient al­gorithms for following the regularization path.</p><doubt alpha="50.0" length="20" tooSmall="False" monospace="0.0">Pj = Qj+-F{ßUj- vq3)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(7)</doubt></section><section number="4" title="The function ß(u)"><p>In order to explore the dependency of ß on v let us introduce the following sums</p><p><b>M </b>=   E mj <b>— </b>E mj</p><doubt alpha="66.7" length="9" tooSmall="False" monospace="0.0">jei+ jei-</doubt><doubt alpha="85.7" length="7" tooSmall="False" monospace="0.0">U=EmjUj</doubt><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">jeio</doubt><doubt alpha="42.9" length="14" tooSmall="False" monospace="0.0">Q=Emj Qj . (9)</doubt><p>Fixing v and using (9), we can rewrite (8) as follows</p><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">ßU—vQ+M</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">0</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(10)</doubt><p>Given u, q, and v, the value of ß can be found by using   j mjpj =    j mjQj = 1, which implies</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">j</doubt><p>We defer the derivation of the actual algorithm for computing ß (and in turn p) to the next section. In the meanwhile let us continue to explore the rich</p><p>Clearly, so long as the partition of [n] into the sets I+, I-, I0 is intact, there is a simple linear relation between ß and v. The number of possible subsets I- ,I0 ,I+ is finite. Thus, the range 0 &lt; v &lt; <b>oo </b>decomposes into a finite number of intervals each of which corresponds to a fixed partition of [n] into I+, I-; I0. In each interval ß is a linear function of v, unless I0 is empty. Let vœ be the smallest v value for which I0 is empty. Let ßTO be its corresponding ß value. If I0 is never empty for any finite value of v we define vœ = ßTO = <b>oo. </b>Clearly, replacing (v, ß) with (kv, Kß) for any k <b>&gt; </b>1 and v <b>&gt; </b>vœ yields the same feasible solution as I+ (kv) = I+(v), I- (av) = I- (v). Hence, as far as the original prob­lem is concerned there is no reason to go past vœduring the process ofcharacterizing the solution. We recap our derivation so far in the following lemma.</p><p>Lemma 4.1 <i>For </i>0 <b>&lt; </b>v <b>&lt; </b>vœ, <i>the value of </i>ß <i>as defined by (7) is a unique. Further, the function </i>ß(v ) <i>is a piecewise linear continuous function in </i>v<i>. When </i>v <b>&gt;     </b><i>letting </i>ß = ßTO v/vœ <i>keeps (7) valid.</i></p><p>We established the fact that ß(v) is a piecewise lin­ear function. The lingering question is how many linear sub-intervals the function can attain.<page local="4" global="944"/> To study this property, we take a geometric view of the plane defined by (v, ß). Our combinatorial characteriza­tion of the number of sub-intervals makes use of the following definitions of lines in R<footnote anchor="2"/>, where —o &lt; v &lt; o and j G [n]. The next theorem gives an upper bound on the number of linear seg­ments the function ß() may attain. While the bound is quadratic in the dimension, for both artificial data and real data the bound is way too pessimistic.</p><doubt alpha="0.0" length="1" tooSmall="True" monospace="0.0">0</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">l0</doubt><doubt alpha="85.7" length="7" tooSmall="False" monospace="0.0">Ujß Ujß</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">ßU</doubt><doubt alpha="0.0" length="7" tooSmall="False" monospace="0.0">+1} —1}</doubt><doubt alpha="0.0" length="9" tooSmall="False" monospace="0.0">(11) (12)</doubt><doubt alpha="0.0" length="8" tooSmall="False" monospace="0.0">0} ,(13)</doubt><doubt alpha="0.0" length="15" tooSmall="True" monospace="0.0">20 40 60 80 100</doubt><p>Theorem 4.2 <i>The piecewise linear function </i>ß(v) <i>consists ofat most </i>n<footnote anchor="2"/> <i>linear segments for </i>v G R+.</p><p>Proof Since we showed that that ß(v) is a piece-wise linear function, it remains to show that it has at most n<footnote anchor="2"/> linear segments. Consider the two dimensional function G(v, ß) from (8). The (v, ß) plane is divided by the 2n straight lines li,l2,... ,ln,l-1,l-2,... ,l-n intoatmost2n<footnote anchor="2"/> + 1 polygons. The latter property is proved by induc­tion. It clearly holds for n = 0. Assume that it holds for n — 1 . Line lj intersects the previous 2n — 2 lines at no more than 2n — 2 points, thus splitting at most 2n — 1 polygons into two separate polygo­nal parts. Line l-j is parallel to lj , again adding at most 2n — 1 polygons. Recapping, we obtain at</p><doubt alpha="65.7" length="356" tooSmall="False" monospace="0.0">most 2(n —1)2+ 1 + 2(2n —1) = 2n2+ 1 poly­gons, as required per induction. Recall thatß(v)is linear inside each polygon. The two extreme poly­gons whereG(v, ß)=±Ejj=1mjclearly disallowG(v, ß)= 0, henceß(v) can have at most 2n2—1 segments for—o &lt; v &lt; o. Lastly, we use the symmetryG(—v, —ß)=— G(v, ß)which implies that forve R+there are at mostn2segments. ■</doubt><p>This result stands in contrast to the Lasso homotopy tracking procedure (Osborne et al., 2000), where the worst case number of segments seems to be expo­nential in n. Moreover, when the prior u is uniform, Uj = 1/Ejj=1 mj for all j G [n], the number of segments is at most n + 1. We defer the analysis of the uniform case to a later section as the proof stems from the algorithm we describe in the sequel.</p><figure caption="Figure 2: An illustration of the function ß(v) for a syn­thetic 3 dimensional example."></figure><figure caption="Figure 3: An illustration of the function G(ß) for a syn­thetic 4 dimensional example and a v = 17."></figure></section><section number="5" title="Algorithm for a Single Relaxation Value"><p>Suppose we are given u, q, m and a specific relax­ation value z&gt;. How can we find p? The obvious approach is to solve the one dimensional monotoni-cally nondecreasing equation G(ß) = G(z&gt;, ß) = 0 by bisection. In this section we present a more effi­cient and direct procedure that is guaranteed to find the optimal solution p in a finite number of steps. Clearly G(ß) is a piecewise linear function with at most 2n easily computable change points of the slope. See also Fig. (5) for an illustration of In order to find the slope change points we need to calculate the point (v, ßj ) for all the lines l±j where 1 &lt; j &lt; n. Concretely, these values are</p><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">ßj</doubt><doubt alpha="57.1" length="14" tooSmall="False" monospace="0.0">vq\j\+ sign(j)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(14)</doubt><p>We next sort the above values of ßj and denote the resulting sorted list as ßni &lt; ßn2 &lt; • • • &lt; ßn2n. For any 0 &lt; j &lt; 2n let M j, Uj, Qj be the sums, defined starting from 0.<page local="5" global="945"/> Once the</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">v</doubt><doubt alpha="0.0" length="2" tooSmall="True" monospace="0.0">.5</doubt><doubt alpha="0.0" length="3" tooSmall="True" monospace="0.0">0.5</doubt><doubt alpha="33.3" length="3" tooSmall="True" monospace="0.0">V)0</doubt><doubt alpha="0.0" length="4" tooSmall="True" monospace="0.0">-1.5</doubt><doubt alpha="85.7" length="7" tooSmall="False" monospace="0.0">Qjv Qjv</doubt><doubt alpha="50.0" length="6" tooSmall="False" monospace="0.0">vQ + M</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">1</doubt><doubt alpha="63.1" length="84" tooSmall="False" monospace="0.0">in (9), for the line segmentßnj-1&lt; ß &lt; ßnj(de­notingßno= —oo,ßn2n+1= oo). We compute</doubt><doubt alpha="29.4" length="17" tooSmall="False" monospace="0.0">Mj   =  Mj-1+m^.|</doubt><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">Uj Qj</doubt><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">Uj-1Qj-1</doubt><p>From the above sums we can compute the value of the function G(v, ß) at the end point of the line seg­ment (ßnj-1 ,ßnj), which is the same as the start point of the line segment (ßnj, ßnj+1 ),</p><doubt alpha="45.0" length="20" tooSmall="False" monospace="0.0">Mj-1+ Uj-1ßj — Qj-1v</doubt><p>The optimal value ofß resides in the line segment for which G( ) attains 0. Such a segment must exist since G0 = M0 = — Ej=1 mi &lt; 0 and G2n =</p><p>M0 &gt; 0. Therefore, there exists an index 1 &lt; j &lt; 2n, where Gj &lt; 0 &lt; Gj+1. Once we bracketed the feasible segment for ß, the optimal value of ß is found by solving the linear equation (10),</p><doubt alpha="50.0" length="16" tooSmall="False" monospace="0.0">ß= (Qjv— Mj) /Uj</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(15)</doubt><p>More formally, the local homotopy tracking fol­lows the piecewise linear function ß(v), segment by segment. Each segment corresponds to a subset of the line l0 for a <i>given </i>triplet (M, U, Q). It is simple to show that ß(0) = 0, hence we start with</p><doubt alpha="22.2" length="18" tooSmall="False" monospace="0.0">v= 0, M = 0, U = Q</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(16)</doubt><p>We now track the value of ß as v increases, and the relaxation parameter 1/v decreases. The character­ization of l0 remains intact until l0 hits one of the lines lj for 1 &lt; |j| &lt; n. To find the line intersect­ing l0 we need to compute the potential intersection points (vj, ßj) = l0 n lj which amounts to calculat­ing v-n, v-n+1,..., v-1, v1, v2, • • • , vn where</p><doubt alpha="50.0" length="16" tooSmall="False" monospace="0.0">_Mu\j\ +Us\gn(j)</doubt><doubt alpha="0.0" length="4" tooSmall="False" monospace="0.0">(17)</doubt><p>The lines for which the denominator is zero cor­respond to infeasible intersection and can be dis­carded. The smallest value vj which is larger than the current traced value of v corresponds to the next line intersecting l0.</p><p>While the above description is mathematically sound, we devised an equivalent intersection in­spection scheme which is more numerically stable and efficient. We keep track of partition I-, I0, I1through the vector,</p><p>From the optimal value of ß it is straightforward to construct p using (7). Due to the sorting step, the al­gorithm's run time is O(n log(n)) and it takes linear space. The number of operations can be reduced to O(n) using a randomized search procedure.</p></section><section number="6" title="Homotopy Tracking"><p>We now shift gears and focus on the main thrust of this paper, namely, an efficient characterization of the <i>entire </i>regularization path for the maximum entropy problem. Since we have shown that the optimal solution p can be straightforwardly ob­tained from the variable ß, it suffices to efficiently track the function ß(v) as we traverse the plane (v, ß) from v = 0 through the last change point which we denoted as (v^,ßTC). In this section we give an algorithm that traverses ß(v) by lo­cating the intersections of l0 with the fixed lines n+1,..., l-1, I1,..., ln and updating I0 af­ter each intersection.</p><doubt alpha="50.0" length="12" tooSmall="False" monospace="0.0">— 1jGI-0jGI0</doubt><doubt alpha="50.0" length="6" tooSmall="False" monospace="0.0">+1jGI+</doubt><p>Initially s1 = s2 = • • • = sn = 0. What kind of intersection does <i>£q </i>have with <i>I p. </i>Recall that ^ is the slope of <i>£0</i><i> </i>while      is the slope of <i>£j. </i>Thus ^ &gt; |^ means that the |j|'th constraint is moving "up" from /_ to <i>Iq </i>or from <i>I0 </i>to <i>I+.</i><i> </i>When § &lt; ^ the | j |'th constraint is moving "down" from I+ to I0or from I0 to I- . See also Fig. 4 for an illustration of the possible transitions between the sets. For in­stance, the slope of ß(v) on the bottom left part of the figure is larger than the slope the line it inter­sects. Since this line defines the boundary between I- and I0, we transition from I- to I0. We need only consider 1 &lt; | j| &lt; n of the following types. Moving "up" from I- to I0 requires the sums Mj Uj Qj incrementally,</p><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">s|j|</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">j&lt;0</doubt><doubt alpha="46.2" length="13" tooSmall="False" monospace="0.0">QU|j|—UQ|j|&gt;0</doubt><p>M0 = — Ej=1 mi,   U0 = Q0 = values of j — 1'th sums are known, we can compute the next sums in the sequence as follows,<page local="6" global="946"/></p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">1</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">0</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">v</doubt><p>Figure 4: Illustration of the possible intersections be­tween ß(v) and <i>l</i><i>j </i>and the corresponding transition be­tween the sets I±, Iq .</p><p>Similarly, moving "down" from I+ to I0 requires</p><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">j&gt;0</doubt><doubt alpha="42.9" length="14" tooSmall="False" monospace="0.0">QU|j|—UQ|j| &lt;0</doubt><p>Finally, moving "up" or "down" from I0 entails</p><doubt alpha="43.8" length="16" tooSmall="False" monospace="0.0">j(QU|j|—UQ|j|)&gt;0</doubt><p>If there are no eligible vj's, we have finished travers­ing ß(). Otherwise let index j belong to the the smallest eligible vj. Infinite accuracy guarantees that vj &gt; v. In practice we perform the update</p><doubt alpha="46.7" length="45" tooSmall="False" monospace="0.0">v   —   max(v, vj)M—M+ sign(QU|j|—UQ|j|) m|j|</doubt><doubt alpha="14.3" length="14" tooSmall="False" monospace="0.0">U   —  U+(2||—</doubt><doubt alpha="48.4" length="31" tooSmall="False" monospace="0.0">Q—Q+(2ls|j||— sj—sj + sign(QU|_</doubt><footnote label="1">) m |j| U |j|</footnote><doubt alpha="0.0" length="35" tooSmall="True" monospace="0.0">0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8</doubt><p>Figure 5: The result of the homotopy tracking for a 4 dimensional problem. The lines lj for j &lt; 0 are drawn in blue and for j &gt; 0 in red. The function ß(v) is drawn in green and its change points in black. Note that although the dimension is 4 the number of change points is rather small and does not exceed 4 either in this simple example.</p><p>edge u is the <i>uniform </i>distribution,</p><p>def U = Uj</p><p>We are done with the tracking process when I0 is empty, i.e. for all j sj = 0.</p><p>The local homotopy algorithm takes O (n) mem­ory and O (nk) operations where k is the number of change points in the function ß( v) . This algorithm is simple to implement, and when k is relatively small it is efficient. An illustration of the tracking result, ß(v), along with the lines l±j, that provide a geometrical description of the problem, is given in Fig. 5.</p></section><section number="7" title="Uniform Prior"><p>We chose to denote the prior distribution as u to un­derscore the fact that in the case of no prior knowl-</p><p>In this case the objective function amounts to the negative entropy and by flipping the sign of the ob­jective we obtain the classical maximum entropy problem. The fact that the prior probability is the same for all possible observations infuses the prob­lem with further structure which we show how to exploit in this section. Needless to say though that all the results we obtained thus far are still valid.</p><p>Let us consider a point (v, ß) on the boundary be­tween I0 and I+, namely, there exist a line <i>l+i</i><i> </i>such ßUi — vQi = ßU — vQi = 1 .</p><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">that,</doubt><p>By definition, for any j G I0 we have ßUj — vQj = ßU — vQj &lt; 1 = ßU — vQi .</p><p>Thus, Qi &lt; Qj for all j G I0 which implies that j eio j eio and we must be moving "up" from I0 to I+ when the line l0 hits li.<page local="7" global="947"/> Similarly we must be moving "down" from when l0 hits on the boundary between I0 and I- . We summarize these properties in the following theorem.</p><doubt alpha="61.1" length="54" tooSmall="False" monospace="0.0">mj u Qj &gt; mj u Qi. (18) Summing over j G I0we get that</doubt><doubt alpha="37.5" length="40" tooSmall="False" monospace="0.0">Q u =       mj Qj u &gt; ^ mj u Qi = U Qi ,</doubt><doubt alpha="83.3" length="6" tooSmall="False" monospace="0.0">hence,</doubt><doubt alpha="16.7" length="6" tooSmall="False" monospace="0.0">= &lt; 9l</doubt><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">Uiu U</doubt><p>Theorem 7.1 <i>When the prior distribution </i>u <i>is uni­form, </i>I- (v) <i>and </i>I+(v) <i>are monotonically nonde-creasing and </i>I0(v) <i>is monotonically nonincreasing in </i>v &gt; 0 <i>. Further, the piecewise linear function </i>ß(v) <i>consists ofat most </i>n + 1 <i>line segments.</i></p><p>The homotopy tracking procedure when the prior is uniform is particularly simple and efficient. In­tuitively, there is a sole condition which controls the order in which indices would enter I± from I0, which is simply how "far" each Qi is from U, the sin­gle prior value. Therefore, the algorithm starts by sorting q. Let Qn1 &gt; Qn2 &gt; <b>• • • </b>&gt; Qnn denote the sorted vector. Instead of maintaining the vector of set indicators s, we merely maintain two indices j-and j+ which designate the size of I- and I+ that were constructed thus far. Due to the monotonic-ity property of the sets I± as v grows, the two sets can be written as, I- = {nj <b>1</b>1 <b>&lt; </b>j &lt; j-<b>} </b>and I+ = {nj <b>| </b>j+ &lt; j <b>&lt; </b>n}. The homotopy track­ing procedure starts as before with v = 0, <b>M </b>= 0, <b>U </b>= <b>Q </b>= 1. We also set j- = 1 and j+ = n which by definition imply that I± are empty and I0 = [n]. In each tracking iteration we need to compare only two values which we compactly denote as,</p><doubt alpha="56.2" length="16" tooSmall="False" monospace="0.0">_Mu±UV±Qu -Uq%j±</doubt><p>When v- <b>&lt; </b>v+ we just encountered a transition from I0 to I- and as we encroach I- we perform the updates, v <b>— </b>v-,  <b>M — M —        </b>, <b>U —</b></p><doubt alpha="63.6" length="77" tooSmall="False" monospace="0.0">U —mnj-u,Q — Q —mnj-QnJ-,j-—j-+ 1. Similarly whenv- &gt;v+we perform the updates</doubt><doubt alpha="44.8" length="29" tooSmall="False" monospace="0.0">v—v+,M — M+mTj+,U — U —mTj+u,</doubt><p><b>Q — Q — </b>mnj+ Qnj+, j+ <b>— </b>j+ <b>— </b>1.</p><p>The tracking process stops when j- &gt; j+ as we exhausted the transitions out of the set I0 which be­comes empty. Homotopy tracking for a uniform prior takes O(n) memory and O(n log(n)) opera­tions and is very simple to implement.</p><p>We also devised a global homotopy tracking algo­rithms that requires a priority queue which facilitates insertions, deletions, and finding the largest element</p><doubt alpha="83.3" length="24" tooSmall="True" monospace="0.0">Sample Size / Dimensions</doubt><p>Figure 6: The number of line-segments in the homotopy as a function of the number of samples used to build the observed distribution q.</p><p>in the queue in O(log(n)) time. The algorithm re­quires O(n) memory and O(n<footnote anchor="2"/> log(n)) operations. Clearly, if the number of line segments constituting ß(v) is greater than n log(n) (recall that the upper bound is O(n<footnote anchor="2"/>)) then the global homotopy proce­dure is faster than the local one. However, as we show in Sec. 8, in practice the number of line seg­ments is merely linear and it thus suffices to use the local homotopy tracking algorithm.</p></section><section number="8" title="Number of line segments in practice"><p>The focus of the paper is the design and analysis of a novel homotopy method for maximum entropy problems. We thus left with relatively little space to discuss the empirical aspects of our approach. In this section we focus on one particular experimental facet that underscores the usability ofour apparatus. We briefly discuss current natural language applica­tions that we currently work on in the next section.</p><p>The practicality of our approach hinges on the number of line segments that occur in practice. Our bounds indicate that this number can scale quadrat-ically with the dimension, which would render the homotopy algorithm impractical when the size ofthe alphabet is larger than a few thousands. We there­fore extensively tested the <i>actual </i>number ofline seg­ments in the resulting homotopy when u and q are Zipf (1949) distributions. We used an alphabet of size 50, 000 in our experiments. The distribution u was set to be the Zipf distribution with an offset pa­rameter of 2, that is, Ui <b>~ </b>+ 2). We defined a "mother" distribution for q, denoted <i>q,</i><i> </i>which is a plain Zipf distribution without an offset, namely Qi ~ We then sampled n/2<footnote anchor="1"/> letters according to the distribution <i>q </i>where l G — 3,.<page local="8" global="948"/>.., 3. Thus the smallest sample was n/2<footnote anchor="3"/> = 6,250 and the largest sample was n/3-3 = 40,000. Based on the sample we defined the observed distribution q such that Qiis proportional to the number of times the i'th let­ter appeared in the sample. We repeated the process 100 times for each sample size and report average results. Note that when the sample is substantially smaller than the dimension the observed distribution q tends to be "simple" as it consists of many zero components. In Fig. 6 we depict the average num­ber line segments for each sample size. When the sample size is one eighth of the dimension we aver­age st most 0.1 n line segments. More importantly, even when the size of the sample is fairly large, the number of lines segments is linear in the dimension with a constant close to one. We also performed experiments with large sample sizes for which the empirical distribution q is very close to the mother distribution <i>q. </i>We seldom found that the number of line segments exceeds 4n and the mode is around 2n. These findings render our approach usable even in the very large natural language applications.</p></section><section number="9" title="Conclusions"><p>We presented a novel efficient apparatus for tracking the entire relaxation path of maximum entropy prob­lems. We currently study natural language process­ing applications. In particular, we are in the process of devising homotopy methods for domain adapta­tion Blitzer (2008) and language modeling based on context tree weighting (Willems et al., 1995). We also examine generalization of our approach in which the relative entropy objective is replaced with a separable Bregman (Censor and Zenios, 1997) function. Such a generalization is likely to distill further connections to the other homotopy methods, in particular the least angle regression algorithm of Efron et al. (2004) and homotopy methods for the Lasso in general (Osborne et al., 2000). We also plan to study separable Bregman functions in order to de­rive entire path solutions for less explored objectives such as the Itakura-Saito spectral distance (Rabiner and Juang, 1993) and distances especially suited for natural language processing.</p></section><references><p>A.L. Berger, S.A. Della Pietra, and V. J. Della Pietra. A maximum entropy approach to natural lan­guage processing. <i>Computational Linguistics, </i>22 (1):39-71, 1996.</p><p>John Blitzer. <i>Domain Adaptation ofNatural Lan­guage Processing Systems. </i>PhD thesis, University of Pennsylvania, 2008.</p><p>S. Boyd and L. Vandenberghe. <i>Convex Optimiza­tion. </i>Cambridge University Press, 2004.</p><p>Y. Censor and S.A. Zenios. <i>Parallel Optimization: Theory, Algorithms, and Applications. </i>Oxford University Press, New York, NY, USA, 1997.</p><p>S. Della Pietra, V. Della Pietra, and J. Lafferty. In­ducing features of random fields. <i>IEEE Trans­actions on Pattern Analysis and Machine Intelli­gence, </i>5:179-190, 1997.</p><p>M. Dudik, S. J. Phillips, and R. E. Schapire. Maxi­mum entropy density estimation with generalized regularization and an application to species distri­bution modeling. <i>Journal ofMachine Learning Research, </i>8:1217-1260, June 2007.</p><p>Bradley Efron, Trevor Hastie, Iain Johnstone, and Robert Tibshirani. Least angle regression. <i>Annals</i> <i>ofStatistics, </i>32(2):407-499, 2004.</p><p>Edwin T. Jaynes. Prior probabilities. <i>IEEETransac-tions on Systems Science and Cybernetics, </i>SSC-4 (3):227-241, September 1968.</p><p>Michael R. Osborne, Brett Presnell, and Berwin A. Turlach. On the lasso and its dual. <i>Journal ofComputational and Graphical Statistics, </i>9(2): 319-337, 2000.</p><p>L. Rabiner and B.H. Juang. <i>Fundamentals ofSpeech Recognition. </i>Prentice Hall, 1993.</p><p>F. M. J. Willems, Y. M. Shtarkov, and T. J. Tjalkens.</p><p>The context tree weighting method: basic proper­ties. <i>IEEE Transactions on Information Theory,</i> 41(3):653-664, 1995.</p><p>George K. Zipf. <i>Human Behavior and the Principle ofLeast Effort. </i>Addison-Wesley, 1949.</p></references></body></article>