1 / 12

Complexity Analysis

Inference. Probabilistic Graphical Models. Variable Elimination. Complexity Analysis. Eliminating Z. Reminder: Factor Product. N k =|Val( X k )|. Cost: (m k -1) N k multiplications. Reminder: Factor Marginalization. N k =|Val( X k )|. Cost: ~ N k additions.

apollo
Download Presentation

Complexity Analysis

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Inference Probabilistic Graphical Models Variable Elimination Complexity Analysis

  2. Eliminating Z

  3. Reminder: Factor Product Nk=|Val(Xk)| Cost: (mk-1)Nk multiplications

  4. Reminder: Factor Marginalization Nk=|Val(Xk)| Cost: ~Nkadditions

  5. Complexity of Variable Elimination • Start with m factors • m  n for Bayesian networks • can be larger for Markov networks • At each elimination step generate • At most elimination steps • Total number of factors: m*

  6. Complexity of Variable Elimination • N = max(Nk) = size of the largest factor • Product operations: k(mk-1)Nk • Sum operations: kNk • Total work is linear in N and m*

  7. Complexity of Variable Elimination • Total work is linear in N and m • Nk=|Val(Xk)|=O(drk) where • d = max(|Val(Xi)|) • rk = |Xk| = cardinality of the scope of the kth factor

  8. Complexity Example C I D D G S L J H

  9. Complexity and Elimination Order C • Eliminate: G I D D G S L J H

  10. Complexity and Elimination Order A A Eliminate A first: … … B1 B1 B2 B2 B3 B3 Bk Bk C C Eliminate Bi‘s first:

  11. Summary • Complexity of variable elimination linear in • size of the model (# factors, # variables) • size of the largest factor generated • Size of factor is exponential in its scope • Complexity of algorithm depends heavily on elimination ordering

  12. END END END

More Related