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

Jamie Heredge, Mattia J. Villani, Pranav Deshpande, Akshay Seshadri, Niraj Kumar
6/9/2026
cs.LGcs.AIstat.ML

No confident code implementation found for this paper.

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.

Show full abstract

We propose CRUMB (Clustered Retrieval Using Minimised-MMD Batching), 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), we show that CRUMB outperforms similar state-of-the-art context selection strategies. 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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{heredge2026crumb,
  title  = {CRUMB: Efficient Prior Fitted Network Inference via Distributionally Matched Context Batching},
  author = {Jamie Heredge and Mattia J. Villani and Pranav Deshpande and Akshay Seshadri and Niraj Kumar},
  year   = {2026},
  eprint = {2606.11473},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2606.11473v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2606.11473.svg)](https://codeofpaper.com/paper/2606.11473)

Discussion