提交PPT

This commit is contained in:
2025-11-11 21:53:58 +08:00
parent b1ba96b691
commit e18bd8b0db
2 changed files with 60 additions and 113 deletions
BIN
View File
Binary file not shown.
+60 -113
View File
@@ -1,173 +1,120 @@
好的,让我们从头开始,结合关键公式,详细讲解一下这篇文章。
# Notes
### 1. 问题的起点:贝叶斯模型更新 (Bayesian Model Updating)
## Slide 1
**在科学和工程中,我们经常有一个数学模型 **$G$** 来描述一个物理系统,但模型中包含未知的参数 **$\theta$** **^1^^1^^1^^1^。我们通过实验测量得到一组数据 **$d$** ^2^。**贝叶斯更新** 的目的就是利用这些测量数据 **$d$** 来反推参数 **$\theta$** 的概率分布 ^3^^3^^3^^3^^3^^3^^3^^3^^3^。
Good morning, everyone. My name is hongru Liu.Thank you all for being here today. I'm here to present my topic named "A Unified Bayesian Framework for Jointly Inferring System Order and Parameters of LTI State-Space Models", supervised by associate Professor Pengfei Wei.
这是通过贝叶斯定理实现的,它是本文所有工作的基础:
## Slide 2
$$
p_{d}(\theta)=c_{E}^{-1}L(\theta)p_{0}(\theta)
$$
My presentation is structured as follows: First, the Background and Methodology, then the core Results and their Discussion, and finally, our Conclusion.
我们来拆解这个公式:
## Slide 3
* **$p_{d}(\theta)$:后验概率密度函数 (Posterior PDF)**。这是我们**想要的结果**,即在“看到”测量数据 $d$ 之后,参数 $\theta$ 的概率分布 。
* **$p_{0}(\theta)$:先验概率密度函数 (Prior PDF)**。这是我们**开始的地方**,即在“看到”数据 *之前*,我们对 $\theta$ 的已有认知或假设。
* **$L(\theta)$:似然函数 (Likelihood Function)**。它描述的是:**如果** 参数真的是 $\theta$,那么我们“看到”测量数据 $d$ 的概率有多大 [cite: 102]。
* **$c_{E}$:模型证据 (Model Evidence)**。这是一个归一化常数,它保证 $p_{d}(\theta)$ 的总概率积分为1 [cite: 102]。它的计算公式为:
$$
Let's start with some background.
## Slide 4
$$c\_{E}=\\int\_{\\mathbb{R}^{n}}L(\\theta)p\_{0}(\\theta)d\\theta
$$
Since I'm a doctoral student in control theory, I will begin by the usage of sytem identification in control theory. Control theory has envolved from classical control like pole placemet to modern control like optimal control and robust control and then to model predictive control, which in my view doesn't belong to modern control anymore. In all these control methods, a precise mathematical model of the system is required in the process of controller design. However, in practical engineering applications, obtaining an accurate mathematical model can be challenging due to the complexity of real-world systems. Such as the control of spacecrafts, airplanes and aeroengines, the dynamics of these systems are often complex and not fully understood, making it difficult to derive accurate models from first principles.
$c_{E}$ 本身也很有用,它可以用来比较不同模型的好坏 [cite: 37, 105]。
Therefore, to apply a model-based control method, it is nessary to identify the black-box system from the input and output data, which is known as system identifycation.
## Slide 5
**挑战** **:在参数 **$\theta$** 维度很高(高维问题)时,这个后验分布 **$p_{d}(\theta)$** 非常复杂,几乎不可能直接求解,连 **$c_{E}$** 的积分也算不出来 **^4^^4^^4^^4^。
In a Bayesian perspective, system identification can be viewed as an inference problem, where parameters of a model are treated as random variables with prior distributions. We infer the posterior distribution of these parameters given the observed data using Bayes's theorem. This approach allows us to quantify uncertainty in the parameter estimates and incorporate prior knowledge into the identification process.
### 2. 求解方法:序列蒙特卡洛 (SMC)
From a state-space perspective, we often represent dynamic systems using state-space models, which consist of a set of first-order differential or difference equations with unknown system order and matrices, as shown in the slide A B C D are the system matrices, x is the state vector, u is the input vector, and y is the output vector. The system order n, which is the dimension of the state vector x, is also unknown and needs to be inferred from the data.
**为了解决这个难题,论文使用了 ****序列蒙特卡洛 (SMC)** 方法 ^5^。
By combining the Bayesian approach with state-space models, we can formulate the system identification problem as jointly inferring the system order and parameters of LTI state-space models from observed input-output data. As shown in the slide, the estimated system state-space model with the estimated matrices Ahat, Bhat, Chat, Dhat can be used for various control applications.
**SMC 的核心思想是“逐步逼近”:它不试图一步到位从 **$p_{0}(\theta)$**(先验)跳到 **$p_{d}(\theta)$**(后验),而是构建一系列平滑过渡的中间分布 **$f_{l}(\theta)$** **^6^^6^^6^^6^。
## Slide 6
最常用的方法是“退火”或“回火”(tempering),通过一个指数 **$\beta_l$** 来实现:
In previous works, various methods have been proposed for system identification, trying to infer the A B C D matrices in LTI state-space models. Bryutkin demonstrate that by leveraging canonical forms, we can represent linear systems with a minimal set of parameters, thereby eliminating redundancies and resolving the identifiability issue. However, in these methods, the system order n is typically assumed to be known, and the HMC algorithm used in Bruytkin's work is not suitable for trans-dimensional sampling required for jointly inferring system order and parameters.
$$
f_{l}(\theta)\propto L(\theta)^{\beta_{l}}p_{0}(\theta), \quad \text{其中 } 0 = \beta_{0} < \beta_{1} < \dots < \beta_{L} = 1
$$[cite\_start][cite: 174-175]
In this work, we used an RJ-MCMC framework to infer model order and model parameters at the same time. By performing a random walk directly on the number and ratio of real and complex eigenvalues, we can identify the system order and parameters simultaneously. This approach allows us to explore models of varying complexity and select the most appropriate one based on the observed data.
本文重排并清理了数学公式与格式,确保在常见 Markdown 渲染器中正确显示(提示:需要支持数学渲染的环境,如 VS Code 预览的数学渲染或 GitHub 的内置 KaTeX/MathJax)。
## Slide 7
### 1. 问题的起点:贝叶斯模型更新 (Bayesian Model Updating)
Now, let's move on to the methodology.
在科学和工程中,我们经常有一个数学模型 $G$ 来描述物理系统,但模型中包含未知参数 $\theta$。我们通过实验测量得到一组数据 $d$。贝叶斯更新的目标是利用测量数据 $d$ 反推参数 $\theta$ 的后验分布。
## Slide 8
这是通过贝叶斯定理实现的:
To better illustrate RJ-MCMC, let's first gain an intuitive grasp of probability transition in MCMC. The detailed balance condition for a standard MCMC algorithm is defined on a fixed-measure space. It compares the transition densities between two points without involving a change of coordinates or a transformation of the underlying measure.
$$
p_{d}(\theta) = c_{E}^{-1} \, L(\theta) \, p_{0}(\theta)
$$
As shown in the slide, x and x prime are two points both in the state space, meaning that they have the same probability measure. The transition density from x to x prime is equal to the transition density from x prime to x, weighted by their respective target densities pi of x and x prime. Here, the differential elements dx and dx prime represent infinitesimal volumes around the points x and x prime, respectively.
其中 $c_E$(模型证据)保证后验归一:
Thus, the detailed balance condition implies that the probability flux from state x to state x' equals the probability flux from x' to x.
$$
c_{E} = \int_{\mathbb{R}^{n}} L(\theta) \, p_{0}(\theta) \, d\theta.
$$
## Slide 9
当参数维度很高时,$p_d(\theta)$ 的形状可能非常复杂,直接计算甚至连证据 $c_E$ 的积分都很难。
However, RJ-MCMC uses auxiliary variables to achieve "dimension matching" for moves between spaces. Since this mapping distorts the underlying measure the detailed balance must be corrected, ultimately introducing a Jacobian determinant into the acceptance rate.
### 2. 求解方法:序列蒙特卡洛 (SMC)
As shown in the slide, x is a point in the state space with probability measure dx, while mu omiga is point in another space with probability measure dmu omiga. Omiga represents the auxiliary variables used to match the dimensions between the two spaces. To ensure that the detailed balance condition holds when transitioning between these two spaces, the Jacobian determinant is introduced in the acceptance ratio.
SMC 的核心思想是“逐步逼近”:不从先验 $p_0(\theta)$ 一步跳到后验 $p_d(\theta)$,而是构建一系列中间分布 $f_l(\theta)$,常见做法是退火/回火(tempering):
In simple terms, the Jacobian determinant accounts for the change in volume when mapping between spaces of different dimensions, ensuring that the probability flux remains balanced.
$$
f_{l}(\theta) \propto L(\theta)^{\beta_{l}} \, p_{0}(\theta), \quad 0=\beta_0 < \beta_1 < \cdots < \beta_L = 1.
$$
## Slide 10
- 当 $\beta_0 = 0$ 时,$f_0(\theta) \propto p_0(\theta)$(先验)。
- 当 $\beta_L = 1$ 时,$f_L(\theta) \propto L(\theta) p_0(\theta)$(后验)。
In this slide, two types of random moves are illustrated: birth-death moves of complex conjugate eigenvalue pairs and real eigenvalue. In the birth move, a new complex conjugate eigenvalue pair or a real eigenvalue is added to the model, increasing the system order by one ortwo. Conversely, in the death move, an existing complex conjugate eigenvalue pair or a real eigenvalue is removed from the model, decreasing the system order by one or two. These moves allow the RJ-MCMC algorithm to explore models of varying complexity by adding or removing eigenvalues as needed.
从 $f_{l-1}$ 到 $f_l$SMC 通常包含三步:
Here in the slide, the auxiliary variables in the birth and death moves of complex conjugate eigenvalue pairs making the detail balance condition unhold, therefore, the Jacobian determinant is required in the acceptance ratio to correct for this distortion in the measure.
1) 重加权(Reweighting):根据新的 $\beta_l$ 重新计算粒子权重;
2) 重采样(Resampling):复制高权重、淘汰低权重粒子(会导致样本贫化);
3) 移动(Moving):在保持 $f_l$ 不变的前提下,对粒子做若干步 MCMC 以恢复多样性。
## Slide 11
### 3. “移动”步骤的经典算法:pCN
In this slide, two types of random moves are illustrated: Split move of complex conjugate eigenvalue pair and Merge move of two real eigenvalues. In the Split move, an existing complex conjugate eigenvalue pair is divided into two separate real eigenvalues, effectively changing the nature of the eigenvalues while keeping the system order the same. Conversely, in the Merge move, two existing real eigenvalues are combined to form a single complex conjugate eigenvalue pair, again maintaining the system order. These moves allow the RJ-MCMC algorithm to explore different configurations of eigenvalues without altering the overall system order.
pCN(预条件 Crank–Nicolson)在高维问题中表现稳健,尤其适用于高斯先验 $p_0(\theta)=\mathcal{N}(0,I)$ 的情形。其提议为:
Here in the slide, although the order of the system remains unchanged during Split and Merge moves, the auxiliary variables involved in these moves still distort the underlying measure. Therefore, the Jacobian determinant is required in the acceptance ratio to correct for this distortion and ensure that the detailed balance condition holds.
$$
v = \sqrt{1-s^{2}}\, \theta_{0} + s\, \xi, \quad \xi \sim \mathcal{N}(0, I), \; s\in[0,1].
$$
## Slide 12
对应的 MetropolisHastings 接受率在退火分布 $f_l \propto L^{\beta_l} p_0$ 下可简化为:
In this slide, we summerize the previous four types of random moves and additionally include the random walk move, which updates the parameters of existing eigenvalues without changing the system order or the number of real and complex eigenvalues. The random walk move allows for fine-tuning of the eigenvalue parameters, enabling the RJ-MCMC algorithm to explore the parameter space more thoroughly while maintaining the current model structure.
$$
\alpha(\theta_{0}, v) = \min\left\{1, \frac{L(v)^{\beta_{l}}}{L(\theta_{0})^{\beta_{l}}} \right\}.
$$
So in total, we have five types of random moves in our RJ-MCMC framework: in the early stages of training, mainly focus on birth-death processes to infer the model order; in the later stages, we emphasize split-merge processes to refine the configuration of eigenvalues; throughout the entire process, random walk moves are employed to optimize the parameters of existing eigenvalues.
关键点:先验项在接受率中相互抵消,接受与否仅由似然的相对变化决定,这使 pCN 的性能对参数维度不敏感。
## Slide 13
然而,pCN 的提议协方差等同于先验(单位阵),在后期 $f_l$ 已经很“窄”且相关性强时,方向上不自适应,效率会下降。
To apply the RJ-MCMC framework, the posterior distribution or unnormalized posterior distribution of model parameters given by the observed data is required in the acceptance ratio of each random move. Here in this slide, we present the likelihood function of the observed input-output data given the model parameters using kalman filter to compute the one-step-ahead prediction errors. Here the notation of errors are mu t, which is the difference between the real output y real and the filtered output y filtered at time t. Thus the likelihood function can be computed as shown in the slide. Next, the total log-likelihood function over the entire data set is given by summing the log-likelihoods at each time step.
---
## Slide 14
### 4. 新算法一:cov-pCN(协方差信息 pCN
Originally, next we will cover the prior distributions and the proposal distributions of model parameters used in our RJ-MCMC framework. To make the presentation more intuitive, I have moved the example setup to the Results section, so we can directly see how these prior and proposal distributions are applied in practice.
思想:在第 $l$ 步,利用带权样本估计目标分布 $f_l$ 的协方差 $\hat{\Sigma}_{f_l}$,并让提议分布适应该协方差结构。
Now, let's move on to the Results section.
令 $\hat{\Sigma}_{f_l} = W L W^{\top}$ 为特征分解,则广义 pCN 提议为:
## Slide 15
$$
v = A\,\theta_0 + s\, W L^{1/2} \xi, \quad \xi \sim \mathcal{N}(0,I),
$$
In this slide, we will present the proposal distributions of birth-death moves of real eigenvalues and complex conjugate eigenvalue pairs.
其中
For the birth move of a real eigenvalue, a new auxiliary variable u is sampled from a uniform distribution between -1 and 1, representing a stable real eigenvalues lambda k plus one. As shown in the slide, the original eigenvalue sets x are augmented with the new eigenvalue lambda k plus one to form the new eigenvalue sets x prime.
$$
A = \sqrt{I - s^{2} \hat{\Sigma}_{f_l}} = W\, \sqrt{I - s^{2} L} \, W^{\top}.
$$
For the birth move of a complex conjugate eigenvalue pair, two new auxiliary variables $\rho$ and $\theta$ are sampled from uniform distributions. To ensure stability, $rho$ is sampled between 0 and 1, while $\theta$ is sampled between 0 and pi. These variables represent the magnitude and angle of the complex conjugate eigenvalue pair lumbda k plus one prime and lambda k plus two prime. Here in the slide, the original eigenvalue sets x are augmented with the new auxiliary variables $\rho$ and $\theta$ which have different probability measures, to form the new eigenvalue sets x prime. Therefore, the Jacobian determinant is required in the acceptance ratio to correct for this distortion in the measure.
这样构造可保持接受率与 pCN 同型:
Similarly, for the death moves of real eigenvalues and complex conjugate eigenvalue pairs, the corresponding auxiliary variables are removed from the eigenvalue sets to form the new eigenvalue sets x prime. Again, the Jacobian determinant is included in the acceptance ratio to account for the change in measure.
$$
\alpha(\theta_{0}, v) = \min\left\{1, \frac{L(v)^{\beta_{l}}}{L(\theta_{0})^{\beta_{l}}} \right\},
$$
## Slide 16
但提议方向对齐于 $f_l$ 的主协方差方向,混合更高效。
In this slide, we will present the proposal distributions of split-merge moves of real eigenvalues, complex conjugate eigenvalue pairs and the random walk move. For the merge move of two real eigenvalues, the two ramdom selected real eigenvalues lambda i and lambda p are merged into a new complex conjugate eigenvalue pair lambda k plus one prime and lambda k plus two prime. Here in the slide, the original eigenvalue set x is updated by removing the two selected real eigenvalues and adding the new auxiliary varables rho and theta, which have different probability measures, to form the new eigenvalue sets x prime. Therefore, the Jacobian determinant is required in the acceptance ratio to correct for this distortion in the measure.
---
For the split move of a complex conjugate eigenvalue pair, the selected complex conjugate eigenvalue pair lambda i and lambda i plus one is split into two new real eigenvalues lambda k plus one prime and lambda k plus two prime. Here in the slide, the original eigenvalue set x is updated by removing the selected complex conjugate eigenvalue pair and adding the new auxiliary variables u and v to form the new eigenvalue sets x prime.
### 5. 新算法二:pc-M(主成分 M–H)
## Slide 17
思想:高维协方差的主要方差集中在少数主方向上。仅沿主成分方向做随机游走即可。
In this slide, we present the prior distributions of model parameters and the order selection domain used in our RJ-MCMC framework. To ensure system stability, we assume that all the eigenvalues lie within the unit circle in the complex plane. And other parameters such as the output matrix C are assumed to follow Gaussian prior distributions with specified means and variances.
做特征分解 $\hat{\Sigma}_{f_l} = W L W^{\top}$,取前 $n_r$ 个特征对 $(\rho_k, c_k)$,按权重(如与 $\rho_k$ 相关)随机选方向 $k$,然后:
The two graph in the slide illustrate the posterior distribution of eigenvalues and the matrices C obtained from our purposed algorithm. The sheet shows that the coefficients of variation CV of the inferred eigenvalues and matrices C are relatively small. Moreover, the system order will be shown in the next section.
$$
v = \theta_0 + s\, \rho_k\, c_k\, \xi, \quad \xi \sim \mathcal{N}(0,1).
$$
## Slide 18
这是普通随机游走(RWM),接受率为:
Now, let's move on to the discussion of results. In this part, we will focus on the convergence analysis of the system order.
$$
\alpha(\theta_0, v) = \min\left\{1, \frac{f_l(v)}{f_l(\theta_0)} \right\}
= \min\left\{1, \frac{L(v)^{\beta_l} \, p_0(v)}{L(\theta_0)^{\beta_l} \, p_0(\theta_0)} \right\}.
$$
## Slide 19
---
Here in the slide, we present the convergence process of the system order n during our sampling procedure. From the praph, we can observe that after the burn-in process, the model order remains at 3, and its eigenvalues consist of one complex conjugate pair and one real value. This indicates that our RJ-MCMC framework successfully converges to the true system order and accurately identifies the eigenvalue structure of the underlying system. But the system order converges seems to be due to the convergence of other parameters, which is not as expected.
### 6. 协方差矩阵的估计与递归更新
## Slide 20
两种新算法都依赖于“好的”协方差估计 $\hat{\Sigma}_{f_l}$。
What's more, to prevent the system order from getting to high, or to say, to avoid overfitting, a Bayesian information criterion BIC penalty term is added to the log-likelihood function in the acceptance ratio of each random move. Here in the slide, we present the estimated likelihood of the observed data given the model order M. After adding the BIC penalty term, the estimated overall likelihood is shown in the slide.
1) 初始估计:用重采样前的带权样本估计均值 $\hat{\mu}_{f_l,0}$ 和协方差
## Slide 21
$$
\hat{\Sigma}_{f_l,0} = \sum_{j=1}^{J} w_j\, (\theta_j - \hat{\mu}_{f_l,0})(\theta_j - \hat{\mu}_{f_l,0})^{\top}.
$$
Next, the conclusion section.
2) 递归更新:每获得 $J_a$ 个新样本就批量更新一次,降低特征分解开销($O(n^3)$)。令步长为 $\gamma_{\mathrm{iter}}$,则
$$
\hat{\Sigma}_{f_l,\mathrm{iter}} = \hat{\Sigma}_{f_l,\mathrm{iter-1}} \\
\quad + \; \gamma_{\mathrm{iter}} \Bigg[ \frac{1}{J_a} \sum_{j=1}^{J_a}
(\theta_j - \hat{\mu}_{f_l,\mathrm{iter-1}})(\theta_j - \hat{\mu}_{f_l,\mathrm{iter-1}})^{\top}
\; - \hat{\Sigma}_{f_l,\mathrm{iter-1}} \Bigg].
$$
这是标准的递归平均思想,用 $\gamma$ 平衡新旧信息。
### 7. 实验结论(摘要)
- 高维(如 236 维水文层析)问题中,需要较多退火步数(如约 40)才能从先验到后验;
- 标准 pCN 在较早阶段接受率就显著下降,移动步骤失效;
- cov-pCN 的接受率下降更慢,多数退火步骤中仍能有效“移动”粒子;
- 在难问题上,cov-pCN 的均值误差、失配与不确定性更优。
总之:在 SMC 中引入自适应协方差的 cov-pCN,通常比标准 pCN 更稳健高效,尤其是需要大量退火步骤的复杂高维反问题。
$$