<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Graphical-Models on Aayush Bajaj's Augmenting Infrastructure</title><link>https://abaj.ai/tags/graphical-models/</link><description>Recent content in Graphical-Models on Aayush Bajaj's Augmenting Infrastructure</description><generator>Hugo</generator><language>en</language><copyright>© 2026 Aayush Bajaj</copyright><lastBuildDate>Mon, 31 Aug 2026 00:29:55 +1000</lastBuildDate><atom:link href="https://abaj.ai/tags/graphical-models/index.xml" rel="self" type="application/rss+xml"/><item><title>Probabilistic Graphical Models</title><link>https://abaj.ai/wiki/ml/pgm/</link><pubDate>Mon, 31 Aug 2026 00:29:55 +1000</pubDate><guid>https://abaj.ai/wiki/ml/pgm/</guid><description>&lt;p>a probabilistic graphical model is a marriage of graph theory and probability: the graph records which variables talk to each other directly, and that structure alone dictates how compactly a joint distribution can be stored, which independencies it must satisfy, and how expensive it is to reason with. one set of ideas — factors, elimination, message passing, sampling — then serves diagnosis networks, spam filters, speech recognisers, image denoisers and gene-regulation maps alike.&lt;/p></description></item><item><title>Approximate Inference</title><link>https://abaj.ai/wiki/ml/pgm/approximate-inference/</link><pubDate>Mon, 31 Aug 2026 00:29:54 +1000</pubDate><guid>https://abaj.ai/wiki/ml/pgm/approximate-inference/</guid><description>&lt;p>&lt;a
 href="https://abaj.ai/wiki/ml/pgm/inference/"
 
 
>exact inference&lt;/a> costs \(\exp(\text{treewidth})\), and real networks — image grids, dense diagnostic models, unrolled &lt;a
 href="https://abaj.ai/wiki/ml/pgm/markov-models/"
 
 
>dbns&lt;/a> — routinely have treewidth in the hundreds. approximate inference trades guaranteed answers for tractable ones, along two philosophically different roads: &lt;strong>sampling&lt;/strong> replaces the distribution with draws from it (anytime, asymptotically exact, embarrassingly parallel), and &lt;strong>approximate message passing&lt;/strong> runs exact-style propagation on graphs where its correctness proof no longer holds. this page walks the sampling ladder in the order each rung fixes the last one&amp;rsquo;s failure — forward, rejection, likelihood weighting, gibbs — then closes with loopy belief propagation.&lt;span class="margin-note" data-note="comp9418 benchmarks all four samplers against variable elimination on the icu-alarm network; the qualitative ranking below is what those experiments show">
 &lt;span class="margin-note-indicator">𐃏&lt;/span>
&lt;/span>
&lt;/p></description></item><item><title>Bayesian Networks</title><link>https://abaj.ai/wiki/ml/pgm/bayesian-networks/</link><pubDate>Mon, 31 Aug 2026 00:29:54 +1000</pubDate><guid>https://abaj.ai/wiki/ml/pgm/bayesian-networks/</guid><description>&lt;p>a joint probability distribution over \(n\) binary variables is a table with \(2^n - 1\) free numbers. at \(n = 30\) that is a billion parameters for a toy problem — nobody can elicit them, store them, or estimate them from data. the bayesian network is the classical answer: encode the &lt;em>independencies&lt;/em> of the distribution in a directed acyclic graph, and the joint collapses into a product of small local tables.&lt;span class="margin-note" data-note="the treatment here follows darwiche&amp;#39;s book and unsw&amp;#39;s comp9418, which is taught from it">
 &lt;span class="margin-note-indicator">𐃏&lt;/span>
&lt;/span>
the graph is simultaneously a data structure for storage, a calculus for reading off independence, and the substrate on which every &lt;a
 href="https://abaj.ai/wiki/ml/pgm/inference/"
 
 
>inference algorithm&lt;/a> runs.&lt;/p></description></item><item><title>Exact Inference</title><link>https://abaj.ai/wiki/ml/pgm/inference/</link><pubDate>Mon, 31 Aug 2026 00:29:54 +1000</pubDate><guid>https://abaj.ai/wiki/ml/pgm/inference/</guid><description>&lt;p>a &lt;a
 href="https://abaj.ai/wiki/ml/pgm/bayesian-networks/"
 
 
>bayesian network&lt;/a> stores a joint distribution; inference is spending that investment — computing probabilities the tables do not state directly. exact inference is np-hard in general, but its true cost is exponential only in a structural parameter of the graph (the &lt;em>treewidth&lt;/em>), not in the number of variables. this page builds the exact toolchain in the order the ideas force themselves on you: factors, variable elimination, the fight for a good elimination order, and finally the jointree algorithm — variable elimination industrialised into a message-passing scheme that answers every marginal at once.&lt;span class="margin-note" data-note="when the treewidth is too large, exact methods drown and you switch to the sampling algorithms on the approximate inference page">
 &lt;span class="margin-note-indicator">𐃏&lt;/span>
&lt;/span>
&lt;/p></description></item><item><title>Markov Chains and Hidden Markov Models</title><link>https://abaj.ai/wiki/ml/pgm/markov-models/</link><pubDate>Mon, 31 Aug 2026 00:29:54 +1000</pubDate><guid>https://abaj.ai/wiki/ml/pgm/markov-models/</guid><description>&lt;p>time is just another dimension to factorise over. a &lt;a
 href="https://abaj.ai/wiki/ml/pgm/bayesian-networks/"
 
 
>bayesian network&lt;/a> whose variables are indexed by time steps, with the same local structure copied at every step, is a &lt;em>dynamic bayesian network&lt;/em> — and its two simplest members, the markov chain and the hidden markov model, carry a startling share of applied probability: language models before transformers, speech recognition, robot localisation, pagerank, and the mcmc machinery behind &lt;a
 href="https://abaj.ai/wiki/ml/pgm/approximate-inference/"
 
 
>approximate inference&lt;/a>.&lt;span class="margin-note" data-note="the modern neural take on the same sequence problem is the rnn — same graph, learned transition function">
 &lt;span class="margin-note-indicator">𐃏&lt;/span>
&lt;/span>
&lt;/p></description></item><item><title>Markov Networks</title><link>https://abaj.ai/wiki/ml/pgm/markov-networks/</link><pubDate>Mon, 31 Aug 2026 00:29:54 +1000</pubDate><guid>https://abaj.ai/wiki/ml/pgm/markov-networks/</guid><description>&lt;p>some dependencies have no natural direction. two neighbouring pixels tend to share a label; two friends tend to vote alike; two adjacent atoms couple their spins. forcing an arrow onto these symmetric interactions — as a &lt;a
 href="https://abaj.ai/wiki/ml/pgm/bayesian-networks/"
 
 
>bayesian network&lt;/a> must — misrepresents them. the &lt;strong>markov network&lt;/strong> (markov random field, mrf) is the undirected alternative, born in statistical physics: edges express mutual compatibility, parametrised not by conditional probabilities but by unnormalised &lt;em>potentials&lt;/em>, with a global normalising constant picking up the bill.&lt;span class="margin-note" data-note="the trade is exactly that: local, symmetric, easy-to-change factors — in exchange for a partition function that is np-hard to evaluate">
 &lt;span class="margin-note-indicator">𐃏&lt;/span>
&lt;/span>
&lt;/p></description></item></channel></rss>