Skip to content
DraconiticResearch
Search Sources API
197,768 studies31 sourcesUpdated 28 min ago
PreprintCC BY 4.0arXiv

LinearPFN: Amortized Variable Selection for Linear Models with Interactions

Abstract

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.

Related

  1. Amortized Nonlinear Variable Selection with Prior-Data Fitted Networks
    Jin Zhu, Junxian Zhu
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
  2. SelectPFN: Amortized Bayesian Variable Selection for Sparse Nonlinear Regression with Prior-Data Fitted Networks
    Bin Luo
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  3. Co-sufficient weighting: leveraging sparsity for more powerful variable selection in the linear model
    Souhardya Sengupta, Lucas Janson
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  4. FDR-Controlled Variable Selection for Generalized Linear Models and Cox Regression with Virtual Dummies
    Helena Mehler, Taulant Koka, Michael Muma
    arXivPreprintarXiv licenceFull textStatisticsarXiv
  5. Smooth Information Criterion for Variable Selection in Generalised Linear Models
    Andrew McInerney
    arXivPreprintCC BY 4.0Full textStatisticsarXiv
BibTeX
@misc{schiekiera2026linearpfn,
  title = {{LinearPFN: Amortized Variable Selection for Linear Models with Interactions}},
  author = {Louis Schiekiera and Max Zimmer and Christophe Roux and Manuel Arnold and Sebastian Pokutta and Fritz Günther},
  howpublished = {arXiv},
  year = {2026},
  month = oct,
  doi = {10.48550/arxiv.2610.06580},
  eprint = {2610.06580},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.06580},
  note = {CC BY 4.0},
}
RIS
TY  - UNPB
TI  - LinearPFN: Amortized Variable Selection for Linear Models with Interactions
AU  - Louis Schiekiera
AU  - Max Zimmer
AU  - Christophe Roux
AU  - Manuel Arnold
AU  - Sebastian Pokutta
AU  - Fritz Günther
PY  - 2026
DA  - 2026/10/05
PB  - arXiv
DO  - 10.48550/arxiv.2610.06580
UR  - https://arxiv.org/abs/2610.06580
AB  - 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.
ER  -