Coherence by Construction: Synthesizing CTI Knowledge Graphs and the Formal Limits of Coherence Validation
Organizations: Computational and Data Science PhD Program, MTSU, Murfreesboro, TN 37132 USA · Department of Engineering Technology and the Quantum Research Interdisciplinary Science and Education (QRISE) Center, Middle Tennessee State University (MTSU), Murfreesboro, TN 37132 USA
Abstract
Synthesizing relational training data such as knowledge graphs with a large language model typically emits structured objects one at a time, which keeps each object valid but leaves the relationships between them ungrounded. We study an alternative paradigm, generation by simulation: rather than describing a relational artifact, we simulate a process that produces it and take the artifact to be its causal record. Language-model agents propose intent and a deterministic referee resolves outcomes against an explicit world model, so a relation is emitted only when the event it represents occurs, making coherence a property of construction. We instantiate the paradigm for cyber threat intelligence knowledge graphs in the STIX 2.1 standard with three engines, among them an evolutionary engine applying language-model genetic operators to structured graph genomes, sharing a deterministic compiler that makes malformed and dangling output unrepresentable. We prove referential closure, causal grounding, and identifier stability, an ablation localizes each to the referee and world model rather than the policy, and two independent LLM judges reproduce the rubric's engine ranking. Our central result is cautionary, and we prove it: a validator reading any graph feature set a structure-matched random graph can reproduce is uninformative about coherence for a coherence-by-construction generator. Using Erdős-Rényi controls we realize the theorem four times, as structural separation, embedding transfer, inductive link prediction, and real-data augmentation each reward a triviality rather than coherence; we give the mechanism behind each and the conditions a valid benchmark must meet.
Figures & tables
| Engine | Compliance | Structural | Semantic | Diversity ( ) |
|---|---|---|---|---|
| Schema-Forced | 1.00 (1.00 – 1.00) | 0.98 (0.98 – 0.98) | 0.83 (0.81 – 0.86) | 2.73 (2.71 – 2.75) |
| Procedural | 1.00 (1.00 – 1.00) | 0.81 (0.77 – 0.85) | 0.61 (0.58 – 0.64) | 2.66 (2.59 – 2.74) |
| Wargaming | 1.00 (1.00 – 1.00) | 0.95 (0.93 – 0.97) | 1.00 (1.00 – 1.00) | 1.65 (1.61 – 1.69) |
| Evolutionary | 1.00 (1.00 – 1.00) | 0.98 (0.96 – 0.99) S,P | 1.00 (1.00 – 1.00) S,P | 1.51 (1.40 – 1.61) S,P |
| Barabási–Albert | 1.00 (1.00 – 1.00) | 0.92 (0.87 – 0.96) | 0.72 (0.68 – 0.77) | 2.58 (2.29 – 2.86) |
| Configuration | 1.00 (1.00 – 1.00) | 0.65 (0.59 – 0.72) | 0.67 (0.62 – 0.72) | 2.55 (2.28 – 2.80) |
| Rule | Sch-F | Proc | War | Evol | Config |
|---|---|---|---|---|---|
| RULE-01 | |||||
| RULE-02 | |||||
| RULE-03 | |||||
| RULE-04 | |||||
| RULE-05 | |||||
| Earned |
| Configuration | Compl. | Struct. | Sem. | Div. ( ) |
| Wargaming (full, ) | ||||
| Evolutionary (full, ) | ||||
| A: referee off | ||||
| B: novelty off ( ) | ||||
| C: random policy ( ) |
| Property | Value |
|---|---|
| Classifier | RandomForestClassifier (scikit-learn) |
| Number of trees | 100 |
| Maximum depth | unbounded |
| Split criterion | Gini impurity |
| Evaluation protocol | 5-fold stratified cross-validation |
| Reported statistic | Mean AUC std across folds |
| Property | Value |
|---|---|
| Library | PyKEEN (TransE and NodePiece) |
| Embedding dimension | 128 |
| Training epochs | 100 |
| Batch size | 256 |
| Optimizer | Adam, learning rate |
| Evaluation | Filtered, mean over 3 seeds |
| ID | What it checks | Source |
| RULE-01 | threat-actor has attributed-to/uses/targets edge | §4.18 |
| RULE-02 | malware connects to actor/tool/infrastructure | §4.8 |
| RULE-03 | indicator indicates malware/attack-pattern/actor | §4.7 |
| RULE-04 | campaign has attributed actor and target | §4.2 |
| RULE-05 | vulnerability has exploits/related edge | §4.19 |
| RULE-06 | no self-referential relationships | integrity |
| Rule | Schema-Forced | Procedural | Wargaming | Evolutionary |
|---|---|---|---|---|
| RULE-01 ∗ | ||||
| RULE-02 ∗ | ||||
| RULE-03 ∗ | ||||
| RULE-04 ∗ | ||||
| RULE-05 ∗ | ||||
| RULE-06 |
| Engine | Struct. | LCF | Iso. rate | Mean comps. |
|---|---|---|---|---|
| Schema-Forced | N/A | |||
| Procedural | N/A | |||
| Wargaming | ||||
| Evolutionary |
| Value | Win% | Size | Comp. | Struct. | Sem. | Div. |
|---|---|---|---|---|---|---|
| Exploit-success probability | ||||||
| Minimum vulnerable-host fraction | ||||||
| Engine | Metric | mini | GPT-4o ( CI) | Comp. |
|---|---|---|---|---|
| Procedural | Compl. | |||
| Struct. | ||||
| Sem. | ||||
| Div. | ||||
| Wargaming | Compl. | |||
| Struct. |
| Comparison | MMD | ||
|---|---|---|---|
| Wargaming vs. Schema-Forced | |||
| Wargaming vs. MITRE ATT&CK | |||
| ER vs. MITRE ATT&CK | |||
| Wargaming vs. ER (matched) | |||
| Procedural vs. ER (matched) | |||
| Evolutionary vs. ER (matched) |
| System | Purpose | Output artifact | Agent type | Structure authority |
|---|---|---|---|---|
| CyberBattleSim | Train RL agents | Trained policy + metrics | RL | Agent |
| CybORG++ | Train RL agents | Trained policy + metrics | RL | Agent |
| CyGIL | Sim/ emulation transfer | Trained policy + simulator | RL | Agent |
| Agrawal et al. | Train RL/ML agents | Trained policy + metrics | RL/ML | Agent |
| Sen et al. | Attack-stage generation | Action sequences | LLM (unconstrained) | Agent (unreliable) |
| Mirage (this work) | Data generation | STIX 2.1 knowledge graph | LLM | Deterministic referee |
| Parameter | Value | Meaning |
|---|---|---|
| VULNERABLE_HOST_SUCCESS_PROB | P(exploit vulnerable) | |
| PATCHED_HOST_SUCCESS_PROB | P(exploit patched) | |
| ALERT_THRESHOLD | alerts before isolation | |
| MIN_VULN_FRACTION | min. hosts with CVE | |
| TURNS_PER_HOST | turn budget for hosts | |
| Entry out-degree | min. out-edges from entry |
| Corpus (inference graph) | MRR | Hits@1 | Chance | |
|---|---|---|---|---|
| Mirage held-out Mirage | ||||
| ER control held-out ER | ||||
| Mirage MITRE (stress) | ||||
| Transductive floor (TransE) | – | – |
| Model | Condition | MRR | Hits@1 | Hits@10 |
|---|---|---|---|---|
| TransE | A: real only | |||
| TransE | B: Mirage | |||
| TransE | C: ER | |||
| TransE | D: Schema-F. | |||
| RotatE | A: real only | |||
| RotatE | B: Mirage |
| Model | Comparison | Mean diff. | Direction | |
|---|---|---|---|---|
| TransE | B A (one-sided) | |||
| TransE | C A (one-sided) | |||
| TransE | D A (one-sided) | |||
| RotatE | B A (one-sided) | |||
| RotatE | C A (one-sided) | |||
| RotatE | D A (one-sided) |
| Corpus | Rel. types | Shared types | Triples on shared | Fraction |
|---|---|---|---|---|
| Mirage (B) | 6 | 2 | ||
| ER control (C) | 4 | 4 | ||
| Schema-forced (D) | 10 | 2 |
| Judge | Engine | Plausibility | Coherence | Realism |
|---|---|---|---|---|
| GPT-4o | Schema-Forced | [ ] | [ ] | [ ] |
| GPT-4o | Procedural | [ ] | [ ] | [ ] |
| GPT-4o | Wargaming | [ ] | [ ] | [ ] |
| GPT-4o | Evolutionary | [ ] | [ ] | [ ] |
| Claude | Schema-Forced | [ ] | [ ] | [ ] |
| Claude | Procedural | [ ] | [ ] | [ ] |
| Plausibility | Coherence | Realism | |
| Cross-judge Spearman | |||
| Repeat stability, GPT-4o | |||
| Repeat stability, Claude | |||
| Judge vs. rubric (judge mean of coherence, realism): | |||
| all bundles: ( ) | |||
| baselines only ( ): ( ) | |||
| Rule | SF | Pr | Wa | Ev | BA | Cf | WS |
|---|---|---|---|---|---|---|---|
| R-01 | |||||||
| R-02 | |||||||
| R-03 | |||||||
| R-04 | |||||||
| R-05 | |||||||
| R-06/8 |
KG Construction
Knowledge graph construction turns text, tables, images, and databases into structured entities and relationships that machines can query and reason over.
See all 213 papers