Abstract
We consider the problem of transfer learning in outlier detection where target abnormal data is rare. While transfer learning has been considered extensively in traditional classification, the problem of transfer in outlier detection and more generally in imbalanced classification settings has received less attention. We propose a general algorithmic approach which is shown theoretically to yield strong guarantees w.r.t. to a range of changes in abnormal distribution, and at the same time amenable to practical implementation. We then investigate different instantiations of this general algorithmic approach, e.g., based on multi-layer neural networks, and show empirically that they significantly outperform natural extensions of transfer methods from traditional classification (which are the only solutions available at the moment).
Introduction
Outlier detection is a critical task in domains characterized by extreme class imbalance, such as rare disease diagnosis, cybersecurity, and extreme weather forecasting. In these settings, "normal" data is abundant, while "abnormal" or outlier data is exceedingly rare. Traditional transfer learning techniques, which leverage knowledge from a related source task to improve performance on a target task, are typically designed for balanced classification. However, outlier detection requires a different approach: the Neyman-Pearson (NP) framework. The NP framework prioritizes minimizing the Type-II error (false negatives) while strictly controlling the Type-I error (false positives) under a pre-defined budget $\alpha$.
A significant challenge in transfer learning is negative transfer, where dissimilarities between source and target distributions lead to degraded performance. This research introduces the Transfer Neyman-Pearson (TLNP) algorithm, a meta-algorithm that provides theoretical guarantees against negative transfer while effectively utilizing source data to improve outlier detection in data-scarce target domains.
Methodology
The TLNP algorithm is model-agnostic and can be implemented using various scoring functions, such as deep neural networks or kernel-based models. The algorithm follows a three-step filtering process designed to ensure that source information is only incorporated when it is beneficial:
- Lagrangian Grid Search: The algorithm performs a grid search over tuning parameters to minimize a weighted combination of source, target, and common-class errors. This step identifies a set of candidate functions that satisfy the Type-I error constraint.
- Target Filtering: These candidates are then filtered based on their performance on the limited target abnormal data. Only functions that perform close to the empirical best on the target task are retained.
- Source Selection: Finally, the algorithm selects the candidate from the filtered set that minimizes the error on the source abnormal data.
This approach ensures that the algorithm prioritizes target-domain performance, only "listening" to the source domain when its guidance aligns with the target's characteristics. This adaptivity allows TLNP to match target-only performance even when the source domain is unrelated.
Experimental Results
The effectiveness of TLNP was evaluated on several real-world datasets, including ClimSim (climate modeling), NASA POWER (weather station data), and financial delinquency records.
Performance on Climate Data
In the ClimSim dataset, the task was to detect heavy precipitation across different geographical clusters. TLNP consistently outperformed baselines, including models trained only on source data, only on target data, or on pooled data.
As illustrated in Figure 6, TLNP (represented by the black line) achieves the lowest Type-II error across various sample sizes. Specifically, in the experiment involving Clusters 26 and 27, TLNP achieved a Type-II error of 0.26, a significant improvement over the "Only Target" baseline of 0.30.
Robustness to Negative Transfer
The NASA POWER experiments highlighted TLNP's robustness. When source and target locations were geographically distant and unrelated, TLNP maintained a Type-II error of 0.37, matching the "Only Target" performance. In contrast, "Only Source" and "Pooled" methods suffered from negative transfer, with errors exceeding 0.60. This demonstrates that TLNP effectively avoids the pitfalls of standard transfer methods when domains are poorly aligned.
Conclusion
The Transfer Neyman-Pearson (TLNP) algorithm addresses a critical gap in transfer learning for imbalanced classification. By integrating a filtering mechanism based on target data, it provides a robust framework for outlier detection that leverages source knowledge without the risk of performance degradation. Future research will explore extending this framework to scenarios where the distribution of the "normal" class also shifts between domains and improving the computational efficiency of the parameter search for large-scale applications.
Summary updated