Feature and Instance Joint Selection: A Reinforcement Learning Perspective

Wei Fan, Kunpeng Liu, Hao Liu, Hengshu Zhu, Hui Xiong, Yanjie Fu

Abstract

Data preprocessing traditionally treats feature selection and instance selection as independent tasks. However, the utility of a feature is often contingent upon the specific instances present in a dataset, and vice versa. This paper introduces DAIRS (Dual-Agent Interactive Reinforced Selection), a reinforcement learning framework designed to perform joint selection by modeling fine-grained interactions between rows and columns. By utilizing a dual-agent architecture, a sequential-scanning mechanism, and guidance from "teacher" models, DAIRS effectively navigates the massive search space of potential data sub-matrices. Experimental results across four diverse datasets demonstrate that DAIRS consistently outperforms standalone and existing joint selection methods in downstream classification accuracy.

Introduction

In the machine learning pipeline, data cleaning and dimensionality reduction are critical for model performance. Feature selection aims to identify relevant variables, while instance selection seeks to remove noise and redundancy. Despite their interdependence, these tasks are typically handled separately or through "coarse" joint methods that fail to capture the individual interactions between specific data points and features.

The primary challenge in joint selection is the astronomical search space: for a dataset with $n$ instances and $m$ features, there are $2^n \times 2^m$ possible sub-matrices. Navigating this space requires an efficient search strategy that can account for the conditional relevance of data components. DAIRS addresses this by framing joint selection as a collaborative game between two reinforcement learning (RL) agents.

Methodology

Dual-Agent Interactive Architecture

DAIRS employs two distinct RL agents—one for feature selection and one for instance selection. These agents operate within a "Collaborative-Changing Environment," where the state of the data sub-matrix is updated dynamically by the actions of both agents. This ensures that the feature agent remains aware of the instance agent's selections, facilitating global optimization.

Sequential-Scanning Mechanism

To manage the exponential action space, the authors move away from traditional subset selection. Instead, they implement a sequential-scanning mechanism where agents iterate through features and instances one by one. For each item, the agent makes a binary decision (keep or discard). This approach transforms the complex combinatorial problem into a sequential decision-making task manageable by Deep Q-Networks (DQN).

State Representation via CNN

To provide the agents with a comprehensive view of the current selection state, the sub-matrix is treated as a 2D image. Deselected rows or columns are padded with zeros, and a Convolutional Neural Network (CNN) is used to extract high-level features from this visual representation. This fixed-length vector serves as the state input for the RL agents.

Interactive RL with External Trainers

To accelerate convergence and prevent aimless exploration, DAIRS incorporates "Interactive RL" using two established machine learning heuristics as teachers:

  • Random Forest Trainer: Provides guidance on feature importance to the feature agent.
  • Isolation Forest Trainer: Identifies potential outliers to assist the instance agent in noise removal.

Experimental Results

Performance Comparison

The framework was evaluated on four classification datasets: ForestCover (FC), Madelon, Spam, and USPS. DAIRS was compared against standalone feature selectors (LASSO, RFE), instance selectors (DROP, GCNN), and joint selectors (IFS-CoCo, sCOs).

DAIRS consistently achieved the highest accuracy and F1-scores. Notably, on the complex Madelon dataset, DAIRS reached an accuracy of 61.28%, outperforming the best joint selection baseline, IFS-CoCo, which achieved 58.38%.

Ablation and Efficiency

Ablation studies confirmed that the dual-agent approach is superior to using either agent in isolation, proving that the synergy between feature and instance selection is vital. Furthermore, the inclusion of the "teacher" models (Interactive RL) significantly reduced the number of training steps required to reach peak performance, demonstrating the efficiency of hybridizing RL with classical heuristics.

Conclusion

DAIRS represents a significant step forward in automated data preprocessing. By modeling the fine-grained interactions between features and instances through a dual-agent RL framework, it identifies higher-quality data subsets than traditional methods. While the sequential scanning approach makes the search space tractable, future work may focus on reducing the computational overhead for extremely large-scale datasets and exploring the framework's generalizability to non-classification tasks, such as graph-based or time-series data.

Summary updated

BibTeX
@inproceedings{fan2022feature,
  author = {Wei Fan and Kunpeng Liu and Hao Liu and Hengshu Zhu and Hui Xiong and Yanjie Fu},
  title = {{Feature and Instance Joint Selection: A Reinforcement Learning Perspective}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.24963/ijcai.2022/280},
}
Figure