Sinkhorn–Knopp Centering Process
- The Sinkhorn–Knopp centering process is an iterative algorithm that scales nonnegative matrices to prescribed row and column sums using diagonal normalization.
- It leverages convex optimization and Bregman projections to achieve rapid convergence and ensure unique scaling under broad regularity conditions.
- The process underpins applications in entropic optimal transport, matrix balancing, and machine learning, and can be adapted for sparse or high-dimensional data.
The Sinkhorn–Knopp centering process—also known as matrix balancing, matrix scaling, or row/column normalization—is an iterative algorithm to compute positive diagonal scalings of a nonnegative matrix so that the resulting matrix achieves prescribed row and column marginals. It is fundamental to entropic regularization for discrete optimal transport, matrix balancing, and doubly stochasticization problems. The process combines principles from convex optimization, geometric analysis, and dynamical systems, and exhibits rapid convergence under broad regularity conditions (Modin, 2023).
1. Problem Statement and Matrix-Scaling Formulation
Given a strictly positive matrix and two strictly positive vectors , the Sinkhorn–Knopp problem is to find diagonal scaling matrices and such that
satisfies
that is, the row sums of equal and the column sums equal (Modin, 2023, Brauer et al., 2017, Cuturi, 2013). In component form,
must sum to 0 over 1 and to 2 over 3. This formulation includes the classic doubly stochastic scaling as the special case 4.
The process also arises in entropic optimal transport, where the problem is to minimize the cost
5
subject to prescribed marginals, with 6 as the Gibbs kernel (Brauer et al., 2017, Cuturi, 2013).
2. Iterative Centering Algorithm
The Sinkhorn–Knopp iteration alternates between normalizing to enforce the row and column marginal constraints. In vector form, the updates are
7
where division is entrywise (Modin, 2023, Brauer et al., 2017, Chakrabarty et al., 2018). The initial vectors 8 and 9 can be set to all-ones or any strictly positive values, which ensures positivity is preserved throughout the iterations.
Each iterate 0 alternately matches the row or column marginals, and the iteration converges to a unique scaling (up to rescaling) when 1 and 2.
Pseudocode of the classical Sinkhorn–Knopp process is as follows:
6 (Modin, 2023, Brauer et al., 2017)
3. Geometric and Dynamical Interpretation
The Sinkhorn–Knopp algorithm can be viewed geometrically as alternating Bregman projections (specifically, Kullback–Leibler projections) onto the affine sets of matrices with prescribed row and then column sums within the transport polytope 3 (Modin, 2023, 1711.01851).
From a continuous perspective, the Sinkhorn iteration discretizes a coupled nonlinear gradient flow on densities—specifically, a time-splitting of the integral equations
4
with 5 representing heat kernel convolution and 6 the prescribed marginals in continuous space (Modin, 2023).
Under the Benamou–Brenier entropic regularization, a dynamical (continuous-time ODE) formulation yields
7
and Lie–Trotter splitting (with explicit Euler discretization) matches the discrete SK updates (Modin, 2023).
The projection viewpoint connects the SK process to alternating minimization of KL divergence and underpins interpretability in terms of metric contraction and convex geometry (Chakrabarty et al., 2018, 1711.01851).
4. Convergence Analysis and Rate
Sinkhorn and Knopp originally proved that, for any positive 8 and positive marginals, the alternated diagonal scaling converges to a unique solution (Modin, 2023, Nathanson, 2019). The convergence is geometric: the error in the marginals (as measured by, e.g., 9, 0, or Kullback–Leibler divergence) contracts at a rate determined by the Hilbert projective metric contraction ratio for the scaling map (Modin, 2023, Chakrabarty et al., 2018).
The precise iteration complexity depends on structure:
- For dense, well-bounded, or high-density matrices (1), the iteration count is 2 to reach error 3 (He, 13 Jul 2025, He, 4 Apr 2026).
- For positive matrices with lower density or poorly bounded entries, lower bounds of 4 or even 5 can be attained (He, 13 Jul 2025).
- The contraction is monotonic for a suitable potential function—either a Lyapunov energy or the KL divergence of the current marginal (Modin, 2023, Chakrabarty et al., 2018).
A summary of bounds appears below:
| Error Norm | Iteration Bound (dense) | Reference |
|---|---|---|
| 6 | 7 | (Chakrabarty et al., 2018) |
| 8 | 9 | (Chakrabarty et al., 2018) |
| General 0 | 1 | (He, 13 Jul 2025) |
| Sparse/low-density | 2 | (He, 13 Jul 2025) |
Over-relaxation techniques, including adaptive selection of the relaxation parameter, yield further iteration count reductions, particularly in the regime where the spectral gap of the associated operator is small (1711.01851).
5. Applications and Extensions
The Sinkhorn–Knopp centering process has broad applications:
- Entropic Optimal Transport: Directly computes regularized transport plans with prescribed marginals, minimizing a combined cost and entropy objective (Cuturi, 2013, Brauer et al., 2017).
- Preconditioning and Matrix Balancing: Used to transform matrices into forms suitable for fast solvers or numerical stability, e.g., producing a doubly stochastic matrix from a positive input (Chakrabarty et al., 2018, Nathanson, 2019).
- Machine Learning and Data Analysis: Fundamental for efficient computation of Sinkhorn distances between histograms or feature vectors (Cuturi, 2013).
- Image Processing and Denoising: Underpins normalization in Gaussian mixture model-based smoothing filters; alternates EM (E-step = column normalization, M-step = row normalization) for statistical interpretation (Chan et al., 2016).
- Quantum Computing: The conjectured analog involves scaling unitary matrices via phase correction to achieve prescribed line sums; with implications for quantum gate decompositions (Vos et al., 2014).
- Constrained Transport and Prior Zeros: Extensions handle sparse plans with enforced zeros by setting forbidden entries in 3 to zero, preserving Bregman projection structure and convergence (Corless et al., 2024).
- Acceleration and High-Performance Computing: Arnoldi-type and Newton accelerations exploit the underlying nonlinear eigenproblems for further speedup in challenging regimes (Aristodemo et al., 2018, Brauer et al., 2017).
6. Measure-Theoretic and Infinite-Dimensional Generalizations
Beurling’s theorem gives a measure-theoretic generalization of the Sinkhorn–Knopp process, establishing uniqueness of scaling solutions for Radon measures on continuous spaces 4 via positive integral kernels (Modin, 2023). The scaling of measures (as opposed to finitely supported vectors) generalizes the algorithm to infinite dimensions with well-posedness and stability results.
Under appropriate kernel positivity, the map from arbitrary nonnegative measures to product measures is a homeomorphism, and the scaling process inherits uniqueness and continuity properties with respect to data perturbations.
7. Practical Considerations
Each Sinkhorn–Knopp iteration has computational cost 5 for dense 6 matrices, dominated by matrix-vector multiplication 7 and 8. For kernel matrices arising from structured cost (e.g., Gaussian or Toeplitz), FFT-based or fast transform techniques can reduce per-iteration complexity (Modin, 2023).
Stability is a concern when the regularization parameter 9 is small, as the kernel 0 can underflow to numerically zero. Log-domain stabilizations (operating on 1, 2) and log-sum-exp formulas are standard practice (Brauer et al., 2017).
Stopping criteria are typically based on violation of the marginal constraints in 3 or relative terms, with tolerances of 4–5 common in applications (Modin, 2023, Cuturi, 2013). When mass cannot be matched (e.g., in the presence of prior zeros), unbalanced variants add penalty terms with competitive convergence properties (Corless et al., 2024).
Overrelaxation and acceleration are crucial for ill-conditioned or nearly decomposable matrices, and recent advances establish adaptive step selection schemes with global Lyapunov guarantees (1711.01851). Arnoldi and Newton-type eigen-acceleration realizes dramatic gains for hard instances with clustered spectrum (Aristodemo et al., 2018, Brauer et al., 2017).
References
- "On the geometry and dynamical formulation of the Sinkhorn algorithm for optimal transport" (Modin, 2023)
- "A Sinkhorn-Newton method for entropic optimal transport" (Brauer et al., 2017)
- "Better and Simpler Error Analysis of the Sinkhorn-Knopp Algorithm for Matrix Scaling" (Chakrabarty et al., 2018)
- "Overrelaxed Sinkhorn-Knopp Algorithm for Regularized Optimal Transport" (1711.01851)
- "Sinkhorn Distances: Lightspeed Computation of Optimal Transportation Distances" (Cuturi, 2013)
- "Understanding Symmetric Smoothing Filters: A Gaussian Mixture Model Perspective" (Chan et al., 2016)
- "On the Efficiency of Sinkhorn-Knopp for Entropically Regularized Optimal Transport" (He, 4 Apr 2026)
- "Accelerating the Sinkhorn-Knopp iteration by Arnoldi-type methods" (Aristodemo et al., 2018)
- "Scaling a unitary matrix" (Vos et al., 2014)
- "Phase transition of the Sinkhorn-Knopp algorithm" (He, 13 Jul 2025)
- "Matrix scaling, explicit Sinkhorn limits, and arithmetic" (Nathanson, 2019)
- "Algorithms for constrained optimal transport" (Corless et al., 2024)