FW26, William Gates Building
Single constraint: \[ \mathscr{L}(\mathbf{x}, \lambda) = f(\mathbf{x}) + \lambda\left(g(\mathbf{x}) - c\right) \]
Stationarity: \[ \nabla f + \lambda \nabla g = 0, \qquad g(\mathbf{x}) = c \]
Several constraints: \[ \mathscr{L} = f(\mathbf{x}) + \sum_k \lambda_k \bigl(g_k(\mathbf{x}) - c_k\bigr) \]
Stationarity: \[ \nabla f + \sum_k \lambda_k \nabla g_k = 0, \qquad g_k(\mathbf{x}) = c_k \]
Example: minimise \(\frac{1}{2}(x^2+y^2)\) subject to \(x+y=1\)
\[ \mathscr{L} = \frac{1}{2}(x^2+y^2) + \lambda(x+y-1) \]
Solution: \(x = y = \frac{1}{2}\), \(\lambda = -\frac{1}{2}\)
Closest point on a line; same pattern as constrained energy or \(\|\mathbf{w}\|^2\) with a linear constraint
Week 1: Laplace suggested that we treat ignorance with probability. He applied this idea in his estimates of probabilities. He asked himself the question how should we assign \(p\) when we know almost nothing?
This is Laplace’s example from: Philosophical Essay on Probabilities (Laplace, 1814).
Track differential entropy of the belief \(p(\theta)\) as sunrises arrive.
Rolls: 0
Sample mean: —
H(p): —
Outcome weights (auto-normalised to probabilities)
Jaynes’ die (mean 4.5, not 3.5) is the running example. The same Lagrange move recovers physics and statistics.
For fixed mean energy \(U\), maximum entropy recovers Boltzmann weights. ::: incremental
:::
This is the week’s main theorem: constrained MaxEnt \(\Rightarrow\) exponential family.
\[ p_i = \frac{\exp(-\lambda_1 f_1(x_i) - \ldots - \lambda_m f_m(x_i))}{Z(\lambda_1,\ldots,\lambda_m)} \] \[ Z(\ldots) = \sum_{i=1}^n \exp(-\lambda_1 f_1(x_i) - \ldots - \lambda_m f_m(x_i)) \] \[ \langle f_k \rangle = -\frac{\partial}{\partial \lambda_k}\log Z(\lambda_1,\ldots,\lambda_m) \quad k=1,2,\ldots,m. \]
\[ p(\mathbf{x} | \boldsymbol{\theta}) = \exp\left(\boldsymbol{\theta}^\top T(\mathbf{x}) - \mathcal{A}(\boldsymbol{\theta})\right) h(\mathbf{x}) \] * \(\boldsymbol{\theta}\): natural parameters * \(T(\mathbf{x})\): sufficient statistics * \(\mathcal{A}(\boldsymbol{\theta})\): log partition function * \(h(\mathbf{x})\): base measure
\[ \mathcal{A}(\boldsymbol{\theta}) = \log \int \exp\left(\boldsymbol{\theta}^\top T(\mathbf{x})\right) h(\mathbf{x}) \, d\mathbf{x} \]}
\[ G(\boldsymbol{\theta}) = \nabla^2 \mathcal{A}(\boldsymbol{\theta}) = \mathrm{Cov}_{\boldsymbol{\theta}}[T(\mathbf{x})] \] * R.A. Fisher: bounds estimation accuracy (Cramér-Rao) * Fisher information = Hessian of \(\mathcal{A}\) * Fisher information = Covariance of sufficient statistics * Defines geometry of information space * More details in next section
\[ H(\boldsymbol{\theta}) = \mathcal{A}(\boldsymbol{\theta}) - \boldsymbol{\theta}^\top \boldsymbol{\mu} \] where \(\boldsymbol{\mu} = \nabla \mathcal{A}(\boldsymbol{\theta})\)
\[ \nabla_{\boldsymbol{\theta}} H = -G(\boldsymbol{\theta})\boldsymbol{\theta} \] * Key result for information dynamics * Terms involving \(\nabla \mathcal{A}\) cancel * Fisher information connects geometry to dynamics
Gaussian as exponential family: * \(\boldsymbol{\theta} = \Sigma^{-1}\boldsymbol{\mu}\) (natural parameters) * \(T(\mathbf{x}) = \mathbf{x}\) (sufficient statistics) * \(\mathcal{A}(\boldsymbol{\theta}) = \frac{1}{2}\boldsymbol{\theta}^\top\Sigma\boldsymbol{\theta} + \frac{1}{2}\log|\Sigma|\)
\[ G(\boldsymbol{\theta}) = \Sigma \] * Fisher information = covariance * \(G^{-1} = \Sigma^{-1}\) = precision * High variance → low Fisher info → harder estimation (looser Cramér-Rao) * Low variance → high Fisher info → easier estimation (tighter Cramér-Rao)
Categorical distribution: * \(\boldsymbol{\theta} = (\log \pi_1, \ldots, \log \pi_{K-1})\) * \(T(\mathbf{x}) = (x_1, \ldots, x_{K-1})\) (one-hot) * \(\mathcal{A}(\boldsymbol{\theta}) = \log\left(\sum_{k=1}^{K-1} e^{\theta_k} + 1\right)\)
\[ G_{ij} = \begin{cases} \pi_i(1-\pi_i) & i=j \\ -\pi_i\pi_j & i \neq j \end{cases} \] * Rare categories → low Fisher info * Uniform distribution → balanced information
Why exponential families matter: * Emerge from maximum entropy principles * Define information geometry * Sufficient statistics capture all information * Computationally tractable * Clean form for information dynamics
Next steps: * Natural parameters → coordinate system * Fisher information → information topography
* Entropy gradients → drive dynamics * \(\nabla H = -G(\boldsymbol{\theta})\boldsymbol{\theta}\) → key to everything
\[ p(y\mid x)=\frac{\exp(\theta\cdot f(x,y))}{\sum_{y'}\exp(\theta\cdot f(x,y'))} \] * Constraint: expected features match the data * Same multipliers as the die
\[ p(s)\propto\exp(h_1 s_1+h_2 s_2+J s_1 s_2) \] * Constraints: \(\langle s_1\rangle\), \(\langle s_2\rangle\), \(\langle s_1 s_2\rangle\) * \(J\) is the multiplier on a correlation
\[ y = \phi'(x),\qquad \phi^*(y) = xy - \phi(x) \] * Convex \(\phi\): the slope is a coordinate * \(\phi^*\) is the same information, different argument * The pair inverts: \(x = (\phi^*)'(y)\)
\[ \boldsymbol{\eta} = \nabla A(\boldsymbol{\theta}),\qquad H = A(\boldsymbol{\theta}) - \boldsymbol{\theta}\cdot\boldsymbol{\eta} \] * \(A\) is convex: Hessian \(=\) Fisher \(=\) covariance * \(A^*(\boldsymbol{\eta}) = \boldsymbol{\theta}\cdot\boldsymbol{\eta} - A = -H\) * Same move as \(F = U - TS\)
Bernoulli: \(\theta = \mathrm{logit}(p)\), \(A = \log(1+e^{\theta})\), \(\eta = p\) \[ H = A - \theta p = -p\log p -(1-p)\log(1-p) \] * If the subtraction misses \(H\), the signs are wrong
Same \(H\); three operational assumptions about what probability is over.
the whole paper of Jaynes (1957)
Chapter 22 of MacKay (2003)
Chapter 12 of Cover and Thomas (1991)
Chapters 11–12 of Jaynes (2003)
Exercises 22.12–22.13 of MacKay (2003)
the whole paper of Berger et al. (1996)
the original one-dimensional model of Ising (1925)
Boltzmann machines of Ackley et al. (1985)
pairwise MaxEnt on a retina of Schneidman et al. (2006)
Section 1.5.5 and Chapter 5 of Welling et al. (2026)