Created: October 21, 2022 Modified: October 22, 2022
replica trick
This page is from my personal notes, and has not been specifically reviewed for public consumption. It might be incomplete, wrong, outdated, or stupid. Caveat lector.
If a model with data x has normalizing constant Z(x), then the replica trick says that
E[logZ]=n→0limn1logE[Zn]
This allows us to analyze the average log-normalizer (generally hard to compute directly) in terms of the limiting behavior of n independent 'replicas' of the system.
It is a bit mathematically squishy because one typically works out an expression for E[Zn] using the product of n independent replicas, assuming that n is an integer. Taking the limit of this expression as n goes to zero relies on analytic continuation, which often works but is not always formally justified.
Derivation
Begin by considering the first-order Taylor expansion:
xn=exp(nlogx)=exp(0)+nlogx⋅exp′(0)+2(nlogx)2exp′′(0)+⋯=1+nlogx+2(nlogx)2+⋯≈1+nlogx for small n.
This implies the identity
logx=n→0limnxn−1
and thus
E[logZ]=n→0limnE[Zn]−1.
To proceed, we will use another first-order Taylor expansion,
log(1+x)=log(1)+x⋅log′(1)+2x2log′′(1)+⋯=0+x+2x2+⋯≈x for small x
which, taking x=E[Zn]−1 (and noting that this approaches zero for small n), in particular implies
E[Zn]−1≈log(E[Zn]).
Applying this substitution to the result above recovers the final expression,