TL;DR
MacroBase is a novel data analytics engine designed to tackle the challenge of overwhelming fast data streams by prioritizing user attention. It achieves this by efficiently combining classification and explanation operators, enabling it to identify and highlight important and unusual behaviors at speeds of up to 2 million events per second on a single core.
What Problem Does This Paper Address?
The paper addresses the growing problem of data deluge. Modern systems like Twitter and Facebook generate millions of events per second, and this trend is only accelerating with the proliferation of IoT devices and automated systems. Manually sifting through this massive volume of data is becoming impossible, leading to a situation where valuable insights are missed. Current analytics tools often require significant domain expertise to configure and can be brittle, relying on static rules. This leaves application operators with limited visibility into their data, often accessing less than 6% of it, primarily for reactive root-cause analysis. MacroBase aims to bridge this gap by acting as an intelligent "search engine" for fast data, automatically highlighting what's important and unusual.
Methods
MacroBase employs a pipeline architecture with several key components:
- Ingestion: Reads data from various sources.
- Feature Transformation: Allows for domain-specific data manipulation (e.g., time-series analysis).
- Classification: Identifies individual data points as "inliers" (normal) or "outliers" (unusual). MacroBase's default uses robust statistical methods like Median Absolute Deviation (MAD) and Minimum Covariance Determinant (MCD) to handle noisy data, outperforming traditional Z-scores.
- Explanation: Aggregates and summarizes outlier points, highlighting common attributes that differentiate them from inliers. This is done using a "risk ratio" metric from epidemiology, which quantifies how much more likely an attribute is to appear in outliers.
- Presentation: Ranks and presents the explanations to the user.
Key novelties include:
- Adaptable Damped Reservoir (ADR): A new reservoir sampling technique that allows for flexible, time-based decay of samples, enabling online classifier retraining and adaptation to changing data distributions.
- Amortized Maintenance Counter (AMC): A heavy-hitters sketch designed for fast updates by amortizing maintenance overhead, significantly outperforming existing sketches in terms of speed.
- Cardinality-Aware Explanation: An optimization that leverages the fact that outliers are typically much rarer than inliers to prune the search space for explanations, leading to substantial speedups.
Datasets
The paper evaluates MacroBase on a variety of datasets:
- Synthetic Datasets: Used to rigorously test accuracy under controlled conditions, including varying levels of label and measurement noise.
- Real-World Datasets:
- CMT (Cambridge Mobile Telematics): Telematics data from hundreds of thousands of vehicles, used to identify issues with trip detection and battery problems.
- Telecom: Aggregate internet, SMS, and telephone activity data.
- Accidents: UK road accident data.
- Campaign: US Presidential campaign expenditure data.
- Disburse: US House and Senate candidate disbursement data.
- Liquor: Sales data from liquor stores in Iowa.
- DBSherlock workload: Used for evaluating anomaly detection in database systems.
The paper does not introduce new benchmarks but rather uses existing real-world datasets and synthetic data to demonstrate MacroBase's capabilities.
Key Insights and Ideas
- Prioritizing Attention is Key: In the face of overwhelming data, the most critical challenge is not just processing data, but intelligently highlighting what matters to the user.
- Classification and Explanation are Synergistic: Combining outlier detection with explanation operators is more powerful than either alone. The rarity of outliers can be exploited to accelerate the explanation process.
- Robustness is Crucial for Fast Data: Traditional statistical methods (like Z-scores) are easily skewed by outliers. Robust estimators (MAD, MCD) are essential for accurately identifying unusual patterns in noisy, high-volume streams.
- Adaptability is Non-Negotiable: Fast data streams are dynamic. Systems must be able to adapt to changing data distributions and arrival rates, which ADR facilitates.
- Efficient Summarization is Paramount: Techniques like AMC and cardinality-aware pruning are vital for making explanations computationally feasible at scale.
Key Results
- High Throughput: MacroBase achieves speeds of up to 2 million events per second per query on a single core. Throughput on real-world datasets ranged from 147K to 2.5M points per second.
- Accuracy: MacroBase demonstrates high accuracy in identifying outliers and their causes, even with significant label and measurement noise (resilient to >20% noise). It also achieves high accuracy in real-world scenarios, such as identifying anomalous servers in a cluster.
- Speedups: The cardinality-aware explanation strategy provides an average speedup of 3.2x compared to traditional FPGrowth. The AMC sketch is up to 500x faster than existing sketches.
- Adaptivity: ADR shows greater adaptivity to changing data distributions and resilience to spikes in data volume compared to other sampling strategies.
- Production Impact: MacroBase has been successfully deployed at CMT, identifying previously unknown issues with trip detection and battery problems.
Limitations and Future Work
- Java Overhead: The Java implementation incurs significant performance overhead (average 12.76x slower than a hand-optimized C++ version). Future work includes exploring JVM code generation.
- Single-Core Focus: The current prototype is primarily single-core. While preliminary results show linear scalability with a naïve parallel approach, improving accuracy in a parallel setting is an ongoing research area.
- Batch vs. Streaming: While MacroBase supports both, the paper notes differences in explanation semantics between one-shot and streaming execution.
- Future Work: The authors suggest several directions, including:
- Temporally-aware explanation.
- Heterogeneous sensor data fusion.
- Online non-parametric density estimation.
- Contextual outlier detection.
- Automating feature selection and query formulation.
- Improving parallelism and scale-out capabilities.
Summary updated