Unverified 2026

Precision-Weighted Layerwise Prediction Coding

Implementation & benchmark of arXiv:2608.00503 — Recursive Gaussian Processes and the Bayesian Brain

Usefulness6/10
Difficulty4/10
Novelty5/10

Source paper: Recursive Gaussian Processes and the Bayesian Brain arXiv:2608.00503 ⓘ · analyzed Aug 31, 2026

AI-generated research hypothesis, automatically tested. Not peer-reviewed.

Idea description

Attach a predictor from each deeper representation to the representation immediately below it, and penalize the Gaussian KL divergence between the predicted lower-layer state and the actual lower-layer state. Learn or estimate one positive variance per layer so easy, low-noise layers receive high precision while intrinsically uncertain layers are not forced to fit their targets exactly.

Formulas

$$\mathfrak{h}_{t}=\log\left(\frac{\sigma_{t}}{\sigma_{t-1}}\right)-\frac{1}{2}+\frac{\sigma_{t-1}^{2}}{2\sigma_{t}^{2}}+\frac{1}{2\sigma_{t}^{2}}\mathbb{E}\big[(\eta_{t}-\eta_{t-1})^{2}\big]$$
$$\mathcal{L}_{\mathrm{PC}}=\sum_{t=1}^{L-1}\left[\log\left(\frac{\sigma_t}{\sigma_{t-1}}\right)-\frac12+\frac{\sigma_{t-1}^{2}+\frac{1}{B d_t}\sum_{b=1}^{B}\sum_{j=1}^{d_t}\left(P_t(h_{t+1}^{(b)})_j-h_t^{(b)}{}_j\right)^2}{2\sigma_t^2}\right]$$
$$\mathcal{L}=\mathcal{L}_{\mathrm{task}}+\lambda\mathcal{L}_{\mathrm{PC}},\qquad \sigma_t=\operatorname{softplus}(s_t)+\epsilon$$
$$h_t\leftarrow h_t-\alpha\,\frac{P_t(h_{t+1})-h_t}{\sigma_t^2}$$

Mathematical statement

The paper defines the local KL divergence rate at layer t as \(\mathfrak{h}_{t}=\log(\sigma_{t}/\sigma_{t-1})-1/2+\sigma_{t-1}^{2}/(2\sigma_{t}^{2})+\mathbb{E}[(\eta_{t}-\eta_{t-1})^{2}]/(2\sigma_{t}^{2})\). Here \(\eta_t\) is the top-down prediction at hierarchical level t, \(\eta_{t-1}\) is the bottom-up signal from the level below, and \(\sigma_t^2,\sigma_{t-1}^2>0\) are their Gaussian variances; the precision multiplying the squared prediction error is \(1/(2\sigma_t^2)\). For a neural network, let \(h_t\in\mathbb{R}^{d_t}\) be the activation at depth t and let \(P_t(h_{t+1})\) predict \(h_t\). Set \(\eta_t=P_t(h_{t+1})\) and \(\eta_{t-1}=h_t\), replacing the expectation by a minibatch-and-coordinate mean. The first three terms penalize Gaussian variance mismatch, while the final term is the precision-weighted local reconstruction error. Parameterize \(\sigma_t=\operatorname{softplus}(s_t)+\epsilon\) to guarantee positivity. The optional recursive state update uses the prediction error divided by its variance, implementing precision-weighted correction.

Implementation notes

Integrate this at the hidden-state outputs of a small MLP or Transformer encoder, not at the logits. For every adjacent pair of hidden states \(h_t,h_{t+1}\), add a two-layer bottleneck MLP \(P_t\) whose output has the same dimension as \(h_t\); initialize its final linear layer near zero so the auxiliary path does not disrupt the baseline forward pass. Maintain one trainable scalar \(s_t\) per layer, or a vector of groupwise log-scales if channelwise uncertainty is desired. On each minibatch, compute \(e_t=\operatorname{mean}_{b,j}(P_t(h_{t+1}^{(b)})_j-h_t^{(b)}{}_j)^2\), set \(\sigma_t=\operatorname{softplus}(s_t)+10^{-5}\), and add the displayed \(\mathcal{L}_{\mathrm{PC}}\) to the ordinary task loss. Stop gradients through the target \(h_t\) for the first experiment to make the auxiliary objective stable; then compare with fully coupled gradients. Optionally perform one or two inference-time refinement steps using the displayed update, treating hidden states as variables while holding network weights fixed. The paper supplies the KL form and precision weighting; the engineer estimates \(e_t\) from the current minibatch and learns \(s_t\) by backpropagation. First test on CIFAR-100 with a 6-layer MLP-Mixer or small ViT against the identical model without the auxiliary loss, using \(\lambda\in\{10^{-4},10^{-3},10^{-2}\}\). Measure training loss at equal FLOPs, validation accuracy, activation rank, corruption robustness, and calibration error. Success is faster loss descent or higher accuracy without increased parameter count, together with reduced layerwise representation collapse and improved performance under Gaussian input noise.

Verification

This idea has not been verified yet.

Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.

Artifacts

Artifacts unavailable.