Maximal entropy random walk explained

Maximal entropy random walk (MERW) is a popular type of biased random walk on a graph, in which transition probabilities are chosen accordingly to the principle of maximum entropy, which says that the probability distribution which best represents the current state of knowledge is the one with largest entropy. While standard random walk chooses for every vertex uniform probability distribution among its outgoing edges, locally maximizing entropy rate, MERW maximizes it globally (average entropy production) by assuming uniform probability distribution among all paths in a given graph.

MERW is used in various fields of science. A direct application is choosing probabilities to maximize transmission rate through a constrained channel, analogously to Fibonacci coding. Its properties also made it useful for example in analysis of complex networks,[1] like link prediction,[2] community detection,[3] robust transport over networks[4] and centrality measures.[5] Also in image analysis, for example for detecting visual saliency regions,[6] object localization,[7] tampering detection[8] or tractography problem.[9]

Additionally, it recreates some properties of quantum mechanics, suggesting a way to repair the discrepancy between diffusion models and quantum predictions, like Anderson localization.[10]

Basic model

Consider a graph with

n

vertices, defined by an adjacency matrix

A\in\left\{0,1\right\}n

:

Aij=1

if there is an edge from vertex

i

to

j

, 0 otherwise. For simplicity assume it is an undirected graph, which corresponds to a symmetric

A

; however, MERW can also be generalized for directed and weighted graphs (for example Boltzmann distribution among paths instead of uniform).

We would like to choose a random walk as a Markov process on this graph: for every vertex

i

and its outgoing edge to

j

, choose probability

Sij

of the walker randomly using this edge after visiting

i

. Formally, find a stochastic matrix

S

(containing the transition probabilities of a Markov chain) such that

0\leqSij\leqAij

for all

i,j

and
n
\sum
j=1

Sij=1

for all

i

.Assuming this graph is connected and not periodic, ergodic theory says that evolution of this stochastic process leads to some stationary probability distribution

\rho

such that

\rhoS=\rho

.

Using Shannon entropy for every vertex and averaging over probability of visiting this vertex (to be able to use its entropy), we get the following formula for average entropy production (entropy rate) of the stochastic process:

n
H(S)=\sum
i=1

\rhoi

n
\sum
j=1

Sijlog(1/Sij)

This definition turns out to be equivalent to the asymptotic average entropy (per length) of the probability distribution in the space of paths for this stochastic process.

In the standard random walk, referred to here as generic random walk (GRW), we naturally choose that each outgoing edge is equally probable:

Sij=

Aij
n
\sum\limitsAik
k=1
.For a symmetric

A

it leads to a stationary probability distribution

\rho

with

\rhoi=

n
\sum\limitsAij
j=1
n
\sum\limits
n
\sum\limits
j=1
Aij
i=1
.It locally maximizes entropy production (uncertainty) for every vertex, but usually leads to a suboptimal averaged global entropy rate

H(S)

.

MERW chooses the stochastic matrix which maximizes

H(S)

, or equivalently assumes uniform probability distribution among all paths in a given graph. Its formula is obtained by first calculating the dominant eigenvalue

λ

and corresponding eigenvector

\psi

of the adjacency matrix, i.e. the largest

λ\inR

with corresponding

\psi\inRn

such that

\psiA=λ\psi

. Then stochastic matrix and stationary probability distribution are given by

Sij=

Aij
λ
\psij
\psii
for which every possible path of length

l

from the

i

-th to

j

-th vertex has probability
1
λl
\psij
\psii
.Its entropy rate is

log(λ)

and the stationary probability distribution

\rho

is

\rhoi=

2
\psi
i
2
\|\psi\|
2
.

In contrast to GRW, the MERW transition probabilities generally depend on the structure of the entire graph (are nonlocal). Hence, they should not be imagined as directly applied by the walker – if random-looking decisions are made based on the local situation, like a person would make, the GRW approach is more appropriate. MERW is based on the principle of maximum entropy, making it the safest assumption when we don't have any additional knowledge about the system. For example, it would be appropriate for modelling our knowledge about an object performing some complex dynamics – not necessarily random, like a particle.

Sketch of derivation

Assume for simplicity that the considered graph is indirected, connected and aperiodic, allowing to conclude from the Perron–Frobenius theorem that the dominant eigenvector is unique. Hence

Al

can be asymptotically (

l → infty

) approximated by

λl\psi\psiT

(or

λl|\psi\rangle\langle\psi|

in bra–ket notation).

MERW requires uniform distribution along paths. The number

mil

of paths with length

2l

and vertex

i

in the center is

mil=

n
\sum
j=1
n
\sum
k=1
l\right)
\left(A
ji
l\right)
\left(A
ik

n
\sum
j=1
n
\sum
k=1

\left(λl\psi

\top\right)
\psi
ji

\left(λl\psi

\top\right)
\psi
ik

=

n
\sum
j=1
n
\sum
k=1

λ2l\psij\psii\psii\psik=λ2l

2
\psi
i
n
\underbrace{\sum
j=1

\psij

n
\sum
k=1

\psik}=:

,hence for all

i

,

\rhoi=\liml

mil
n
\sum\limitsmkl
k=1

=\liml

2l
λ
2
\psi
i
b
n
\sum\limitsλ2l
2
\psi
k
b
k=1

=\liml

2
\psi
i
n
\sum\limits
2
\psi
k
k=1

=

2
\psi
i
n
\sum\limits
2
\psi
k
k=1

=

2
\psi
i
2
\|\psi\|
2
.

Analogously calculating probability distribution for two succeeding vertices, one obtains that the probability of being at the

i

-th vertex and next at the

j

-th vertex is
\psiiAij\psij
n
\sum\limits
n
\sum\limits
j'=1
\psii'Ai'j'\psij'
i'=1

=

\psiiAij\psij
\psiA\psi\top

=

\psiiAij\psij
λ
2
\|\psi\|
2
.Dividing by the probability of being at the

i

-th vertex, i.e.

\rhoi

, gives for the conditional probability

Sij

of the

j

-th vertex being next after the

i

-th vertex

Sij=

Aij
λ
\psij
\psii
.

Weighted MERW: Boltzmann path ensemble

We have assumed that

Aij\in\{0,1\}

for MERW corresponding to uniform ensemble among paths. However, the above derivation works for real nonnegative

A

. Parametrizing

Aij=\exp(-Eij)

and asking for probability of length

l

path

(\gamma0,\ldots,\gammal)

, we get:

rm{Pr}(\gamma0,\ldots,\gammal)=\rho

\gamma0
S
\gamma0\gamma1

\ldots

S
\gammal-1\gammal

=

\psi
\gamma0
A\ldots
A
\gammal-1\gammal
\gamma0\gamma1
λl
\psi
\gammal
=\psi
\gamma0
\exp(-(E+\ldots
+E
\gammal-1\gammal
))
\gamma0\gamma1
λl
\psi
\gammal

As in Boltzmann distribution of paths for energy defined as sum of

Eij

over given path. For example, it allows to calculate probability distribution of patterns in Ising model.

Examples

Let us first look at a simple nontrivial situation: Fibonacci coding, where we want to transmit a message as a sequence of 0s and 1s, but not using two successive 1s: after a 1 there has to be a 0. To maximize the amount of information transmitted in such sequence, we should assume uniform probability distribution in the space of all possible sequences fulfilling this constraint. To practically use such long sequences, after 1 we have to use 0, but there remains a freedom of choosing the probability of 0 after 0. Let us denote this probability by

q

, then entropy coding would allow encoding a message using this chosen probability distribution. The stationary probability distribution of symbols for a given

q

turns out to be

\rho=(1/(2-q),1-1/(2-q))

. Hence, entropy production is

H(S)=\rho0\left(qlog(1/q)+(1-q)log(1/(1-q))\right)

, which is maximized for

q=(\sqrt{5}-1)/2 ≈ 0.618

, known as the golden ratio. In contrast, standard random walk would choose suboptimal

q=0.5

. While choosing larger

q

reduces the amount of information produced after 0, it also reduces frequency of 1, after which we cannot write any information.

A more complex example is the defected one-dimensional cyclic lattice: let say 1000 nodes connected in a ring, for which all nodes but the defects have a self-loop (edge to itself). In standard random walk (GRW) the stationary probability distribution would have defect probability being 2/3 of probability of the non-defect vertices – there is nearly no localization, also analogously for standard diffusion, which is infinitesimal limit of GRW. For MERW we have to first find the dominant eigenvector of the adjacency matrix – maximizing

λ

in:

(λ\psi)x=(A\psi)x=\psix-1+(1-Vx)\psix+\psix+1

for all positions

x

, where

Vx=1

for defects, 0 otherwise. Substituting

3\psix

and multiplying the equation by −1 we get:

E\psix=-(\psix-1-2\psix+\psix+1)+Vx\psix

where

E=3-λ

is minimized now, becoming the analog of energy. The formula inside the bracket is discrete Laplace operator, making this equation a discrete analogue of stationary Schrodinger equation. As in quantum mechanics, MERW predicts that the probability distribution should lead exactly to the one of quantum ground state:

\rhox\propto

2
\psi
x
with its strongly localized density (in contrast to standard diffusion). Taking the infinitesimal limit, we can get standard continuous stationary (time-independent) Schrodinger equation (

E\psi=-C\psixx+V\psi

for

C=\hbar2/2m

) here.[11]

See also

External links

Notes and References

  1. Sinatra. Roberta. Gómez-Gardeñes. Jesús. Lambiotte. Renaud. Nicosia. Vincenzo. Latora. Vito. Maximal-entropy random walks in complex networks with limited information. Physical Review E. 83. 3. 030103. 2011. 1539-3755. 10.1103/PhysRevE.83.030103. 21517435. 2011PhRvE..83c0103S. 1007.4936. 6984660 .
  2. Li. Rong-Hua. Yu. Jeffrey Xu. Liu. Jianquan. Link prediction: the power of maximal entropy random walk. 2011. 1147. 10.1145/2063576.2063741. 15309519 . https://web.archive.org/web/20170212090812/https://pdfs.semanticscholar.org/f185/bc2499be95b4312169a7e722bac570c2d509.pdf. dead. 2017-02-12. Association for Computing Machinery Conference on Information and Knowledge Management. http://www.cikm2011.org/.
  3. Ochab. J.K.. Burda. Z.. Maximal entropy random walk in community detection. The European Physical Journal Special Topics. 216. 1. 2013. 73–81. 1951-6355. 10.1140/epjst/e2013-01730-6. 1208.3688. 2013EPJST.216...73O. 56409069 .
  4. Chen. Y.. Georgiou. T.T.. Pavon. M.. Tannenbaum. A.. Robust transport over networks. IEEE Transactions on Automatic Control. 62. 9. 2016. 4675–4682. 10.1109/TAC.2016.2626796. 28924302. 5600536. 1603.08129. 2016arXiv160308129C.
  5. Delvenne. Jean-Charles. Libert. Anne-Sophie. Centrality measures and thermodynamic formalism for complex networks. Physical Review E. 83. 4. 046117. 2011. 1539-3755. 10.1103/PhysRevE.83.046117. 21599250. 0710.3972. 2011PhRvE..83d6117D. 25816198 .
  6. Maximal Entropy Random Walk for Region-Based Visual Saliency . IEEE Transactions on Cybernetics . Institute of Electrical and Electronics Engineers (IEEE) . 44 . 9 . 2014 . 2168-2267 . 10.1109/tcyb.2013.2292054 . 25137693 . 1661–1672. Jin-Gang Yu . Ji Zhao . Jinwen Tian . Yihua Tan . 20962642 .
  7. https://ieeexplore.ieee.org/abstract/document/6678551/ L. Wang, J. Zhao, X. Hu, J. Lu, Weakly supervised object localization via maximal entropy random walk
  8. Korus . Pawel . Huang . Jiwu . Improved Tampering Localization in Digital Image Forensics Based on Maximal Entropy Random Walk . IEEE Signal Processing Letters . Institute of Electrical and Electronics Engineers (IEEE) . 23 . 1 . 2016 . 1070-9908 . 10.1109/lsp.2015.2507598 . 169–173. 2016ISPL...23..169K . 16305991 .
  9. Galinsky . Vitaly L. . Frank . Lawrence R. . Simultaneous Multi-Scale Diffusion Estimation and Tractography Guided by Entropy Spectrum Pathways . IEEE Transactions on Medical Imaging . Institute of Electrical and Electronics Engineers (IEEE) . 34 . 5 . 2015 . 0278-0062 . 10.1109/tmi.2014.2380812 . 25532167 . 4417445 . 1177–1193.
  10. Burda . Z. . Duda . J. . Luck . J. M. . Waclaw . B. . Localization of the Maximal Entropy Random Walk . Physical Review Letters . 102 . 16 . 2009-04-23 . 0031-9007 . 10.1103/physrevlett.102.160602 . 19518691 . 160602. 2009PhRvL.102p0602B . 0810.4113 . 32134048 .
  11. http://www.fais.uj.edu.pl/documents/41628/d63bc0b7-cb71-4eba-8a5a-d974256fd065 J. Duda, Extended Maximal Entropy Random Walk