Amortized Spectral Kernel Discovery via Prior-Data Fitted Network
Kaustubh Sharma, Srijan Tiwari, Ojasva Nema, Parikshit Pareek
TL;DR
This work addresses the opacity of Prior-Data Fitted Networks (PFNs) by deriving an interpretability-driven pipeline that decodes explicit spectral densities $S(\omega)$ and stationary kernels $k(\tau)$ from PFN latents using Bochner's theorem. Through mechanistic analysis of Decoupled-Value Attention (DVA), the authors show that the hidden state $H$ encodes spectral structure, enabling two decoders: a Multi-Realization Decoder for full spectral mixtures and a Single-Realization Decoder for dominant components, with an analytical scaling step to match observed energy. They establish identifiability limits: spectral weights are not identifiable from a single realization but become identifiable with multiple realizations, and they provide consistency guarantees and computational savings by amortizing spectral inference. Empirically, decoded spectral kernels achieve GP regression accuracy comparable to iterative baselines while delivering orders-of-magnitude speedups, demonstrating practical value for surrogate-based optimization and scientific modeling. The framework emphasizes interpretability and reuse of PFN priors, offering a path toward transparent, zero-shot kernel construction from amortized inference.
Abstract
Prior-Data Fitted Networks (PFNs) enable efficient amortized inference but lack transparent access to their learned priors and kernels. This opacity hinders their use in downstream tasks, such as surrogate-based optimization, that require explicit covariance models. We introduce an interpretability-driven framework for amortized spectral discovery from pre-trained PFNs with decoupled attention. We perform a mechanistic analysis on a trained PFN that identifies attention latent output as the key intermediary, linking observed function data to spectral structure. Building on this insight, we propose decoder architectures that map PFN latents to explicit spectral density estimates and corresponding stationary kernels via Bochner's theorem. We study this pipeline in both single-realization and multi-realization regimes, contextualizing theoretical limits on spectral identifiability and proving consistency when multiple function samples are available. Empirically, the proposed decoders recover complex multi-peak spectral mixtures and produce explicit kernels that support Gaussian process regression with accuracy comparable to PFNs and optimization-based baselines, while requiring only a single forward pass. This yields orders-of-magnitude reductions in inference time compared to optimization-based baselines.
