TL;DR
This paper introduces SQS (pronounced "squeeze"), a method that uses the Minimum Description Length (MDL) principle to find the smallest, most informative set of patterns that describe an event sequence. Unlike traditional methods that overwhelm users with thousands of redundant results, SQS identifies a concise set of "serial episodes"—patterns that can have gaps—effectively compressing the data into its most essential structure.
What Problem Does This Paper Address?
Data mining often suffers from a "pattern explosion." If you ask a standard algorithm to find every frequent pattern in a sequence, it will return a massive, redundant list where many patterns are just slight variations of each other or noise. For a human analyst, this makes the results the problem rather than the solution.
Sequential data (like logs, text, or sensor readings) adds another layer of complexity: the order of events matters, and patterns often have gaps (e.g., event A is followed by B, but other unrelated events might happen in between). Existing summarization methods often ignore these gaps or fail to penalize them, leading to models that don't truly capture the data's underlying structure.
Methods
The authors leverage the Minimum Description Length (MDL) principle, which posits that the best model is the one that provides the best lossless compression of the data. They treat pattern mining as a two-part coding problem:
- $L(M)$: The cost of describing the model (the set of patterns).
- $L(D|M)$: The cost of describing the data given that model.
To handle sequences, they developed a novel encoding scheme using two streams: a pattern stream (which patterns occur) and a gap stream (where the gaps are within those patterns).
They propose two main algorithms:
- SQS-CANDIDATES: A greedy approach that takes a large set of pre-mined frequent patterns and filters them down to the subset that best aids compression.
- SQS-SEARCH: A parameter-free, "any-time" algorithm that mines patterns directly from the data by iteratively joining existing patterns and testing if the new combination improves the compression score.
Datasets
The researchers evaluated SQS on both synthetic and real-world datasets:
- Synthetic: Indep (random noise), Plants-10, and Plants-50 (sequences with 10 and 50 hidden patterns planted within them).
- Real-world Text:
- Addresses: Speeches by US Presidents.
- JMLR: Abstracts from the Journal of Machine Learning Research.
- Moby: The full text of the novel Moby Dick.
Key Insights and Ideas
- Compression as Quality: By using MDL, the algorithm naturally avoids redundancy. If a new pattern doesn't significantly help compress the data more than the patterns already in the set, it is discarded.
- Expressive Serial Episodes: Unlike previous work, SQS explicitly models and penalizes gaps. This allows it to find "loose" patterns (like "machine [unrelated word] learning") without being fooled by random coincidences.
- Minimal Windows: The authors prove that they only need to look at "minimal windows"—the shortest segments of a sequence that contain a specific pattern—to find the optimal way to cover the data. This significantly speeds up the search process.
Key Results
The experiments showed that SQS successfully "squeezes" the data down to a few hundred highly relevant patterns, whereas traditional frequent mining might return millions.
- Accuracy: On synthetic data, SQS correctly identified the planted patterns while ignoring the surrounding noise.
- Interpretability: On the JMLR dataset, the top patterns were meaningful phrases like "support vector machine" and "Bayesian network."
- Efficiency: Both SQS variants are efficient. SQS-SEARCH, in particular, finds high-quality models without requiring the user to specify a "minimum support" threshold, which is often a guessing game in traditional mining.
As shown in the compression plots below, both algorithms are highly effective at finding patterns that provide a massive "gain" in compression (measured in bits) very early in the search process.
Limitations and Future Work
While powerful, the current version of SQS focuses on serial episodes (events in a strict linear order). The authors note that extending this to parallel episodes (where events can happen simultaneously or in any order) or general directed acyclic graphs (DAGs) would increase expressiveness but also computational complexity.
Additionally, the current MDL formulation prefers "disjoint" covers—meaning one event in the sequence belongs to exactly one pattern instance. The authors suggest that allowing patterns to overlap might lead to even more succinct summaries in the future. Finally, they aim to apply these "code tables" to downstream tasks like clustering and anomaly detection.
Summary updated