CRUMB: Efficient Prior Fitted Network Inference via Distributionally Matched Context Batching

Jamie Heredge, Mattia Jacopo Villani, Pranav Deshpande, Akshay Seshadri, Niraj Kumar

Abstract

Prior-fitted networks (PFNs) are a promising class of tabular foundation models that perform in-context learning, whereby the entire labelled training set is supplied as context, and predictions for test queries are produced in a single forward pass. However, the quadratically scaling self-attention mechanism in many PFN architectures makes inference prohibitive for very large training datasets. We propose $\textbf{CRUMB}$ ($\textbf{C}$lustered $\textbf{R}$etrieval $\textbf{U}$sing $\textbf{M}$inimised-MMD $\textbf{B}$atching), a three-stage inference wrapper that (i) clusters the test queries, (ii) selects a small, distributionally matched training subset for each cluster by greedily minimising the maximum mean discrepancy (MMD), and (iii) runs exact PFN inference on each reduced-context batch. CRUMB is architecture-agnostic and requires no retraining. On the 51-dataset TabArena benchmark, evaluated across three PFN architectures (TabPFNv2, TabICLv1, TabICLv2), and on the 195-dataset TabZilla benchmark, we show that CRUMB outperforms similar scalable context selection strategies, with an identical ranking on both collections. At $10^{6}$ training rows, CRUMB reduces end-to-end time and peak GPU memory by over two orders of magnitude relative to full-context inference, while retaining the best accuracy among the scalable methods. We also show that CRUMB is resilient to covariate drift, as the MMD-minimisation step naturally helps align the training context distribution to match the current test batch distributions.
BibTeX
@inproceedings{heredge2026crumb,
  author = {Jamie Heredge and Mattia Jacopo Villani and Pranav Deshpande and Akshay Seshadri and Niraj Kumar},
  title = {{CRUMB: Efficient Prior Fitted Network Inference via Distributionally Matched Context Batching}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=z3XMLStVPC},
}

Loading related content...

Figure