GAPA: Post-Hoc Uncertainty Quantification for Pre-Trained Models via Activation-Space Gaussian Processes
Richard Bergna, Stefan Depeweg, Sergio Calvo Ordoñez, Jonathan Plenk, Alvaro Cartea, José Miguel Hernández-Lobato
ICLR 2026 submission
Abstract. Weight-space uncertainty methods (BNNs, ensembles, Laplace) are difficult to apply post-hoc to frozen foundation models due to retraining requirements or prohibitive second-order computations. We introduce Gaussian Process Activations (GAPA), which replace deterministic activations with Gaussian processes whose prior mean equals the original nonlinearity—preserving predictions exactly while adding principled epistemic uncertainty. Using a 1-nearest-neighbour FITC surrogate with FAISS, GAPA yields closed-form, distance-aware uncertainties with retrieval and per-layer compute without sampling. Across regression, classification, segmentation, and language modelling (including GPT-2, 124M), GAPA matches or exceeds deep ensembles and Laplace in calibration and OOD detection while running 10–100× faster at test time. GAPA uniquely enables post-hoc deployment, single-pass inference, exact mean preservation, and scalable epistemic UQ for frozen backbones.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperadd · history
Loading the discussion…