[Paper Review] Activation-Space Uncertainty Quantification for Pretrained Networks
GAPA post-hoc method replaces activations with Gaussian-process activations to yield activation-space epistemic uncertainty while preserving backbone predictions, enabling single-pass uncertainty propagation for pretrained networks.
Reliable uncertainty estimates are crucial for deploying pretrained models; yet, many strong methods for quantifying uncertainty require retraining, Monte Carlo sampling, or expensive second-order computations and may alter a frozen backbone's predictions. To address this, we introduce Gaussian Process Activations (GAPA), a post-hoc method that shifts Bayesian modeling from weights to activations. GAPA replaces standard nonlinearities with Gaussian-process activations whose posterior mean exactly matches the original activation, preserving the backbone's point predictions by construction while providing closed-form epistemic variances in activation space. To scale to modern architectures, we use a sparse variational inducing-point approximation over cached training activations, combined with local k-nearest-neighbor subset conditioning, enabling deterministic single-pass uncertainty propagation without sampling, backpropagation, or second-order information. Across regression, classification, image segmentation, and language modeling, GAPA matches or outperforms strong post-hoc baselines in calibration and out-of-distribution detection while remaining efficient at test time.
Motivation & Objective
- Provide epistemic uncertainty for pretrained networks without retraining or sampling.
- Preserve the backbone's point predictions while adding activation-space uncertainty.
- Develop scalable offline activation caching and local inducing-point conditioning for modern architectures.
- Derive deterministic single-pass variance propagation through deep networks.
- Empirically validate GAPA across regression, classification, segmentation, and language modeling.
Proposed method
- Replace deterministic activations with Gaussian-process activations whose posterior mean matches the original activation.
- Cache pre-activations from a forward pass on training data and condition GP activations on this cache using inducing points and local K-nearest-neighbor conditioning.
- Propagate the resulting activation-space variance through the frozen network with closed-form variance propagation rules.
- Maintain diagonal (neuron-wise) activation covariances for scalability.
- Use delta-method based moment propagation for nonlinear activations and a Noisy-Input GP correction for stacking layers.
- Hyperparameters are fixed post-hoc from activation statistics, with no retraining or labels required.

Experimental results
Research questions
- RQ1Can activation-space uncertainty provide accurate epistemic estimates for pretrained networks without retraining or sampling?
- RQ2How can GP activations be conditioned and propagated efficiently through modern architectures at test time?
- RQ3Do GAPA-based uncertainty estimates improve calibration and out-of-distribution detection across tasks (regression, classification, segmentation, language modeling) compared to baselines?
- RQ4What is the impact of inducing-set size and locality (KNN) on performance and computation?
- RQ5How well does variance propagation through GAPA approximate posterior uncertainty in deep networks?
Key findings
- GAPA achieves mean-preserving uncertainty by matching the original activation means while introducing activation-space epistemic variance.
- A two-stage, scalable inference using offline inducing points and local KNN conditioning enables constant-time per-query variance calculation at test time.
- Deterministic variance propagation through deep architectures yields competitive or superior calibration and OOD detection across tasks.
- GAPA attains best negative log-likelihood (NLL) and best or near-best calibration metrics on regression benchmarks Airline, Year, and Taxi, outperforming many baselines.
- In classification on MNIST/Fashion-MNIST and CIFAR-10 with ResNet backbones, GAPA achieves strong OOD detection with faster test-time performance than sampling-based or full GP methods, often near MAP runtimes.
- LLaMA language modeling with GAPA on pre-parts of the transformer yields usable uncertainty metrics without extra forward passes.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.