通过格拉姆微分实现平方根卡尔曼滤波器的鲁棒自动微分
Robust Automatic Differentiation of Square-Root Kalman Filters via Gramian Differentials
AI总结:
本文提出通过格拉姆微分解决平方根卡尔曼滤波器的自动微分问题,证明了即使在秩不足情况下,格拉姆矩阵也能保证损失函数的平滑性。
摘要:
平方根卡尔曼滤波器通过Cholesky因子形式传播状态协方差以保持数值稳定性,并在状态空间模型中是梯度基参数学习的自然目标。其核心操作是矩阵M∈R^{n×m}的三角化,通常通过QR分解实现,但直接对其进行微分会导致两个问题:当m>n时,半正交因子非唯一,导致梯度未定义;标准雅可比公式涉及逆矩阵,当M秩不足时会发散。通过观察发现,所有与学习相关的滤波器输出仅依赖于输入矩阵通过格拉姆矩阵MM^T,因此即使三角化不成立,复合损失在M上也是平滑的。我们从格拉姆矩阵恒等式的微分推导出闭合形式的链式法则,证明其对卡尔曼对数边际似然和过滤矩是精确的,并通过双组件分解扩展到秩不足输入:基于Moore-Penrose伪逆的列空间项,以及针对M列空间外扰动的零空间修正。
英文摘要:
Square-root Kalman filters propagate state covariances in Cholesky-factor form for numerical stability, and are a natural target for gradient-based parameter learning in state-space models. Their core operation, triangularization of a matrix $M \in \mathbb{R}^{n \times m}$, is computed via a QR decomposition in practice, but naively differentiating through it causes two problems: the semi-orthogonal factor is non-unique when $m > n$, yielding undefined gradients; and the standard Jacobian formula involves inverses, which diverges when $M$ is rank-deficient. Both are resolved by the observation that all filter outputs relevant to learning depend on the input matrix only through the Gramian $MM^\top$, so the composite loss is smooth in $M$ even where the triangularization is not. We derive a closed-form chain-rule directly from the differential of this Gramian identity, prove it exact for the Kalman log-marginal likelihood and filtered moments, and extend it to rank-deficient inputs via a two-component decomposition: a column-space term based on the Moore--Penrose pseudoinverse, and a null-space correction for perturbations outside the column space of $M$.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。