mlsanityData to 14 Oct 2026

LinearPFN: Amortized Variable Selection for Linear Models with Interactions

arXiv 2610.06580 ↗First posted 5 Oct 2026cs.LG stat.MLcited by 0

Not on the map. Why?

Abstract (arXiv)

Spike-and-slab regression is a standard Bayesian formulation of variable selection: it returns a posterior distribution over which candidate effects are active rather than a single selected subset, so that every candidate effect carries an inclusion probability. Its cost grows exponentially with the number of candidate effects, so the posterior can be enumerated exactly only when the number of predictors is small. Beyond that reach, the posterior has to be approximated, typically by Markov chain Monte Carlo over the model space, which requires a fresh run for every dataset and, within a fixed budget of steps, may fail to converge. We present LinearPFN, a prior-data fitted transformer network that amortizes spike-and-slab inference for linear models with main effects and pairwise interactions. The network is pretrained once on synthetic datasets, drawn from an explicitly specified prior, and a single forward pass over a new dataset returns posterior inclusion probabilities, posterior-mean coefficients and posterior predictive distributions with no per-dataset fitting. The prior is conjugate by design, so that the posterior for each fixed set of active effects has a closed form, and wherever the exact posterior is still computable by enumeration we verify the network's outputs against it. On real predictor matrices from published social-science datasets, with outcomes drawn from the prior so that the true active set is known, LinearPFN attains a higher per-dataset selection AUC and a higher F1 under the median probability model rule than five classical baselines. The lead holds when the coefficients, the interactions or the noise depart from the prior. Code: https://github.com/schiekiera/LinearPFN. Trained model: https://huggingface.co/schiekiera/LinearPFN.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 8 of its 46 references that are in the map. First posted on arXiv 5 Oct 2026.

Builds on

8 of 46 references.

References · 8

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  2. 2017Decoupled Weight Decay Regularizationcited by 1,831
  3. 2022TabPFN: A Transformer That Solves Small Tabular Classification Problems in a Secondcited by 674
  4. 2021Transformers Can Do Bayesian Inferencecited by 360
  5. 2025nanoTabPFN: A Lightweight and Educational Reimplementation of TabPFNcited by 15
  6. 2025metabeta -- A fast neural model for Bayesian mixed-effects regressioncited by 2
  7. 2026Scalable Simulation-Based Model Inference with Test-Time Complexity Controlcited by 2
  8. 2026Linear Models, Variable Selection, Artificial Intelligencecited by 1

Built on by

Not cited yet.