Geometric Deep Learning: Grids, Groups, Graphs, Geodesics, and Gauges
Paper
•
2104.13478
•
Published
Graph-to-Path Models for Attack Path Prediction
Trained models for the CTEM Enterprise Platform - Continuous Threat Exposure Management using Graph Neural Networks.
Based on Michael Bronstein's geometric deep learning research and GraphAny architecture for learning on arbitrary graph structures.
| Model | Accuracy | Parameters | Purpose |
|---|---|---|---|
semi_supervised_99_7_best.pt |
99.7% | 660K | Technique classification (122 MITRE ATT&CK techniques) |
spectral_281k_best.pt |
59.1% | 1.5M | Attack path transition prediction |
graphany_category_best.pt |
53.8% | 950K | Category classification (137 categories) |
pip install huggingface_hub
# Download all models
huggingface-cli download PleoMorph/ctem-g2pm-models --local-dir ./models
import torch
from huggingface_hub import hf_hub_download
# Download model
model_path = hf_hub_download(
repo_id="PleoMorph/ctem-g2pm-models",
filename="semi_supervised_99_7_best.pt"
)
# Load checkpoint
checkpoint = torch.load(model_path, map_location="cpu")
print(f"Accuracy: {checkpoint['best_acc']*100:.1f}%")
print(f"Techniques: {checkpoint['num_classes']}")
print(f"Technique mapping: {list(checkpoint['technique_to_idx'].keys())[:10]}...")
SemiSupervisedG2PM (99.7% accuracy):
class SemiSupervisedG2PM(nn.Module):
def __init__(self, input_dim=768, hidden_dim=256, num_classes=122):
self.encoder = nn.Sequential(
nn.Linear(768, 256), nn.ReLU(), nn.Dropout(0.2),
nn.Linear(256, 256), nn.ReLU(), nn.Dropout(0.2),
)
self.classifier = nn.Linear(256, 122)
SpectralG2PM (transition prediction):
class SpectralG2PM(nn.Module):
# Spectral graph convolution + transition predictor
# Input: embedding (768) + spectral features (256)
# Output: transition probability P(A → B)
| File | Size | Description |
|---|---|---|
semi_supervised_99_7_best.pt |
2.6 MB | Best classifier model |
spectral_281k_best.pt |
5.7 MB | Transition predictor |
spectral_281k_results.pkl |
478 MB | G2PM features & technique index |
graphany_category_best.pt |
3.6 MB | Category classifier |
semi_supervised_cpu_results.pkl |
3.2 MB | Pseudo-labels & confidences |
@software{ctem_g2pm_2025,
title={CTEM G2PM: Graph-to-Path Models for Attack Path Prediction},
author={PleoMorph},
year={2025},
url={https://huggingface.co/PleoMorph/ctem-g2pm-models}
}
MIT License