Manuscript Offprint

arXiv:2610.22898

A Feature Selection Layer Approach for Multi-Class Classification on Neural Networks

João Pedro Silveira e Silva, Márcio Dorn, Bruno Iochins Grisci

Abstract

In the age of data-driven decision-making, deep learning models have become powerful tools for uncovering patterns and making predictions that influence many aspects of society. However, their broader adoption in scientific and business applications is often limited by a lack of interpretability. Feature weighting methods, which assess the relevance of individual features, are among the most widely studied approaches for improving interpretability. While post hoc techniques have advanced significantly, especially in modeling nuanced relationships between features and labels in multiclass problems, embedded methods typically fall short in this regard. Embedded techniques integrate feature relevance learning directly into the model training process, but they are often unable to capture label-specific relationships. To address the limitation, we propose multiple extensions to the Feature Selection Layer, an embedded feature weighting mechanism for neural networks. Through extensive experimentation, we identify the most effective extension and benchmark it against established feature weighting methods. Our results show that the proposed method matches existing techniques in identifying globally relevant features and outperforms them in capturing label-specific relevance. By leveraging the internal dynamics of the trained neural network, it reveals how individual features contribute to the prediction of specific labels, requiring no post-processing beyond the training process.

Keywords: feature selection, interpretable machine learning, artificial neural networks, dimensionality reduction, gene expression data, machine learning.

Email addresses: jpedross1999@gmail.com (João Pedro Silveira e Silva), mdorn@inf.ufrgs.br (Márcio Dorn), bigrisci@inf.ufrgs.br (Bruno Iochins Grisci)

© 2027. This manuscript version is made available under the CC-BY-NC-ND 4.0 license.

Cite as: Silveira e Silva, J. P., Dorn, M., & Iochins Grisci, B. (2027). A feature selection layer approach for multi-class classification on neural networks. Information Sciences, 763, Article 124273. https://doi.org/10.1016/j.ins.2026.124273

1. Introduction

Over the past decade, the exponential growth of data driven by the Internet has increased the successful application of deep neural networks across diverse fields, including computer vision, natural language processing, robotics, and healthcare [1]. However, state-of-the-art models often operate as “black boxes”, lacking interpretability. In critical domains like healthcare or human resources, high predictive accuracy alone is insufficient [2]. Hidden biases, such as a model inappropriately relying on demographic attributes like gender, can severely compromise a model’s reliability and exacerbate social issues [3]. Furthermore, neural networks are prone to learning “shortcuts”, achieving high classification performance by exploiting data artifacts rather than capturing the true underlying relevance of the features [4]. Regulations like the EU General Data Protection Regulation (GDPR) increasingly mandate a “right to explanation” for automated decisions, making interpretability not just a scientific preference, but a legal necessity [5].

These challenges have catalyzed extensive research in Interpretable Machine Learning (IML). IML methods generally fall into two categories: local methods, which explain individual predictions, and global methods, which elucidate the overall behavior of the model across a dataset. Among global methods, feature weighting is a widely adopted approach that assigns importance scores to input features [6]. When applied to neural networks, feature weighting clarifies the decision-making process and can enhance generalization by mitigating the influence of noisy features. This is particularly relevant for tabular data. Unlike images or text, tabular data lacks spatial or sequential structure, which poses unique challenges for representation learning. Consequently, standard neural networks often underperform on these datasets due to their high sensitivity to uninformative attributes [7].

Problem: Formally, in a multi-class tabular dataset, a neural network learns a mapping from an input matrix X∈RN×MX \in \mathbb{R}^{N \times M} (N samples, M features) to a set of discrete labels y∈{1,…,L}y \in \{1, \ldots, L\} (L possible labels or classes). Most global feature weighting methods generate a single global feature relevance vector w∈RMw \in \mathbb{R}^M, assigning one score per feature. However, in multi-class tasks, feature importance frequently varies across different labels, a feature highly discriminative for one label may act as noise for another [8]. An ideal approach should instead produce a label-specific relevance matrix W∈RM×LW \in \mathbb{R}^{M \times L}, where Wm,lW_{m,l} indicates the relevance of a feature mm specifically for a label ll. A robust label-specific method must filter general noise, highlight unique label-defining features, maintain predictive performance, and provide granular interpretability without requiring multiple separate models.

Research gap: A prominent method to handle feature weighting within neural networks is the Feature Selection Layer (FSL) [9], an embedded technique that autonomously learns feature relevance from the model's internal dynamics during training. However, the current FSL architecture is fundamentally constrained by its design: it only learns a single general weight per feature (a global relevance vector). Consequently, it cannot discern whether a feature is universally important or only relevant to a specific subset of labels, limiting its utility in uncovering complex, label-dependent patterns.

Proposed method: To bridge this gap, we propose an architectural extension to the FSL that explicitly captures label-specific relevance. Instead of passing input features through a single one-dimensional weight vector, our extension embeds a two-dimensional matrix directly into the network. During training, the network dynamically adjusts these weights via gradient descent, learning to route and scale features differently depending on the specific label pathway. Consequently, the network simultaneously classifies the data and builds a transparent matrix mapping exactly which features drive the prediction of each specific label. Evaluations on both synthetic and real-world high-dimensional tabular datasets demonstrate that our approach performs on par with established techniques in identifying general features and significantly outperforms them in capturing label-specific relevance, all while maintaining or improving overall predictive performance.

This study addresses the research question: “Can an embedded FSL be capable of learning label-specific feature relevance?” To answer this, we address the following complementary questions:

  1. “How to evaluate a label-specific feature weighting algorithm?” (Section 2)

  2. “How to adapt FSL to learn label-specific feature relevance?” (Section 4)

  3. “How does this approach compare to other algorithms?” (Section 5)

Guided by these research questions, and to provide a comprehensive roadmap of our proposed approach, the main contributions of this paper are:

  • We introduce a novel label-specific extension to the Feature Selection Layer (FSL), expanding its learnable parameters to map features to specific labels dynamically during training.

  • We consolidate and adapt evaluation methodologies to rigorously assess the quality of both general and label-specific feature weighting techniques.

  • We validate the proposed approach on synthetic and real-world high-dimensional tabular data, demonstrating its efficacy against established state-of-the-art baselines.

The remainder of this work is structured as follows: Section 2 reviews interpretability and evaluation methodologies; Section 3 outlines related studies; Section 4 details multiple possible label-specific FSL extensions; Section 5 presents experiments and results; and Section 6 concludes the paper, discussing limitations and future work.

References (55)