惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
The Last Watchdog
The Last Watchdog
C
Cisco Blogs
L
LINUX DO - 热门话题
T
Tenable Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
Cyberwarzone
Cyberwarzone
O
OpenAI News
The Hacker News
The Hacker News
V
Vulnerabilities – Threatpost
A
Arctic Wolf
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
量子位
V2EX - 技术
V2EX - 技术
GbyAI
GbyAI
W
WeLiveSecurity
Recorded Future
Recorded Future
P
Proofpoint News Feed
Project Zero
Project Zero
P
Palo Alto Networks Blog
Microsoft Security Blog
Microsoft Security Blog
S
Security Affairs
Stack Overflow Blog
Stack Overflow Blog
B
Blog
Y
Y Combinator Blog
月光博客
月光博客
K
Kaspersky official blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Latest news
Latest news
Forbes - Security
Forbes - Security
T
Troy Hunt's Blog
T
The Blog of Author Tim Ferriss
C
Check Point Blog
D
DataBreaches.Net
MyScale Blog
MyScale Blog
博客园 - 三生石上(FineUI控件)
博客园 - 聂微东
D
Docker
P
Privacy International News Feed
C
Cybersecurity and Infrastructure Security Agency CISA
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
C
Cyber Attacks, Cyber Crime and Cyber Security
S
Securelist
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
雷峰网
雷峰网
SecWiki News
SecWiki News
腾讯CDC
博客园 - Franky

Towards AI

Building AI Agents in Rust — part 4 | Towards AI Building AI Agents in Rust — part 5 | Towards AI The Verified Identity Agent Bridge | Towards AI You Can’t Prompt Your Away Your LLM Problems | Towards AI The Free Agent Trap | Towards AI Your Agentic Loop Will Drift. Here Is the KL Divergence Equation That Measures How Far It Has Wandered From Its Original Instruction. | Towards AI Beyond Chat: Processing Images, PDFs, and Documents with the OpenAI Adapter in Oracle Integration Cloud | Towards AI Building AI Agents in Rust — part 3 | Towards AI Self-Hosting Airflow at Home: Automating Stock Price Data Collection | Towards AI The 76-Hour Frontier: How the Takedown of Claude Fable 5 Birthed the Military-Industrial-AI Complex | Towards AI I Trained a Markdown File to Boost GPT-5.5 by 23 Points — It Shouldn't Work | Towards AI We Replaced ChatGPT With a Local AI Server. Six Months of Honest Data. | Towards AI What Really Makes Cars Pollute? A Data Science Deep Dive into CO₂ Emissions | Towards AI Training GPT-2 From Scratch on a GTX1050 | Towards AI Principal Component Analysis (PCA): Theory, Mathematics, and Applications Build a Zero-Cost Web Automation Pipeline With OpenRouter, OpenClaw, and MediaUse I Gave Qwen3.7-Plus a Screenshot and It Found the Exact Pixel to Click for $0.40 Beyond the Prompt: Why Autonomous AI Agents Are Replacing the Chatbot Moonshot Cracked Claude Code’s Playbook with an MIT Terminal Agent and a $0.60 Model Connections, Roles, and Warehouses: Getting CoCo Desktop Production-Ready from Day One My First $5,000 Month Writing About AI Engineering on Medium Google Shrank Gemma 4 by 72% and Unsloth Fixed the 4-Bit Bug Nobody Else Caught on One 4090, and 4-Bit Shouldn’t Be This Good LangChain Explained: Understanding Models, Prompts, Chains, Memory, Indexes, and Agents TOON: Beyond JSON for LLMs Claude Code Casual, Pro, Elite: The Three Working Personas of Claude Code Mastery MiniMax M3 Decodes 1M Tokens 15x Faster — and It Shouldn’t Be This Cheap Using Amazon SQS for AI Agent Orchestration I Ran a 1.5B-Active Model on My Laptop That Embarrassed a 26B by 46 Points How to Build a Self-Improving Company with AI Part 3 — Implementation/Engine-Level: Choosing the Runtime That Gives You These for Free Part 2 — Serve-Level Speed: System Design That Stabilizes P95/P99 3-Part Series: LLM Latency in Production (Part 1) Claude Code: The AI Coding Partner Changing How Developers Build Software Claude Code Pitfalls: Claude Code Won’t Do What You Told It: A Troubleshooting Catalog Full-Stack Data Scientists for the Agentic Coding World Building Production-Grade AI Skills with Snowflake Cortex AI Function Studio I Tried 10 AI Agent Frameworks in 2026 — Here’s the Honest Guide I Wish I Had Earlier How One Spring Boot Optimization Saved Our Startup $30,000 a Year Inside Palantir AIP: How the World’s Most Controversial AI Platform Actually Works What Is a Reverse Proxy? (And Why Every Backend Developer Should Care) What Claude Opus 4.8 Actually Changes If You’re Building Agents QWEN 3.7 Max Worked For 35 Hrs Straight And The Results Were Mind-blowing Fine-Tuning is Dead: Why Context Orchestration Won in 2026 5 Things Broke When I Shipped a RAG + MCP Agent to Production. Google Co-Scientist: Hyper Scaling Research and Discovery Microsoft Just Embarrassed Browser Web Agents — 1,000 Lines Made GPT-5.4 Beat Opus 4.6 on 200 Web Tasks The Modern Data Stack Is Broken — Here’s How to Fix It With AI, Governance, and Real Architecture Building Production MCP Servers: What the Spec Won’t Tell You When Should an Agent Stop? The Anatomy of Termination Harness Engineering: The Layer That Matters More Than the Model AI Engineers Who Can’t Debug Are Getting Fired (Here’s How I Debug with Claude Code) Claude Code Memory: Why You Keep Explaining the Same Thing to Claude (and the Five Layers That Fix It) Claude Code Subagents: The Claude Code Feature You Skip Every Day (And Why It Quietly Wrecks Your Sessions) Agentic AI and the SMB Banking Advantage Claude Code: Spec-Driven Development — Why Your AI Coding Sessions Fall Apart at Hour Three The Real Cost of Agentic AI Nobody Budgets For SVM : 40 must visit Interview Questions (Part 2) Your AI Agent Works Perfectly in the Demo. Here Are the 6 Ways It Dies in Production. Unleashing the Power of ONNX for Speedier SBERT Inference Terraform vs CI/CD for Serverless Deployments Merve Noyan Stopped Writing Training Scripts — Her Agent Just Fine-Tuned 18 Models Solo for $11.40 Why Your Sales Forecast Is Always 20% Wrong (And How To Make It 12% Wrong) Genetic Cubic n{C/A} Ratios For Elementary Robotics Design Top 20 AdaBoost Interview Questions & Answers (Part 2 of 2) Agentic AI Vs AI Agents — What Are the Key Differences? LAI #127: The Infrastructure Layer of AI Is Becoming the Product Anthropic Caught Its Own AI Planning to Blackmail Engineers RNNs Cannot Think What Transformers Think Cheaply. ICLR 2026 Proved the Gap Is Exponential. Time Series Made So Easy My Aunt Got It on the Second Read Claude Cowork 101 | Towards AI Is 3-Bit KV Cache the Holy Grail? A Reality Check on Google’s TurboQuant LangGraph Multi-Agent Architecture: Building a Self-Critiquing AI Debate System AutoML on Autopilot | Towards AI I Ran This Open-Source AI Tool on a Messy Codebase and Got 71x Fewer Tokens — Here Is Exactly What Happened Month in 4 Papers (April 2026) AI Kept Forgetting My Notes. Fixing That Taught Me How It Actually Works. How ChatGPT Makes You Addicted Crack ML Interviews with Confidence: K-Nearest Neighbors (KNN 20 Q&A) The Event-Driven Blueprint: How I Scaled a Spring Boot System to 10 Million Kafka Messages/Day Building Vector Search? Why FAISS Alone Isn’t Enough TAI #202: GPT-5.5 Moves Codex Into Real Work Machine Learning System Design -The Model Serving Triangle, With One Forward Pass Flowing Through Every Trade-off (Part3) AI Orchestration in Action: How MuleSoft and LLMs Fuel the Future of Enterprise AI GPT-4 Has 1.8 Trillion Parameters. It Uses 2% of Them Per Token. Part 20: Data Manipulation in Multi-Dimensional Aggregation A Fundamental Introduction to Genetic Algorithm -Part Two TAI #200: Anthropic’s Mythos Capability Step Change and Gated Release From Notebook to Production: Running ML in the Real World (Part 4) Sqribble’s Template‑Driven Document Automation Anthropic Just Shipped the Layer That’s Already Going to Zero Long-Term vs Short-Term Memory for AI Agents: A Practical Guide Without the Hype The L1 Loss Gradient, Explained From Scratch Your Postcode Is Deciding Your Care. I Built a Pipeline to Prove It. I Directed AI Agents to Build a Tool That Stress-Tests Incentive Designs. Here’s What It Found. Your System Prompt Is the Product — Not the Feature The LLM Wiki Trend Has a Retention Problem Nobody Mentions Top 20 Data Preparation Interview Questions and Answers (Part 2 of 2) LAI #122: Word Embeddings Started in 1948, Not With Word2Vec Top 15 Computer Vision Datasets [2026] 40 Generative AI Interview Questions That Actually Get Asked in 2026 (With Answers)
When LLMs Meet Knowledge Graphs on the Battlefield
Editorial Team · 2026-05-29 · via Towards AI

Author(s): Akash Dogra

Originally published on Towards AI.

When LLMs Meet Knowledge Graphs on the Battlefield
The modern intelligence stack: satellite imagery, tactical knowledge graphs, drone surveillance, and command center fusion.

How GNNs, LLMs, and ontology-grounded retrieval fuse into the architecture powering modern military intelligence — with the math, the code, and the failure modes.

The 90-Second Decision That Broke Standard AI

A highly dispersed sensor network detects anomalous activity across a 200-kilometer front. Synthetic aperture radar identifies irregular vehicle tracks near a tree line. Signals intelligence intercepts encrypted, short-burst radio transmissions. A week-old HUMINT report places a high-value commander within 50 kilometers. Open-source intelligence shows sudden civilian supply chain delays. Drone feeds capture thermal signatures obscured by deliberate multispectral camouflage.

A human commander has roughly ninety seconds to synthesize this. The decision must comply with International Humanitarian Law — decisively differentiating combatants from protected civilians while mitigating an imminent threat to friendly forces.

Standard supervised classifiers fail catastrophically here. The core IID assumption — that training and test data share identical distributions — is actively violated by an adversary whose explicit goal is to operate outside historical patterns. Vanilla LLMs fare no better: they hallucinate confident claims when navigating sparse data and cannot track entities across evolving operational contexts without catastrophic forgetting. Traditional databases are too rigid to handle contradictory, probabilistic evidence in real time.

The defense ecosystem recognized this structural gap. DARPA’s Knowledge-directed AI Reasoning Over Schemas (KAIROS) program (2019–2023) initiated the development of systems that identify, link, and temporally sequence complex events from noisy multimedia inputs [1]. Its successor programs now fuel production-grade GNN-LLM hybrids [2]. As of late 2025, the DoD’s GenAI.mil initiative mandates AI-first decision workflows across operational commands [3].

No single algorithm solves this. The real architectural insight is a fusion stack: LLMs provide language-grounded reasoning. GNNs provide relational inference and uncertainty propagation. Knowledge graphs provide the governed semantic substrate that tethers both to operational reality.

Knowledge Graphs: The Semantic Backbone

Information in warfare is inherently relational. An intercepted signal is meaningless in isolation — its tactical value only emerges when linked to its transmission origin, the adversary’s command hierarchy, and geographic proximity to logistics routes.

A knowledge graph models the battlefield through three axes: entities (people, units, locations, weapons), relationships (command hierarchies, supply chains, communications), and temporal dynamics (timestamps, confidence scores, version histories).

Formally, the environment is a heterogeneous knowledge graph:

G = (V, E, φ, ψ)

where V is the node set, E is the edge set, φ: V → T_V maps each node to an entity type, and ψ: E → T_E maps each edge to a relationship type.

A heterogeneous military knowledge graph with five typed entities and strictly defined relationships. If the Comms Relay is destroyed, the cascading isolation of Unit Alpha is computable instantly.

Even in this reduced five-node configuration, the graph encodes deep tactical structure. If a strike destroys the Communications Relay, the graph explicitly maps cascading consequences: the Commander loses transmission to the Unit contesting the Disputed Territory. No flat database computes this cascading impact with the latency required for combat.

Intelligence graphs must be dynamic. Edges appear, disappear, and change confidence as new intelligence arrives, transforming G into a temporal sequence G = {G₁, G₂, …, G_T} where G_t represents battlespace state at time t. Platforms like Palantir Gotham and AIP operationalize exactly this kind of entity-relationship modeling at enterprise scale [4].

Graph Neural Networks: Inferring the Unknown

Standard graph databases (Cypher, SPARQL) are exact-match retrieval engines. They return what is explicitly encoded. They cannot infer what is implicitly implied by structure, nor propagate uncertainty through multi-hop reasoning chains. If an adversary uses sophisticated OPSEC to obscure a command link, a standard query returns null.

GNNs transform discrete graph topology into continuous vector spaces, enabling probabilistic reasoning over the network itself:

  1. Link Prediction: Inferring missing edges — “Who is this unknown actor connected to?”.
  2. Node Classification: Inferring entity type from relational context alone
  3. Entity Resolution: Determining whether a burner phone MAC address and a physically observed combatant represent the same real-world entity.
A GNN classifies an unknown entity as a mobile air defense system — not by observing it directly, but by analyzing the relational gravity of its neighbors.

Consider: a new entity appears with only three known edges — proximal to a Logistics Node, detected by an RF Sensor, and observed on a Supply Route. A standard database sees three isolated facts. A GNN propagates neighborhood information, aggregates feature vectors from all three neighbors, and compares the resulting embedding against historical deployments. The output: 87% probability of a mobile air defense system protecting the logistics chain. The model inferred a classified asset by analyzing the negative space of its neighbors.

In heterogeneous intelligence environments, standard GNNs are insufficient a SIGINT intercept carries profoundly different epistemic weight than a social media post. Heterogeneous Graph Attention Networks (HAN) address this through hierarchical attention. The semantic-level attention computes meta-path importance:

The algorithm learns to prioritize reliable transmission chains (dedicated military comms) over noisy ones (civilian cell networks). This directly mimics how an expert analyst weights source reliability.

import torch
from torch_geometric.nn import HANConv
from torch_geometric.data import HeteroData

# Define a heterogeneous military intelligence graph
data = HeteroData()

# Node features: entity embeddings from sensor fusion
data['commander'].x = torch.randn(5, 64) # 5 known commanders
data['unit'].x = torch.randn(20, 64) # 20 tracked units
data['location'].x = torch.randn(50, 64) # 50 geolocations
data['unknown'].x = torch.randn(3, 64) # 3 unclassified entities

# Typed edges encoding relationships
data['commander', 'commands', 'unit'].edge_index = torch.randint(0, 5, (2, 15))
data['unit', 'operates_at', 'location'].edge_index = torch.randint(0, 20, (2, 40))
data['unknown', 'proximal_to', 'location'].edge_index = torch.tensor([[0,1,2],[5,12,30]])

# HAN with meta-path-based attention
metadata = data.metadata()
han = HANConv(in_channels=64, out_channels=32, metadata=metadata, heads=4)

# Forward pass: message passing across typed edges
out = han(data.x_dict, data.edge_index_dict)

# out['unknown'] now contains relational embeddings for classification

LLMs as the Reasoning Layer — and Why They Can’t Work Alone

GNNs output high-dimensional vectors and probabilistic logits. A battlefield commander cannot make a targeting decision based on a cosine similarity metric. LLMs bridge this gap as the reasoning and human-machine interface layer.

But deploying LLMs directly into a command post is catastrophically dangerous. They hallucinate confident factual claims. Most critically: if an artillery strike destroys a bridge at 0800, an LLM’s frozen parametric memory doesn’t register it. Asked for routing at 0805, it will confidently route friendly forces over the destroyed bridge.

The solution: LLM-over-graph architecture. The LLM doesn’t answer from pre-trained weights it acts as an orchestration engine that translates natural language into graph queries, retrieves structured subgraphs, and reasons exclusively over retrieved data.

Three retrieval architectures compared. OAG (green row) grounds the LLM in governed ontological data, logic tools, and actionable APIs.
# Standard RAG: Semantic similarity, prone to hallucination
context = vector_db.similarity_search("Supply chain vulnerability for Unit Alpha", k=5)
response = llm.generate(prompt=query, context=context)

# Ontology-Augmented Generation: Structured, deterministic, auditable
ontology_query = llm.generate_ontology_query(
intent="Supply chain vulnerability for Unit Alpha",
schema=military_ontology)

subgraph = hypergraph_retriever.execute(ontology_query)
vulnerability = logic_tools.run_logistics_optimizer(subgraph)
response = llm.reason_over_graph(
prompt=query, graph_data=subgraph, logic_results=vulnerability)

By forcing the LLM to route its entire reasoning process through ontological constraints, the architecture neutralizes hallucination by grounding every claim in data objects with auditable provenance.

The Fusion Stack: Five Layers of Military Intelligence

These technologies synthesize into a unified five-layer architecture:

The five-layer intelligence architecture. Note the human-in-the-loop barrier (red) — kinetic decisions are architecturally blocked from autonomous execution.

The critical engineering challenges occur at the boundaries between layers.

Layer 1 → Layer 2: Sensor Fusion via Dempster-Shafer Theory

When multiple sensors provide conflicting evidence, standard Bayesian methods struggle to represent pure ignorance. Dempster-Shafer theory assigns belief to subsets of possible classifications, explicitly modeling “I don’t know.” The combination rule fuses independent sensor evidence:

The normalization factor K measures conflict between sensors. If K is dangerously high a drone identifies a school bus while corrupted SIGINT identifies a missile launcher the system halts automated updates and flags for human review.

Layer 3 → Layer 4: GNN-to-LLM Serialization

The architecture serializes graph context into JSON-LD with GNN confidence scores attached. The LLM’s system prompt is strictly weighted: “Do not treat inferred links as empirical truth — present them as probabilistic assessments.”

Neuro-Symbolic Safety: When Rules Override Learning

Learned models cannot fail gracefully in targeting decisions. The IHL prohibition against targeting hospitals cannot be reduced to a 95% confidence metric. It must be an absolute systemic barrier.

Neural inference feeds into a symbolic logic engine. If any IHL constraint is violated, the system architecturally blocks the recommendation — regardless of neural confidence.

In a neuro-symbolic targeting architecture:

  • Neural layer: Computer vision identifies a structure. GNNs infer 92% probability of an enemy command post. LLMs synthesize an intelligence briefing.
  • Symbolic layer: Queries ontology for hard constraints. Does the blast radius intersect a hospital? Are friendly forces in the fragmentation zone? Has positive ID been met by two non-corrupted sensors?

If the symbolic logic evaluates to FALSE on any parameter, the action is blocked at the interface level. Compliance is not an afterthought — it is wired into the execution layer. Systems like Palantir's AIP deploy these guardrails alongside LLM reasoning to prevent hallucinated legal justifications [5].

Failure Modes: Poisoning, Bias, and Overconfidence

Adversarial Graph Poisoning

An adversary who understands the GNN can deliberately broadcast fake encrypted signatures near civilian infrastructure, injecting malicious nodes. The GNN aggregates poisoned data during message passing, corrupting embeddings of innocent nodes. Research into certified defenses (AGNNCert, PGNNCert) is a top priority in 2026 [6].

Confirmation Bias Amplification

If the knowledge graph reflects prior operational biases, the GNN enshrines them mathematically. It predicts links aligned with historical patterns; the LLM generates eloquent reports justifying those predictions. This creates an automated feedback loop of self-fulfilling intelligence.

Lethal Overconfidence

Standard softmax outputs are notoriously poorly calibrated — they produce overwhelming confidence while being empirically wrong. Conformal Prediction provides distribution-free coverage guarantees:

Conformal prediction outputs a set guaranteed to contain the true label. When the set includes both “Enemy Launcher” and “Civilian Fuel Truck,” autonomous action is architecturally prohibited.

If the 95% conformal set includes both “Enemy Mobile Launcher” and “Civilian Fuel Truck,” the system doesn’t force a choice it forces human intervention by exposing the mathematical bounds of its own uncertainty.

What Comes Next

The field is accelerating into production:

  • Temporal GNNs: Continuously model dynamic graph states, enabling forecasting of adversary movements before physical actions occur
  • Multimodal graph nodes: Embedding raw vision, acoustic, and RF signals directly as feature vectors within graph nodes, bypassing separate extraction models
  • Federated graph learning: Allied nations training unified GNN-LLM models without sharing sovereign data, preserving operational security
  • Edge-deployed reasoning: Lightweight LLMs and GNNs on autonomous forward platforms, reasoning over localized knowledge graphs with zero connectivity

Inevitably, adversarial neural networks will be purpose-built to manipulate GNN message-passing aggregations, poisoning knowledge graphs to paralyze LLM reasoning engines. The integration of LLMs, GNNs, and knowledge graphs represents a paradigm shift — but the true test is whether it makes the right decision in the fog of war, when sensors are blinded, data is missing, and the cost of an architectural error is measured in human lives.

References

[1] DARPA, “Knowledge-directed Artificial Intelligence Reasoning Over Schemas (KAIROS),” 2019–2023. Program concluded; methodologies now integrated into production GNN-LLM hybrid systems.

[2] Department of Defense, “GenAI.mil — AI-First Warfighting Workflows,” launched late 2025. Mandates AI-assisted decision-making across operational commands.

[3] Microsoft Research, “From KAIROS to GraphRAG: The Evolution of Schema-Based Intelligence,” Proceedings of the ACM Conference on Knowledge Discovery, 2025.

[4] Palantir Technologies, “AIP: Ontology-Augmented Generation for Defense Intelligence,” 2024. Production deployment across U.S. DoD and allied networks.

[5] Palantir Technologies, “Neuro-Symbolic Guardrails in AIP Gotham,” Technical Documentation, 2025. Rules-based constraint engines operating alongside LLM reasoning.

[6] Zhang et al., “AGNNCert: Certified Robustness Against Adversarial Graph Attacks,” NeurIPS, 2026. First provably robust defense framework for production GNNs.

[7] Vovk, V., Gammerman, A., & Shafer, G., Algorithmic Learning in a Random World, Springer, 2005. Foundation of conformal prediction theory.

[8] Shafer, G., A Mathematical Theory of Evidence, Princeton University Press, 1976. Dempster-Shafer theory of evidence for sensor fusion.

Published via Towards AI