Sinkhorn 层中的支撑拓扑与梯度混合
Support Topology and Gradient Mixing in Sinkhorn Layers
研究揭示 Sinkhorn 注意力层的稀疏掩码与边际预算不仅决定前向归一化,也控制梯度反向传播:对列对数势的一轮行列循环微分可得到显式行随机 Markov 核,在平衡不动点处退化为可逆两步随机游走。作者证明仅靠图连通性无法避免梯度困陷,掩码与边际保证 score-uniform 单步收缩当且仅当运输多面体每个非空面保持两跳列重叠,并将该判据扩展至多层调度与 butterfly 掩码。
arXiv:2609.07954v2 Announce Type: replace Abstract: Sinkhorn attention layers normalize weights over a fixed sparse mask by alternating row and column scaling. When training these layers, sparse masks are usually judged by their edge count, graph diameter, or forward reachability. We show that the sparsity pattern and marginal budgets also govern how gradients flow backward through the scaling steps. Differentiating one row-column cycle on column log-potentials yields an explicit row-stochastic Markov kernel built from the two half-step transport plans, which reduces to a reversible two-step random walk at a balanced fixed point. Because potentials are defined only up to additive constants on each connected component, reverse-mode gradients propagate as zero-sum vectors whose total-variation norm contracts at a rate given by the kernel's Dobrushin coefficient. This coefficient bounds both unrolled backpropagation and implicit-differentiation truncation error. Crucially, graph connectivity alone does not prevent gradient trapping: we prove a face-lattice dichotomy showing that a mask and marginals guarantee score-uniform one-step contraction if and only if every nonempty face of the transportation polytope retains pairwise two-hop column overlap; otherwise, large learned scores can push the contraction rate arbitrarily close to one. We extend this criterion to multi-layer schedules, prove exact one-sweep mixing for coordinate-factorized and butterfly masks, and derive closed-form bounds for expanders, local bands, and global hub tokens. Deterministic numerical checks verify our finite-difference adjoints, canonical sparse masks, adversarial score limits, and spectral formulas.
来源:arXiv (AI + Vision + Imaging) · arxiv.org