In this paper, we investigate the impact of numerical instability on the reliability of sampling, density evaluation, and evidence lower bound (ELBO) estimation in variational flows. We first empirically demonstrate that common flows can exhibit a catastrophic accumulation of error: the numerical flow map deviates significantly from the exact map -- which affects sampling -- and the numerical inverse flow map does not accurately recover the initial input -- which affects density and ELBO computations. Surprisingly though, we find that results produced by flows are often accurate enough for applications despite the presence of serious numerical instability. In this work, we treat variational flows as dynamical systems, and leverage shadowing theory to elucidate this behavior via theoretical guarantees on the error of sampling, density evaluation, and ELBO estimation. Finally, we develop and empirically test a diagnostic procedure that can be used to validate results produced by numerically unstable flows in practice.
翻译:本文研究了数值不稳定性对变分流中采样、密度评估和证据下界(ELBO)估计可靠性的影响。我们首先通过实验证明,常见流模型可能表现出灾难性的误差累积:数值流映射显著偏离精确映射(影响采样),且数值逆流映射无法准确恢复初始输入(影响密度和ELBO计算)。然而令人惊讶的是,我们发现尽管存在严重的数值不稳定性,流模型生成的结果通常仍足以满足实际应用需求。本文将变分流视为动力系统,并利用阴影理论通过采样误差、密度评估和ELBO估计的理论保证来阐明这一行为。最后,我们开发并实验测试了一种诊断程序,可用于在实际中验证由数值不稳定的流模型生成的结果。