Abstract
We present an architecture for data streams based on structures typically found in web cache hierarchies. The main idea is to build a meta-level analyzer from a number of levels constructed over time from a data stream. This architecture, known as Cache Hierarchy Inspired Compression (CHIC), serves as a general wrapper allowing the reuse of standard batch learning algorithms in an inherently incremental learning environment. Through experiments with synthetic and real-world data, we demonstrate that a hierarchy containing a mixture of models adapts over time to the data source using performance-based replacement policies and unweighted voting.
Introduction
The proliferation of high-speed data streams presents a significant challenge for traditional machine learning. Most established algorithms are "batch-oriented," requiring access to the entire dataset to construct a model. In streaming environments, data is often too vast to store in memory and arrives too quickly for exhaustive processing. While specialized incremental algorithms exist, they are often difficult to implement and lack the diversity of the batch-learning ecosystem.
This paper introduces CHIC (Cache Hierarchy Inspired Compression), a framework that treats machine learning models as objects within a multi-level cache hierarchy. By managing models similarly to how a web proxy cache (like Squid) manages web pages, CHIC enables the use of powerful, off-the-shelf batch algorithms—such as Support Vector Machines (SVMs) or Decision Trees—within a streaming context.
The CHIC Architecture
The core of CHIC is a multi-level hierarchy designed to filter and promote the most effective models for a given data stream. The system acts as a container, allowing for a mixture of different algorithmic types to coexist and compete.
Hierarchical Organization
The system is structured into several distinct levels:
- Level 0 (The Buffer): This serves as the entry point for raw data. It is a fixed-size buffer (e.g., 1,000 instances). Once full, the data is used to train a new batch model, and the buffer is cleared for the next chunk of data.
- Level 1: This level stores the most recently created models derived from Level 0.
- Higher Levels (2 to N): These levels house models that have demonstrated sustained performance over time.
Promotion and Eviction
CHIC employs a performance-based replacement policy. As new data arrives, every model in the hierarchy is evaluated. If a model performs well, it is promoted to a higher level. Conversely, if a model’s accuracy drops—perhaps due to a shift in the underlying data distribution—it is eventually evicted (deleted) to make room for newer, more relevant models. This creates a form of "Algorithmic Darwinism," where the most suitable models for the current data stream naturally migrate to the top of the hierarchy.
Prediction via Ensemble
To make a classification decision, CHIC utilizes an unweighted voting system. Every model currently residing in the hierarchy provides a prediction, and the final output is determined by the majority vote. This ensemble approach ensures that the system benefits from the collective knowledge of multiple models trained on different segments of the stream.
Experimental Methodology
The researchers evaluated the CHIC framework using a combination of synthetic data and large-scale real-world datasets:
- Synthetic Data: Data was generated using Random Naive Bayes, Random Tree, and Random RBF (Radial Basis Function) generators. These were used to test the system's ability to identify and promote the correct model type for a specific data structure.
- Forest Covertype: A UCI repository dataset with 581,000 instances, used to predict forest types based on cartographic variables.
- Census-income: A dataset of approximately 300,000 instances used to predict whether an individual's income exceeds $50,000.
Key Results and Insights
Competitive Performance
CHIC demonstrated that it could match or nearly match the performance of state-of-the-art batch learners. On the Census-income dataset, CHIC achieved an accuracy of 94.3%. For comparison, the C4.5 batch learner (which sees the entire dataset at once) achieved 95.2%. On synthetic "Random Tree" data, the system reached 96.5% accuracy.
Self-Organization and Adaptability
One of the most significant findings was the system's ability to self-organize. When the hierarchy was populated with a mixture of model types, the replacement policy naturally selected the algorithm best suited for the data. For instance, when processing tree-based synthetic data, the upper levels of the hierarchy were quickly dominated by Decision Tree models. This suggests the system can automatically discover the optimal model type for a given stream.
Concept Drift Readiness
Although not the primary focus of the initial study, the eviction mechanism provides an inherent defense against "concept drift"—the phenomenon where data patterns change over time. By removing poor-performing models, the system ensures that outdated logic does not degrade the ensemble's overall accuracy.
Limitations and Future Work
The primary drawback identified is computational overhead. Because every model in the hierarchy is evaluated against every incoming instance to update performance statistics, the system's throughput can be limited.
Future research will focus on:
- Sampling Updates: Updating model statistics periodically rather than for every instance to improve speed.
- Selective Polling: Using only the highest-tier models for predictions to reduce latency.
- Diversity-Aware Promotion: Developing promotion policies that account for model diversity in addition to raw accuracy.
Conclusion
CHIC offers a robust "wrapper" architecture that bridges the gap between batch learning and data stream processing. By leveraging the principles of cache hierarchies, it allows researchers to apply a wide array of existing algorithms to infinite data streams, providing a flexible and adaptive solution for real-time data analysis.
Summary updated