Abstract
The Feature Shift Localization Network (FSL-Net) is a novel neural architecture designed to identify specific features in high-dimensional datasets that have undergone distribution shifts. By replacing iterative optimization with a single forward pass, FSL-Net achieves state-of-the-art accuracy while being up to 136x faster than previous methods. The model utilizes a Statistical Descriptor Network to extract dataset "fingerprints" and a Prediction Network to localize shifts, demonstrating strong zero-shot generalization across diverse real-world and simulated datasets.
Introduction
In real-world data science, datasets often originate from heterogeneous sources, leading to feature shifts—discrepancies in the statistical properties of specific variables. While detecting the presence of a global shift is well-studied, localizing the specific features responsible for the shift remains a significant challenge. Existing solutions are often computationally prohibitive for large datasets or require prior knowledge of the number of shifted features. Unaddressed shifts can lead to biased models and erroneous conclusions. FSL-Net addresses these issues by framing localization as an efficient supervised learning task.
Methodology
FSL-Net is built on the principle of extracting and comparing statistical summaries of datasets. The architecture consists of two primary components:
- Statistical Descriptor Network (SDN): This module compresses a dataset into a fixed-size tensor. It combines hand-crafted measures (means, standard deviations, histograms, and empirical CDFs) with learned features from "Moment Extraction" and "Neural Embedding" networks. These learned components capture complex higher-order relations that simple statistics might overlook.
- Prediction Network (PN): The PN receives descriptors from both a "reference" and a "query" dataset. It computes normalized differences and utilizes residual blocks to output a probability score for each feature, indicating the likelihood of corruption.
The network is designed to be invariant to sample order and approximately equivariant to feature order, allowing it to generalize to unseen datasets with varying dimensions and sample sizes without retraining.
Experimental Setup
To ensure broad applicability, FSL-Net was trained on a diverse collection of 1,350 datasets. This included 1,032 real-world tabular datasets from OpenML (covering healthcare, finance, and social sciences) and 368 simulated datasets generated using various probabilistic distributions and algebraic functions. Evaluation was conducted on high-dimensional biomedical data, image datasets (MNIST, CIFAR10), and standard UCI repository sets.
Results
FSL-Net consistently matches or exceeds the performance of state-of-the-art methods across multiple benchmarks.
- Accuracy: The model achieved the highest average F1 score for localization, showing particular strength in high-dimensional biomedical contexts where traditional methods often fail.
- Efficiency: FSL-Net is significantly faster than its competitors. On average, it is 36x faster than DataFix. In extreme cases, such as the high-dimensional "Phenotypes" dataset, it achieved a 136x speedup, reducing processing time from 13 hours to just 2 minutes.
- Scalability: Due to its single-forward-pass design, the runtime scales linearly with the number of features, making it highly suited for large-scale data applications.
Conclusion
FSL-Net represents a significant advancement in feature shift localization, offering a "ready-to-use" tool that generalizes across datasets. While highly effective, the model faces challenges with extremely subtle shifts (e.g., manipulation types E4 and E9) that do not significantly alter statistical fingerprints. Additionally, while the authors explored attention mechanisms (specifically EVA layers) to capture inter-feature correlations, these led to memory constraints without performance gains. Future work will focus on improving sensitivity to minor perturbations and finding memory-efficient methods for global feature correlation.
The code and pre-trained models are available on GitHub.
Summary updated