This paper introduces BUGGE, an algorithm that automatically extracts human-readable graph grammars from large datasets using the Minimum Description Length (MDL) principle. By identifying reoccurring structural motifs and the rules for their connection, it provides a powerful tool for interpretable graph modeling that moves beyond simple statistics like node degree or centrality.
What Problem Does This Paper Address?
Graphs are everywhere—from social networks to protein interactions—but understanding the "why" behind their structure is difficult. Most current graph modeling tools either look for pre-defined patterns (like triangles) or use "black-box" neural networks that offer little insight into the underlying dynamics.
While graph grammars—sets of rules that describe how a graph is built—offer a promising path to interpretability, existing methods often produce "clunky" results that are difficult for humans to parse or fail to scale to real-world data. The authors aim to bridge this gap by creating a system that lets the graph "speak for itself," discovering essential patterns and their assembly rules in a succinct, human-readable format.
Methods
The core of their approach is the KT-grammar (named after Kemp and Tennenbaum), a type of Vertex Replacement Grammar (VRG). In this framework, a single node (the Left-Hand Side or LHS) is replaced by a subgraph fragment (the Right-Hand Side or RHS).
A key feature of KT-grammars is their simple rewiring logic: when a node is replaced, its boundary edges are distributed to the new nodes in the RHS according to simple indicator functions. To extract these rules from an existing graph, the authors developed BUGGE (Bottom-Up Graph Grammar Extractor). BUGGE works in reverse:
- Enumeration: It finds all connected subgraphs up to a certain size.
- Rule Matching: It finds the "best fit" grammar rules that could have generated those subgraphs, even allowing for small "edit costs" (adding or deleting edges) to handle noise.
- Selection: It uses the Minimum Description Length (MDL) principle to select the rule that provides the best compression—specifically maximizing the Predicted Cost Ratio (PCR), which measures nodes extracted per bit of description.
- Extraction: It "collapses" the chosen subgraph into a single node and repeats the process until the graph is fully compressed.
Datasets
The authors evaluated BUGGE on both synthetic and real-world datasets:
- Synthetic: Binary Trees, Trees of Rings (N-ary trees where nodes are rings), and Ring Lattices. These provide a "ground truth" to see if the algorithm can recover known generative processes.
- Real-World (from SNAP):
- Blogs: A network of 1,224 blogs and their citations.
- PPI (Protein-Protein Interaction): A network of 1,706 proteins and their interactions.
- DBLP: A citation network of 12,591 articles.
Key Insights and Ideas
- Interpretability by Design: Unlike other grammar types, KT-grammars naturally capture intuitive structures like hierarchies, chains, and rings that are easy for humans to visualize.
- Robustness to Noise: By incorporating an "edit cost" into the MDL calculation, BUGGE can identify meaningful patterns even when they aren't perfectly repeated throughout the graph.
- MDL as a Discovery Tool: Using compression as a proxy for importance allows the algorithm to ignore random noise and focus on the structural "backbone" of the data.
- Null Model Comparison: By comparing extracted rules against those from random null models (like Erdos-Renyi), the authors can mathematically identify which patterns are truly "interesting" and unique to a specific domain rather than just a byproduct of the degree distribution.
Key Results
- Scalability: BUGGE's runtime scales linearly with the number of nodes in the graph (for a fixed maximum rule size), making it viable for medium-to-large datasets.
- Synthetic Recovery: BUGGE successfully recovered the exact generative rules for synthetic graphs, significantly outperforming existing tools like SUBDUE and VoG in capturing the "true" dynamics.
- Domain-Specific Patterns:
- In the PPI network, BUGGE discovered that interactions are overwhelmingly bidirected and follow a "hub-and-spoke" pattern.
- In the DBLP citation network, it found highly tree-like/DAG-like structures, revealing that articles connected by a citation are more likely to have distinct citation lists than shared ones.
Limitations and Future Work
While BUGGE is more scalable than previous KT-inference methods, it still faces computational hurdles; processing the DBLP graph took approximately 18 hours. The algorithm also assumes that the sets of nodes covered by different rule applications are disjoint, which is an idealization that might not always hold in complex real-world topologies.
Future directions include extending the formalism to temporal or evolving graphs and using extracted grammars to generate more realistic "null models" for graph analysis.
Summary updated