arXiv:2611.04848cs.AINov 2026

Manuscript Offprint

arXiv:2611.04848

Amortized Nonlinear Variable Selection with Prior-Data Fitted Networks

Jin Zhu, Junxian Zhu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Variable selection is an important task for interpreting potentially complex systems in fields such as biology, business, and sociology. The importance of variable selection has attracted considerable attention in statistics and machine learning. In this paper, we are mainly interested in model-agnostic variable selection for identifying variables that have general nonlinear dependence on the response. We propose MambaPFN, short for model-agnostic Markov blanket selection with prior-data fitted networks, which is built upon the Transformer, a building block of many popular large language models. Specifically, we consider a functional-mapping perspective on variable-selection learning, in which the Transformer is treated as a learnable mapping from a dataset to its relevant variables. To learn this mapping, MambaPFN introduces three new components: (i) a faithful, rich, and scalable scheme for generating pretraining data, (ii) an objective that targets each variable's posterior inclusion probability, and (iii) a modified Transformer architecture tailored to variable selection. Once pretrained, MambaPFN is applied to new datasets without parameter updates. Empirically, MambaPFN achieves desirable variable-selection performance in simulation studies and exhibits a scaling law—more pretraining datasets and larger models can continuously improve its performance. Applied to a Facebook comments dataset, MambaPFN selects the fewest variables and achieves the highest computational efficiency and predictive performance, improving upon the best baselines by about 20%.

Keywords: Variable selection, Markov blanket, Transformer, Prior-data fitted networks

*Jin Zhu and Junxian Zhu contributed equally to this work and are listed in alphabetical order.

1 Introduction

Variable selection aims to identify the most relevant and informative variables in a dataset while removing irrelevant, noisy, or redundant ones. It is central to many scientific and societal applications because it can provide insight into the underlying system. For example, in biomedicine, selecting informative variables from high-dimensional omics and single-cell data supports reliable biomarker discovery (Hédou et al. 2024). In materials science, selecting compact physicochemical descriptors can reveal structure-property relationships and guide catalyst design (Han et al. 2024). Furthermore, variable selection can improve robustness and generalization while reducing effective model complexity (Li et al. 2024, Liao et al. 2024). Therefore, variable selection remains a fundamental and active problem in machine learning and data-driven science.

Literature review. Because of the importance of variable selection, dozens of methods have been developed over the last few decades; we review representative ones here. Existing variable selection methods can be divided mainly into two categories: model-based and model-agnostic methods.

Model-based variable selection imposes explicit structure on the regression function. For linear models, sparsity is induced through convex or non-concave penalties (Tibshirani 1996, Fan & Li 2001, Zhang 2010, Shen et al. 2012) or iterative algorithms (Blumensath & Davies 2009, Huang et al. 2018, Zhu et al. 2020). These methods have been extended to more complicated models, such as models in which predictors have a known group structure (Yuan & Lin 2006), models in which hierarchical penalties enforce heredity among main and interaction effects (Bien et al. 2013, Lim & Hastie 2015), single-index models (Kong & Xia 2007), and sparse additive models (Ravikumar et al. 2009, Meier et al. 2009, Huang et al. 2010). These methods yield interpretable estimators and, under suitable conditions, strong selection guarantees. Their targets and guarantees, however, are tied to the assumed structure.

Model-agnostic variable selection is typically implemented via statistics-based methods and machine-learning (ML)-based methods.

  • Statistics-based methods. Notable examples are knockoff procedures, which construct negative-control variables and use them to control false discoveries in variable selection (Candès et al. 2018, Romano et al. 2020, Bates et al. 2021, Zhu et al. 2021, Spector & Janson 2022, Ren et al. 2023). Kernel-based methods instead identify variables through gradients of conditional dependence measures in reproducing kernel Hilbert spaces or through conditional covariance operators (Yamada et al. 2014, Yang et al. 2016, Chen et al. 2017, Climente-González et al. 2019, Poignard & Yamada 2020).

  • ML-based methods select relevant variables using ML algorithms such as neural networks. For example, because neural networks have a strong capacity to approximate arbitrary nonlinear relationships, various methods have been developed to select variables that have complicated relationships with the response (Yoon et al. 2019, Yamada et al. 2020, Lemhadri et al. 2021, Chen et al. 2021, Luo & Halabi 2025, Jiang et al. 2024, Yang et al. 2024).

References (81)