Jump to content

Factor graph: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
typo: iff -> if
References: tweak cites
Line 47: Line 47:
{{No footnotes|date=September 2010}}
{{No footnotes|date=September 2010}}


==References==
==References==
* {{Citation|contribution=Markov random fields in statistics|last=Clifford|year=1990|editor1-last=Grimmett|editor1-first=G.R.|editor2-last=Welsh|editor2-first=D.J.A.|title=Disorder in Physical Systems, J.M. Hammersley Festschrift|pages=19–32|publisher=[[Oxford University Press]]|url=http://www.statslab.cam.ac.uk/~grg/books/hammfest/3-pdc.ps}}
* {{Citation|contribution=Markov random fields in statistics |last=Clifford |year=1990 |editor1-last=Grimmett|editor1-first=G.R.|editor2-last=Welsh|editor2-first=D.J.A.|title=Disorder in Physical Systems, J.M. Hammersley Festschrift|pages=19–32|publisher=[[Oxford University Press]]|url=http://www.statslab.cam.ac.uk/~grg/books/hammfest/3-pdc.ps |format=postscript |isbn=9780198532156}}
* {{Citation
* {{Citation
| last = Frey
| last = Frey
Line 55: Line 55:
| editor-first = Nitin
| editor-first = Nitin
| contribution = Extending Factor Graphs so as to Unify Directed and Undirected Graphical Models
| contribution = Extending Factor Graphs so as to Unify Directed and Undirected Graphical Models
| title = UAI'03, Proceedings of the 19th Conference in Uncertainty in Artificial Intelligence, August 7–10, Acapulco, Mexico
| title = UAI'03, Proceedings of the 19th Conference in Uncertainty in Artificial Intelligence
| year = 2003 |isbn = 0127056645 |contribution-url= https://dl.acm.org/doi/abs/10.5555/2100584.2100615
| year = 2003
| pages = 257–264
| pages = 257–264 | arxiv = 1212.2486
| publisher = Morgan Kaufmann }}
| publisher = Morgan Kaufmann }}
* {{Citation
* {{Citation
Line 70: Line 70:
| pages = 498–519
| pages = 498–519
| year = 2001
| year = 2001
| citeseerx = 10.1.1.54.1570
| url = http://citeseer.ist.psu.edu/kschischang01factor.html
| doi = 10.1109/18.910572
| doi = 10.1109/18.910572
| accessdate = 2008-02-06
| postscript = . }}
| postscript = . }}
* {{Citation
* {{Citation

Revision as of 09:39, 13 June 2021

A factor graph is a bipartite graph representing the factorization of a function. In probability theory and its applications, factor graphs are used to represent factorization of a probability distribution function, enabling efficient computations, such as the computation of marginal distributions through the sum-product algorithm. One of the important success stories of factor graphs and the sum-product algorithm is the decoding of capacity-approaching error-correcting codes, such as LDPC and turbo codes.

Factor graphs generalize constraint graphs. A factor whose value is either 0 or 1 is called a constraint. A constraint graph is a factor graph where all factors are constraints. The max-product algorithm for factor graphs can be viewed as a generalization of the arc-consistency algorithm for constraint processing.

Definition

A factor graph is a bipartite graph representing the factorization of a function. Given a factorization of a function ,

where , the corresponding factor graph consists of variable vertices , factor vertices , and edges . The edges depend on the factorization as follows: there is an undirected edge between factor vertex and variable vertex if . The function is tacitly assumed to be real-valued: .

Factor graphs can be combined with message passing algorithms to efficiently compute certain characteristics of the function , such as the marginal distributions.

Examples

An example factor graph

Consider a function that factorizes as follows:

,

with a corresponding factor graph shown on the right. Observe that the factor graph has a cycle. If we merge into a single factor, the resulting factor graph will be a tree. This is an important distinction, as message passing algorithms are usually exact for trees, but only approximate for graphs with cycles.

Message passing on factor graphs

A popular message passing algorithm on factor graphs is the sum-product algorithm, which efficiently computes all the marginals of the individual variables of the function. In particular, the marginal of variable is defined as

where the notation means that the summation goes over all the variables, except . The messages of the sum-product algorithm are conceptually computed in the vertices and passed along the edges. A message from or to a variable vertex is always a function of that particular variable. For instance, when a variable is binary, the messages over the edges incident to the corresponding vertex can be represented as vectors of length 2: the first entry is the message evaluated in 0, the second entry is the message evaluated in 1. When a variable belongs to the field of real numbers, messages can be arbitrary functions, and special care needs to be taken in their representation.

In practice, the sum-product algorithm is used for statistical inference, whereby is a joint distribution or a joint likelihood function, and the factorization depends on the conditional independencies among the variables.

The Hammersley–Clifford theorem shows that other probabilistic models such as Bayesian networks and Markov networks can be represented as factor graphs; the latter representation is frequently used when performing inference over such networks using belief propagation. On the other hand, Bayesian networks are more naturally suited for generative models, as they can directly represent the causalities of the model.

See also

References

  • Clifford (1990), "Markov random fields in statistics", in Grimmett, G.R.; Welsh, D.J.A. (eds.), Disorder in Physical Systems, J.M. Hammersley Festschrift (postscript), Oxford University Press, pp. 19–32, ISBN 9780198532156
  • Frey, Brendan J. (2003), "Extending Factor Graphs so as to Unify Directed and Undirected Graphical Models", in Jain, Nitin (ed.), UAI'03, Proceedings of the 19th Conference in Uncertainty in Artificial Intelligence, Morgan Kaufmann, pp. 257–264, arXiv:1212.2486, ISBN 0127056645
  • Kschischang, Frank R.; Frey, Brendan J.; Loeliger, Hans-Andrea (2001), "Factor Graphs and the Sum-Product Algorithm", IEEE Transactions on Information Theory, 47 (2): 498–519, CiteSeerX 10.1.1.54.1570, doi:10.1109/18.910572.
  • Wymeersch, Henk (2007), Iterative Receiver Design, Cambridge University Press, ISBN 978-0-521-87315-4