Journal Article

·2025 OPEN ACCESS

LAFS: A Fast, Differentiable Approach to Feature Selection Using Learnable Attention

Hıncal Topçuoğlu YTU , Atıf Evren YTU , Elif Tuna YTU , Erhan Ustaoğlu

Entropy

Abstract

Feature selection is a critical preprocessing step for mitigating the curse of dimensionality in machine learning. Existing methods present a difficult trade-off: filter methods are fast but often suboptimal as they evaluate features in isolation, while wrapper methods are powerful but computationally prohibitive due to their iterative nature. In this paper, we propose LAFS (Learnable Attention for Feature Selection), a novel, end-to-end differentiable framework that achieves the performance of wrapper methods at the speed of simpler models. LAFS employs a neural attention mechanism to learn a context-aware importance score for all features simultaneously in a single forward pass. To encourage the selection of a sparse and non-redundant feature subset, we introduce a novel hybrid loss function that combines the standard classification objective with an information-theoretic entropic regularizer on the attention weights. We validate our approach on real-world high-dimensional benchmark datasets. Our experiments demonstrate that LAFS successfully identifies complex feature interactions and handles multicollinearity. In general comparison, LAFS achieves very close and accurate results to state-of-the-art RFE-LGBM and embedded FSA methods. Our work establishes a new point on the accuracy-efficiency frontier, demonstrating that attention-based architectures provide a compatible solution to the feature selection problem.

Keywords

Feature selection Curse of dimensionality Benchmark (surveying) Feature (linguistics) Preprocessor Differentiable function Selection (genetic algorithm) Artificial neural network Computer science Artificial intelligence

Subject Areas

Face and Expression Recognition ·Computer Vision and Pattern Recognition ·Physical Sciences
Stochastic Gradient Optimization Techniques ·Artificial Intelligence ·Physical Sciences
Advanced Neural Network Applications ·Computer Vision and Pattern Recognition ·Physical Sciences