TL;DR
TaskFusion introduces a novel continual learning framework for anomaly detection in tabular data where datasets arrive sequentially with completely different feature schemas. By mapping heterogeneous inputs into a shared latent space, applying boundary-aware and cross-task data augmentation, and leveraging dataset distillation for replay, it effectively prevents catastrophic forgetting and accumulates anomaly knowledge across diverse domains.
What Problem Does This Paper Address?
In the real world, tabular data rarely arrives all at once or with a perfectly uniform structure. Imagine an industrial monitoring system or a fraud detection engine receiving data streams from different factories or banks sequentially. Each new dataset comes with different columns (feature schemas), statistical distributions, and severe class imbalances (anomalies are incredibly rare).
Standard continual learning (CL) methods completely break down here because they assume a fixed input space. Naive sequential fine-tuning on a new schema causes the model to instantly forget previously learned anomaly patterns—a phenomenon known as catastrophic forgetting. This paper tackles the challenge of how a model can continuously learn robust anomaly detection boundaries across a sequence of heterogeneous tabular datasets without needing access to raw historical data.
Methods
The authors propose the AGF framework, which shifts the focus from feature-level transfer to representation-level knowledge accumulation. It consists of three main pillars:
- The AGF Model Architecture:
- Schema Adapter ($A$): A learnable module that maps task-specific inputs with varying dimensions ($d_t$) into a fixed-size latent space ($d_z$).
- General Distribution Alignment ($G$): Jointly optimized across tasks to map latent embeddings into a unified distribution, minimizing domain discrepancies.
- Anomaly Classifier ($F$): Learns the final decision boundary separating normal and anomalous samples in this aligned space.
- TaskFusion Augmentation:
- Within-Task Boundary-Aware Augmentation: Identifies highly uncertain samples near the current anomaly decision boundary and uses MixUp interpolation to densify these sparse regions, smoothing out the decision surface.
- Cross-Task Augmentation: Uses nearest-neighbor searches to find compatible embeddings between the current task and historical tasks, mixing them in the latent space to transfer anomaly structures across domains.
- Tabular Dataset Distillation & Outlier Exposure: To overcome memory constraints and severe class imbalance, the framework uses dataset distillation to synthesize a compact buffer of replay samples. These synthetic samples are combined with augmented data in a heavily weighted cross-entropy Outlier Exposure (OE) loss function, forcing the model to maintain strong optimization pressure on rare anomaly patterns.
Datasets
The framework was rigorously evaluated on 21 heterogeneous tabular benchmark datasets primarily sourced from ADBench, spanning multiple real-world domains:
- Image-derived features: ALOI, celeba, skin, blastchar, shrutime
- Finance: campaign, creditdef, adultdata, bankmarketing, Income
- Astronautics: landsat, satellite, shuttle
- Document: SpamBase, shoppers
- Other domains: network intrusion (backdoor), sociology (census, donors), botany (cover), web (http), and physics (magicgamma).
These datasets vary drastically, with feature dimensions ranging from 3 to 500 columns, and anomaly ratios ranging from a razor-thin 0.38% to nearly 40%.
Key Insights and Ideas
- Representations Over Features: By mapping completely incompatible data schemas into a shared latent space, the model can accumulate abstract "anomaly knowledge" that transcends the physical columns of a specific dataset.
- Boundary Densification is Crucial: Anomaly decision boundaries in tabular data are notoriously sparse. Intentionally targeting and augmenting data at the boundary (Within-Task) stabilizes the classifier far better than uniform data augmentation.
- The Phenomenon of "Negative Forgetting": Remarkably, in domains like Image and Astronautics, the model exhibited negative forgetting values. This means that learning new, completely different tasks actually improved the model's performance on previously learned tasks, proving positive knowledge transfer.
- Quality Over Quantity for Replay: Tabular dataset distillation consistently outperformed standard random sampling and herding techniques. Optimizing structured synthetic data for replay preserves historical knowledge much better than saving raw data points under tight memory budgets.
Key Results
- Outperforming the Baselines: Across all 21 datasets, TaskFusion achieved a Balanced Accuracy of 83.92%, vastly outperforming sequential fine-tuning (51.12%) and beating out state-of-the-art CL baselines like EDSR (67.43%).
- Beating the Upper Bound: In highly heterogeneous domains like Image and Finance, TaskFusion actually surpassed the non-continual Multitask upper bound (where a model enjoys simultaneous access to all datasets during training), scoring 76.91% vs 72.80% (Image) and 74.75% vs 71.01% (Finance).
- Long-Horizon Stability: Even when evaluated over long sequences of 19+ tasks, the model's anomaly score distributions remained tightly aligned with their original training states, proving that the decision boundaries do not degrade or drift over time.
Limitations and Future Work
While TaskFusion marks a major step forward, the authors note a few limitations:
- Extremely Long Sequences: Performance challenges still linger when task sequences scale excessively, as minor representation drifts can eventually accumulate.
- Implicit Alignment: The framework currently relies on implicit feature alignment. If two sequentially presented domains are radically dissimilar, the fixed augmentation strategies might lose some robustness.
- Future Directions: The team aims to explore adaptive augmentation strategies, semantic-aware alignment techniques, and extending the framework to fully online or streaming data environments.
Summary updated