The ICA BookICA 学习书 Yuda Bi

Part III · Chapter 7第三部分 · 第 7 章

Natural Gradient, Infomax and Stability自然梯度、Infomax 与稳定性

The relative (natural) gradient, equivariance, local stability of the separating solutions, and the Infomax and extended Infomax algorithms.

相对(自然)梯度、等变性、分离解的局部稳定性,以及 Infomax 与扩展 Infomax 算法。

7.1 From a contrast to an update rule从对比函数到更新规则

Chapter 6第 6 章 reduced ICA to an optimization problem: find the unmixing matrix W\bW that maximizes the log-likelihood (6.1), or equivalently minimizes the mutual information of the outputs. This chapter turns that problem into algorithms that adjust W\bW step by step. Three questions run through it. In which direction should W\bW move? How does the behaviour of the algorithm depend on the unknown mixing matrix A\bA? And which solutions are attractors, so that the algorithm actually settles on them?

Chapter 6第 6 章把 ICA 归结为一个优化问题:寻找使对数似然 (6.1) 最大的解混矩阵 W\bW,或者等价地,使输出的互信息最小。本章把这个问题变成逐步调整 W\bW 的算法。贯穿全章的有三个问题:W\bW 应当沿什么方向移动?算法的行为如何依赖于未知的混合矩阵 A\bA?哪些解是吸引子,也就是说,算法实际会停在哪些解上?

The answers are, in order: along the relative or natural gradient, which needs no matrix inversion; not at all, a property called equivariance; and the separating solutions attract the algorithm when a simple condition linking the nonlinearity to the source distributions holds, and not when it fails. The same condition explains why the original Infomax algorithm separates typical super-Gaussian sources such as speech but fails on some sub-Gaussian ones, and how the extended version repairs this.

三个答案依次是:沿着相对梯度(即自然梯度)的方向移动,这一方向不需要矩阵求逆;完全不依赖,这一性质称为等变性;当非线性函数与源分布之间满足一个简单的条件时,分离解吸引算法,条件不满足时则不然。同一个条件解释了为什么原始的 Infomax 算法能分离语音这类常见的超高斯源,却在某些亚高斯源上失效,以及扩展 Infomax 如何弥补这一缺陷。

Throughout the chapter the model is square (m=nm = n, after the PCA reduction of Section 3.6第 3.6 节 if necessary), A\bA is invertible, and the sources are independent with zero mean. The algorithms use model densities pip_i that need not be the true ones. Their scores φi=−pi′/pi\varphi_i = -p_i'/p_i are the nonlinearities of the algorithm, collected in φ(y)=(φ1(y1),…,φn(yn))⊤\bphi(\by) = (\varphi_1(y_1), \dots, \varphi_n(y_n))^\top. When the model is right, φi\varphi_i is the true score ψi\psi_i of Definition 6.1定义 6.1.

本章始终假设模型是方阵情形(m=nm = n,必要时先做Section 3.6第 3.6 节的 PCA 降维),A\bA 可逆,各源相互独立且均值为零。算法使用的是模型密度 pip_i,它不必是真实密度。模型密度的得分函数 φi=−pi′/pi\varphi_i = -p_i'/p_i 就是算法中的非线性函数,记作向量 φ(y)=(φ1(y1),…,φn(yn))⊤\bphi(\by) = (\varphi_1(y_1), \dots, \varphi_n(y_n))^\top。模型正确时,φi\varphi_i 就是Definition 6.1定义 6.1中的真实得分函数 ψi\psi_i。

7.2 The ordinary gradient普通梯度

For one observation, the log-likelihood of W\bW is ∑ilog⁡pi(wi⊤x)+log⁡∣det⁡W∣\sum_i \log p_i(\bw_i^\top\bx) + \log|\det\bW|, where wi⊤\bw_i^\top is the ii-th row of W\bW. Its expectation

对单个观测,W\bW 的对数似然为 ∑ilog⁡pi(wi⊤x)+log⁡∣det⁡W∣\sum_i \log p_i(\bw_i^\top\bx) + \log|\det\bW|,其中 wi⊤\bw_i^\top 是 W\bW 的第 ii 行。它的期望

ℓ(W)=E[∑i=1nlog⁡pi(yi)]+log⁡∣det⁡W∣,y=Wx,(7.1)\ell(\bW) = \E\Bigl[\sum_{i=1}^n \log p_i(y_i)\Bigr] + \log|\det\bW|, \qquad \by = \bW\bx,\tag{7.1}

is the objective of this chapter. Batch algorithms replace E\E by the sample average E^\hat\E over x(1),…,x(T)\bx(1), \dots, \bx(T), which turns ℓ\ell into 1Tlog⁡L(W)\frac1T\log L(\bW). Since ∂log⁡∣det⁡W∣/∂W=W−⊤\partial\log|\det\bW|/\partial\bW = \bW^{-\top} (Section A.6第 A.6 节) and ∂log⁡pi(wi⊤x)/∂wi=−φi(yi) x\partial\log p_i(\bw_i^\top\bx)/\partial\bw_i = -\varphi_i(y_i)\,\bx, the gradient is

就是本章的目标函数。批量算法把 E\E 换成对 x(1),…,x(T)\bx(1), \dots, \bx(T) 的样本平均 E^\hat\E,此时 ℓ\ell 就是 1Tlog⁡L(W)\frac1T\log L(\bW)。由 ∂log⁡∣det⁡W∣/∂W=W−⊤\partial\log|\det\bW|/\partial\bW = \bW^{-\top}(Section A.6第 A.6 节)以及 ∂log⁡pi(wi⊤x)/∂wi=−φi(yi) x\partial\log p_i(\bw_i^\top\bx)/\partial\bw_i = -\varphi_i(y_i)\,\bx,梯度为

∇ℓ(W)=W−⊤−E[φ(y) x⊤].(7.2)\nabla\ell(\bW) = \bW^{-\top} - \E\bigl[\bphi(\by)\,\bx^\top\bigr].\tag{7.2}

Setting the gradient to zero and multiplying on the right by W⊤\bW^\top gives the estimating equations E[φ(y)y⊤]=I\E[\bphi(\by)\by^\top] = \bI, that is, E[φi(yi) yj]=δij\E[\varphi_i(y_i)\,y_j] = \delta_{ij} for all i,ji, j. Every separating matrix satisfies the off-diagonal equations, whatever the nonlinearities: if yiy_i and yjy_j are multiples of two different sources, then E[φi(yi)yj]=E[φi(yi)] E[yj]=0\E[\varphi_i(y_i)y_j] = \E[\varphi_i(y_i)]\,\E[y_j] = 0 by independence and zero means. The diagonal equations only fix the scale of each output. This is the robustness to a wrong source model noted in Chapter 6第 6 章: the model does not move the separating points. What it decides is whether an algorithm converges to them, the subject of Section 7.5第 7.5 节.

令梯度为零并右乘 W⊤\bW^\top,得到估计方程 E[φ(y)y⊤]=I\E[\bphi(\by)\by^\top] = \bI,即对所有 i,ji, j 有 E[φi(yi) yj]=δij\E[\varphi_i(y_i)\,y_j] = \delta_{ij}。无论非线性函数取什么,任何分离矩阵都满足其中的非对角方程:若 yiy_i 与 yjy_j 分别是两个不同源的倍数,则由独立性与零均值,E[φi(yi)yj]=E[φi(yi)] E[yj]=0\E[\varphi_i(y_i)y_j] = \E[\varphi_i(y_i)]\,\E[y_j] = 0。对角方程只确定各输出的尺度。这正是Chapter 6第 6 章中提到的对源模型设错的稳健性:模型不会移动分离点,它决定的是算法能否收敛到分离点,这是Section 7.5第 7.5 节的主题。

Plain gradient ascent, W←W+μ∇ℓ(W)\bW \leftarrow \bW + \mu\nabla\ell(\bW) with a step size μ>0\mu > 0, has two flaws. It needs the inverse W−⊤\bW^{-\top} at every step. More seriously, its behaviour depends on A\bA. Write the update in terms of the global matrix P=WA\bP = \bW\bA, using W−⊤=P−⊤A⊤\bW^{-\top} = \bP^{-\top}\bA^\top, x⊤=s⊤A⊤\bx^\top = \bs^\top\bA^\top and y=Ps\by = \bP\bs:

普通的梯度上升 W←W+μ∇ℓ(W)\bW \leftarrow \bW + \mu\nabla\ell(\bW)(步长 μ>0\mu > 0)有两个缺点。第一,每一步都要计算逆矩阵 W−⊤\bW^{-\top}。第二,也是更严重的,它的行为依赖于 A\bA。利用 W−⊤=P−⊤A⊤\bW^{-\top} = \bP^{-\top}\bA^\top、x⊤=s⊤A⊤\bx^\top = \bs^\top\bA^\top 和 y=Ps\by = \bP\bs,把更新改写成全局矩阵 P=WA\bP = \bW\bA 的形式:

P←P+μ(P−⊤−E[φ(y) s⊤]) A⊤A.(7.3)\bP \leftarrow \bP + \mu\bigl(\bP^{-\top} - \E[\bphi(\by)\,\bs^\top]\bigr)\,\bA^\top\bA.\tag{7.3}

The fixed matrix A⊤A\bA^\top\bA acts as a preconditioner chosen by nature. When A\bA is ill-conditioned, the steps are long in some directions and very short in others, and no single step size suits all of them. Panel (a) of Figure 7.1图 7.1 shows the effect: with a condition number of 10, plain gradient ascent hardly moves in 150 iterations.

固定矩阵 A⊤A\bA^\top\bA 相当于一个由“自然”指定的预条件矩阵。A\bA 病态时,更新在某些方向上步子很大,在另一些方向上步子极小,没有一个统一的步长能同时适合所有方向。Figure 7.1图 7.1的(a)图显示了这一效应:条件数为 10 时,普通梯度上升在 150 次迭代中几乎原地不动。

7.3 Relative and natural gradients相对梯度与自然梯度

Cardoso and Laheld (1996) perturb W\bW multiplicatively, W→(I+ε)W\bW \to (\bI + \bepsilon)\bW with a small n×nn \times n matrix ε\bepsilon, so that the outputs change by y→y+εy\by \to \by + \bepsilon\by. To first order, log⁡∣det⁡((I+ε)W)∣=log⁡∣det⁡W∣+tr⁡ε\log|\det((\bI + \bepsilon)\bW)| = \log|\det\bW| + \tr\bepsilon and log⁡pi(yi+(εy)i)=log⁡pi(yi)−φi(yi)∑jεijyj\log p_i\bigl(y_i + (\bepsilon\by)_i\bigr) = \log p_i(y_i) - \varphi_i(y_i)\sum_j \varepsilon_{ij}y_j. Hence

Cardoso 与 Laheld(1996)对 W\bW 做乘性扰动 W→(I+ε)W\bW \to (\bI + \bepsilon)\bW,其中 ε\bepsilon 是一个小的 n×nn \times n 矩阵,于是输出变为 y→y+εy\by \to \by + \bepsilon\by。在一阶近似下,log⁡∣det⁡((I+ε)W)∣=log⁡∣det⁡W∣+tr⁡ε\log|\det((\bI + \bepsilon)\bW)| = \log|\det\bW| + \tr\bepsilon,且 log⁡pi(yi+(εy)i)=log⁡pi(yi)−φi(yi)∑jεijyj\log p_i\bigl(y_i + (\bepsilon\by)_i\bigr) = \log p_i(y_i) - \varphi_i(y_i)\sum_j \varepsilon_{ij}y_j。因此

ℓ((I+ε)W)=ℓ(W)+⟨I−E[φ(y)y⊤], ε⟩+o(∥ε∥),(7.4)\ell\bigl((\bI + \bepsilon)\bW\bigr) = \ell(\bW) + \bigl\langle \bI - \E[\bphi(\by)\by^\top],\ \bepsilon \bigr\rangle + o(\|\bepsilon\|),\tag{7.4}

where ⟨B,ε⟩=tr⁡(B⊤ε)=∑ijbijεij\langle\bB, \bepsilon\rangle = \tr(\bB^\top\bepsilon) = \sum_{ij} b_{ij}\varepsilon_{ij} is the Frobenius inner product. The matrix I−E[φ(y)y⊤]\bI - \E[\bphi(\by)\by^\top] is the relative gradient; it depends on W\bW only through the outputs. By (7.4), among relative perturbations of a given Frobenius norm, the one that increases ℓ\ell fastest is proportional to it, which gives the update

其中 ⟨B,ε⟩=tr⁡(B⊤ε)=∑ijbijεij\langle\bB, \bepsilon\rangle = \tr(\bB^\top\bepsilon) = \sum_{ij} b_{ij}\varepsilon_{ij} 是 Frobenius 内积。矩阵 I−E[φ(y)y⊤]\bI - \E[\bphi(\by)\by^\top] 称为相对梯度,它只通过输出依赖于 W\bW。由 (7.4),在 Frobenius 范数给定的所有相对扰动中,使 ℓ\ell 增加最快的扰动与它成正比,由此得到更新规则

W←W+μ(I−E[φ(y) y⊤])W.(7.5)\bW \leftarrow \bW + \mu\bigl(\bI - \E[\bphi(\by)\,\by^\top]\bigr)\bW.\tag{7.5}

Amari, Cichocki and Yang (1996) reached the same rule as a natural gradient, a steepest-ascent direction for a geometry adapted to the problem; Amari (1998) develops the idea in general. On the group of invertible matrices, measure a small change dWd\bW by the size of the relative change, ∥dW W−1∥F\|d\bW\,\bW^{-1}\|_F. This metric is invariant under right multiplication, W→WB\bW \to \bW\bB, because (dW B)(WB)−1=dW W−1(d\bW\,\bB)(\bW\bB)^{-1} = d\bW\,\bW^{-1}; right multiplication is the natural symmetry of the problem, since y=Wx=(WB)(B−1x)\by = \bW\bx = (\bW\bB)(\bB^{-1}\bx). To find the steepest direction, maximize the first-order change ⟨∇ℓ,dW⟩\langle\nabla\ell, d\bW\rangle subject to ∥dW W−1∥F=δ\|d\bW\,\bW^{-1}\|_F = \delta. With dW=εWd\bW = \bepsilon\bW the objective is ⟨∇ℓ W⊤,ε⟩\langle\nabla\ell\,\bW^\top, \bepsilon\rangle under ∥ε∥F=δ\|\bepsilon\|_F = \delta, maximized by ε∝∇ℓ W⊤\bepsilon \propto \nabla\ell\,\bW^\top. The steepest direction is therefore ∇ℓ(W) W⊤W\nabla\ell(\bW)\,\bW^\top\bW, and by (7.2)

Amari、Cichocki 与 Yang(1996)以自然梯度的形式得到了同一规则:它是在适合本问题的几何下的最速上升方向;Amari(1998)对这一思想作了一般性的阐述。在可逆矩阵构成的群上,用相对变化的大小 ∥dW W−1∥F\|d\bW\,\bW^{-1}\|_F 来度量小变化 dWd\bW。这个度量在右乘 W→WB\bW \to \bW\bB 下不变,因为 (dW B)(WB)−1=dW W−1(d\bW\,\bB)(\bW\bB)^{-1} = d\bW\,\bW^{-1};而右乘正是本问题的自然对称性,因为 y=Wx=(WB)(B−1x)\by = \bW\bx = (\bW\bB)(\bB^{-1}\bx)。为求最速方向,在约束 ∥dW W−1∥F=δ\|d\bW\,\bW^{-1}\|_F = \delta 下最大化一阶变化量 ⟨∇ℓ,dW⟩\langle\nabla\ell, d\bW\rangle。令 dW=εWd\bW = \bepsilon\bW,目标变为在 ∥ε∥F=δ\|\bepsilon\|_F = \delta 下最大化 ⟨∇ℓ W⊤,ε⟩\langle\nabla\ell\,\bW^\top, \bepsilon\rangle,最优解为 ε∝∇ℓ W⊤\bepsilon \propto \nabla\ell\,\bW^\top。因此最速方向是 ∇ℓ(W) W⊤W\nabla\ell(\bW)\,\bW^\top\bW,再由 (7.2) 得

∇ℓ(W) W⊤W=(W−⊤−E[φ(y)x⊤])W⊤W=(I−E[φ(y)y⊤])W,\nabla\ell(\bW)\,\bW^\top\bW = \bigl(\bW^{-\top} - \E[\bphi(\by)\bx^\top]\bigr)\bW^\top\bW = \bigl(\bI - \E[\bphi(\by)\by^\top]\bigr)\bW,

the direction of (7.5). It is still an ascent direction, because ⟨∇ℓ,∇ℓ W⊤W⟩=∥∇ℓ W⊤∥F2≥0\langle\nabla\ell, \nabla\ell\,\bW^\top\bW\rangle = \|\nabla\ell\,\bW^\top\|_F^2 \ge 0, and it vanishes exactly where the ordinary gradient does. It needs no inverse. Its online form, which uses one sample at a time, is W←W+μt(I−φ(y(t)) y(t)⊤)W\bW \leftarrow \bW + \mu_t\bigl(\bI - \bphi(\by(t))\,\by(t)^\top\bigr)\bW with y(t)=Wx(t)\by(t) = \bW\bx(t).

这正是 (7.5) 的方向。它仍是上升方向,因为 ⟨∇ℓ,∇ℓ W⊤W⟩=∥∇ℓ W⊤∥F2≥0\langle\nabla\ell, \nabla\ell\,\bW^\top\bW\rangle = \|\nabla\ell\,\bW^\top\|_F^2 \ge 0;它为零的位置与普通梯度完全相同;并且它不需要求逆。它的在线形式每次只用一个样本:W←W+μt(I−φ(y(t)) y(t)⊤)W\bW \leftarrow \bW + \mu_t\bigl(\bI - \bphi(\by(t))\,\by(t)^\top\bigr)\bW,其中 y(t)=Wx(t)\by(t) = \bW\bx(t)。

7.4 Equivariance等变性

Multiplying (7.5) on the right by A\bA removes the mixing matrix from the dynamics altogether.

把 (7.5) 右乘 A\bA,混合矩阵就从动力学中完全消失了。

Proposition 7.1 (equivariance)命题 7.1(等变性)

Let W0,W1,…\bW_0, \bW_1, \dots be produced by (7.5) with step sizes μk\mu_k, the expectation being replaced by an average over the observed samples x(t)=As(t)\bx(t) = \bA\bs(t) (all of them in batch mode, or the current one in online mode). Then the global matrices Pk=WkA\bP_k = \bW_k\bA satisfy

设 W0,W1,…\bW_0, \bW_1, \dots 由 (7.5) 以步长 μk\mu_k 生成,其中期望换成对观测样本 x(t)=As(t)\bx(t) = \bA\bs(t) 的平均(批量模式下对全部样本平均,在线模式下只用当前样本)。则全局矩阵 Pk=WkA\bP_k = \bW_k\bA 满足

Pk+1=Pk+μk(I−E^[φ(Pks)(Pks)⊤])Pk,(7.6)\bP_{k+1} = \bP_k + \mu_k\bigl(\bI - \hat\E[\bphi(\bP_k\bs)(\bP_k\bs)^\top]\bigr)\bP_k,\tag{7.6}

a recursion that involves A\bA only through the starting point P0=W0A\bP_0 = \bW_0\bA. In particular, two mixing matrices A\bA and A′\bA' produce identical sequences of global matrices if the algorithm is started at W0\bW_0 and at W0′=W0AA′−1\bW_0' = \bW_0\bA\bA'^{-1}, respectively.

这个递推只通过起点 P0=W0A\bP_0 = \bW_0\bA 涉及 A\bA。特别地,对两个混合矩阵 A\bA 与 A′\bA',若算法分别从 W0\bW_0 与 W0′=W0AA′−1\bW_0' = \bW_0\bA\bA'^{-1} 出发,则二者产生完全相同的全局矩阵序列。

Proof.证明

The outputs are y(t)=Wkx(t)=WkAs(t)=Pks(t)\by(t) = \bW_k\bx(t) = \bW_k\bA\bs(t) = \bP_k\bs(t). Multiply (7.5) on the right by A\bA. For the second claim, W0′A′=W0A\bW_0'\bA' = \bW_0\bA, so both recursions start from the same P0\bP_0 and use the same sources.

输出为 y(t)=Wkx(t)=WkAs(t)=Pks(t)\by(t) = \bW_k\bx(t) = \bW_k\bA\bs(t) = \bP_k\bs(t)。把 (7.5) 右乘 A\bA 即得。对第二个结论,W0′A′=W0A\bW_0'\bA' = \bW_0\bA,所以两个递推从同一个 P0\bP_0 出发,并且使用相同的源。

The algorithm sees only the sources and its current global matrix. The speed of convergence, the attained accuracy and the stability of each separating point are the same for every invertible A\bA; they are properties of the source distributions, the nonlinearities, the step sizes and the starting point P0\bP_0. Cardoso and Laheld (1996) call algorithms with this property equivariant. (7.3) shows that plain gradient ascent is not equivariant. Figure 7.1图 7.1(a) compares the two on the same sources, started from the same P0\bP_0, for three mixing matrices with condition numbers 1, 10 and 100: the three natural-gradient curves coincide, while the ordinary gradient slows down with the conditioning.

算法“看到”的只有源和它当前的全局矩阵。收敛速度、所达到的精度以及各分离点的稳定性,对每个可逆的 A\bA 都一样;它们只取决于源分布、非线性函数、步长以及起点 P0\bP_0。Cardoso 与 Laheld(1996)把具有这一性质的算法称为等变算法。由 (7.3) 可见,普通梯度上升不是等变的。Figure 7.1图 7.1(a)在同一组源上、从同一个 P0\bP_0 出发,对条件数分别为 1、10、100 的三个混合矩阵比较了两种算法:三条自然梯度曲线完全重合,而普通梯度随条件数变差而变慢。

Two log-scale plots of the largest relative interference against iteration. Left: three natural-gradient runs with mixing matrices of condition number 1, 10 and 100 lie on one curve that drops to about 0.003, while ordinary-gradient runs decrease slowly for condition number 1 and stay flat near 0.4 for 10 and 100. Right: runs started next to the separating point; with matched nonlinearities the interference stays near 0.01, with mismatched ones it grows to 1.
Figure 7.1. Dynamics of batch ICA on T=20000T = 20000 samples, measured by the largest relative interference max⁡i≠j∣pij/pii∣\max_{i \ne j}|p_{ij}/p_{ii}| of the global matrix. (a) Two Laplace sources, φ=tanh⁡\varphi = \tanh, μ=0.2\mu = 0.2, the same P0\bP_0 and three mixing matrices with condition numbers c=1,10,100c = 1, 10, 100. The natural gradient ∇~\tilde\nabla gives the same curve for all three (markers: c=10,100c = 10, 100); the ordinary gradient ∇\nabla depends on cc. (b) Runs started at the separating point plus a perturbation of size 0.01, μ=0.1\mu = 0.1: matched nonlinearities (y3y^3 for uniform sources, κ<0\kappa < 0; tanh⁡\tanh for Laplace sources, κ>0\kappa > 0) stay at the finite-sample error level, mismatched ones move away to a non-separating point.图 7.1 批量 ICA 在 T=20000T = 20000 个样本上的动态,用全局矩阵的最大相对干扰 max⁡i≠j∣pij/pii∣\max_{i \ne j}|p_{ij}/p_{ii}| 来度量。(a)两个拉普拉斯源,φ=tanh⁡\varphi = \tanh,μ=0.2\mu = 0.2,相同的 P0\bP_0,三个混合矩阵的条件数为 c=1,10,100c = 1, 10, 100。自然梯度 ∇~\tilde\nabla 对三者给出同一条曲线(标记为 c=10,100c = 10, 100 的结果);普通梯度 ∇\nabla 则依赖于 cc。(b)从分离点加上大小为 0.01 的扰动出发,μ=0.1\mu = 0.1:非线性函数匹配时(均匀源 κ<0\kappa < 0 用 y3y^3;拉普拉斯源 κ>0\kappa > 0 用 tanh⁡\tanh),干扰停留在有限样本误差的水平;不匹配时,算法离开分离点,收敛到一个不分离的点。

Two caveats. Equivariance is a property of the noiseless model: with x=As+n\bx = \bA\bs + \bn the outputs are Ps+Wn\bP\bs + \bW\bn, and the noise term depends on W\bW and hence on A\bA (Section 11.2第 11.2 节). And it says nothing about the starting point: with W0=I\bW_0 = \bI the algorithm starts at P0=A\bP_0 = \bA, which is far from separation when A\bA is ill-conditioned. Whitening first starts it at the orthogonal matrix P0=A~\bP_0 = \tilde\bA instead, which is one good reason to whiten the data before iterating. Because performance does not depend on A\bA, the statistical analysis of Chapter 10第 10 章 can assume A=I\bA = \bI without loss of generality.

有两点需要注意。其一,等变性只对无噪声模型成立:若 x=As+n\bx = \bA\bs + \bn,输出为 Ps+Wn\bP\bs + \bW\bn,噪声项依赖于 W\bW,从而依赖于 A\bA(Section 11.2第 11.2 节)。其二,等变性不涉及起点:取 W0=I\bW_0 = \bI 时,算法从 P0=A\bP_0 = \bA 出发,A\bA 病态时这个起点离分离很远。先做白化,起点就变成正交矩阵 P0=A~\bP_0 = \tilde\bA,这是迭代之前先白化数据的一个充分理由。由于性能与 A\bA 无关,Chapter 10第 10 章的统计分析可以不失一般性地假设 A=I\bA = \bI。

7.5 Local stability of the separating points分离点的局部稳定性

For a small step size, the batch iteration follows, and the online iteration follows on average, the ordinary differential equation dW/dt=(I−E[φ(y)y⊤])Wd\bW/dt = (\bI - \E[\bphi(\by)\by^\top])\bW obtained by letting μ→0\mu \to 0. By equivariance, as in (7.6), in global coordinates it reads

步长很小时,批量迭代跟随、在线迭代平均意义下跟随令 μ→0\mu \to 0 得到的常微分方程 dW/dt=(I−E[φ(y)y⊤])Wd\bW/dt = (\bI - \E[\bphi(\by)\by^\top])\bW。由等变性,与 (7.6) 一样,它在全局坐标下写作

dPdt=(I−E[φ(Ps)(Ps)⊤])P.(7.7)\frac{d\bP}{dt} = \bigl(\bI - \E[\bphi(\bP\bs)(\bP\bs)^\top]\bigr)\bP.\tag{7.7}

Its equilibria are the solutions of the estimating equations E[φ(y)y⊤]=I\E[\bphi(\by)\by^\top] = \bI. Consider a separating one, P=ΠD\bP = \bPi\bD; after relabelling the sources, Π=I\bPi = \bI. The off-diagonal equations hold automatically, and the diagonal ones ask for E[φi(disi) disi]=1\E[\varphi_i(d_is_i)\,d_is_i] = 1; we assume that this equation has a solution di≠0d_i \ne 0 for every ii, as it does for all nonlinearities in this chapter. Since the sources are defined only up to scale (Proposition 1.3命题 1.3), we may replace sis_i by disid_is_i. The separating point is then P=I\bP = \bI, and the sources satisfy the normalization

它的平衡点就是估计方程 E[φ(y)y⊤]=I\E[\bphi(\by)\by^\top] = \bI 的解。考虑一个分离型平衡点 P=ΠD\bP = \bPi\bD;重新给源编号后可设 Π=I\bPi = \bI。非对角方程自动成立,对角方程要求 E[φi(disi) disi]=1\E[\varphi_i(d_is_i)\,d_is_i] = 1;我们假设对每个 ii 这个方程都有解 di≠0d_i \ne 0,本章出现的所有非线性函数都满足这一点。由于源只在尺度意义下确定(Proposition 1.3命题 1.3),可以用 disid_is_i 代替 sis_i。这样分离点就是 P=I\bP = \bI,而各源满足归一化条件

E[φi(si) si]=1,i=1,…,n.(7.8)\E[\varphi_i(s_i)\,s_i] = 1, \qquad i = 1, \dots, n.\tag{7.8}

The variances σi2=E[si2]\sigma_i^2 = \E[s_i^2] are now set by the nonlinearities and generally differ from 1. Define

此时方差 σi2=E[si2]\sigma_i^2 = \E[s_i^2] 由非线性函数决定,一般不等于 1。定义

ki=E[φi′(si)],mi=E[φi′(si) si2],σi2=E[si2].k_i = \E[\varphi_i'(s_i)], \qquad m_i = \E[\varphi_i'(s_i)\,s_i^2], \qquad \sigma_i^2 = \E[s_i^2].

Theorem 7.2 (local stability)定理 7.2(局部稳定性)

Assume the normalization (7.8), continuously differentiable nonlinearities φi\varphi_i, and enough integrability to differentiate the expectations below under the integral sign. Then the separating point P=I\bP = \bI of (7.7) is asymptotically stable if, for all ii and all j≠ij \ne i,

设归一化条件 (7.8) 成立,非线性函数 φi\varphi_i 连续可微,且可积性足以在积分号下对下列期望求导。则当对所有 ii 和所有 j≠ij \ne i 下列条件成立时,(7.7) 的分离点 P=I\bP = \bI 渐近稳定:

(i)  1+mi>0,(ii)  ki>0,(iii)  σi2σj2 kikj>1.\text{(i)}\ \ 1 + m_i > 0, \qquad \text{(ii)}\ \ k_i > 0, \qquad \text{(iii)}\ \ \sigma_i^2\sigma_j^2\,k_ik_j > 1.

It is unstable if 1+mi<01 + m_i < 0 or ki<0k_i < 0 for some ii, or σi2σj2kikj<1\sigma_i^2\sigma_j^2k_ik_j < 1 for some pair i≠ji \ne j (Amari, Chen & Cichocki, 1997).

若对某个 ii 有 1+mi<01 + m_i < 0 或 ki<0k_i < 0,或对某一对 i≠ji \ne j 有 σi2σj2kikj<1\sigma_i^2\sigma_j^2k_ik_j < 1,则该分离点不稳定(Amari, Chen & Cichocki, 1997)。

Proof.证明

Write P=I+ε\bP = \bI + \bepsilon, so that yi=si+∑kεiksky_i = s_i + \sum_k \varepsilon_{ik}s_k and, to first order, φi(yi)=φi(si)+φi′(si)∑kεiksk\varphi_i(y_i) = \varphi_i(s_i) + \varphi_i'(s_i)\sum_k\varepsilon_{ik}s_k. For i≠ji \ne j,

记 P=I+ε\bP = \bI + \bepsilon,则 yi=si+∑kεiksky_i = s_i + \sum_k \varepsilon_{ik}s_k,并且在一阶近似下 φi(yi)=φi(si)+φi′(si)∑kεiksk\varphi_i(y_i) = \varphi_i(s_i) + \varphi_i'(s_i)\sum_k\varepsilon_{ik}s_k。对 i≠ji \ne j,

E[φi(yi) yj]=E[φi(si)sj]+∑lεjl E[φi(si)sl]+∑kεik E[φi′(si)sksj]+o(∥ε∥).\E[\varphi_i(y_i)\,y_j] = \E[\varphi_i(s_i)s_j] + \sum_l \varepsilon_{jl}\,\E[\varphi_i(s_i)s_l] + \sum_k \varepsilon_{ik}\,\E[\varphi_i'(s_i)s_ks_j] + o(\|\bepsilon\|).

By independence, zero means and (7.8), E[φi(si)sl]=δil\E[\varphi_i(s_i)s_l] = \delta_{il}, and E[φi′(si)sksj]\E[\varphi_i'(s_i)s_ks_j] vanishes unless k=jk = j, when it equals kiσj2k_i\sigma_j^2. Hence E[φi(yi)yj]=εji+kiσj2 εij+o(∥ε∥)\E[\varphi_i(y_i)y_j] = \varepsilon_{ji} + k_i\sigma_j^2\,\varepsilon_{ij} + o(\|\bepsilon\|). The same computation for i=ji = j gives E[φi(yi)yi]=1+(1+mi) εii+o(∥ε∥)\E[\varphi_i(y_i)y_i] = 1 + (1 + m_i)\,\varepsilon_{ii} + o(\|\bepsilon\|). Since I−E[φ(y)y⊤]\bI - \E[\bphi(\by)\by^\top] is itself of order ∥ε∥\|\bepsilon\|, multiplying it by P=I+ε\bP = \bI + \bepsilon changes it only at second order. The linearized flow therefore splits into the scalar equations dεii/dt=−(1+mi) εiid\varepsilon_{ii}/dt = -(1 + m_i)\,\varepsilon_{ii} and, for each pair i<ji < j, the 2×22 \times 2 systems

由独立性、零均值以及 (7.8),有 E[φi(si)sl]=δil\E[\varphi_i(s_i)s_l] = \delta_{il};而 E[φi′(si)sksj]\E[\varphi_i'(s_i)s_ks_j] 只在 k=jk = j 时不为零,此时等于 kiσj2k_i\sigma_j^2。因此 E[φi(yi)yj]=εji+kiσj2 εij+o(∥ε∥)\E[\varphi_i(y_i)y_j] = \varepsilon_{ji} + k_i\sigma_j^2\,\varepsilon_{ij} + o(\|\bepsilon\|)。对 i=ji = j 作同样的计算,得到 E[φi(yi)yi]=1+(1+mi) εii+o(∥ε∥)\E[\varphi_i(y_i)y_i] = 1 + (1 + m_i)\,\varepsilon_{ii} + o(\|\bepsilon\|)。由于 I−E[φ(y)y⊤]\bI - \E[\bphi(\by)\by^\top] 本身是 ∥ε∥\|\bepsilon\| 阶的,再乘以 P=I+ε\bP = \bI + \bepsilon 只带来二阶的改变。于是线性化的流分解为标量方程 dεii/dt=−(1+mi) εiid\varepsilon_{ii}/dt = -(1 + m_i)\,\varepsilon_{ii},以及对每一对 i<ji < j 的 2×22 \times 2 方程组

ddt(εijεji)=−(kiσj211kjσi2)(εijεji).(7.9)\frac{d}{dt}\begin{pmatrix}\varepsilon_{ij}\\ \varepsilon_{ji}\end{pmatrix} = -\begin{pmatrix} k_i\sigma_j^2 & 1\\ 1 & k_j\sigma_i^2\end{pmatrix}\begin{pmatrix}\varepsilon_{ij}\\ \varepsilon_{ji}\end{pmatrix}.\tag{7.9}

The 2×22 \times 2 matrix is symmetric, so its eigenvalues are real, and the pair is stable exactly when the matrix is positive definite: positive diagonal entries and determinant σi2σj2kikj−1>0\sigma_i^2\sigma_j^2k_ik_j - 1 > 0. Conversely, a negative diagonal entry or a negative determinant produces a negative eigenvalue of the matrix, that is, a growing mode. The linearization thus has only negative eigenvalues under (i)–(iii) and a positive one under any of the reversed inequalities; Lyapunov's linearization theorem gives both claims.

这个 2×22 \times 2 矩阵是对称的,特征值都是实数;这一对分量稳定,当且仅当该矩阵正定,即对角元为正且行列式 σi2σj2kikj−1>0\sigma_i^2\sigma_j^2k_ik_j - 1 > 0。反之,对角元为负或行列式为负都会使矩阵出现负特征值,也就是一个增长的模态。因此在条件(i)–(iii)下线性化只有负特征值,而在任何一个反向不等式下都有正特征值;由 Lyapunov 线性化定理即得两个结论。

The conditions involve single sources and pairs of sources, never triples. With the normalization in force, write γi=kiσi2\gamma_i = k_i\sigma_i^2. Conditions (ii) and (iii) together say that γi>0\gamma_i > 0 and γiγj>1\gamma_i\gamma_j > 1 for all pairs. A simple sufficient condition is γi>1\gamma_i > 1 for every source; if two sources have γ<1\gamma < 1, the pair is unstable. For a Gaussian source, γi=1\gamma_i = 1 whatever the nonlinearity (Exercise 7.4习题 7.4), so a Gaussian source is always on the boundary; the next result shows that the true score puts every non-Gaussian source strictly inside.

这些条件只涉及单个源和源的两两组合,从不涉及三个源。在归一化条件下记 γi=kiσi2\gamma_i = k_i\sigma_i^2。条件(ii)与(iii)合起来就是:γi>0\gamma_i > 0,且对所有源对有 γiγj>1\gamma_i\gamma_j > 1。一个简单的充分条件是每个源都有 γi>1\gamma_i > 1;若有两个源的 γ<1\gamma < 1,则这一对不稳定。对高斯源,无论非线性函数取什么,都有 γi=1\gamma_i = 1(Exercise 7.4习题 7.4),所以高斯源总是处在边界上;下面的结果表明,用真实得分函数时,每个非高斯源都严格位于稳定区域之内。

Corollary 7.3 (the true score is stable)推论 7.3(真实得分函数总是稳定的)

Let each sis_i have a smooth density pip_i with finite Fisher information, let φi=ψi=−pi′/pi\varphi_i = \psi_i = -p_i'/p_i be its own score, and assume the boundary terms in the integrations by parts below vanish. Then (7.8) holds at the true scale, 1+mi=Var⁡(ψi(si) si)>01 + m_i = \Var(\psi_i(s_i)\,s_i) > 0, and γi=σi2 E[ψi(si)2]≥1\gamma_i = \sigma_i^2\,\E[\psi_i(s_i)^2] \ge 1, with equality only if sis_i is Gaussian. Consequently the separating point is asymptotically stable whenever at most one source is Gaussian.

设每个 sis_i 有光滑密度 pip_i 且 Fisher 信息有限,取 φi=ψi=−pi′/pi\varphi_i = \psi_i = -p_i'/p_i 为它自己的得分函数,并设下面分部积分中的边界项为零。则 (7.8) 在真实尺度下成立,1+mi=Var⁡(ψi(si) si)>01 + m_i = \Var(\psi_i(s_i)\,s_i) > 0,且 γi=σi2 E[ψi(si)2]≥1\gamma_i = \sigma_i^2\,\E[\psi_i(s_i)^2] \ge 1,等号仅当 sis_i 为高斯时成立。因此,只要至多一个源是高斯的,分离点就是渐近稳定的。

Proof.证明

Drop the index ii and use p′=−ψpp' = -\psi p. Integration by parts gives E[ψ(s)s]=−∫s p′(s) ds=∫p=1\E[\psi(s)s] = -\int s\,p'(s)\,ds = \int p = 1 and k=∫ψ′p=−∫ψp′=E[ψ2]k = \int \psi' p = -\int \psi p' = \E[\psi^2]. Next, m=∫ψ′s2p=−∫ψ (2sp+s2p′)=−2+E[ψ2s2]m = \int \psi' s^2 p = -\int \psi\,(2sp + s^2p') = -2 + \E[\psi^2s^2], so 1+m=E[(ψs)2]−(E[ψs])2=Var⁡(ψ(s)s)1 + m = \E[(\psi s)^2] - (\E[\psi s])^2 = \Var(\psi(s)s). This variance vanishes only if ψ(s)s=1\psi(s)s = 1 almost surely, which would force p(s)∝1/∣s∣p(s) \propto 1/|s|, not a density. Finally, by the Cauchy–Schwarz inequality, 1=(E[ψ(s)s])2≤E[ψ2] E[s2]=γ1 = (\E[\psi(s)s])^2 \le \E[\psi^2]\,\E[s^2] = \gamma, with equality only if ψ(s)=cs\psi(s) = cs, that is, pp Gaussian. If at most one source is Gaussian, every pair has γiγj>1\gamma_i\gamma_j > 1, and all ki=γi/σi2>0k_i = \gamma_i/\sigma_i^2 > 0; Theorem 7.2定理 7.2 applies.

略去下标 ii,并利用 p′=−ψpp' = -\psi p。分部积分给出 E[ψ(s)s]=−∫s p′(s) ds=∫p=1\E[\psi(s)s] = -\int s\,p'(s)\,ds = \int p = 1,以及 k=∫ψ′p=−∫ψp′=E[ψ2]k = \int \psi' p = -\int \psi p' = \E[\psi^2]。其次,m=∫ψ′s2p=−∫ψ (2sp+s2p′)=−2+E[ψ2s2]m = \int \psi' s^2 p = -\int \psi\,(2sp + s^2p') = -2 + \E[\psi^2s^2],所以 1+m=E[(ψs)2]−(E[ψs])2=Var⁡(ψ(s)s)1 + m = \E[(\psi s)^2] - (\E[\psi s])^2 = \Var(\psi(s)s)。这个方差为零仅当几乎处处有 ψ(s)s=1\psi(s)s = 1,这将迫使 p(s)∝1/∣s∣p(s) \propto 1/|s|,而它不是概率密度。最后,由 Cauchy–Schwarz 不等式,1=(E[ψ(s)s])2≤E[ψ2] E[s2]=γ1 = (\E[\psi(s)s])^2 \le \E[\psi^2]\,\E[s^2] = \gamma,等号仅当 ψ(s)=cs\psi(s) = cs,即 pp 为高斯时成立。若至多一个源是高斯的,则每一对都有 γiγj>1\gamma_i\gamma_j > 1,且所有 ki=γi/σi2>0k_i = \gamma_i/\sigma_i^2 > 0,于是可以应用Theorem 7.2定理 7.2。

Rescaling a variable by cc divides its Fisher information by c2c^2, so γi=σi2 E[ψi(si)2]\gamma_i = \sigma_i^2\,\E[\psi_i(s_i)^2] is the Fisher information Ji\mathcal{J}_i of the unit-variance source si/σis_i/\sigma_i. The quantity that decides stability under the true model is the same one that limits the attainable accuracy in Theorem 10.10定理 10.10.

把变量乘以 cc,其 Fisher 信息就除以 c2c^2,所以 γi=σi2 E[ψi(si)2]\gamma_i = \sigma_i^2\,\E[\psi_i(s_i)^2] 恰好是单位方差源 si/σis_i/\sigma_i 的 Fisher 信息 Ji\mathcal{J}_i。在真实模型下决定稳定性的量,与Theorem 10.10定理 10.10中限制可达精度的量是同一个。

With a misspecified model the conditions can fail. Table 7.1表 7.1 lists γ\gamma for three common nonlinearities, computed by numerical quadrature after solving (7.8); in every case 1+m>11 + m > 1, so condition (i) holds. With φ=tanh⁡\varphi = \tanh, a pair of Laplace sources is stable (1.4142>11.414^2 > 1) but a pair of uniform sources is not (0.7622≈0.580.762^2 \approx 0.58). A uniform source paired with a Laplace source is still stable, since 0.762×1.414≈1.080.762 \times 1.414 \approx 1.08, but only barely: the smallest eigenvalue of the linearization is 0.0380.038, against 0.4140.414 for two Laplace sources, so convergence near the solution is about ten times slower. For φ(y)=y3\varphi(y) = y^3 one finds γ=3/(3+κ)\gamma = 3/(3 + \kappa) exactly (Exercise 7.2习题 7.2), so the cubic nonlinearity favours sub-Gaussian sources. A finite-difference Jacobian of the mean flow, computed with the same quadrature, reproduces the eigenvalues predicted by (7.9) to five decimal places in all these cases.

模型设错时,这些条件可能不成立。Table 7.1表 7.1列出了三种常用非线性函数下的 γ\gamma 值,先解 (7.8),再用数值积分算出;所有情形下都有 1+m>11 + m > 1,所以条件(i)成立。取 φ=tanh⁡\varphi = \tanh 时,一对拉普拉斯源是稳定的(1.4142>11.414^2 > 1),一对均匀源则不稳定(0.7622≈0.580.762^2 \approx 0.58)。均匀源与拉普拉斯源配对时仍然稳定,因为 0.762×1.414≈1.080.762 \times 1.414 \approx 1.08,但只是勉强稳定:线性化的最小特征值为 0.0380.038,而两个拉普拉斯源时为 0.4140.414,所以在解附近的收敛要慢约十倍。对 φ(y)=y3\varphi(y) = y^3,可以精确算出 γ=3/(3+κ)\gamma = 3/(3 + \kappa)(Exercise 7.2习题 7.2),所以三次非线性偏向亚高斯源。在上述所有情形中,用同样的数值积分计算的平均流有限差分雅可比矩阵,其特征值与 (7.9) 的预测在小数点后五位一致。

Table 7.1. Values of γ=kσ2\gamma = k\sigma^2 at the normalized scale for unit-variance sources (κ\kappa is the kurtosis). A pair i,ji, j is stable when γi,γj>0\gamma_i, \gamma_j > 0 and γiγj>1\gamma_i\gamma_j > 1. The Gaussian column equals 1 for every nonlinearity.表 7.1 归一化尺度下的 γ=kσ2\gamma = k\sigma^2 值(源为单位方差,κ\kappa 为峭度)。当 γi,γj>0\gamma_i, \gamma_j > 0 且 γiγj>1\gamma_i\gamma_j > 1 时,源对 i,ji, j 稳定。对任何非线性函数,高斯一列都等于 1。
Nonlinearity非线性函数uniform (κ=−1.2\kappa = -1.2)均匀(κ=−1.2\kappa = -1.2)Gaussian高斯logistic (κ=1.2\kappa = 1.2)logistic(κ=1.2\kappa = 1.2)Laplace (κ=3\kappa = 3)拉普拉斯(κ=3\kappa = 3)
φ(y)=tanh⁡(y)\varphi(y) = \tanh(y)0.7620.762111.1341.1341.4141.414
φ(y)=tanh⁡(y/2)\varphi(y) = \tanh(y/2)0.8460.846111.0971.0971.2691.269
φ(y)=y3\varphi(y) = y^31.6671.667110.7140.7140.5000.500

The following script implements batch natural-gradient ICA and runs it from W0=I\bW_0 = \bI on two uniform and on two Laplace sources, with φ=tanh⁡\varphi = \tanh, with φ(y)=y3\varphi(y) = y^3, and with the extended Infomax rule of Section 7.7第 7.7 节. The printed interference is the largest ratio, over the rows of P=WA\bP = \bW\bA, of the second-largest to the largest entry in absolute value; it is 0 for perfect separation and near 1 for an even mixture.

下面的脚本实现了批量自然梯度 ICA,并从 W0=I\bW_0 = \bI 出发,分别在两个均匀源和两个拉普拉斯源上运行,非线性函数依次取 φ=tanh⁡\varphi = \tanh、φ(y)=y3\varphi(y) = y^3 以及Section 7.7第 7.7 节的扩展 Infomax 规则。打印的干扰值是:在 P=WA\bP = \bW\bA 的各行中,绝对值第二大的元素与最大元素之比的最大值;完全分离时为 0,均匀混合时接近 1。

import numpy as np

def natural_gradient_ica(X, phi, mu=0.1, iters=500):
    """Batch natural-gradient ICA: W <- W + mu (I - E[phi(y) y^T]) W."""
    n, T = X.shape
    W = np.eye(n)
    for _ in range(iters):
        Y = W @ X
        W += mu * (np.eye(n) - phi(Y) @ Y.T / T) @ W
    return W

def extended_infomax(X, mu=0.1, iters=500):
    """phi_i(y) = y + k_i tanh(y), k_i = +1 or -1 set by the switching rule."""
    n, T = X.shape
    W = np.eye(n)
    for _ in range(iters):
        Y = W @ X
        k = np.sign(np.mean(np.cosh(Y) ** -2, axis=1) * np.mean(Y ** 2, axis=1)
                    - np.mean(np.tanh(Y) * Y, axis=1))
        W += mu * (np.eye(n) - (Y + k[:, None] * np.tanh(Y)) @ Y.T / T) @ W
    return W

def interference(P):
    """Max over rows of P of second-largest / largest |entry|; 0 = separated."""
    R = np.sort(np.abs(P), axis=1)
    return np.max(R[:, -2] / R[:, -1])

rng = np.random.default_rng(0)
T = 20000
A = np.array([[1.0, 0.6],
              [0.4, 1.0]])
sources = {"uniform": rng.uniform(-np.sqrt(3), np.sqrt(3), (2, T)),   # kappa = -1.2
           "Laplace": rng.laplace(0, 1 / np.sqrt(2), (2, T))}        # kappa = +3
methods = {"tanh": lambda X: natural_gradient_ica(X, np.tanh),
           "cube": lambda X: natural_gradient_ica(X, lambda y: y ** 3),
           "extended": extended_infomax}
for sname, S in sources.items():
    for mname, method in methods.items():
        W = method(A @ S)
        print(f"{sname:8s} {mname:9s} interference = {interference(W @ A):.3f}")

The output is

输出为

uniform  tanh      interference = 0.987
uniform  cube      interference = 0.010
uniform  extended  interference = 0.012
Laplace  tanh      interference = 0.004
Laplace  cube      interference = 0.943
Laplace  extended  interference = 0.005

exactly the pattern of Table 7.1表 7.1: tanh⁡\tanh fails on the uniform pair and y3y^3 on the Laplace pair, where they converge to points whose outputs are roughly even mixtures of the two sources, while each succeeds on the other pair. The residual interference of about 0.01 for the successful runs is estimation error from the finite sample (Chapter 10第 10 章). Figure 7.1图 7.1(b) shows the same dichotomy as a dynamical statement: started next to the separating point, the mismatched runs move away from it.

这恰好是Table 7.1表 7.1所预言的模式:tanh⁡\tanh 在均匀源对上失败,y3y^3 在拉普拉斯源对上失败,它们收敛到的点的输出大致是两个源的均匀混合;而各自在另一对源上都成功。成功运行中约 0.01 的残余干扰是有限样本带来的估计误差(Chapter 10第 10 章)。Figure 7.1图 7.1(b)以动力学的语言展示了同一个二分现象:从分离点附近出发,不匹配的运行会离开分离点。

7.6 InfomaxInfomax 算法

Bell and Sejnowski (1995) arrived at the same family of algorithms from a different principle. Pass the outputs yi=wi⊤xy_i = \bw_i^\top\bx through the logistic function g(y)=1/(1+e−y)g(y) = 1/(1 + e^{-y}) and choose W\bW to maximize the joint entropy of u=(g(y1),…,g(yn))⊤\bu = (g(y_1), \dots, g(y_n))^\top, the information that the bounded outputs carry about the input. Since gg is increasing and y=Wx\by = \bW\bx, the change-of-variables formula and Proposition 2.13命题 2.13 give

Bell 与 Sejnowski(1995)从另一个原理出发得到了同一族算法。把输出 yi=wi⊤xy_i = \bw_i^\top\bx 通过 logistic 函数 g(y)=1/(1+e−y)g(y) = 1/(1 + e^{-y}),再选取 W\bW 使 u=(g(y1),…,g(yn))⊤\bu = (g(y_1), \dots, g(y_n))^\top 的联合熵最大,也就是使有界输出所携带的关于输入的信息最大。由于 gg 单调递增且 y=Wx\by = \bW\bx,由变量替换公式和Proposition 2.13命题 2.13得

H(u)=H(x)+log⁡∣det⁡W∣+∑i=1nE[log⁡g′(yi)].H(\bu) = H(\bx) + \log|\det\bW| + \sum_{i=1}^n \E\bigl[\log g'(y_i)\bigr].

Up to the constant H(x)H(\bx) this is the objective ℓ(W)\ell(\bW) of (7.1) with model densities pi=g′p_i = g', the logistic density: Infomax is maximum likelihood with a logistic source model (Cardoso, 1997; Proposition 6.5命题 6.5). Since g′=g(1−g)g' = g(1 - g), the score of this model is φ(y)=2g(y)−1=tanh⁡(y/2)\varphi(y) = 2g(y) - 1 = \tanh(y/2) (Exercise 7.1习题 7.1). Bell and Sejnowski's gradient is ∇H(u)=W−⊤+E[(1−2g(y))x⊤]\nabla H(\bu) = \bW^{-\top} + \E[(\mathbf{1} - 2\mathbf{g}(\by))\bx^\top], where 1\mathbf{1} is the vector of ones and g\mathbf{g} acts componentwise; this is (7.2) with φ=2g−1\bphi = 2\mathbf{g} - \mathbf{1}. They also adapt a bias w0\bw_0 in y=Wx+w0\by = \bW\bx + \bw_0, which we omit for centered data. In practice the algorithm is usually run in its natural-gradient form.

除去常数 H(x)H(\bx),这正是 (7.1) 中的目标函数 ℓ(W)\ell(\bW),其模型密度为 pi=g′p_i = g',即 logistic 密度:Infomax 就是以 logistic 分布为源模型的最大似然(Cardoso, 1997;Proposition 6.5命题 6.5)。由于 g′=g(1−g)g' = g(1 - g),这一模型的得分函数为 φ(y)=2g(y)−1=tanh⁡(y/2)\varphi(y) = 2g(y) - 1 = \tanh(y/2)(Exercise 7.1习题 7.1)。Bell 与 Sejnowski 给出的梯度是 ∇H(u)=W−⊤+E[(1−2g(y))x⊤]\nabla H(\bu) = \bW^{-\top} + \E[(\mathbf{1} - 2\mathbf{g}(\by))\bx^\top],其中 1\mathbf{1} 是全 1 向量,g\mathbf{g} 逐分量作用;这就是取 φ=2g−1\bphi = 2\mathbf{g} - \mathbf{1} 时的 (7.2)。他们还在 y=Wx+w0\by = \bW\bx + \bw_0 中自适应调整偏置 w0\bw_0;对已中心化的数据,这里略去偏置。实践中通常使用它的自然梯度形式。

Algorithm 7.4 (natural-gradient Infomax)算法 7.4(自然梯度 Infomax)

  1. Center the data; optionally whiten them, z=Vx\bz = \bV\bx, so that the iteration starts from an orthogonal global matrix.
  2. Set W=I\bW = \bI and choose a step size μ\mu and a block size BB (B=TB = T gives the batch algorithm).
  3. For each block of BB samples, compute y=Wx\by = \bW\bx for the block and update W←W+μ(I−E^B[tanh⁡(y/2) y⊤])W\bW \leftarrow \bW + \mu\bigl(\bI - \hat\E_B[\tanh(\by/2)\,\by^\top]\bigr)\bW, where E^B\hat\E_B averages over the block.
  4. After each pass through the data, reduce μ\mu if the change of W\bW has grown; stop when the change falls below a tolerance.
  5. Return W\bW (or WV\bW\bV if the data were whitened).
  1. 中心化数据;可以选择先白化 z=Vx\bz = \bV\bx,使迭代从正交的全局矩阵出发。
  2. 令 W=I\bW = \bI,选取步长 μ\mu 与块大小 BB(B=TB = T 即批量算法)。
  3. 对每个含 BB 个样本的数据块,计算该块的 y=Wx\by = \bW\bx,并更新 W←W+μ(I−E^B[tanh⁡(y/2) y⊤])W\bW \leftarrow \bW + \mu\bigl(\bI - \hat\E_B[\tanh(\by/2)\,\by^\top]\bigr)\bW,其中 E^B\hat\E_B 表示块内平均。
  4. 每遍历一次数据后,若 W\bW 的变化量增大,就减小 μ\mu;当变化量低于容差时停止。
  5. 返回 W\bW(若数据已白化,返回 WV\bW\bV)。

The second row of Table 7.1表 7.1 describes this algorithm. Its separating points are stable for the usual super-Gaussian laws, such as the Laplace and logistic laws, consistent with the success of Infomax on speech and on many EEG and fMRI sources, which tend to be super-Gaussian. The exact criterion is γiγj>1\gamma_i\gamma_j > 1, not the sign of the kurtosis: a bimodal law with rare large values can have positive kurtosis and still γ<1\gamma < 1. A pair of uniform sources, with 0.8462≈0.72<10.846^2 \approx 0.72 < 1, is unstable: Infomax cannot separate two sub-Gaussian sources of this kind, however long it runs.

Table 7.1表 7.1的第二行描述的正是这个算法。对拉普拉斯、logistic 这类常见的超高斯分布,它的分离点是稳定的,这与 Infomax 在语音以及许多 EEG 和 fMRI 源上的成功相符,因为这些源往往是超高斯的。准确的判据是 γiγj>1\gamma_i\gamma_j > 1,而不是峭度的符号:一个带有罕见大值的双峰分布可以峭度为正,却仍有 γ<1\gamma < 1。一对均匀源满足 0.8462≈0.72<10.846^2 \approx 0.72 < 1,是不稳定的:无论运行多久,Infomax 都无法分离两个这类亚高斯源。

7.7 Extended Infomax扩展 Infomax

Lee, Girolami and Sejnowski (1999) let each output choose between a super-Gaussian and a sub-Gaussian model. Their update is

Lee、Girolami 与 Sejnowski(1999)让每个输出在超高斯模型与亚高斯模型之间自行选择。他们的更新规则是

W←W+μ(I−E[Ktanh⁡(y) y⊤+yy⊤])W,K=diag⁡(η1,…,ηn),ηi∈{−1,+1},(7.10)\bW \leftarrow \bW + \mu\bigl(\bI - \E\bigl[\bK\tanh(\by)\,\by^\top + \by\by^\top\bigr]\bigr)\bW, \qquad \bK = \diag(\eta_1, \dots, \eta_n),\quad \eta_i \in \{-1, +1\},\tag{7.10}

that is, φi(y)=y+ηitanh⁡(y)\varphi_i(y) = y + \eta_i\tanh(y). With ηi=−1\eta_i = -1 this is the score of the bimodal, sub-Gaussian density 12N(1,1)+12N(−1,1)\tfrac12\Ncal(1, 1) + \tfrac12\Ncal(-1, 1); with ηi=+1\eta_i = +1 it is the score of the super-Gaussian density proportional to e−y2/2/cosh⁡ye^{-y^2/2}/\cosh y. Lee et al. motivate this branch with the density proportional to pG(y)sech⁡2yp_G(y)\operatorname{sech}^2 y, where pGp_G is the standard Gaussian density; the score of that density is y+2tanh⁡yy + 2\tanh y, and the rule they use, y+tanh⁡yy + \tanh y, is the score of the density above. The sign is chosen by the switching rule

也就是 φi(y)=y+ηitanh⁡(y)\varphi_i(y) = y + \eta_i\tanh(y)。ηi=−1\eta_i = -1 时,它是双峰亚高斯密度 12N(1,1)+12N(−1,1)\tfrac12\Ncal(1, 1) + \tfrac12\Ncal(-1, 1) 的得分函数;ηi=+1\eta_i = +1 时,它是与 e−y2/2/cosh⁡ye^{-y^2/2}/\cosh y 成正比的超高斯密度的得分函数。Lee 等人用正比于 pG(y)sech⁡2yp_G(y)\operatorname{sech}^2 y 的密度(pGp_G 为标准高斯密度)来说明这一分支,但该密度的得分函数是 y+2tanh⁡yy + 2\tanh y;他们实际使用的 y+tanh⁡yy + \tanh y 是上述密度的得分函数。符号由切换规则决定:

ηi=sign⁡(E[sech⁡2(yi)] E[yi2]−E[tanh⁡(yi) yi]),(7.11)\eta_i = \sign\Bigl(\E\bigl[\operatorname{sech}^2(y_i)\bigr]\,\E\bigl[y_i^2\bigr] - \E\bigl[\tanh(y_i)\,y_i\bigr]\Bigr),\tag{7.11}

evaluated on the current outputs, in practice on each block or after each pass through the data. The rule is exactly the stability condition of Theorem 7.2定理 7.2 in disguise.

它在当前输出上估计,实践中在每个数据块上或每遍历一次数据后更新。这条规则其实就是Theorem 7.2定理 7.2中的稳定性条件换了个样子。

Proposition 7.5 (the switching rule ensures stability)命题 7.5(切换规则保证稳定)

Consider a separating point of (7.10), with the sources scaled as in (7.8). If every ηi\eta_i is given by (7.11) evaluated at the separated outputs yi=siy_i = s_i, and the expression inside the sign is nonzero, then γi>1\gamma_i > 1 and 1+mi>01 + m_i > 0 for every ii, so the separating point is asymptotically stable.

考虑 (7.10) 的一个分离点,源按 (7.8) 取尺度。若每个 ηi\eta_i 都由在分离输出 yi=siy_i = s_i 处计算的 (7.11) 给出,且符号函数内的表达式不为零,则对每个 ii 都有 γi>1\gamma_i > 1 和 1+mi>01 + m_i > 0,因此该分离点渐近稳定。

Proof.证明

With φi(y)=y+ηitanh⁡y\varphi_i(y) = y + \eta_i\tanh y, the normalization reads σi2+ηiE[tanh⁡(si)si]=1\sigma_i^2 + \eta_i\E[\tanh(s_i)s_i] = 1, and ki=1+ηiE[sech⁡2(si)]k_i = 1 + \eta_i\E[\operatorname{sech}^2(s_i)]. Hence

当 φi(y)=y+ηitanh⁡y\varphi_i(y) = y + \eta_i\tanh y 时,归一化条件为 σi2+ηiE[tanh⁡(si)si]=1\sigma_i^2 + \eta_i\E[\tanh(s_i)s_i] = 1,且 ki=1+ηiE[sech⁡2(si)]k_i = 1 + \eta_i\E[\operatorname{sech}^2(s_i)]。因此

γi−1=σi2+ηi σi2 E[sech⁡2(si)]−σi2−ηi E[tanh⁡(si)si]=ηi(E[sech⁡2(si)] σi2−E[tanh⁡(si)si]),\gamma_i - 1 = \sigma_i^2 + \eta_i\,\sigma_i^2\,\E[\operatorname{sech}^2(s_i)] - \sigma_i^2 - \eta_i\,\E[\tanh(s_i)s_i] = \eta_i\bigl(\E[\operatorname{sech}^2(s_i)]\,\sigma_i^2 - \E[\tanh(s_i)s_i]\bigr),

which is positive when ηi\eta_i is the sign of the bracket. Moreover mi=σi2+ηiE[sech⁡2(si)si2]≥σi2−E[sech⁡2(si)si2]≥0m_i = \sigma_i^2 + \eta_i\E[\operatorname{sech}^2(s_i)s_i^2] \ge \sigma_i^2 - \E[\operatorname{sech}^2(s_i)s_i^2] \ge 0 because sech⁡2≤1\operatorname{sech}^2 \le 1, so 1+mi≥11 + m_i \ge 1. With γi>1\gamma_i > 1 for all ii, we get ki=γi/σi2>0k_i = \gamma_i/\sigma_i^2 > 0 and γiγj>1\gamma_i\gamma_j > 1, and Theorem 7.2定理 7.2 applies.

当 ηi\eta_i 取括号内表达式的符号时,上式为正。此外,由于 sech⁡2≤1\operatorname{sech}^2 \le 1,有 mi=σi2+ηiE[sech⁡2(si)si2]≥σi2−E[sech⁡2(si)si2]≥0m_i = \sigma_i^2 + \eta_i\E[\operatorname{sech}^2(s_i)s_i^2] \ge \sigma_i^2 - \E[\operatorname{sech}^2(s_i)s_i^2] \ge 0,所以 1+mi≥11 + m_i \ge 1。所有 ii 都有 γi>1\gamma_i > 1,于是 ki=γi/σi2>0k_i = \gamma_i/\sigma_i^2 > 0 且 γiγj>1\gamma_i\gamma_j > 1,可以应用Theorem 7.2定理 7.2。

For a unit-variance uniform source the bracket in (7.11) equals −0.126-0.126 and for a unit-variance Laplace source +0.148+0.148, so the rule picks the sub-Gaussian model for the first and the super-Gaussian model for the second. At the normalized scales the resulting values are γ=1.273\gamma = 1.273 (uniform, η=−1\eta = -1) and γ=1.084\gamma = 1.084 (Laplace, η=+1\eta = +1), both above 1, consistent with the successful extended-Infomax runs in the script of Section 7.5第 7.5 节. For a Gaussian source the bracket is zero by Stein's lemma, and the rule has nothing to choose.

对单位方差的均匀源,(7.11) 中括号内的值为 −0.126-0.126;对单位方差的拉普拉斯源为 +0.148+0.148。因此规则为前者选择亚高斯模型,为后者选择超高斯模型。在归一化尺度下,相应的 γ\gamma 值为 1.2731.273(均匀源,η=−1\eta = -1)和 1.0841.084(拉普拉斯源,η=+1\eta = +1),都大于 1,这与Section 7.5第 7.5 节脚本中扩展 Infomax 的成功运行相符。对高斯源,由 Stein 引理,括号内的值为零,规则无从选择。

7.8 Step sizes, online learning and EASI步长、在线学习与 EASI

Batch iteration. With a constant step size, (7.5) is a fixed-point iteration whose linearization at a separating point is ε←ε−μ L(ε)\bepsilon \leftarrow \bepsilon - \mu\,\mathcal{L}(\bepsilon), where L\mathcal{L} is the linear map of the proof of Theorem 7.2定理 7.2. Its eigenvalues ϑ\vartheta are the numbers 1+mi1 + m_i and the eigenvalues of the pair matrices in (7.9), all real. The error contracts if and only if ∣1−μϑ∣<1|1 - \mu\vartheta| < 1 for every ϑ\vartheta, that is, 0<μ<2/ϑmax⁡0 < \mu < 2/\vartheta_{\max} when all ϑ>0\vartheta > 0. For two Laplace sources and φ=tanh⁡\varphi = \tanh the eigenvalues are 2.4142.414, 1.2141.214 (twice) and 0.4140.414: any μ<0.83\mu < 0.83 converges locally, and with μ=0.5\mu = 0.5 the slowest mode shrinks by the factor 1−0.5×0.414≈0.791 - 0.5 \times 0.414 \approx 0.79 per iteration. By equivariance these numbers do not depend on A\bA.

批量迭代。步长固定时,(7.5) 是一个不动点迭代,它在分离点处的线性化为 ε←ε−μ L(ε)\bepsilon \leftarrow \bepsilon - \mu\,\mathcal{L}(\bepsilon),其中 L\mathcal{L} 是Theorem 7.2定理 7.2证明中的线性映射。它的特征值 ϑ\vartheta 是各个 1+mi1 + m_i 以及 (7.9) 中各源对矩阵的特征值,全是实数。误差收缩当且仅当对每个 ϑ\vartheta 都有 ∣1−μϑ∣<1|1 - \mu\vartheta| < 1;当所有 ϑ>0\vartheta > 0 时,即 0<μ<2/ϑmax⁡0 < \mu < 2/\vartheta_{\max}。对两个拉普拉斯源和 φ=tanh⁡\varphi = \tanh,特征值为 2.4142.414、1.2141.214(二重)和 0.4140.414:任何 μ<0.83\mu < 0.83 都局部收敛;取 μ=0.5\mu = 0.5 时,最慢的模态每次迭代缩小为原来的 1−0.5×0.414≈0.791 - 0.5 \times 0.414 \approx 0.79 倍。由等变性,这些数都与 A\bA 无关。

Online learning. The online rule updates W\bW with one sample, or a small block, at a time. With a constant step size W\bW does not converge; it keeps fluctuating around the separating point, with a spread that shrinks as μ\mu decreases. The mean flow (7.7) describes the average motion, so the stability conditions of Theorem 7.2定理 7.2 decide which points the online algorithm can hover around. Step sizes that decrease with ∑tμt=∞\sum_t\mu_t = \infty and ∑tμt2<∞\sum_t\mu_t^2 < \infty, as in stochastic approximation (Robbins & Monro, 1951), make the fluctuations die out. Online learning suits data that arrive as a stream or do not fit in memory, and it can track a mixing matrix that drifts slowly; for a fixed data set, batch or block updates are simpler to tune.

在线学习。在线规则每次只用一个样本(或一个小数据块)更新 W\bW。步长固定时 W\bW 不会收敛,而是在分离点附近持续波动,波动幅度随 μ\mu 减小而减小。平均流 (7.7) 描述的是平均运动,所以在线算法能在哪些点附近徘徊,同样由Theorem 7.2定理 7.2的稳定性条件决定。像随机逼近(Robbins & Monro, 1951)那样取满足 ∑tμt=∞\sum_t\mu_t = \infty 且 ∑tμt2<∞\sum_t\mu_t^2 < \infty 的递减步长,可使波动逐渐消失。在线学习适合以数据流形式到达或内存放不下的数据,也能跟踪缓慢漂移的混合矩阵;对于固定的数据集,批量或分块更新更容易调参。

EASI. Cardoso and Laheld (1996) proposed a serial algorithm that whitens and rotates at the same time, so that no separate whitening step is needed:

EASI。Cardoso 与 Laheld(1996)提出了一种同时完成白化与旋转的串行算法,因而不需要单独的白化步骤:

W←W−μt[yy⊤−I+g(y) y⊤−y g(y)⊤]W,y=Wx(t).(7.12)\bW \leftarrow \bW - \mu_t\bigl[\by\by^\top - \bI + \mathbf{g}(\by)\,\by^\top - \by\,\mathbf{g}(\by)^\top\bigr]\bW, \qquad \by = \bW\bx(t).\tag{7.12}

The symmetric part yy⊤−I\by\by^\top - \bI pushes the output covariance toward I\bI; the skew-symmetric part g(y)y⊤−y g(y)⊤\mathbf{g}(\by)\by^\top - \by\,\mathbf{g}(\by)^\top leaves the output covariance unchanged to first order when that covariance is I\bI, and drives the rotation, with equilibrium E[gi(yi)yj]=E[yigj(yj)]\E[g_i(y_i)y_j] = \E[y_ig_j(y_j)]. The update has the relative form H(y)W\bH(\by)\bW, so EASI is equivariant. Linearizing as in Theorem 7.2定理 7.2, for unit-variance sources, shows that a separating point is asymptotically stable if

对称部分 yy⊤−I\by\by^\top - \bI 把输出协方差推向 I\bI;反对称部分 g(y)y⊤−y g(y)⊤\mathbf{g}(\by)\by^\top - \by\,\mathbf{g}(\by)^\top 在输出协方差等于 I\bI 时,一阶近似下不改变它,负责驱动旋转,其平衡条件为 E[gi(yi)yj]=E[yigj(yj)]\E[g_i(y_i)y_j] = \E[y_ig_j(y_j)]。更新具有相对形式 H(y)W\bH(\by)\bW,所以 EASI 是等变的。对单位方差的源,像Theorem 7.2定理 7.2那样作线性化可知,分离点在下述条件下渐近稳定:

λi+λj<0for all i≠j,λi=E[gi(si) si−gi′(si)](7.13)\lambda_i + \lambda_j < 0 \quad \text{for all } i \ne j, \qquad \lambda_i = \E\bigl[g_i(s_i)\,s_i - g_i'(s_i)\bigr]\tag{7.13}

and unstable if λi+λj>0\lambda_i + \lambda_j > 0 for some pair (Exercise 7.5习题 7.5). For g(y)=y3g(y) = y^3, λi=κi\lambda_i = \kappa_i, so EASI with the cubic nonlinearity separates pairs whose kurtoses sum to a negative number; for g=tanh⁡g = \tanh, λ=−0.148\lambda = -0.148 for a Laplace source and +0.126+0.126 for a uniform one. The same quantity E[s g(s)−g′(s)]\E[s\,g(s) - g'(s)] governs FastICA in the next chapter.

若某一对满足 λi+λj>0\lambda_i + \lambda_j > 0,则不稳定(Exercise 7.5习题 7.5)。对 g(y)=y3g(y) = y^3,λi=κi\lambda_i = \kappa_i,所以采用三次非线性的 EASI 能分离峭度之和为负的源对;对 g=tanh⁡g = \tanh,拉普拉斯源的 λ=−0.148\lambda = -0.148,均匀源的 λ=+0.126\lambda = +0.126。同一个量 E[s g(s)−g′(s)]\E[s\,g(s) - g'(s)] 也支配着下一章的 FastICA。

Key points

本章要点

  • The relative or natural gradient (I−E[φ(y)y⊤])W(\bI - \E[\bphi(\by)\by^\top])\bW is the ordinary gradient multiplied on the right by W⊤W\bW^\top\bW. It is the steepest-ascent direction for the metric ∥dW W−1∥F\|d\bW\,\bW^{-1}\|_F and needs no matrix inversion.
  • Natural-gradient algorithms are equivariant: in terms of the global matrix P=WA\bP = \bW\bA they do not depend on A\bA, so their speed, accuracy and stability are the same for every invertible mixing matrix.
  • Separating points solve the estimating equations whatever the nonlinearity; whether they attract the algorithm depends on kik_i, mim_i and σi2\sigma_i^2 through conditions on single sources and pairs. With the true scores they always hold when at most one source is Gaussian.
  • Infomax is maximum likelihood with a logistic source model, φ(y)=tanh⁡(y/2)\varphi(y) = \tanh(y/2); its separating points are stable for typical super-Gaussian sources (Laplace, logistic) but not, for example, for a pair of uniform sources. Extended Infomax switches each output between a super- and a sub-Gaussian model by a rule that is the stability condition itself.
  • Batch iterations converge locally for 0<μ<2/ϑmax⁡0 < \mu < 2/\vartheta_{\max}, where ϑmax⁡\vartheta_{\max} is the largest eigenvalue of the linearization; online updates need decreasing step sizes to settle. EASI whitens and separates in one equivariant serial update and is stable when λi+λj<0\lambda_i + \lambda_j < 0 for all pairs.
  • 相对梯度(自然梯度)(I−E[φ(y)y⊤])W(\bI - \E[\bphi(\by)\by^\top])\bW 就是普通梯度右乘 W⊤W\bW^\top\bW。它是度量 ∥dW W−1∥F\|d\bW\,\bW^{-1}\|_F 下的最速上升方向,不需要矩阵求逆。
  • 自然梯度算法是等变的:用全局矩阵 P=WA\bP = \bW\bA 表示时它们与 A\bA 无关,所以对每个可逆混合矩阵,其速度、精度与稳定性都相同。
  • 无论非线性函数取什么,分离点都满足估计方程;它们能否吸引算法,取决于 kik_i、mim_i 和 σi2\sigma_i^2,条件只涉及单个源和源对。使用真实得分函数时,只要至多一个源是高斯的,这些条件总成立。
  • Infomax 是以 logistic 分布为源模型的最大似然,φ(y)=tanh⁡(y/2)\varphi(y) = \tanh(y/2);它的分离点对常见的超高斯源(拉普拉斯、logistic)是稳定的,但对一对均匀源等情形则不稳定。扩展 Infomax 按一条规则让每个输出在超高斯与亚高斯模型之间切换,而这条规则正是稳定性条件本身。
  • 批量迭代在 0<μ<2/ϑmax⁡0 < \mu < 2/\vartheta_{\max} 时局部收敛(ϑmax⁡\vartheta_{\max} 为线性化的最大特征值);在线更新需要递减步长才能稳定下来。EASI 用一个等变的串行更新同时完成白化与分离,当所有源对满足 λi+λj<0\lambda_i + \lambda_j < 0 时稳定。

7.9 Exercises习题

Exercise 7.1习题 7.1 basic基础

Let g(u)=1/(1+e−u)g(u) = 1/(1 + e^{-u}). (a) Show that g′=g(1−g)g' = g(1 - g). (b) Show that the score of the logistic density g′g' is 2g−12g - 1, and that 2g(u)−1=tanh⁡(u/2)2g(u) - 1 = \tanh(u/2). (c) Conclude that the term 1−2g(y)\mathbf{1} - 2\mathbf{g}(\by) in Bell and Sejnowski's gradient equals −φ(y)-\bphi(\by) for the logistic model.

设 g(u)=1/(1+e−u)g(u) = 1/(1 + e^{-u})。(a)证明 g′=g(1−g)g' = g(1 - g)。(b)证明 logistic 密度 g′g' 的得分函数为 2g−12g - 1,且 2g(u)−1=tanh⁡(u/2)2g(u) - 1 = \tanh(u/2)。(c)由此说明,对 logistic 模型,Bell 与 Sejnowski 梯度中的项 1−2g(y)\mathbf{1} - 2\mathbf{g}(\by) 等于 −φ(y)-\bphi(\by)。

Show solution查看解答

(a) g′(u)=e−u/(1+e−u)2=11+e−u⋅e−u1+e−u=g(u) (1−g(u))g'(u) = e^{-u}/(1 + e^{-u})^2 = \frac{1}{1 + e^{-u}}\cdot\frac{e^{-u}}{1 + e^{-u}} = g(u)\,(1 - g(u)). (b) log⁡g′=log⁡g+log⁡(1−g)\log g' = \log g + \log(1 - g), so (log⁡g′)′=g′/g−g′/(1−g)=(1−g)−g=1−2g(\log g')' = g'/g - g'/(1 - g) = (1 - g) - g = 1 - 2g, and the score is −(log⁡g′)′=2g−1-(\log g')' = 2g - 1. Multiplying numerator and denominator by eu/2e^{u/2}, 2g(u)−1=1−e−u1+e−u=eu/2−e−u/2eu/2+e−u/2=tanh⁡(u/2)2g(u) - 1 = \frac{1 - e^{-u}}{1 + e^{-u}} = \frac{e^{u/2} - e^{-u/2}}{e^{u/2} + e^{-u/2}} = \tanh(u/2). (c) Componentwise, 1−2g(yi)=−(2g(yi)−1)=−φ(yi)1 - 2g(y_i) = -(2g(y_i) - 1) = -\varphi(y_i), so W−⊤+E[(1−2g(y))x⊤]=W−⊤−E[φ(y)x⊤]\bW^{-\top} + \E[(\mathbf{1} - 2\mathbf{g}(\by))\bx^\top] = \bW^{-\top} - \E[\bphi(\by)\bx^\top], which is (7.2).

(a)g′(u)=e−u/(1+e−u)2=11+e−u⋅e−u1+e−u=g(u) (1−g(u))g'(u) = e^{-u}/(1 + e^{-u})^2 = \frac{1}{1 + e^{-u}}\cdot\frac{e^{-u}}{1 + e^{-u}} = g(u)\,(1 - g(u))。(b)log⁡g′=log⁡g+log⁡(1−g)\log g' = \log g + \log(1 - g),所以 (log⁡g′)′=g′/g−g′/(1−g)=(1−g)−g=1−2g(\log g')' = g'/g - g'/(1 - g) = (1 - g) - g = 1 - 2g,得分函数为 −(log⁡g′)′=2g−1-(\log g')' = 2g - 1。分子分母同乘 eu/2e^{u/2},得 2g(u)−1=1−e−u1+e−u=eu/2−e−u/2eu/2+e−u/2=tanh⁡(u/2)2g(u) - 1 = \frac{1 - e^{-u}}{1 + e^{-u}} = \frac{e^{u/2} - e^{-u/2}}{e^{u/2} + e^{-u/2}} = \tanh(u/2)。(c)逐分量地,1−2g(yi)=−(2g(yi)−1)=−φ(yi)1 - 2g(y_i) = -(2g(y_i) - 1) = -\varphi(y_i),所以 W−⊤+E[(1−2g(y))x⊤]=W−⊤−E[φ(y)x⊤]\bW^{-\top} + \E[(\mathbf{1} - 2\mathbf{g}(\by))\bx^\top] = \bW^{-\top} - \E[\bphi(\by)\bx^\top],这正是 (7.2)。

Exercise 7.2习题 7.2 basic基础

Take φ(y)=y3\varphi(y) = y^3 and a unit-variance source ss with E[s4]=3+κ\E[s^4] = 3 + \kappa. Find the scale dd that solves E[φ(ds) ds]=1\E[\varphi(ds)\,ds] = 1, and compute σ2\sigma^2, kk, mm and γ\gamma for the rescaled source dsds. Which pairs of sources are stable? Check the cases of two sub-Gaussian sources, two super-Gaussian sources, a uniform and a Laplace source, and a binary (κ=−2\kappa = -2) and a Laplace source.

取 φ(y)=y3\varphi(y) = y^3,源 ss 为单位方差且 E[s4]=3+κ\E[s^4] = 3 + \kappa。求满足 E[φ(ds) ds]=1\E[\varphi(ds)\,ds] = 1 的尺度 dd,并对缩放后的源 dsds 计算 σ2\sigma^2、kk、mm 和 γ\gamma。哪些源对是稳定的?分别检验两个亚高斯源、两个超高斯源、一个均匀源与一个拉普拉斯源,以及一个二值源(κ=−2\kappa = -2)与一个拉普拉斯源的情形。

Show solution查看解答

E[(ds)3 ds]=d4(3+κ)=1\E[(ds)^3\,ds] = d^4(3 + \kappa) = 1 gives d=(3+κ)−1/4d = (3 + \kappa)^{-1/4} (here 3+κ=E[s4]≥(E[s2])2=1>03 + \kappa = \E[s^4] \ge (\E[s^2])^2 = 1 > 0). For the rescaled source, σ2=d2\sigma^2 = d^2, k=E[3d2s2]=3d2k = \E[3d^2s^2] = 3d^2, m=E[3d2s2⋅d2s2]=3d4(3+κ)=3m = \E[3d^2s^2\cdot d^2s^2] = 3d^4(3 + \kappa) = 3 and γ=kσ2=3d4=3/(3+κ)\gamma = k\sigma^2 = 3d^4 = 3/(3 + \kappa). Condition (i) holds (1+m=41 + m = 4), and k>0k > 0 always, so a pair is stable exactly when γiγj>1\gamma_i\gamma_j > 1, that is, (3+κi)(3+κj)<9(3 + \kappa_i)(3 + \kappa_j) < 9. Two sub-Gaussian sources have both factors below 3: stable. Two super-Gaussian sources have both factors above 3: unstable. Uniform and Laplace: 1.8×6=10.8>91.8 \times 6 = 10.8 > 9, unstable. Binary and Laplace: 1×6=6<91 \times 6 = 6 < 9, stable.

由 E[(ds)3 ds]=d4(3+κ)=1\E[(ds)^3\,ds] = d^4(3 + \kappa) = 1 得 d=(3+κ)−1/4d = (3 + \kappa)^{-1/4}(这里 3+κ=E[s4]≥(E[s2])2=1>03 + \kappa = \E[s^4] \ge (\E[s^2])^2 = 1 > 0)。对缩放后的源,σ2=d2\sigma^2 = d^2,k=E[3d2s2]=3d2k = \E[3d^2s^2] = 3d^2,m=E[3d2s2⋅d2s2]=3d4(3+κ)=3m = \E[3d^2s^2\cdot d^2s^2] = 3d^4(3 + \kappa) = 3,γ=kσ2=3d4=3/(3+κ)\gamma = k\sigma^2 = 3d^4 = 3/(3 + \kappa)。条件(i)成立(1+m=41 + m = 4),且总有 k>0k > 0,所以一对源稳定当且仅当 γiγj>1\gamma_i\gamma_j > 1,即 (3+κi)(3+κj)<9(3 + \kappa_i)(3 + \kappa_j) < 9。两个亚高斯源的两个因子都小于 3:稳定。两个超高斯源的两个因子都大于 3:不稳定。均匀源与拉普拉斯源:1.8×6=10.8>91.8 \times 6 = 10.8 > 9,不稳定。二值源与拉普拉斯源:1×6=6<91 \times 6 = 6 < 9,稳定。

Exercise 7.3习题 7.3 intermediate进阶

(a) Derive (7.3) from (7.2). (b) Show that multiplying the ordinary gradient on the right by W⊤W\bW^\top\bW gives an update of P\bP in which A\bA does not appear. (c) Show that for orthogonal A\bA the ordinary-gradient recursion for P\bP does not depend on A\bA either. Why does this not make plain gradient ascent equivariant?

(a)由 (7.2) 推出 (7.3)。(b)证明把普通梯度右乘 W⊤W\bW^\top\bW 后,P\bP 的更新中不再出现 A\bA。(c)证明当 A\bA 为正交矩阵时,普通梯度关于 P\bP 的递推同样与 A\bA 无关。为什么这并不意味着普通梯度上升是等变的?

Show solution查看解答

(a) From W=PA−1\bW = \bP\bA^{-1}, W−1=AP−1\bW^{-1} = \bA\bP^{-1} and W−⊤=P−⊤A⊤\bW^{-\top} = \bP^{-\top}\bA^\top; also x⊤=s⊤A⊤\bx^\top = \bs^\top\bA^\top and y=Wx=Ps\by = \bW\bx = \bP\bs. Then ΔP=ΔW A=μ(P−⊤A⊤−E[φ(y)s⊤]A⊤)A=μ(P−⊤−E[φ(y)s⊤])A⊤A\Delta\bP = \Delta\bW\,\bA = \mu\bigl(\bP^{-\top}\bA^\top - \E[\bphi(\by)\bs^\top]\bA^\top\bigr)\bA = \mu\bigl(\bP^{-\top} - \E[\bphi(\by)\bs^\top]\bigr)\bA^\top\bA. (b) ∇ℓ W⊤W A=(I−E[φ(y)y⊤])WA=(I−E[φ(Ps)(Ps)⊤])P\nabla\ell\,\bW^\top\bW\,\bA = (\bI - \E[\bphi(\by)\by^\top])\bW\bA = (\bI - \E[\bphi(\bP\bs)(\bP\bs)^\top])\bP, which involves only P\bP and s\bs. (c) If A⊤A=I\bA^\top\bA = \bI, then ΔP=μ(P−⊤−E[φ(y)s⊤])\Delta\bP = \mu(\bP^{-\top} - \E[\bphi(\by)\bs^\top]), free of A\bA. Equivariance asks for independence from every invertible A\bA; for non-orthogonal A\bA the factor A⊤A≠I\bA^\top\bA \ne \bI changes the recursion. This is why plain gradient ascent behaves much better on whitened data, where the remaining mixing matrix A~\tilde\bA is orthogonal, but still differs from the natural gradient.

(a)由 W=PA−1\bW = \bP\bA^{-1} 得 W−1=AP−1\bW^{-1} = \bA\bP^{-1},W−⊤=P−⊤A⊤\bW^{-\top} = \bP^{-\top}\bA^\top;又 x⊤=s⊤A⊤\bx^\top = \bs^\top\bA^\top,y=Wx=Ps\by = \bW\bx = \bP\bs。于是 ΔP=ΔW A=μ(P−⊤A⊤−E[φ(y)s⊤]A⊤)A=μ(P−⊤−E[φ(y)s⊤])A⊤A\Delta\bP = \Delta\bW\,\bA = \mu\bigl(\bP^{-\top}\bA^\top - \E[\bphi(\by)\bs^\top]\bA^\top\bigr)\bA = \mu\bigl(\bP^{-\top} - \E[\bphi(\by)\bs^\top]\bigr)\bA^\top\bA。(b)∇ℓ W⊤W A=(I−E[φ(y)y⊤])WA=(I−E[φ(Ps)(Ps)⊤])P\nabla\ell\,\bW^\top\bW\,\bA = (\bI - \E[\bphi(\by)\by^\top])\bW\bA = (\bI - \E[\bphi(\bP\bs)(\bP\bs)^\top])\bP,只涉及 P\bP 和 s\bs。(c)若 A⊤A=I\bA^\top\bA = \bI,则 ΔP=μ(P−⊤−E[φ(y)s⊤])\Delta\bP = \mu(\bP^{-\top} - \E[\bphi(\by)\bs^\top]),与 A\bA 无关。等变性要求对每个可逆的 A\bA 都无关;对非正交的 A\bA,因子 A⊤A≠I\bA^\top\bA \ne \bI 会改变递推。这也解释了为什么普通梯度上升在白化数据上表现好得多(此时剩下的混合矩阵 A~\tilde\bA 是正交的),但它仍与自然梯度不同。

Exercise 7.4习题 7.4 intermediate进阶

(a) Prove Stein's lemma: if ν∼N(0,σ2)\nu \sim \Ncal(0, \sigma^2) and φ\varphi is differentiable with E∣φ′(ν)∣<∞\E|\varphi'(\nu)| < \infty, then E[ν φ(ν)]=σ2 E[φ′(ν)]\E[\nu\,\varphi(\nu)] = \sigma^2\,\E[\varphi'(\nu)]. (b) Deduce that γ=1\gamma = 1 for a Gaussian source at the normalized scale, whatever φ\varphi is. (c) For two Gaussian sources, show that the matrix in (7.9) is singular with null vector (εij,εji)∝(σi2,−σj2)(\varepsilon_{ij}, \varepsilon_{ji}) \propto (\sigma_i^2, -\sigma_j^2), and that this vector is tangent to a curve of equilibria. Interpret the result.

(a)证明 Stein 引理:若 ν∼N(0,σ2)\nu \sim \Ncal(0, \sigma^2),φ\varphi 可微且 E∣φ′(ν)∣<∞\E|\varphi'(\nu)| < \infty,则 E[ν φ(ν)]=σ2 E[φ′(ν)]\E[\nu\,\varphi(\nu)] = \sigma^2\,\E[\varphi'(\nu)]。(b)由此推出:无论 φ\varphi 取什么,高斯源在归一化尺度下都有 γ=1\gamma = 1。(c)对两个高斯源,证明 (7.9) 中的矩阵奇异,零空间向量为 (εij,εji)∝(σi2,−σj2)(\varepsilon_{ij}, \varepsilon_{ji}) \propto (\sigma_i^2, -\sigma_j^2),并且这个向量与一条平衡点曲线相切。解释这一结果。

Show solution查看解答

(a) The density p(x)=(2πσ2)−1/2e−x2/(2σ2)p(x) = (2\pi\sigma^2)^{-1/2}e^{-x^2/(2\sigma^2)} satisfies x p(x)=−σ2p′(x)x\,p(x) = -\sigma^2p'(x). Hence E[νφ(ν)]=∫φ(x) x p(x) dx=−σ2∫φ(x) p′(x) dx=σ2∫φ′(x) p(x) dx=σ2E[φ′(ν)]\E[\nu\varphi(\nu)] = \int\varphi(x)\,x\,p(x)\,dx = -\sigma^2\int\varphi(x)\,p'(x)\,dx = \sigma^2\int\varphi'(x)\,p(x)\,dx = \sigma^2\E[\varphi'(\nu)]; the boundary term φ(x)p(x)\varphi(x)p(x) vanishes at ±∞\pm\infty under the integrability assumption (the standard proof writes p′p' as an integral and uses Fubini's theorem to avoid any boundary term). (b) At the normalized scale, E[φ(s)s]=1\E[\varphi(s)s] = 1, so γ=kσ2=σ2E[φ′(s)]=E[sφ(s)]=1\gamma = k\sigma^2 = \sigma^2\E[\varphi'(s)] = \E[s\varphi(s)] = 1. (c) With γi=γj=1\gamma_i = \gamma_j = 1 we have ki=1/σi2k_i = 1/\sigma_i^2 and kj=1/σj2k_j = 1/\sigma_j^2, so the matrix is (σj2/σi211σi2/σj2)\bigl(\begin{smallmatrix}\sigma_j^2/\sigma_i^2 & 1\\ 1 & \sigma_i^2/\sigma_j^2\end{smallmatrix}\bigr), with determinant 1−1=01 - 1 = 0; one checks directly that it maps (σi2,−σj2)(\sigma_i^2, -\sigma_j^2) to zero. Now let D=diag⁡(σi,σj)\bD = \diag(\sigma_i, \sigma_j) and R(θ)\mathbf{R}(\theta) a rotation. The outputs DR(θ)D−1(si,sj)⊤\bD\mathbf{R}(\theta)\bD^{-1}(s_i, s_j)^\top are again independent Gaussians with variances σi2\sigma_i^2 and σj2\sigma_j^2, because D−1(si,sj)⊤\bD^{-1}(s_i, s_j)^\top is standard Gaussian and rotations preserve that law; for Gaussian outputs the equations E[φi(yi)yi]=1\E[\varphi_i(y_i)y_i] = 1 depend only on the variances, so every such block is an equilibrium. Its derivative at θ=0\theta = 0 is D(0−110)D−1=(0−σi/σjσj/σi0)\bD\bigl(\begin{smallmatrix}0 & -1\\ 1 & 0\end{smallmatrix}\bigr)\bD^{-1} = \bigl(\begin{smallmatrix}0 & -\sigma_i/\sigma_j\\ \sigma_j/\sigma_i & 0\end{smallmatrix}\bigr), and (−σi/σj,σj/σi)(-\sigma_i/\sigma_j, \sigma_j/\sigma_i) is proportional to (σi2,−σj2)(\sigma_i^2, -\sigma_j^2). The zero eigenvalue is the dynamical face of non-identifiability: two Gaussian sources can be rotated into each other without changing anything the algorithm can see (Exercise 1.3习题 1.3, Theorem 4.6定理 4.6).

(a)密度 p(x)=(2πσ2)−1/2e−x2/(2σ2)p(x) = (2\pi\sigma^2)^{-1/2}e^{-x^2/(2\sigma^2)} 满足 x p(x)=−σ2p′(x)x\,p(x) = -\sigma^2p'(x)。因此 E[νφ(ν)]=∫φ(x) x p(x) dx=−σ2∫φ(x) p′(x) dx=σ2∫φ′(x) p(x) dx=σ2E[φ′(ν)]\E[\nu\varphi(\nu)] = \int\varphi(x)\,x\,p(x)\,dx = -\sigma^2\int\varphi(x)\,p'(x)\,dx = \sigma^2\int\varphi'(x)\,p(x)\,dx = \sigma^2\E[\varphi'(\nu)];在所给的可积性条件下,边界项 φ(x)p(x)\varphi(x)p(x) 在 ±∞\pm\infty 处为零(标准证明把 p′p' 写成积分并用 Fubini 定理,从而完全避开边界项)。(b)在归一化尺度下 E[φ(s)s]=1\E[\varphi(s)s] = 1,所以 γ=kσ2=σ2E[φ′(s)]=E[sφ(s)]=1\gamma = k\sigma^2 = \sigma^2\E[\varphi'(s)] = \E[s\varphi(s)] = 1。(c)由 γi=γj=1\gamma_i = \gamma_j = 1 得 ki=1/σi2k_i = 1/\sigma_i^2,kj=1/σj2k_j = 1/\sigma_j^2,矩阵为 (σj2/σi211σi2/σj2)\bigl(\begin{smallmatrix}\sigma_j^2/\sigma_i^2 & 1\\ 1 & \sigma_i^2/\sigma_j^2\end{smallmatrix}\bigr),行列式为 1−1=01 - 1 = 0;直接验证可知它把 (σi2,−σj2)(\sigma_i^2, -\sigma_j^2) 映为零。再令 D=diag⁡(σi,σj)\bD = \diag(\sigma_i, \sigma_j),R(θ)\mathbf{R}(\theta) 为旋转矩阵。输出 DR(θ)D−1(si,sj)⊤\bD\mathbf{R}(\theta)\bD^{-1}(s_i, s_j)^\top 仍是方差为 σi2\sigma_i^2、σj2\sigma_j^2 的独立高斯变量,因为 D−1(si,sj)⊤\bD^{-1}(s_i, s_j)^\top 是标准高斯向量,而旋转保持这一分布;对高斯输出,方程 E[φi(yi)yi]=1\E[\varphi_i(y_i)y_i] = 1 只依赖于方差,所以每个这样的块都是平衡点。它在 θ=0\theta = 0 处的导数为 D(0−110)D−1=(0−σi/σjσj/σi0)\bD\bigl(\begin{smallmatrix}0 & -1\\ 1 & 0\end{smallmatrix}\bigr)\bD^{-1} = \bigl(\begin{smallmatrix}0 & -\sigma_i/\sigma_j\\ \sigma_j/\sigma_i & 0\end{smallmatrix}\bigr),而 (−σi/σj,σj/σi)(-\sigma_i/\sigma_j, \sigma_j/\sigma_i) 与 (σi2,−σj2)(\sigma_i^2, -\sigma_j^2) 成比例。零特征值是不可辨识性在动力学上的表现:两个高斯源可以相互旋转,而算法所能看到的一切都不会改变(Exercise 1.3习题 1.3,Theorem 4.6定理 4.6)。

Exercise 7.5习题 7.5 advanced硬核

Derive the stability condition (7.13) of EASI. Use unit-variance sources, write the mean flow of (7.12) as dP/dt=−E[H(Ps)]Pd\bP/dt = -\E[\bH(\bP\bs)]\bP, linearize at P=I+ε\bP = \bI + \bepsilon, and study each pair (εij,εji)(\varepsilon_{ij}, \varepsilon_{ji}) in the coordinates u=εij+εjiu = \varepsilon_{ij} + \varepsilon_{ji}, v=εij−εjiv = \varepsilon_{ij} - \varepsilon_{ji}.

推导 EASI 的稳定性条件 (7.13)。取单位方差的源,把 (7.12) 的平均流写成 dP/dt=−E[H(Ps)]Pd\bP/dt = -\E[\bH(\bP\bs)]\bP,在 P=I+ε\bP = \bI + \bepsilon 处线性化,并在坐标 u=εij+εjiu = \varepsilon_{ij} + \varepsilon_{ji}、v=εij−εjiv = \varepsilon_{ij} - \varepsilon_{ji} 下研究每一对 (εij,εji)(\varepsilon_{ij}, \varepsilon_{ji})。

Show solution查看解答

At P=I\bP = \bI, E[ss⊤]=I\E[\bs\bs^\top] = \bI, E[gi(si)sj]=0\E[g_i(s_i)s_j] = 0 for i≠ji \ne j, and the diagonal of the skew part is zero, so E[H(s)]=0\E[\bH(\bs)] = \bzero: the separating point is an equilibrium. Since E[H]=O(∥ε∥)\E[\bH] = O(\|\bepsilon\|), the linearized flow is dε/dt=−E[H(y)]d\bepsilon/dt = -\E[\bH(\by)] to first order. The symmetric part contributes E[yy⊤]−I=ε+ε⊤\E[\by\by^\top] - \bI = \bepsilon + \bepsilon^\top. For the skew part let ai=E[gi′(si)]a_i = \E[g_i'(s_i)] and bi=E[gi(si)si]b_i = \E[g_i(s_i)s_i]. The computation in the proof of Theorem 7.2定理 7.2, with σj=1\sigma_j = 1, gives E[gi(yi)yj]=biεji+aiεij\E[g_i(y_i)y_j] = b_i\varepsilon_{ji} + a_i\varepsilon_{ij} and E[yigj(yj)]=bjεij+ajεji\E[y_ig_j(y_j)] = b_j\varepsilon_{ij} + a_j\varepsilon_{ji} to first order, for i≠ji \ne j. Hence dεii/dt=−2εiid\varepsilon_{ii}/dt = -2\varepsilon_{ii} and

在 P=I\bP = \bI 处,E[ss⊤]=I\E[\bs\bs^\top] = \bI,对 i≠ji \ne j 有 E[gi(si)sj]=0\E[g_i(s_i)s_j] = 0,且反对称部分的对角线为零,所以 E[H(s)]=0\E[\bH(\bs)] = \bzero:分离点是平衡点。由于 E[H]=O(∥ε∥)\E[\bH] = O(\|\bepsilon\|),一阶近似下线性化的流为 dε/dt=−E[H(y)]d\bepsilon/dt = -\E[\bH(\by)]。对称部分贡献 E[yy⊤]−I=ε+ε⊤\E[\by\by^\top] - \bI = \bepsilon + \bepsilon^\top。对反对称部分,记 ai=E[gi′(si)]a_i = \E[g_i'(s_i)],bi=E[gi(si)si]b_i = \E[g_i(s_i)s_i]。把Theorem 7.2定理 7.2证明中的计算取 σj=1\sigma_j = 1,可得对 i≠ji \ne j,一阶近似下 E[gi(yi)yj]=biεji+aiεij\E[g_i(y_i)y_j] = b_i\varepsilon_{ji} + a_i\varepsilon_{ij},E[yigj(yj)]=bjεij+ajεji\E[y_ig_j(y_j)] = b_j\varepsilon_{ij} + a_j\varepsilon_{ji}。因此 dεii/dt=−2εiid\varepsilon_{ii}/dt = -2\varepsilon_{ii},并且

dεijdt=−[εij+εji+(ai−bj) εij+(bi−aj) εji],dεjidt=−[εji+εij+(aj−bi) εji+(bj−ai) εij].\begin{aligned} \frac{d\varepsilon_{ij}}{dt} &= -\bigl[\varepsilon_{ij} + \varepsilon_{ji} + (a_i - b_j)\,\varepsilon_{ij} + (b_i - a_j)\,\varepsilon_{ji}\bigr],\\ \frac{d\varepsilon_{ji}}{dt} &= -\bigl[\varepsilon_{ji} + \varepsilon_{ij} + (a_j - b_i)\,\varepsilon_{ji} + (b_j - a_i)\,\varepsilon_{ij}\bigr]. \end{aligned}

Adding the two equations, the skew terms cancel and du/dt=−2udu/dt = -2u. Subtracting them gives dv/dt=−2(ai−bj)εij−2(bi−aj)εjidv/dt = -2(a_i - b_j)\varepsilon_{ij} - 2(b_i - a_j)\varepsilon_{ji}; substituting εij=(u+v)/2\varepsilon_{ij} = (u + v)/2 and εji=(u−v)/2\varepsilon_{ji} = (u - v)/2 yields dv/dt=−c u+(λi+λj) vdv/dt = -c\,u + (\lambda_i + \lambda_j)\,v with c=ai+bi−aj−bjc = a_i + b_i - a_j - b_j and λi=bi−ai=E[gi(si)si−gi′(si)]\lambda_i = b_i - a_i = \E[g_i(s_i)s_i - g_i'(s_i)]. The system for (u,v)(u, v) is triangular, with eigenvalues −2-2 and λi+λj\lambda_i + \lambda_j. All eigenvalues of the linearization are negative if and only if λi+λj<0\lambda_i + \lambda_j < 0 for every pair, and a pair with λi+λj>0\lambda_i + \lambda_j > 0 makes the point unstable. (The diagonal entries never cause instability: the symmetric part alone fixes the output variances.)

两式相加,反对称项相互抵消,得 du/dt=−2udu/dt = -2u。两式相减得 dv/dt=−2(ai−bj)εij−2(bi−aj)εjidv/dt = -2(a_i - b_j)\varepsilon_{ij} - 2(b_i - a_j)\varepsilon_{ji};代入 εij=(u+v)/2\varepsilon_{ij} = (u + v)/2 和 εji=(u−v)/2\varepsilon_{ji} = (u - v)/2,得 dv/dt=−c u+(λi+λj) vdv/dt = -c\,u + (\lambda_i + \lambda_j)\,v,其中 c=ai+bi−aj−bjc = a_i + b_i - a_j - b_j,λi=bi−ai=E[gi(si)si−gi′(si)]\lambda_i = b_i - a_i = \E[g_i(s_i)s_i - g_i'(s_i)]。关于 (u,v)(u, v) 的方程组是三角形的,特征值为 −2-2 和 λi+λj\lambda_i + \lambda_j。线性化的全部特征值为负,当且仅当每一对都有 λi+λj<0\lambda_i + \lambda_j < 0;只要有一对满足 λi+λj>0\lambda_i + \lambda_j > 0,该点就不稳定。(对角元从不引起不稳定:对称部分本身就固定了输出方差。)

7.10 References参考文献

  1. Amari, S. (1998). Natural gradient works efficiently in learning. Neural Computation, 10(2), 251–276.
  2. Amari, S., Chen, T.-P., & Cichocki, A. (1997). Stability analysis of learning algorithms for blind source separation. Neural Networks, 10(8), 1345–1351.
  3. Amari, S., Cichocki, A., & Yang, H. H. (1996). A new learning algorithm for blind signal separation. In Advances in Neural Information Processing Systems 8 (pp. 757–763). MIT Press.
  4. Bell, A. J., & Sejnowski, T. J. (1995). An information-maximization approach to blind separation and blind deconvolution. Neural Computation, 7(6), 1129–1159.
  5. Cardoso, J.-F. (1997). Infomax and maximum likelihood for blind source separation. IEEE Signal Processing Letters, 4(4), 112–114.
  6. Cardoso, J.-F., & Laheld, B. H. (1996). Equivariant adaptive source separation. IEEE Transactions on Signal Processing, 44(12), 3017–3030.
  7. Lee, T.-W., Girolami, M., & Sejnowski, T. J. (1999). Independent component analysis using an extended infomax algorithm for mixed subgaussian and supergaussian sources. Neural Computation, 11(2), 417–441.
  8. Robbins, H., & Monro, S. (1951). A stochastic approximation method. Annals of Mathematical Statistics, 22(3), 400–407.