Professional Documents
Culture Documents
Simulated Annealing
( d , m) = k
( d , m)
What
What is
is simulated
simulated annealing?
annealing?
Simulated
Simulated annealing
annealing and
and probabilistic
probabilistic inversion
inversion
Examples
Examples
Annealing
Annealing is is the
the process
process ofof heating
heating aa solid
solid until
until thermal
thermal stresses
stresses are
are
released.
released. Then,
Then, inin cooling
cooling it
it very
very slowly
slowly to
to the
the ambient
ambient temperature
temperature
until
until perfect
perfect crystals
crystals emerge.
emerge. TheThe quality
quality of
of the
the results
results strongly
strongly
depends
depends onon the
the cooling
cooling temperature.
temperature. TheThe final
final state
state can
can be
be
interpreted
interpreted as as an
an energy
energy state
state (crystaline
(crystaline potential
potential energy)
energy) which
which is
is
lowest
lowest if
if aa perfectly
perfectly crystal
crystal emerged.
emerged.
Our
Our goal
goal is
is to
to sample
sample aa multi-modal
multi-modal function
function efficiently.
efficiently. We
We use
use an
an
analogy
analogy between
between thethe physical
physical process
process ofof annealing
annealing and
and the
the
mathematical
mathematical problem
problem of
of obtaining
obtaining aa global
global minimum
minimum of
of aa function.
function.
( m)
S (m) = T0 log M
M ( m)
m=mml
T0 is a fixed positive number termed the ambient
temperature (e.g. T=1). We obtain the probability
density function
S ( m)
M (m, T ) = M (m) exp
T
M (m, T = ) = M (m)
M (m, T = T0 ) = M (m)
M (m, T = 0) = const (m mml )
( m)
T0 log M M(m) -> peaks (as pdf)
M (m, T ) = M (m) exp o
( m )
M(m) -> constant
M
T
T0=1
T=1000
T=100
T=10
Temperature decreasing
T=1
T=0.1
T=00.1
m=mml
For constant prior denstiy this function resembles
The Gibbs distribution, giving the probability of
State m with energ S(m) of a statistical system at
temperature T.
1. Take a high temperature T (heat the system) and generate random models
this means we re effectively sampling the prior distribution
2. Cool the system slowly while continuing to generate random models until T=0.
you should now be in the global minimum.
The efficienvcy strongly depends on the cooling procedure. If too fast you may
end up in scondary minima. If too slow you will waste a lot of forward calculations.
m=mml
Here is a pseudo-code. It is only a slight modifiction
to the Metripolis algorithm
Simulated annealing:
A posteriori probability
P(accepted models)
y
x # accepted models