arXiv:2610.05600cs.LGOct 2026

Manuscript Offprint

arXiv:2610.05600

An LLM-in-the-loop RL Framework for Bioinformatics Feature Selection

Xinyuan Wang, Deepti Agrawal, Yanjie Fu

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

Xinyuan Wang

School of Computing and AI

Arizona State University

Tempe, USA

xwang735@asu.edu (corresponding author)

Deepti Agrawal

School of Computing and AI

Arizona State University

Tempe, USA

dagraw18@asu.edu

Yanjie Fu

School of Computing and AI

Arizona State University

Tempe, USA

Yanjie.Fu@asu.edu

Abstract—High-dimensional bioinformatics data, characterized by a large number of features relative to the number of samples, pose major challenges such as the “curse of dimensionality,” leading to overfitting, high computational cost, and poor generalization. Traditional feature selection methods often suffer from limited scalability and adaptability in such domains. We propose an LLM-in-the-loop reinforcement learning (RL) framework for bioinformatics feature selection, where the RL agent formulates feature selection as a sequential decision-making task, while the large language model (LLM) enhances the process in two ways: (1) guiding exploration through domain-informed advice, and (2) providing hybrid rewards that integrate data-driven performance with knowledge-driven evaluation. The LLM also produces explanations to improve interpretability for human experts without altering the RL policy update. Experiments on diverse bioinformatics datasets show that the LLM-in-the-loop framework outperforms baselines, achieves stable performance across downstream models, and converges faster than pure RL.

Keywords—Feature Selection, Large Language Models, Reinforcement Learning, LLM in the Loop.

I. INTRODUCTION

With advances in data collection, high-dimensional data have become increasingly common and challenging, particularly in bioinformatics [1]. Such datasets often contain tens of thousands of features but only a few hundred samples in practice, giving rise to the well-known “curse of dimensionality.” This leads to two major challenges: (1) models are likely to overfit, as noisy correlations can outweigh true biological signals, and (2) computational costs grow rapidly, which makes model training expensive [2]. For example, genomic or molecular datasets may require processing the full set of descriptors, which will slow down both model development and clinical translation. Feature selection is therefore essential to remove irrelevant or redundant features [3]. Beyond reducing complexity, selecting a biologically meaningful feature subset (e.g., key genes or biomarkers) improves predictive performance and enhances interpretability for downstream biomedical analysis and clinical research. Fig. 1 shows how feature selection reduces downstream task processing time while boosting performance on a myocardial infarction dataset.

Traditional feature selection approaches fall into three categories: filter, wrapper, and embedded [4]. Filter methods (e.g., Fisher Score [5], Information Gain [6], Chi-Square Test [7]) evaluate features individually before model training. They are

Figure

Fig. 1: Feature selection brings fewer key features to improve downstream performance and reduce processing time.

efficient but ignore feature interactions, which often leads to missing informative combinations. Wrapper methods assess subsets using the performance of a predictive model [4]. While typically more accurate, they are expensive for high-dimensional datasets, since a new model must be trained for each subset. Embedded methods integrate selection into model training, such as Lasso regularization [8] and its extensions [9], which enforce sparsity in parameters. These balance efficiency and accuracy, but remain model-dependent and lack generality across domains.

Reinforcement Learning (RL) offers a new view on feature selection [10]–[13]. It frames feature selection as a sequential decision process for each feature. An RL agent learns through trial and error to find the best feature subset. Compared to traditional methods, RL can perform a more global search and adapt to changing data environments.

RL shows great potential but faces two main challenges. First, exploration within large feature spaces is inefficient. The vast number of possible feature combinations makes a purely “blind” search slow and unlikely to identify the best solution. Second, reward signals are limited by predefined metrics. In RL-based feature selection, rewards are usually derived from human-defined performance metrics, which may not fully capture domain relevance or real-world utility.

To address these challenges, we propose an LLM-in-the-loop RL framework that treats LLMs as domain experts to assist the agent. First, LLM as Decision Maker: The LLM uses its extensive domain knowledge, narrows the exploration space by suggesting promising features, and at each step advises whether the current feature should be selected. Second,

Figure

Fig. 2: Overview of the LLM-in-the-loop reinforcement learning framework for feature selection.

LLM as Reviewer: The LLM provides feedback after each decision, producing a hybrid reward that combines the LLM's knowledge-driven evaluation with the policy's data-driven performance. This mitigates the bias of conventional reward and offers the agent a richer and more realistic learning signal. In addition, the LLM generates natural-language explanations of its advice and reviews, which, while not part of the RL loop, enhance interpretability for human experts.

Experiments in bioinformatics domains verify the framework. The results show that it achieves the best or second-best performance in most tasks, with improvements of up to 4% in classification accuracy and a lower regression error compared to baselines. In addition, convergence analysis indicates that the LLM-in-the-loop framework achieves comparable performance more quickly, and ablation results confirm the value of LLM guidance in both decision-making and reward shaping.