Support Topology and Gradient Mixing in Sinkhorn Layers
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.
Create a lesson
Metadata
- Categories
- cs.AI, cs.LG
Related papers
Can Artificial Intelligence Support Healthcare and Mental Health Through Early Cyberbullying Detection ? The Impact of Emotion-Aware AI on Proactive Online Safety
Shared title terminologycs.AIHamed Jelodar, Amir Firouzi, Yen-Wu Lo et al.
RESCUE-BENCH: Towards Relation-Aware Multi-Party Emotional Support Conversation Systems
Shared title terminologycs.AIHaichuan Hu, Yang Xiao, Mingni Tang et al.
Deposon: An Auditable, Conservation-Guaranteed, Game-Theoretically Tested Scattering Layer over LLM Reasoning Paths
Shared title terminologycs.AIQihao Yuan
TTGBench: Benchmarking Topological Evolution and Semantic Drift in Text-attributed Temporal Graphs
Shared title terminologycs.AILongfei Ma, Zemin Liu, Fei Wu
EmoMed: An Emotionally-Aware Agent for Multimodal Medical Support with Real-Time Information Retrieval
Shared title terminologycs.AIIvan Nasonov, Nikita Glazkov, Ivan Makovetskiy et al.
LayerRoute: Action-Conditioned Mixture-of-Layers Routing for Vision-Language-Action Policies
Shared title terminologycs.AIZheng Lu, Haoran Liao, Wanqi Zhong et al.