Data-efficient Online Classification with Siamese Networks and Active Learning

Kleanthis Malialis, Christos G. Panayiotou, Marios M. PolycarpouIJCNN 2020

TL;DR

This paper introduces a novel online learning approach that combines Siamese neural networks with active learning to efficiently classify data streams, even with limited labels, changing data distributions, and imbalanced classes. The method demonstrates superior performance and learning speed compared to existing techniques, proving effective even when only 1% of incoming data is labeled.

What Problem Does This Paper Address?

In today's data-driven world, many applications generate data continuously in a streaming fashion. This necessitates "online learning" where models update on-the-fly as new data arrives, rather than being trained on a static historical dataset. However, online learning faces several significant challenges:

  • One-by-one learning: Models must process and learn from individual data points as they arrive, which is more demanding than processing batches.
  • Limited labeled data: Obtaining labels for every incoming data point is often expensive or impractical.
  • Nonstationary data (concept drift): The underlying data distribution can change over time, making previously learned patterns obsolete.
  • Imbalanced data: Some classes may have significantly fewer examples than others, making it difficult for models to learn them effectively.

This paper tackles the difficult problem of performing online classification under all these challenging conditions simultaneously, an area that is largely unexplored.

Methods

The core of the proposed approach, dubbed "ActiSiamese," is a synergistic combination of two key components:

  • Siamese Neural Networks: These networks are designed for "few-shot learning," meaning they can learn effectively from very few examples per class. They work by learning an embedding space where the distance between embeddings reflects the similarity of the original data points. This is crucial for handling limited labeled data.
  • Active Learning: This strategy allows the model to intelligently select which data points to request labels for from an "oracle" (e.g., a human expert), based on a predefined budget. This helps to maximize the utility of limited labeling resources.

The ActiSiamese method employs a multi-sliding window approach for data storage. Instead of a single memory buffer, it maintains separate, balanced queues for each class. This helps to mitigate class imbalance and allows the model to retain and learn from recent historical data. When a new data point arrives, an active learning strategy (a randomized similarity-based approach) decides whether to query for its label. If a label is obtained, the new data point is added to its corresponding queue. The Siamese network is then trained using pairs of data points from these queues, aiming to learn a similarity metric that distinguishes between same-class and different-class pairs.

Datasets

The paper evaluates the proposed method on two synthetic datasets:

  • sea4: A four-class dataset with two features, designed to test concept drift by abruptly changing decision boundaries. It also includes scenarios with severe class imbalance.
  • circles10: A ten-class dataset with two features, where classes are defined by circular decision boundaries. This dataset is also used to test concept drift and extreme class imbalance, and it introduces noise by having overlapping class regions.

Key Insights and Ideas

  • Synergy is Key: The paper highlights that combining Siamese networks (for few-shot learning) with active learning (for efficient labeling) is a powerful strategy for data-efficient online classification.
  • Memory Matters: The multi-sliding window approach, which retains recent data, significantly aids in handling nonstationarity and imbalance, outperforming purely incremental methods that discard old data.
  • Robustness to Extreme Conditions: The proposed method shows remarkable resilience to severe class imbalance and concept drift, even when only a tiny fraction of data is labeled.
  • Learning Speed is Crucial: The ActiSiamese approach not only achieves high performance but also learns significantly faster than other methods, making it more practical for real-time applications.

Key Results

  • Label Efficiency: The ActiSiamese approach is effective even when only 1% of the incoming instances are labeled, achieving performance close to fully supervised learning with a budget of B=0.01.
  • Performance Superiority: In imbalanced and nonstationary settings, ActiSiamese consistently outperforms baseline methods like "incremental" (a state-of-the-art incremental learning algorithm) and "ActiQ" (which uses a standard neural network instead of Siamese).
  • Learning Speed: ActiSiamese learns significantly faster than ActiQ, reaching comparable performance levels much earlier in the simulation.
  • Robustness to Imbalance: In imbalanced scenarios, ActiSiamese maintains a strong performance, while ActiQ's performance degrades significantly, and the incremental method often fails entirely.
  • Concept Drift Handling: While ActiSiamese is robust to concept drift, the paper notes that it might have a slightly more difficult time "forgetting" old concepts compared to ActiQ in some nonstationary scenarios.

Limitations and Future Work

  • "Forgetting" Old Concepts: The paper acknowledges that in nonstationary environments, ActiSiamese might struggle to fully adapt to new concepts as quickly as other methods, suggesting a potential area for improvement.
  • Co-existing Severe Imbalance and Drift: The paper notes that when both class imbalance and concept drift are severe and co-exist, all compared algorithms are significantly affected, indicating this remains an open and challenging problem.
  • Real-World Datasets: The authors plan to enrich their study by evaluating the proposed approach on real-world datasets.
  • Improving Robustness: Future work will focus on making the algorithms more robust to severe co-existing imbalance and drift.

Summary updated

BibTeX
@misc{malialis2020data,
  author = {Kleanthis Malialis and Christos G. Panayiotou and Marios M. Polycarpou},
  title = {{Data-efficient Online Classification with Siamese Networks and Active Learning}},
  year = {2020},
  eprint = {2010.01659},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.01659},
}
Figure