arXiv:2610.28556cs.LGOct 2026

Manuscript Offprint

arXiv:2610.28556

When Do LLMs Help with Feature Selection? A Systematic Empirical Study

Fateme Memar, Dongjie Wang, Arvin Agah

Fateme Memar

Department of Electrical Engineering

and Computer Science

University of Kansas

Lawrence, KS 66045, USA

amemar@ku.edu

Dongjie Wang

School of Information Science

and Technology

Northeast Normal University

China

wangdongjie100@nenu.edu.cn

Arvin Agah

Department of Electrical Engineering

and Computer Science

University of Kansas

Lawrence, KS 66045, USA

agah@ku.edu

Abstract—Large language models (LLMs) can leverage semantic feature names alongside summary statistics for tabular feature selection, yet it remains unclear when such information improves subset selection relative to established statistical methods. We investigate this question within an 18-dataset framework comprising 10 datasets for Group Relative Policy Optimization (GRPO) training, 2 for checkpoint validation, and 6 held-out evaluation datasets. We compare five classical baselines, frozen Qwen2.5-7B and Llama-3.3-70B selectors, and two GRPO-adapted Qwen2.5-7B models, reporting classification ROC-AUC and regression R2R^{2} separately and using dataset-wise ranks for cross-task comparison. Across five seeded evaluation partitions, classical selectors generally achieve higher predictive performance than the tested 7B LLM/RL selectors, including under a pre-specified ∼33%\sim33\% feature budget with strict train-only classical fitting, while the 7B selectors retain compact subsets. A cardinality-matched semantic sensitivity experiment shows that, for Zero-shot Qwen-7B, informative feature names improve regression performance over anonymized and shuffled alternatives (+0.1964 and +0.1606 mean R2R^{2}), whereas aggregate classification differences are smaller (+0.0159 and +0.0084 ROC-AUC) and dataset-dependent. These results characterize when semantic information benefits LLM-based feature selection and show that classical selectors remain strong baselines for predictive tabular feature selection.

Index Terms—feature selection, large language models, reinforcement learning, tabular data, semantic ablation

I. INTRODUCTION

Feature selection—identifying a compact, informative subset of features before training a downstream predictor—is a foundational preprocessing decision in tabular machine learning [1], [2]. Irrelevant or redundant variables increase computational cost, obscure interpretability, and degrade generalization. Classical selectors such as minimum Redundancy Maximum Relevance (mRMR) [3], LASSO [4], Boruta [5], and tree-based importance [6] estimate feature utility from statistical relationships between inputs and targets, without explicitly exploiting real-world meaning in feature names.

Large language models (LLMs) introduce a different information source for feature selection [7], [8]. Models such as Qwen2.5-7B [9] and Llama-3.3-70B [10] combine semantic priors in feature names with coarse distributional summaries to propose compact subsets [11], [12]. Although recent work has explored LLM-based feature engineering and tabular reasoning [13]–[16], an important question remains: what information do LLM feature selectors exploit, when do semantic priors help or mislead, and how do their sparsity–performance trade-offs compare with classical selectors under controlled information and feature-budget conditions?

We organize the study around three research questions:

• RQ1 (Performance and sparsity): How do frozen-LLM, GRPO-adapted, and classical selectors compare across held-out tabular datasets in predictive performance and feature retention?

• RQ2 (Semantic mechanism): How much do meaningful feature names contribute when subset cardinality is controlled and dataset and target identities are masked?

• RQ3 (Robustness and controlled baselines): Are the comparisons stable across five seeded evaluation partitions, task-separated evaluation, and train-only classical selectors under an approximately matched feature budget?

To address these questions, we combine a held-out benchmark with two controlled experiments. A cardinality-matched semantic diagnostic compares Original, Anonymized, and Shuffled feature identities while masking dataset and target identities, and a train-only classical top-k control evaluates classical selectors under a one-third feature budget. Classification ROC-AUC and regression R2R^{2} are analyzed separately, using dataset-wise ranks for cross-task summaries and five seeded evaluation partitions to quantify variability.

Key findings. First, classical selectors generally provide stronger predictive performance than the tested LLM/RL selectors, including under the matched-budget, train-only control, while the 7B selectors produce compact subsets. Second, after controlling subset cardinality, meaningful feature names substantially improve Zero-shot Qwen-7B selection on the regression tasks, whereas classification effects are smaller and dataset-dependent. Third, GRPO adaptation changes selection behavior but does not yield consistent predictive superiority over either frozen LLM or classical alternatives.

Contributions. Rather than positioning LLMs as replacements for classical feature selectors, we characterize how semantic information, sparsity constraints, and RL adaptation interact in tabular feature selection:

  1. Controlled feature-selection benchmark: We compare classical, frozen-LLM, and GRPO-adapted selectors in an 18-dataset training/validation/held-out framework.

  2. Cardinality-matched semantic diagnostic: We introduce an exact-k three-condition experiment separating feature-name semantics from subset-size confounding.

(1) Benchmark Data

ageoccupUPDRSstudy...
45engr.28.22...
32teach.19.14...
58admin33.71...

18 Datasets • 11-100 Features

Classification

Regression

Semantic Study (6 Test Sets)

Original

Anonymized

Shuffled

Dataset Roles

GRPO Train (10)

Ckpt. Val (2)

Held-out (6)

OpenML & UCI

(2) Classical Statistical Methods

XGB Importance

5 Baselines

relationship

0.39

capital-gain

0.15

education-num

0.13

marital-status

0.09

capital-loss

0.07

Importance Score

No Selection

mRMR

LASSO

Boruta

XGB Importance

(3) Frozen LLM Baselines

Input Prompt

"Select features for [target] from: age, occup, hours-per-week..."

Pre-trained semantic knowledge

3 Baselines

Zero-shot Qwen-7B

Few-shot Qwen-7B

Zero-shot Llama-70B

(4) RL Fine-tuned LLM

GRPO Training Dynamics

Figure

GRPO Adaptation

Qwen2.5-7B + LoRA

RL-GRPO v1 (Ours)

RL-GRPO v2 (Ours)

G = 4 Rollouts / Step

(5) Selected Feature Subset S

XGB Importance

relationship

capital-gain

education-num

Zero-shot Qwen-7B

age

education-num

occupation

RL-GRPO v1 (Ours)

age

education-num

capital-gain

Mean Feature Retention (%)

XGB Importance

49%

Zero-shot Qwen-7B

30%

Zero-shot Llama-70B

61%

RL-GRPO v1 (Ours)

33%

(6) Downstream Evaluation

ROC Curve — Adult Income

Figure

XGBoost Downstream Evaluator

Classification Metric

ROC-AUC

Regression Metric

R2R^{2} Score

Evaluation Protocol

• 60% train / 20% evaluation

• 5 splits (seeds 0–4)

(7) Reward Function R(S)

R(S) = Perf(S) - λ · (|S| / d)

• |S| / d = Feature Retention Ratio

Sparsity Penalty: λ=0.01\lambda = 0.01

Selected by pilot search

Reward R(S) — Adult Income

No Selection

0.912

Zero-shot Llama-70B

0.908

XGB

Importance

0.908

mRMR

0.877

Zero-shot Qwen-7B

0.863

Few-shot Qwen-7B

0.848

RL-GRPO v1

(0urs)

0.848

(8) Cardinality-Matched Semantic Ablation

PATTERN 1: SEMANTIC RELIANCE

age, jitter_percent, shimmer_db, ...

Parkinson's

Telemon.

SEMANTICS HELP

(+0.416 vs.

Anon.)

Performance by Naming Condition

Figure

PATTERN 2: NO SEMANTIC ANCHOR

sonar_band_01, sonar_band_02 ...

Sonar

NO CLEAR

SEMANTIC ANCHOR

Performance by Naming Condition

Figure

PATTERN 3: MISLEADING SEMANTIC

Overall_Qual->Condition_1, Bldg_Type->Street...

Ames

Housing

SHUFFLING HURTS

(-0.344 R²)

Performance by Naming Condition

Figure

Fig. 1. Overview of the experimental framework. The 18 datasets are partitioned into 10 for GRPO training, 2 for checkpoint validation, and 6 held-out evaluation datasets. Classical, frozen-LLM, and GRPO-adapted selectors are compared using task-separated ROC-AUC and R2R^{2}, with additional cardinality-matched semantic and train-only matched-budget controls.

  1. Robustness and matched-budget controls: We use five-partition uncertainty, task-separated rank evaluation, and train-only classical top-k controls.

References (40)