Introduction
Analyzing sequential data—such as clickstreams, DNA sequences, or text—is a cornerstone of modern data mining. Traditionally, this involved finding all frequent patterns, a method that often produces massive, redundant outputs. Modern approaches have shifted toward finding a small, optimal set of patterns that collectively describe the data, typically guided by the Minimum Description Length (MDL) principle. However, existing MDL-based methods often struggle with real-world complexity, such as interleaved or nested patterns. This paper introduces SQUISH, a highly efficient algorithm designed to summarize event sequences by identifying rich, overlapping, and flexible patterns.
The Challenge of Sequential Data
Real-world data is rarely a simple linear progression of disjoint events. Multiple processes often run in parallel, causing patterns to interleave. For instance, a user might browse two different product categories simultaneously in a single session. Previous state-of-the-art methods, like SQS, required pattern occurrences to be strictly disjoint, failing to capture these parallel structures. While some probabilistic models allow for interleaving, they are often computationally prohibitive and lack explicit penalties for model complexity. SQUISH addresses these gaps by supporting rich pattern structures, including interleaving and "choicisodes" (patterns with interchangeable elements), without sacrificing speed.
Methodology: Induction by Compression
SQUISH is grounded in the MDL principle, aiming to find a "code table" (a dictionary of patterns) that minimizes the total description length of the database.
Key Innovations
- Rich Description Language: SQUISH introduces choicisodes, sequential patterns where a specific position can emit one of several events (e.g.,
paper [proposes | presents] new). This allows the model to capture semantic synonyms purely from statistical co-occurrence. - Interleaving and Nesting: The algorithm explicitly allows patterns to overlap. To manage the search space, SQUISH uses a heuristic called
FINDWINto locate pattern occurrences and aGREEDYCOVERsub-algorithm to build a sequence cover where patterns can nest within the gaps of others. - Any-time Execution: SQUISH iteratively evaluates candidate patterns for compression gain. Because the most impactful patterns are identified early, the process can be halted at any time to provide a valid, highly compressed model.
Experimental Evaluation
The authors evaluated SQUISH against synthetic and real-world datasets, including e-commerce clickstreams (Gazelle), American Sign Language (Sign), and academic abstracts (JMLR).
Key Results
- Efficiency: SQUISH is orders of magnitude faster than competitors. On the Gazelle dataset, SQUISH completed in 96 minutes, whereas the baseline ISM algorithm required 680 minutes.
- Compression Quality: SQUISH achieves superior compression gains using fewer patterns. On Gazelle, it achieved a 165.7k bit gain with 605 patterns, outperforming SQS, which required 880 patterns for a lower gain.
- Interpretability: By allowing "OR" logic, SQUISH discovered meaningful semantic groupings, such as identifying various constitutional amendments or machine learning techniques (e.g.,
[gradient | coordinat.] descent) without any prior NLP training.
Conclusion and Future Work
SQUISH demonstrates that allowing patterns to interleave and nest mirrors the reality of sequential data generation, leading to better compression and more interpretable results. While the algorithm relies on greedy heuristics to navigate an exponentially large search space, its performance and pattern recall are significantly higher than previous methods. Future work will focus on extending the framework to support parallel episodes—patterns where certain events are unordered—presenting new challenges for scoring and discovery mechanisms.
Summary updated