On the Products of Stochastic and Diagonal Matrices

Assaf Hallak, Gal DalalarXiv 2023

Abstract

Consider a stochastic matrix $P$ and diagonal matrix $D$. In this work, we introduce Tilted matrices. A Tilted matrix is the product $D'PD$, where $D'$ is a diagonal normalization that makes the product stochastic. We then provide several results on products of Tilted matrices, which can be desirable for analyses of Markov Decision Processes. Lastly, we obtain a convergence rate result for the product of Tilted reversible matrices.

Introduction

In the study of Markov chains and Reinforcement Learning (RL), stochastic matrices—where rows sum to one—are the standard tool for representing state transitions. However, many practical scenarios in RL, such as calculating rewards, applying importance sampling weights, or analyzing policy gradients, involve products of matrices that are non-negative but not naturally stochastic.

Understanding how these "distorted" versions of transition matrices behave over time is critical for algorithm stability. If a sequence of these matrices is multiplied, does the result still behave like a well-behaved Markov chain? How quickly does it converge to a steady state? This paper introduces Tilted matrices, a unified formal framework for normalizing non-stochastic matrices into stochastic ones using diagonal scaling, and provides new theoretical bounds on their convergence rates.

The Tilted Matrix Framework

The authors define a Tilted Matrix as a normalization of a non-negative matrix $A$ using a strictly positive vector $u$. Specifically, the $u$-Tilted version of $A$ is defined as:

$$P_u = D(Au)^{-1} A D(u)$$

where $D(u)$ is a diagonal matrix. This transformation ensures the resulting matrix is stochastic. Using inductive proofs, the paper demonstrates that any product of square non-negative matrices can be decomposed into a single diagonal matrix and a single stochastic matrix. This allows researchers to analyze complex sequences of operations as a single, normalized Markovian process.

Spectral Properties and Property Preservation

A key insight of the work is that "Tilting" a matrix preserves its fundamental structural properties. The authors prove that if a base matrix is irreducible (every state is reachable) or aperiodic (the system does not cycle), the Tilted version inherits these traits.

Furthermore, the paper shows that reversibility is robust. If a base stochastic matrix is reversible—meaning it satisfies the detailed balance equation—its Tilted version remains reversible. This is a significant finding because reversible chains are much easier to analyze mathematically and possess real eigenvalues, which simplifies the study of their spectral properties.

Convergence Rates and the "Tilt Penalty"

The flagship result of the paper is a concrete upper bound on the second-largest eigenvalue ($\lambda_2$) of a product of $n$ Tilted reversible matrices. In Markov chain theory, $\lambda_2$ acts as a "speed limit," determining how quickly the system reaches its stationary distribution. The authors establish the following bound:

$$|\lambda_2(P_n^{prod})| \leq |\lambda_2(P)|^n \prod_{i=1}^n \left( \frac{\max_j u_i[j]}{\min_j u_i[j]} \right)^4$$

This formula quantifies the "Tilt Penalty." The convergence rate of the product is essentially the convergence rate of the original matrix, scaled by a factor related to the "extremeness" of the tilting vector (the ratio between its maximum and minimum elements). This allows researchers to calculate exactly how much the diagonal scaling slows down the system's convergence to a steady state.

Conclusion and Future Directions

This work provides a powerful mathematical foundation for analyzing variance decay and stability in Markov Decision Processes. While the current results provide strong bounds for reversible systems, the authors note that extending these results to non-reversible systems remains an area for future work, as the convergence rate coefficients for those cases are currently unknown. Additionally, the paper proposes a conjecture regarding the generalization of reversibility for products of $n$ Tilted matrices, providing a roadmap for future proofs in multi-step MDP analysis and policy gradient algorithms.

Summary updated

BibTeX
@misc{hallak2023products,
  author = {Assaf Hallak and Gal Dalal},
  title = {{On the Products of Stochastic and Diagonal Matrices}},
  year = {2023},
  eprint = {2304.11634},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.11634},
}
Figure