Abstract
Knowledge Graph (KG) generation requires models to learn complex semantic dependencies between triples while maintaining domain validity constraints. Unlike link prediction, which scores triples independently, generative models must capture interdependencies across entire subgraphs to produce semantically coherent structures. We present ARK (Auto-Regressive Knowledge Graph Generation), a family of autoregressive models that generate KGs by treating graphs as sequences of (head, relation, tail) triples. ARK learns implicit semantic constraints directly from data, including type consistency, temporal validity, and relational patterns, without explicit rule supervision. On the IntelliGraphs benchmark, our models achieve 89.2% to 100.0% semantic validity across diverse datasets while generating novel graphs not seen during training. We also introduce SAIL, a variational extension of ARK that enables controlled generation through learned latent representations, supporting both unconditional sampling and conditional completion from partial graphs. Our analysis reveals that model capacity (hidden dimensionality >= 64) is more critical than architectural depth for KG generation, with recurrent architectures achieving comparable validity to transformer-based alternatives while offering substantial computational efficiency. These results demonstrate that autoregressive models provide an effective framework for KG generation, with practical applications in knowledge base completion and query answering.
Introduction
Traditional research in Knowledge Graphs (KGs) has largely centered on link prediction—the task of predicting missing tails given a head and a relation. While effective for individual facts, models like TransE or ComplEx evaluate triples in isolation, often failing to capture the multi-triple dependencies necessary for coherent subgraph generation. For instance, a model predicting a person's presidency must ensure that the 'start year' precedes the 'end year' and that the entity is indeed a human. This "independence assumption" limits the ability of traditional models to generate valid, novel subgraphs that adhere to complex domain rules.
To address this, we propose a shift toward Knowledge Graph Generation: the creation of entire subgraphs that satisfy implicit semantic constraints without explicit rule-based programming. We introduce ARK and SAIL, models that treat KGs as sequences of triples to capture joint distributions across entire structures.
Methodology: ARK and SAIL
The core innovation lies in linearizing a graph into a sequence of tokens: [BOS, head, relation, tail, head, relation, tail, ..., EOS]. This allows the application of sequence modeling techniques to graph data.
ARK (Auto-Regressive Knowledge Graph Generation)
ARK is a decoder-only model utilizing Gated Recurrent Units (GRUs). It predicts the next token in a triple sequence conditioned on all preceding tokens. By randomizing the order of triples during training, the model learns order-invariant semantic constraints rather than sequential memorization.
SAIL (Sequential Auto-RegressIve Knowledge Graph Generation with Latents)
SAIL extends ARK into a variational autoencoder (VAE) framework. It encodes an entire graph into a continuous latent space ($z$), enabling controlled generation. This allows for sampling new graphs from the latent space or completing partial graphs by encoding existing triples and sampling the remainder.
Experimental Evaluation
We evaluated our models using the IntelliGraphs benchmark, which consists of both synthetic and real-world datasets:
- Synthetic Datasets:
syn-paths(simple paths),syn-types(type constraints), andsyn-tipr(temporal reasoning). - Real-World Datasets: Subsets of Wikidata including
wd-moviesandwd-articles, featuring large vocabularies (up to 61,000 entities) and varying subgraph sizes.
Results and Discussion
Our models demonstrate a significant leap in performance over traditional Knowledge Graph Embedding (KGE) baselines, which frequently produce invalid or empty graphs.
Semantic Validity and Novelty
ARK and SAIL achieved between 89.2% and 100% semantic validity across all benchmarks. Crucially, the models did not merely memorize training data; the vast majority of generated graphs were novel structures. ARK also demonstrated superior compression rates, indicating it effectively captured the underlying data distribution.
Architectural Insights
- Capacity vs. Depth: We found that hidden dimensionality (width) is more critical than the number of layers (depth). Performance improved sharply until 64 dimensions, after which adding layers provided diminishing returns.
- Recurrence Efficiency: Single-layer GRUs performed on par with deep Transformers (t-ARK/t-SAIL). Recurrent models were 3.7x to 11x faster to train, suggesting that for KG generation, recurrence is a highly efficient architectural choice.
- Latent Space Smoothness: SAIL's latent space is semantically organized. Interpolating between distinct movie genres (e.g., Western to Bollywood) resulted in valid hybrid graphs that smoothly transitioned between domain characteristics.
Conclusion
ARK and SAIL provide a robust framework for generating semantically valid and novel Knowledge Graphs. By learning implicit rules from data, these models bypass the need for hard-coded logic. While current limitations include a fixed vocabulary and challenges in scaling to million-node graphs, the autoregressive approach represents a significant advancement over independent triple scoring. Future work will explore hierarchical generation and diffusion-based models to further enhance scalability and structural flexibility.
Summary updated