Relaxed Triangle Inequality for Kullback-Leibler Divergence Between Multivariate Gaussian Distributions
Shiji Xiao, Yufeng Zhang, Chubo Liu, Yan Ding, Keqin Li, Kenli Li
TL;DR
This paper establishes a tight, dimension-free supremum for the Kullback-Leibler divergence between Gaussian distributions under fixed intermediate divergences: KL$(\mathcal{N}_1 \| \mathcal{N}_2)=\Delta_1$ and KL$(\mathcal{N}_2 \| \mathcal{N}_3)=\Delta_2$. The main result shows KL$(\mathcal{N}_1 \| \mathcal{N}_3) \le \tfrac{1}{2}[ w_2(2\Delta_1)-1 ][ w_2(2\Delta_2)-1 ] + \Delta_1 + \Delta_2$, where $w_2(t)$ is defined via Lambert W function, and equality characterizes exact Gaussian parameters achieving the bound. For small divergences, the supremum simplifies to $\Delta_1 + \Delta_2 + 2\sqrt{\Delta_1\Delta_2} + o(\Delta_1) + o(\Delta_2)$, improving prior looser bounds. The paper also provides explicit necessary and sufficient conditions for attainment, and validates the theory with numerical experiments. Finally, it discusses practical applications in out-of-distribution detection with flow-based models and in safe reinforcement learning, where tighter KL triangle-inequality bounds strengthen theoretical guarantees and guiding principles.
Abstract
The Kullback-Leibler (KL) divergence is not a proper distance metric and does not satisfy the triangle inequality, posing theoretical challenges in certain practical applications. Existing work has demonstrated that KL divergence between multivariate Gaussian distributions follows a relaxed triangle inequality. Given any three multivariate Gaussian distributions $\mathcal{N}_1, \mathcal{N}_2$, and $\mathcal{N}_3$, if $KL(\mathcal{N}_1, \mathcal{N}_2)\leq ε_1$ and $KL(\mathcal{N}_2, \mathcal{N}_3)\leq ε_2$, then $KL(\mathcal{N}_1, \mathcal{N}_3)< 3ε_1+3ε_2+2\sqrt{ε_1ε_2}+o(ε_1)+o(ε_2)$. However, the supremum of $KL(\mathcal{N}_1, \mathcal{N}_3)$ is still unknown. In this paper, we investigate the relaxed triangle inequality for the KL divergence between multivariate Gaussian distributions and give the supremum of $KL(\mathcal{N}_1, \mathcal{N}_3)$ as well as the conditions when the supremum can be attained. When $ε_1$ and $ε_2$ are small, the supremum is $ε_1+ε_2+\sqrt{ε_1ε_2}+o(ε_1)+o(ε_2)$. Finally, we demonstrate several applications of our results in out-of-distribution detection with flow-based generative models and safe reinforcement learning.
