Back to Classic ML Mind Map
中文·English
📊 Classic MLID: baum-welch

Baum-Welch (HMM EM)

HMM 参数学习 Baum-Welch
🎯Core Definition
The learning problem estimates HMM parameters λ=(A,B,π)\lambda = (A, B, \pi) from observations alone with no state labels; Baum-Welch is exactly EM applied to HMMs. The E-step uses the current parameters λ(old)\lambda^{(old)} and the forward-backward algorithm to compute posteriors: the state posterior γt(i)=P(qt=iO,λ)=αt(i)βt(i)jαt(j)βt(j)\gamma_t(i) = P(q_t = i \mid O, \lambda) = \frac{\alpha_t(i)\beta_t(i)}{\sum_j \alpha_t(j)\beta_t(j)} (probability of being in state ii at time tt) and the transition posterior ξt(i,j)=αt(i)aijbj(ot+1)βt+1(j)P(Oλ)\xi_t(i, j) = \frac{\alpha_t(i)\, a_{ij}\, b_j(o_{t+1})\, \beta_{t+1}(j)}{P(O \mid \lambda)} (moving iji \to j from tt to t+1t{+}1); the M-step reestimates parameters as expected counts
📌Overview
a^ij=tξt(i,j)tγt(i),b^j(k)=t:ot=vkγt(j)tγt(j),π^i=γ1(i),\hat a_{ij} = \frac{\sum_t \xi_t(i, j)}{\sum_t \gamma_t(i)}, \qquad \hat b_j(k) = \frac{\sum_{t: o_t = v_k} \gamma_t(j)}{\sum_t \gamma_t(j)}, \qquad \hat\pi_i = \gamma_1(i),
📌Overview
iterating E/M until the likelihood P(Oλ)P(O \mid \lambda) converges.
💡Use Cases
unsupervised sequence learning — unlabeled segmentation, speech parameter estimation, bio-sequence modeling; interviews often ask how BW instantiates EM and about its convergence and local optima.
Key Problems Solved
with hidden states, direct likelihood maximization is intractable; EM iteratively builds and raises a lower bound on the likelihood via expected sufficient statistics, guaranteeing that P(Oλ)P(O \mid \lambda) never decreases; but the objective is non-convex, so only local optima are guaranteed — practice uses multiple random restarts, model selection for the state count NN, and scaled forward-backward to avoid numerical underflow on long sequences.
🎯5 High-Frequency Exam Points
1
Write the Baum-Welch reestimation formula a^ij=tξt(i,j)tγt(i)\hat a_{ij} = \frac{\sum_t \xi_t(i,j)}{\sum_t \gamma_t(i)} and explain the meaning of γt(i)\gamma_t(i) and ξt(i,j)\xi_t(i,j).
2
Why is Baum-Welch a special case of EM? What do its E-step and M-step correspond to?
3
How do forward-backward computations yield γt(i)\gamma_t(i) and ξt(i,j)\xi_t(i,j) (combining αt(i)\alpha_t(i), aija_{ij}, bj(ot+1)b_j(o_{t+1}), βt+1(j)\beta_{t+1}(j))?
4
Does Baum-Welch always converge to the global optimum? Why not, and how do you handle local optima?
5
What numerical problem arises in forward-backward over long sequences, and how is it fixed?
📖 In-depth Guide:📄 probabilistic-models
Updated 2026-08-12
🎯
Test Your Knowledge: Practice Questions for "Baum-Welch (HMM EM)"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardViterbi DecodingNext CardLinear-Chain CRF

🔗 More Classic ML Knowledge Cards

AdaBoost DerivationBagging & Random ForestGBDT Negative GradientConfusion Matrix