版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、Journal of Machine Learning Research 6 (2005) 14531484Submitted 11/04; Published 9/05Large Margin Methods for Structured and Interdependent Output VariablesIoannis TsochantaridisIOANNISGOOGLE.COMGoogle, Inc.Mountain View, CA 94043, USAThorsten JoachimsTJCS.CORNELL.EDUDepartment of Computer Science C
2、ornell UniversityIthaca, NY 14853, USAThomas HofmannHOFMANNINT.TU-DARMSTADT.DEDarmstadt University of Technology Fraunhofer IPSIDarmstadt, GermanyYasemin AltunALTUNTTI-C.ORGToyota Technological Institute Chicago, IL 60637, USAEditor: Yoram SingerAbstractLearning general functional dependencies betwe
3、en arbitrary input and output spaces is one of the key challenges in computational intelligence. While recent progress in machine learning has mainly focused on designing flexible and powerful input representations, this paper addresses the comple- mentary issue of designing classification algorithm
4、s that can deal with more complex outputs, such as trees, sequences, or sets. More generally, we consider problems involving multiple dependent output variables, structured output spaces, and classification problems with class attributes. In order to accomplish this, we propose to appropriately gene
5、ralize the well-known notion of a separation margin and derive a corresponding maximum-margin formulation. While this leads to a quadratic program with a potentially prohibitive, i.e. exponential, number of constraints, we present a cut- ting plane algorithm that solves the optimization problem in p
6、olynomial time for a large class of problems. The proposed method has important applications in areas such as computational biology, natural language processing, information retrieval/extraction, and optical character recognition. Ex- periments from various domains involving different types of outpu
7、t spaces emphasize the breadth and generality of our approach.1. IntroductionThis paper deals with the general problem of learning a mapping from input vectors or patternsx X to discrete response variables yY , based on a training sample of input-output pairs(x1,y1), . . . , (xn, yn) X Ydrawn from s
8、ome fixed but unknown probability distribution. Un-like multiclass classification, where the output space consists of an arbitrary finite set of labels orclass identifiers, Y = 1, ., K, or regression, where Y = R and the response variable is a scalar, we consider the case where elements of Y are str
9、uctured objects such as sequences, strings, trees,Qc 2005 Ioannis Tsochantaridis, Thorsten Joachims, Thomas Hofmann and Yasemin Altun.LARGE MARGIN METHODS FOR STRUCTURED AND INTERDEPENDENT OUTPUT VARIABLESlattices, or graphs. Such problems arise in a variety of applications, ranging from multilabel
10、clas- sification and classification with class taxonomies, to label sequence learning, sequence alignment learning, and supervised grammar learning, to name just a few. More generally, these problems fall into two generic cases: first, problems where classes themselves can be characterized by certai
11、n class-specific attributes and learning should occur across classes as much as across patterns; second, problems where y represents a macro-label, i.e. describes a configuration over components or statevariables y = (y1, . . . , yT ), with possible dependencies between these state variables.We appr
12、oach these problems by generalizing large margin methods, more specifically multiclass support vector machines (SVMs) (Weston and Watkins, 1998; Crammer and Singer, 2001), to the broader problem of learning structured responses. The naive approach of treating each structure as a separate class is of
13、ten intractable, since it leads to a multiclass problem with a very large number ofclasses. We overcome this problem by specifying discriminant functions that exploit the structure and dependencies within Y . In that respect our approach follows the work of Collins (2002) on perceptron learning with
14、 a similar class of discriminant functions. However, themaximum-marginalgorithm we propose has advantages in terms of accuracy and tunability to specific loss functions. A maximum-margin algorithm has also been proposed by Collins and Duffy (2002a) in the context of natural language processing. Howe
15、ver, it depends on the size of the output space, therefore it requires some external process to enumerate a small number of candidate outputs y for a given input x. The same is true also for other ranking algorithms (Cohen et al., 1999; Herbrich et al., 2000; Schapire and Singer, 2000; Crammer and S
16、inger, 2002; Joachims, 2002). In contrast, we have proposed an efficient algorithm (Hofmann et al., 2002; Altun et al., 2003; Joachims, 2003) even in the case of very large output spaces, that takes advantage of the sparseness of the maximum- margin solution.A different maximum-margin algorithm that
17、 can deal with very large output sets, maximum margin Markov networks, has been independently proposed by Taskar et al. (2004a). The structure of the output is modeled by a Markov network, and by employing a probabilistic interpretation of the dual formulation of the problem, Taskar et al. (2004a) p
18、ropose a reparameterization of the problem, that leads to an efficient algorithm, as well as generalization bounds that do not depend on the size of the output space. The proposed reparameterization, however, assumes that the loss function can be decomposed in the the same fashion as the feature map
19、, thus does not support arbitrary loss functions that may be appropriate for specific applications.On the surface our approach is related to the kernel dependency estimation approach described in Weston et al. (2003). There, however, separate kernel functions are defined for the input and output spa
20、ce, with the idea to encode a priori knowledge about the similarity or loss function in output space. In particular, this assumes that the loss is input dependent and known beforehand. More specifically, in Weston et al. (2003) a kernel PCA is used in the feature space defined over y to reduce the p
21、roblem to a (small) number of independent regression problems. The latter corresponds to an unsupervised embedding (followed by dimension reduction) performed in the output space and no information about the patterns x is utilized in defining this low-dimensional representation. In contrast, the key
22、 idea in our approach is not primarily to define more complex functions, but to deal with more complex output spaces by extracting combined features over inputs and outputs.For a large class of structured models, we propose a novel SVM algorithm that allows us to learn mappings involving complex str
23、uctures in polynomial time despite an exponential (or infi- nite) number of possible output values. In addition to respective theoretical results, we empirically evaluate our approach for a number of specific problem instantiations: classification with class tax-1483Figure 1: Illustration of natural
24、 language parsing model.onomies, label sequence learning, sequence alignment, and natural language parsing. This paper extends Tsochantaridis et al. (2004) with additional theoretical and empirical results.The rest of the paper is organized as follows: Section 2 presents the general framework of lar
25、ge margin learning over structured output spaces using representations of input-output pairs via joint feature maps. Section 3 describes and analyzes a generic algorithm for solving the resulting optimization problems. Sections 4 and 5 discuss numerous important special cases and experimental result
26、s, respectively.2. Large Margin Learning with Joint Feature MapsWe are interested in the general problem of learning functions f : X Y between input spaces X and arbitrary discrete output spaces Y based on a training sample of input-output pairs. As an illustrating example, which we will continue to
27、 use as a prototypical application in the sequel,consider the case of natural language parsing, where the function f maps a given sentence x to a parse tree y. This is depicted graphically in Figure 1.The approach we pursue is to learn a discriminant function F : X Y R over input-output pairs from w
28、hich we can derive a prediction by maximizing F over the response variable for aspecific given input x. Hence, the general form of our hypotheses f isf (x; w) = argmax F(x, y; w),(1)yYwhere w denotes a parameter vector. It might be useful to think of F as a compatibility function that measures how c
29、ompatible pairs (x, y) are, or, alternatively,F can be thought of as a w- parameterized family of cost functions, which we try to design in such a way that the minimum of F(x, ; w)is at the desired output y for inputs x of interest.Throughout this paper, we assume F to be linear in some combined fea
30、ture representation ofinputs and outputs Y(x,y), i.e.F(x, y; w) = (w, Y(x, y) .(2)The specific form of Y depends on the nature of the problem and special cases will be discussed subsequently. However, whenever possible we will develop learning algorithms and theoreticalresults for the general case.
31、Since we want to exploit the advantages of kernel-based method, we will pay special attention to cases where the inner product in the joint representation can be efficiently computed via a joint kernel function J(x, y),(xi, yi) = (Y(x, y), Y(xi, yi) .Using again natural language parsing as an illust
32、rative example, we can chose F such that we get a model that is isomorphic to a probabilistic context free grammar (PCFG) (cf. Manning and Schuetze, 1999). Each node in a parse tree y for a sentence x corresponds to grammar rule g j, which in turn has a score wj. All valid parse trees y (i.e. trees
33、with a designated start symbol S as the rootand the words in the sentence x as the leaves) for a sentence x are scored by the sum of the wj of their nodes. This score can thus be written in the form of Equation (2), with Y(x, y) denoting a histogram vector of counts (how often each grammar rule g j
34、occurs in the tree y). f (x; w) can be efficiently computed by finding the structure yY that maximizes F(x, y; w) via the CKY algorithm (Younger, 1967; Manning and Schuetze, 1999).2.1 Loss Functions and Risk MinimizationThe standard zero-one loss function typically used in classification is not appr
35、opriate for most kinds of structured responses. For example, in natural language parsing, a parse tree that is almost correct and differs from the correct parse in only one or a few nodes should be treated differently from a parse tree that is completely different. Typically, the correctness of a pr
36、edicted parse tree is measured by its F1 score (see e.g. Johnson, 1998), the harmonic mean of precision and recall as calculated based on the overlap of nodes between the trees.In order to quantify the accuracy of a prediction, we will consider learning with arbitrary lossfunctions: Y Y R. Here(y, y
37、) quantifies the loss associated with a prediction y, if thetrue output value is y. It is usually sufficient to restrict attention to zero diagonal loss functions with(y, y) = 0 and for which furthermore (y, yi) 0 for y /= yi.1 Moreover, we assume the loss is bounded for every given target value y,
38、i.e. maxy (y, y) exists.We investigate a supervised learning scenario, where input-output pairs (x, y) are generated according to some fixed distribution P(x, y) and the goal is to find a function f in a given hypothesis class such that the risk,RP ( f ) =ZX Y(y, f (x) dP(x, y),is minimized. Of cour
39、se, P is unknown and following the supervised learning paradigm, we assumethat a finite training set of pairs S = (xi, yi) X Y : i = 1, . . . , n generated i.i.d. according to Pis given. The performance of a function f on the training sample S is described by the empirical risk,1 nRS ( f ) = n (yi,
40、f(xi),i=1which is simply the expected loss under the empirical distribution induced by S. For w-parameterized hypothesis classes, we will also write RP (w) RP ( f (; w) and similarly for the empirical risk.1. Cases where(y, yi) = 0 for y = yi can be dealt with, but lead to additional technical overh
41、ead, which we chose to avoid for the sake of clarity.2.2 Margin MaximizationWe consider various scenarios for the generalization of support vector machine learning over struc- tured outputs. We start with the simple case of hard-margin SVMs, followed by soft-margin SVMs, and finally we propose two a
42、pproaches for the case of loss-sensitive SVMs, which is the most gen- eral case and subsumes the former ones.2.2.1 SEPARABLE CASEFirst, we consider the case where there exists a function f parameterized by w such that the empirical risk is zero. The condition of zero training error can then be compa
43、ctly written as a set of nonlinear constraintsi 1,., n :max (w, Y(xi, y) (w, Y(xi, yi) .(3)yY yiNotice that this holds independently of the loss functions, since we have assumed that (y, y) = 0 and (y, yi) 0 for y /= yi.Every one of the nonlinear inequalities in Equation (3) can be equivalently repl
44、aced by |Y | 1 linear inequalities, resulting in a total of n|Y | n linear constraints,i 1,., n, y Y yi : (w, Y(xi, yi) Y(xi, y) 0 .(4)As we will often encounter terms involving feature vector differences of the type appearing in Equation (4), we define dYi(y)Y(xi, yi) Y(xi, y) so that the constrain
45、ts can be more compactly written as (w, dYi(y) 0.If the set of inequalities in Equation (4) is feasible, there will typically be more than one solu-tion w. To specify a unique solution, we propose to select the w for which the separationmarging, i.e. the minimal differences between the score of the
46、correct label yi and the closest runner-up y(w) = argmaxy yi (w, Y(xi, y) , is maximal. This generalizes the maximum-margin principle em- ployed in support vector machines (Vapnik, 1998) to the more general case considered in this paper.Restricting the L2 norm of w to make the problem well-posed lea
47、ds to the following optimization problem:maxgg,w:w=1s.t. i 1,., n, y Y yi :(w, dYi(y) g.This problem can be equivalently expressed as a convex quadratic program in standard formSVM0 :minw122 w(5)s.t. i, y Y yi : (w, dYi(y) 1 .(6)2.2.2 SOFT-MARGIN MAXIMIZATIONTo allow errors in the training set, we i
48、ntroduce slack variables and propose to optimize a soft- margin criterion. As in the case of multiclass SVMs, there are at least two ways of introducing slack variables. One may introduce a single slack variable xi for violations of the nonlinear constraints(i.e. every instance xi) (Crammer and Sing
49、er, 2001) or one may penalize margin violations for every linear constraint (i.e. every instance xi and output y = yi) (Weston and Watkins, 1998; Har- Peled et al., 2002). Since the former will result in a (tighter) upper bound on the empirical risk (cf.Proposition 1) and offers some advantages in t
50、he proposed optimization scheme (cf. Section 3), wehave focused on this formulation. Adding a penalty term that is linear in the slack variables to the objective, results in the quadratic program12C nSVM1 :minw,x 2w + n xi(7)i=1s.t. i, y Y yi : (w, dYi(y) 1 xi, xi 0 .Alternatively, we can also penal
51、ize margin violations by a quadratic term leading to the followingoptimization problem:SVM2 :min12C n2w +xiw,x 22n i=1s.t. i, y Y yi : (w, dYi(y) 1 xi .In both cases, C 0 is a constant that controls the trade-off between training error minimization and margin maximization.2.2.3 GENERAL LOSS FUNCTION
52、S: SLACK RE-SCALINGThe first approach we propose for the case of arbitrary loss functions, is to re-scale the slack vari- ables according to the loss incurred in each of the linear constraints. Intuitively, violating a margin constraint involving a y /= yi with high loss (yi, y) should be penalized
53、more severely than a vi-olation involving an output value with smaller loss. This can be accomplished by multiplying themargin violation by the loss, or equivalently, by scaling the slack variable with the inverse loss,which yieldss1n2CSVM1 :minw,x 2w + n xixi=1is.t. i, y Y yi : (w, dYi(y) 1 (yi, y)
54、 .A justification for this formulation is given by the subsequent proposition.weight vector w. Then 1nx is an upper bound on the empirical risk (w).Proposition 1 Denote by x(w) the optimal solution of the slack variables in SVM 1 s for a givenRni=1 iSiiProof Notice first that x = max0, maxy/=y (yi,
55、y)(1 (w, dYi(y) ).Case 1: If f (xi; w) = yi, then xi 0 = (yi, f (xi; w) and the loss is trivially upper bounded.Case 2: If y f (xi; w)yi, then (w, dYi(y) 0 and thusxi 1 which is equivalent toxy y .(yi,y)i ( i, )Since the bound holds for every training instance, it also holds for the average.The opti
56、mization problem SVM s can be derived analogously, where (y , y) is replaced by (y , y) 2iiin order to obtain an upper bound on the empirical risk.2.2.4 GENERAL LOSS FUNCTIONS: MARGIN RE-SCALINGIn addition to this slack re-scaling approach, a second way to include loss functions is to re-scale the m
57、argin as proposed by Taskar et al. (2004a) for the special case of the Hamming loss. It is straightforward to generalize this method to general loss functions. The margin constraints in this setting take the following form:i, y Y : (w, dYi(y) (yi, y) xi .(8)The set of constraints in Equation (8) combined with the objective in
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 校园食堂标签标识管理知识测试卷及答案
- 行李值班员环保设备操作维护考核试卷及答案
- 养禽与禽病防治试题库及答案
- 液化石油气安全管理人员技能考核考试题及答案
- 医疗器械冷链管理培训试题及答案
- 中层主管核心管理技能训练教程 试题及答案
- 2025年广东省汕尾市四年级数学上册期中考试试卷及答案
- 新闻记者培训试卷带答案
- 2026年内蒙古自治区赤峰市辅警人员招聘考试试卷带答案
- 2025年广西壮族自治区北海市高三政治上册期中考试试卷及答案
- 咯血介入治疗护理查房
- 微创椎间孔镜手术技巧与临床实践
- 《血管活性药物静脉输注护理》标准解读
- 集合的基本运算(课件)
- 《无人机组装与调试》第8章 无人直升机的组装与调试
- 浙教版七年级数学下册全册课件
- 高中英语 译林版 必修三 Unit 3 The world online Unit3第2课时Reading
- GB/T 2693-2001电子设备用固定电容器第1部分:总规范
- 《西游记》人物形象分析论文
- 施工电梯基础验收表
- 社区工作者真题
评论
0/150
提交评论