Introduction
Graph-structured data is fundamental to modern computing, representing everything from social interactions to cybersecurity logs. In the realm of system provenance, these graphs track the history of system objects—such as processes, files, and sockets—and their complex interactions. However, generating high-quality synthetic versions of these "heterogeneous" graphs has remained a significant challenge. Traditional methods often struggle with the high-dimensional nature of attributes like filenames, IP addresses, and timestamps, which are critical for semantic realism.
PROVCREATOR addresses this gap by framing graph generation as a sequence generation task, leveraging the power of Large Language Models (LLMs) to synthesize realistic, attribute-rich graphs that preserve both topology and semantics.
The PROVCREATOR Framework
The authors propose a "graph-to-sequence" approach that treats a graph's structure and its associated metadata as a specialized language. The overall workflow involves tracing system data, tokenizing the resulting provenance graphs, and fine-tuning an LLM to generate new, synthetic sequences that can be decoded back into graph format.
The core engine of this framework is a fine-tuned Llama 3-3.2-3B model. By utilizing Low-Rank Adaptation (LoRA), the model is trained to predict the next element in a graph sequence, effectively learning the underlying "grammar" of system activity. This allows the model to inherit the massive reasoning and pattern-recognition capabilities of pre-trained LLMs.
Efficient Graph-to-Sequence Tokenization
A critical innovation in PROVCREATOR is its custom tokenization schema. Standard text representations like JSON are inefficient for LLMs, often consuming excessive context window space and introducing noise. PROVCREATOR introduces specialized tokens such as <bog> (beginning of graph), <bon> (beginning of node), and <boe> (beginning of edge) to represent the graph topology and attributes compactly.
This schema reduces the token count by up to 78% compared to standard formats. Crucially, the model performs "Joint Modeling," interleaving structural tokens with attribute tokens. This ensures the LLM learns the semantic dependencies between node types and their metadata—for instance, understanding that a "Process" node should have a command-line attribute, whereas a "File" node should not. To handle potential syntax errors during generation, the team implemented a state-machine-based parser that filters invalid tokens and ensures structural integrity.
Experimental Evaluation and Results
The framework was evaluated using real-world system provenance data from firefox.exe (7,901 instances) and powershell.exe (50,492 instances), as well as the IntelliGraph benchmark for general knowledge graphs.
Structural and Semantic Fidelity
PROVCREATOR demonstrated superior structural accuracy compared to state-of-the-art diffusion models like GDSS. Using the Maximum Mean Discrepancy (MMD) metric (where lower is better), PROVCREATOR achieved a score of 0.277 for node degrees on firefox.exe data, significantly outperforming GDSS's 0.955.
Beyond structure, the model exhibited high semantic fidelity. Generated attributes such as filenames and IP addresses were validated using regex patterns, showing over 98% and 96% validity, respectively. This suggests the model understands the specific formats and context required for realistic system logs.
Downstream Utility
To test the practical value of the synthetic data, the researchers trained a Graph Neural Network (GNN) on the generated graphs. The results showed that the GNN retained 65-70% of the F1-score performance compared to a model trained on real data. This indicates that PROVCREATOR successfully preserves the "class-discriminative" signals necessary for training AI defense models without exposing sensitive private data.
Conclusion and Future Directions
PROVCREATOR proves that LLMs can be powerful engines for complex graph synthesis when paired with efficient tokenization and joint modeling of structure and attributes. While a "domain gap" still exists between synthetic and real-world data performance, the framework provides a robust foundation for privacy-preserving data generation in sensitive fields like cybersecurity. Future work will focus on integrating formal Differential Privacy guarantees during the fine-tuning stage and scaling the approach to handle massive graphs through hierarchical generation methods.
Summary updated