本章回顾优化中的对偶性原理。In this chapter, we review duality principles in optimization.
本节引入对偶范数,因为它们在本书中很有用。We introduce in this section dual norms, since they are useful in this book.
因此, 的对偶范数是由范数 诱导的单位球的支撑函数,Therefore, the dual norm of is the support function of the unit ball induced by the norm ,
下面给出若干对偶范数对的例子。We give examples of pairs of dual norms below.
对偶范数的定义蕴含了 柯西—施瓦茨 不等式的一种推广:对于所有 The definition of dual norm implies a generalization of the Cauchy–Schwarz inequality: for all
参见,例如,[18, 引理 1.4]。See, e.g., [18, Lemma 1.4].
本节考虑如下形式的标准目标函数We consider in this section standard objectives of the form
其中 、 与 。我们首先说明:即使原始问题是非凸的,该目标函数的极小化(称为原始问题)仍可被一个称为对偶的凹极大化目标函数从下方界定。where , and . We first show that the minimization of this objective, called the primal, can be lower bounded by a concave maximization objective, called the dual, even if the primal is nonconvex.
我们强调,命题 18.2.1 中的结果具有完全的一般性,即它并不假设 的线性性,也不假设 与 的凸性。当然需要注意的是,若 是非线性的,且 与 是非凸的,则 与 一般难以计算。We emphasize that the result in Proposition 18.2.1 is fully general, in the sense that it does not assume the linearity of or the convexity of and . The caveat, of course, is that and are difficult to compute in general, if is nonlinear, and if and are nonconvex.
当 (其中 是线性映射),且 与 均为凸时,我们可以得到一个强得多的结果。In the case when , where is a linear map, and when both and are convex, we can state a much stronger result.
由 ,可得Since , we have
此外,命题18.2.1的证明中的不等式取等号,因为是某个凸—凹函数的对应量。Furthermore, the inequality in the proof of Proposition 18.2.1 is an equality, since the is that of a convex-concave function.
命题 18.2.3 中的极大化问题称为 Fenchel 对偶。由强对偶性可知,最大值与最小值相等。因此,我们可以等价地选择求解对偶问题,而非原始问题。当空间 小于 时,这样做尤为有利。The maximization problem in Proposition 18.2.3 is called the Fenchel dual. By strong duality, the value of the maximum and the value of the minimum are equal. We can therefore choose to equivalently solve the dual instead of the primal. This can be advantageous when the space is smaller than .
下面我们应用 Fenchel 对偶,得到正则化多分类线性分类问题的对偶。We now apply the Fenchel dual to obtain the dual of regularized multiclass linear classification.
损失函数的共轭示例见表 18.1。Examples of loss function conjugates are given in Table 18.1.
| 平方Squared | ||
|---|---|---|
| 绝对Absolute | ||
| logisticLogistic | ||
| 感知机Perceptron | ||
| 合页Hinge |
Bregman 散度用于度量两点之间的差异。Bregman divergences are a measure of difference between two points.
直观地说,Bregman 散度是 与其在 附近的线性化 之差。这一点如图 18.1 所示。Intuitively, the Bregman divergence is the difference between and its linearization around . This is illustrated in Fig. 18.1.
Bregman 散度具有若干有用的性质。Bregman divergences enjoy several useful properties.
这些性质均可由 的凸性直接得到。The properties follow immediately from the convexity of .
由定义 15.4.10 即得。From Definition 15.4.10.
由极小值点的唯一性即得。From the uniqueness of minimizers.
这源于如下事实: 是 与 的一个线性函数之和。From the fact that is the sum of and a linear function of .
Bregman 散度可用于定义欧几里得投影与邻近算子的自然推广;这些内容已在 16.3 节与 16.4 节中回顾。The Bregman divergence can be used to define natural generalizations of the Euclidean projection and proximal operators, reviewed in Section 16.3 and Section 16.4.
事实证明,这些算子与凸共轭的梯度映射密切相关。It turns out that these operators are intimately connected to the gradient mapping of the convex conjugate.
下面给出两个例子。We give two examples below.
因此,softmax 可以看作是在 Kullback-Leibler 散度意义下向概率单纯形上的投影!Therefore, the softmax can be seen as a projection onto the probability simplex in the Kullback-Leibler divergence sense!
我们以对 Fenchel-Young 损失函数族 [28] 的简要回顾来结束本章,该损失函数族包含表 18.1 中的所有损失函数。We end this chapter with a brief review of the Fenchel-Young family of loss functions [28], which includes all loss functions in Table 18.1.
通常,我们令 ,其中 是带有参数 的模型预测函数,且 ,其中 。例如,假设我们处理的是 分类输出 。那么,我们可以令 ,其中 是 的 one-hot 编码。Typically, we set , where is a model prediction function with parameters and , where . For instance, suppose we work with categorical outputs . Then, we can set , where is the one-hot encoding of .
需要注意的重要一点是,Fenchel-Young 损失定义在混合空间中的变量上: 属于对偶空间,而 属于原始空间。事实上,Fenchel-Young 损失与 Bregman 散度密切相关:若令 ,则 。Fenchel-Young 损失函数的关键性质总结如下。The important point to notice is that the Fenchel-Young loss is defined over arguments in mixed spaces: belongs to the dual space, while belongs to the primal space. In fact, the Fenchel-Young loss is intimately connected to the Bregman divergence, since , if we set . The key properties of Fenchel-Young loss functions are summarized below.
关于更多性质的深入研究,参见 [28]。See [28] for an in-depth study of more properties.
凸共轭是 Fenchel 对偶中的一个强大抽象工具,它将对偶表达式与特定于函数的项解耦。The convex conjugate serves as a powerful abstraction in Fenchel duality, decoupling the dual expression and function-specific terms.
凸共轭也与 Bregman 散度紧密相连,并可用于导出 Fenchel-Young 损失函数族,后者可以看作原始—对偶的 Bregman 散度。The convex conjugate is also tightly connected to Bregman divergences and can be used to derive the family of Fenchel-Young loss functions, which can be seen as primal-dual Bregman divergences.