replica trick: Nonlinear Function
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 xx has normalizing constant Z(x)Z(x), then the replica trick says that

E[logZ]=limn01nlogE[Zn]\mathbb{E}[\log Z] = \lim_{n\to 0} \frac{1}{n}\log \mathbb{E}[Z^n]

This allows us to analyze the average log-normalizer (generally hard to compute directly) in terms of the limiting behavior of nn independent 'replicas' of the system.

It is a bit mathematically squishy because one typically works out an expression for E[Zn]\mathbb{E}[Z^n] using the product of nn independent replicas, assuming that nn is an integer. Taking the limit of this expression as nn 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)+nlogxexp(0)+(nlogx)22exp(0)+=1+nlogx+(nlogx)22+1+nlogx for small n.\begin{align*}x^n &= \exp(n \log x)\\&=\exp(0) + n\log x \cdot \exp'(0) + \frac{(n \log x)^2}{2}\exp''(0) + \cdots\\&=1 + n\log x + \frac{(n \log x)^2}{2} + \cdots\\&\approx 1 + n \log x\text{ for small $n$}.\end{align*}

This implies the identity

logx=limn0xn1n\log x = \lim_{n\to 0}\frac{x^n - 1}{n}

and thus

E[logZ]=limn0E[Zn]1n.\mathbb{E}[\log Z] = \lim_{n\to 0} \frac{\mathbb{E}[Z^n] - 1}{n}.

To proceed, we will use another first-order Taylor expansion,

log(1+x)=log(1)+xlog(1)+x22log(1)+=0+x+x22+x for small x\begin{align*}\log(1 + x) &= \log(1) + x \cdot \log'(1) + \frac{x^2}{2}\log''(1) + \cdots\\&= 0 + x + \frac{x^2}{2} + \cdots\\ &\approx x \text{ for small $x$}\end{align*}

which, taking x=E[Zn]1x = \mathbb{E}[Z^n] - 1 (and noting that this approaches zero for small nn), in particular implies

E[Zn]1log(E[Zn]).\mathbb{E}[Z^n] - 1 \approx \log(\mathbb{E}[Z^n]).

Applying this substitution to the result above recovers the final expression,

E[logZ]=limn01nlogE[Zn].\mathbb{E}[\log Z] = \lim_{n\to 0} \frac{1}{n}\log \mathbb{E}[Z^n].

References: