arXiv:2610.37737cs.LGOct 2026

Manuscript Offprint

arXiv:2610.37737

Anisotropic Trust Region Warping for Prior-Data Fitted Networks in Bayesian Optimisation

Samuel Younger, Tinkle Chugh, George De Ath

Abstract

Prior-Data Fitted Networks (PFNs) replace the hyperparameter refitting of Gaussian Process (GP) surrogates in Bayesian optimisation with a single forward pass, at the cost of a prior that is fixed at meta-training time. We show empirically that a PFN's predictive log-likelihood falls increasingly behind that of a refitted GP as the objective function's lengthscale grows beyond the mode of the PFN's meta-training prior, and that this deficit carries over to optimisation performance. To correct the mismatch without retraining the network, we introduce Anisotropic Trust Region (ATR) warping. Per-dimension lengthscales are estimated by kernel target alignment, and an affine rescaling of the input space maps the objective onto the lengthscale the PFN expects, with a trust region around the anchor determining which observations are retained, leaving the PFN's O(d⋅N2)\mathcal{O}(d \cdot N^2) inference cost unchanged. On functions drawn from a Matérn-3/2 kernel, ATR warping improves optimisation performance of the PFN at both extremes of the lengthscale range. Our implementation is publicly available at https://github.com/youngers2006/Trust-Region-Warping-For-PFNs.

1. Introduction

Bayesian Optimisation (BO) [6] has traditionally relied on Gaussian Processes (GPs) as surrogate models due to their rigorous uncertainty quantification and exact posterior inference. However, GPs impose a severe computational bottleneck, refitting the covariance matrix requires O(N3)\mathcal{O}(N^3) [15] complexity, limiting their scalability for optimisation tasks.

Prior-Data Fitted Networks (PFNs) have emerged as a highly scalable alternative to GPs [10]. By training Transformers to approximate Bayesian posteriors, PFNs perform inference entirely via in-context learning [9], reducing the cost of refitting to O(1)\mathcal{O}(1) and bounding inference to O(d⋅N2)\mathcal{O}(d \cdot N^2).

Despite these computational advantages, this research highlights an issue in PFNs, namely poor generalisation to objective functions with lengthscales above the mode of its meta-training prior. Because PFNs are amortised surrogates, their predictive accuracy is bound to the static prior they were trained on. Through stress testing via prior-objective mismatch, we demonstrate that when evaluating functions with lengthscales well above the mode of the PFN's training prior, the model's predictive log-likelihood and downstream optimisation performance diverge from that of a GP.

To solve this degradation without sacrificing scalability, we introduce Anisotropic Trust Region (ATR) Warping. Rather than expanding the PFN's training distribution, ATR warps the input space to match the PFN's native prior. By optimising a target lengthscale vector using Kernel Target Alignment and constraining the search space, we map mismatched functions back towards the

© S. Younger, T. Chugh & G. De Ath.

mode of the PFN's prior. We then show that this method improves the performance of the PFN on objective functions with mismatched lengthscales whilst preserving its O(d⋅N2)\mathcal{O}(d \cdot N^2) complexity.