Abstract
Standard pattern mining often leaves researchers drowning in a "pattern explosion" of redundant results. We present SQS (pronounced "squeeze"), a method that utilizes the Minimum Description Length (MDL) principle to identify a small, high-quality set of serial episodes that best summarize an event sequence. By treating pattern discovery as a data compression problem, SQS filters out noise to find the most informative structure in diverse datasets, ranging from synthetic sequences to the text of Moby Dick.
Introduction: The Pattern Explosion Problem
In data mining, "frequent" does not always equate to "interesting." Mining a sequence for frequent patterns often yields thousands of results that are nearly identical—slight variations of the same underlying phenomenon. This phenomenon, known as the pattern explosion, makes it difficult for researchers to extract meaningful insights.
The challenge lies in summarization: finding a set of patterns that collectively describe the data without redundancy. This is particularly difficult for event sequences (such as system logs or natural language) because patterns often contain gaps. For instance, in the sequence A -> B -> C -> D, the pattern A -> D is present, but separated by "gap events" B and C. Most existing summarization tools either ignore these gaps or fail to penalize them properly, leading to models that are either overly simplistic or unnecessarily complex.
The SQS Method: Induction by Compression
The core philosophy of SQS is Induction by Compression via the Minimum Description Length (MDL) principle. Under this framework, the "best" set of patterns is the one that allows for the most efficient compression of the original dataset.
Encoding Scheme
SQS employs a two-part encoding scheme to evaluate the quality of a pattern set:
- The Model: A "code table" ($CT$) that maps patterns (serial episodes) to short binary codes.
- The Data: The sequence itself, encoded using the patterns in the code table.
To handle the complexity of sequences, SQS introduces a gap stream ($C_g$). When a pattern is used to describe a part of the data, the encoder records whether gaps occurred between the pattern's events. This ensures that the model "pays" for every gap, discouraging the selection of loose or disconnected patterns.
Search Algorithms
Two primary algorithms are introduced to find these summaries:
- SQS-CANDIDATES: A greedy filtering approach that takes a large collection of frequent patterns from a standard miner and iteratively retains only those that improve total compression.
- SQS-SEARCH: A parameter-free, "any-time" algorithm. It starts with individual events and directly mines the sequence by joining existing patterns to see if the combination improves compression.
Experimental Evaluation
The authors evaluated SQS on both synthetic and real-world datasets, including U.S. Presidential speeches, JMLR abstracts, and the full text of Moby Dick.
Key Insights
- Gaps Matter: By explicitly encoding and penalizing gaps, the MDL approach naturally prefers "tight" patterns that occur frequently and reliably over long, sparse patterns that may occur by chance.
- Redundancy Reduction: Unlike frequent pattern mining, which ranks patterns individually, SQS evaluates the set as a whole. If a new pattern does not improve the compression of the existing set, it is discarded.
- Interpretability: The resulting pattern sets are significantly smaller (usually a few hundred patterns) compared to the thousands returned by traditional miners, making them human-readable.
Results
On synthetic data, SQS demonstrated high accuracy, perfectly recovering 10 planted patterns in a clean dataset and identifying 46-47 out of 50 patterns in a noisy environment. In real-world text analysis, such as JMLR abstracts, the top patterns were highly descriptive phrases like "support vector machine" and "bayesian network." On the JMLR dataset, SQS achieved a compression gain of nearly 30,000 bits over the baseline singleton model.
Conclusion and Future Work
SQS provides a robust framework for summarizing event sequences by penalizing redundancy and gaps. While the current implementation focuses on serial episodes (linear orders), future work may extend this to parallel or general episodes involving complex partial orders. Additionally, the compressed code tables generated by SQS could be applied to tasks such as anomaly detection or automated clustering of sequence databases.
Summary updated