Introduction
Feature Transformation (FT) is a critical step in machine learning pipelines, involving the creation of new features from raw data to enhance model performance. Effective FT can uncover complex, non-linear relationships that raw features alone cannot represent. However, existing FT methods face a significant "trilemma." Manual FT requires extensive domain expertise and is difficult to scale. Supervised FT methods, while effective, rely on large amounts of labeled data, which are often expensive or unavailable in specialized fields like medicine or material science. Finally, traditional unsupervised FT methods, such as Principal Component Analysis (PCA), are frequently limited to linear transformations and dimensionality reduction rather than generative feature discovery.
To address these challenges, we introduce NEAT (uNsupervised gEnerative feAture Transformation), a novel framework designed to automate the discovery of high-utility, non-linear feature interactions without requiring labeled data. NEAT transforms the discrete, combinatorial problem of feature engineering into a continuous optimization task using a generative architecture.
Methodology
NEAT operates through a three-stage paradigm: unsupervised measurement, graph-based pre-training, and generative fine-tuning.
1. Unsupervised Measurement (MDCG)
To evaluate feature quality in the absence of labels, NEAT utilizes a metric called Mean Discounted Cumulative Gain (MDCG). This metric is rooted in the principle of "feature value consistency preservation." The core intuition is that if two data points are similar in the original feature space, their values in a high-quality transformed feature space should also remain similar. MDCG provides a robust proxy for feature utility without needing ground-truth labels.
2. Graph Contrastive Pre-training
Rather than treating feature sets as simple linear sequences, NEAT conceptualizes them as a feature-feature interaction graph. By employing Graph Neural Networks (GNNs) and contrastive learning, the model maps these complex topological relationships into a continuous embedding space. This "feature set2vec" approach allows the model to capture the underlying structure of the data more effectively than traditional sequence-based models.
3. Multi-objective Generative Fine-tuning
The framework employs an "encoder-decoder-evaluator" architecture to navigate the feature space:
- Encoder: Maps raw feature sets into the continuous embedding space.
- Decoder: Translates embeddings back into human-readable mathematical expressions using postfix notation (e.g., $f_1 f_2 +$).
- Evaluator: Predicts the potential utility of a given embedding.
By performing gradient ascent in the continuous embedding space, NEAT identifies optimal feature configurations which are then decoded into discrete mathematical operations.
Experimental Evaluation
Datasets
NEAT was rigorously evaluated on 23 public datasets sourced from UCI, LibSVM, Kaggle, and OpenML. The benchmark included 14 classification tasks (e.g., Higgs Boson, PimaIndian) and 9 regression tasks (e.g., Housing Boston, Airfoil). These datasets represent a wide variety of sample sizes and feature counts, testing the framework's generalizability across diverse domains.
Key Results
- Performance: NEAT consistently outperformed unsupervised baselines like PCA and LDA. Notably, it also surpassed several state-of-the-art supervised methods. For instance, on the SpectF dataset, NEAT achieved an F1-score of 0.856, compared to 0.792 for the best competing unsupervised method.
- Efficiency: The graph-based representation proved more memory-efficient and faster to converge than previous LSTM-based sequence models.
- Traceability: The generated features are mathematically transparent. In tests on wine quality data, NEAT discovered features like
1/([alcohol] + [fixed acidity]), which align with established enological principles regarding wine body and stability.
Discussion and Conclusion
NEAT represents a significant shift in feature engineering by framing it as a generative task. By using consistency as a proxy for truth and leveraging graph contrastive learning, the framework successfully navigates the combinatorial explosion of potential feature interactions.
While highly effective, current limitations include the computational overhead of the initial data collection stage and a fixed set of mathematical operators. Future research will focus on expanding the operator library to include domain-specific functions and improving scalability for ultra-high-dimensional datasets, such as those found in genomics. Ultimately, NEAT demonstrates that "feature space knowledge" can be embedded and decoded much like natural language, opening new avenues for automated data science.
Summary updated