Associated Publication:Topological Evaluation of LLM-Driven Procedural Content Generation via Relational Graph Convolutional Networks (Submitted to JAIR, 2026)
Model Summary
This model is a custom PyTorch Relational Graph Convolutional Network (R-GCN) paired with an Advanced Multi-Layer Perceptron (MLP). It is designed to act as a mathematically deterministic, server-side gatekeeper that evaluates Large Language Model (LLM) narrative outputs in Procedural Content Generation (PCG).
By translating dynamic game states into heterogeneous graphs (Spatial, Social, and Inventory matrices), the model evaluates proposed LLM actions as topological edges. It successfully detects and rejects generative hallucinations (e.g., teleportation, looting locked items, trading with hostile entities) in under 5 milliseconds, preventing compounding world-state continuity paradoxes.
Model Architecture
Context Aggregation: 3-Layer R-GCN operating on a 2048-node graph.
Hidden Dimension: 512 dimensions for massive multi-hop logical capacity.
Link Predictor: Advanced MLP funnel (1024 -> 256 -> 1) equipped with 0.4 Dropout to prevent Gatekeeper Overfitting.
Normalization: Symmetric degree normalization with self-loops to prevent gradient explosion during deep message passing.
Evaluation and Performance (Epoch 4)
This repository hosts the Epoch 4 weights, which represent the optimal intelligence state of the network prior to the onset of topological overfitting.
Evaluated against a strictly unseen dataset of 10,000 deterministically generated Hard-Negative and Valid procedural events, the model achieved the following metrics using an optimized Sigmoid decision threshold of S(u,v) > -0.5:
Global Accuracy: 92.00%
Recall (Valid Move Recognition): 99.00%
Precision (Anomaly Rejection): 86.84%
F1-Score (Harmonic Mean): 92.52%
Hardware Latency
Benchmarked on a consumer-grade NVIDIA RTX 3050 Laptop GPU (6GB VRAM):
Isolated Action Evaluation (Cached State): 0.24 ms
Full World-State Re-Aggregation (Heavy Load): 4.67 ms
Conclusion: Operates flawlessly within the strict 16.67 ms (60 FPS) rendering budget of commercial game engines.
Intended Use
Automated LLM Evaluation: Replacing subjective, expensive "LLM-as-a-judge" prompting pipelines with a deterministic mathematical benchmark.
Zero-Trust Anti-Cheat: Because hackers utilize the same topological violations as hallucinating LLMs (e.g., teleportation hacks), this model inherently functions as a server-side, zero-trust anti-cheat engine.
Out-of-Scope Use
Narrative Text Generation: This is a discriminative topological evaluator, not a generative language model. It outputs binary classifications (Valid/Anomaly), not text.
Intangible Abstractions: The model evaluates discrete physical and social constraints. It cannot evaluate emotional nuance or narrative pacing.
How to Load the Model (PyTorch)
Because this is a custom architecture, you must instantiate the underlying PyTorch classes before loading the .pth state dictionary.
import torch
import torch.nn as nn
import torch.nn.functional as F
# Initialize and Load
device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
model = TopologicalEvaluator(feature_dim=256, hidden_dim=512).to(device)
# Load the Hugging Face weights
model.load_state_dict(torch.load("advanced_rgcn_epoch_4.pth", map_location=device))
model.eval()
print("Model successfully loaded and ready for inference!")
Training Data
This model was trained on the temporal_pcg_dataset_2048_hard.json dataset (available in the linked Hugging Face Datasets repository). It was optimized via Binary Cross-Entropy (BCE) Loss over a uniform 50/50 distribution of valid procedural events and algorithmically injected Hard-Negative anomalies.
Citation
If you utilize this model architecture or weights in your research, please cite the associated manuscript:
@article{reddy2026topological,
title={Topological Evaluation of LLM-Driven Procedural Content Generation via Relational Graph Convolutional Networks},
author={Reddy, Basireddy Jaya Sankar},
journal={Journal of Artificial Intelligence Research},
year={2026}
}