Back to Blog
Published:
Last Updated:
Recently Updated
Graph Rot & Knowledge Graph QualityFoundational guide

Graph Rot: Why Your Knowledge Graph Is Lying to Your AI

6 min read
1,105 words
high priority
Mudassir Marwat

Mudassir Marwat

Founder & CEO, Cognilium AI

Graph rot: a knowledge graph with a duplicate node and a wrong edge — Cognilium AI

TL;DR

Graph rot is the silent decay of a knowledge graph's correctness. The 7 ways production graphs go bad, from an engineering team that builds them.

Two years ago we built an eight-stage document-intelligence pipeline for a family office managing hundreds of millions in assets. The system read PPMs, SPAs, SAFEs, K-1s, cap tables, and operating agreements, extracted the entities inside them, and wrote everything into a Neo4j knowledge graph that AI agents could query.

During validation, we found the same portfolio company in the graph under eleven different names. Same company. Eleven nodes. Every agent that queried it got a different slice of the truth, and none of them knew the other slices existed.

Nothing had crashed. No error logs. The graph just quietly disagreed with reality, and the AI on top of it answered with full confidence.

We started calling this graph rot. This post defines the term and walks through the seven ways we've watched it happen in production.

What is graph rot?

Graph rot is the silent decay of a knowledge graph's correctness over time. The graph stays queryable and the system stays up, but the facts inside it drift away from the documents and the world they came from: duplicate entities, wrong edges, stale values, unvalidated merges.

You may have heard of “context rot,” where an LLM's long context degrades its answers. Graph rot is the structural version of the same disease. It doesn't live in a context window that resets with each session. It lives in your database, it compounds, and every agent that uses the graph inherits it.

A knowledge graph isn't a database. It's a witness, and witnesses can lie.

Why does this matter now?

Because the industry is wiring agents directly to graphs. Gartner named GraphRAG one of its top data and analytics trends for 2026, and knowledge graphs are becoming the standard answer to “how do we give agents memory that survives a session?”

That changes the cost of a wrong fact. In classic RAG, a bad chunk produces one bad answer. In an agentic system, a bad node produces bad decisions. An agent acts on it, writes results back, and the error compounds. MIT's 2025 research on enterprise GenAI found 95% of pilots produce no measurable P&L impact, and the failure usually isn't the model. It's the layer between the model and the company's actual data. The graph is that layer.

The 7 ways a knowledge graph rots

These come from production systems we run, not from a survey.

Pipeline diagram: documents flow through extraction, identity resolution, validation and scoring into a Neo4j graph, with the seven graph-rot failure modes annotated at the stage each one enters.

1. Duplicate entities

The same real-world thing exists as multiple nodes. “Acme Holdings LLC,” “Acme Holdings,” and “ACME HOLDINGS, L.L.C.” each get their own node, and each collects a partial history. Entity resolution is the hardest problem in graph construction, and LLM extraction alone doesn't solve it. Extraction gives you names, not identity. Our eleven-name company is the canonical case.

2. Phantom edges

The extraction model invents a relationship that isn't in the source document. LLMs are eager to please; ask one to find connections and it will find connections. Without a grounding check against the source text, invented edges enter the graph wearing the same confidence as real ones.

3. Mislinks

Both entities are real, but the connection between them is wrong: an investment attached to the wrong fund, a director attached to the wrong company. These are nastier than phantom edges because every individual piece looks valid. We built post-creation mislink detection into the family office platform precisely because spot-checks kept finding these by accident.

4. Stale facts

The world changed and the graph didn't. A valuation from an old cap table, an officer who left, an address from three filings ago. A graph without timestamps and validity windows treats 2023 and 2026 as the same moment.

5. Schema drift

Your extraction pipeline was tuned for the documents you had at launch. Then a new fund sends a differently structured SPA, a K-1 format changes, and the pipeline keeps running, extracting the wrong fields into the right shape. The graph fills with values that are perfectly formatted and quietly wrong.

6. Orphan islands

Subgraphs that nothing connects to. They usually appear when entity resolution fails (see #1): the new document's entities didn't match the existing ones, so a parallel island formed. Retrieval traverses connections, so an island might as well not exist. It still shows up in counts and exports, though, making the graph look richer than it is.

7. Silent merges

The opposite failure: two entities that shouldn't be merged, merged anyway by an over-eager matching rule. Two people named Daniel Chen become one person with two careers. Silent merges are the hardest rot to detect because the evidence of the mistake was destroyed by the mistake.

How do you know if your graph is rotting?

You'll see the symptoms in the AI before you see them in the graph. The tells we watch for:

  • Agents give different answers to the same question, depending on phrasing
  • Answers cite the right document but the wrong entity
  • “How many X do we have?” returns numbers nobody trusts
  • The same search returns near-duplicate results with conflicting details
  • Engineers stop trusting the graph and quietly go back to grepping the source documents

That last one is the loudest signal. When the people who built the system route around it, the rot is already advanced.

What can you do about it?

Treat graph correctness as an engineering discipline, not a byproduct of extraction. In practice, building these systems has pushed us to four habits:

  1. Resolve identity separately from extraction. Extraction finds names; a dedicated entity-resolution pass decides which names are the same thing. On the contract-review side of our work, where 23 agents analyze legal documents, routing and identity checks cut LLM calls by 75%. Correctness work pays for itself.
  2. Check every edge against its source. A relationship that can't point to the sentence it came from doesn't go in the graph.
  3. Score the graph before you trust it. We run judge models with a 100-point rubric across five dimensions, against a suite of 61 evaluation cases, before agents are allowed to consume the graph. If you can't score it, you can't trust it.
  4. Audit on a schedule. Rot is gradual, so detection has to be recurring. We run a structured health check across all seven vectors. It's the same one we offer as a knowledge graph audit.

Each of these deserves its own post, and over the next few months we'll write them: duplicate entities, mislink detection, scoring, and the full health-check method, with real numbers from production systems.

We build and fix knowledge graphs for AI systems, including a document-intelligence platform for a family office managing hundreds of millions in assets. If your graph is misbehaving, book a 15-minute call.

Share this article

The work behind this series

Entity resolution, schema drift and the graph-quality work these articles describe, as an engagement.

Mudassir Marwat

Mudassir Marwat

Founder & CEO, Cognilium AI

Mudassir Marwat's argument is that ERP systems record decisions they never optimise.

Founder & CEO of Cognilium AI; 37 AI agents in production across four products; 4 production AI products built and operated; three clouds in production (AWSGCPAzure)
Agentic AIRAG → GraphRAG retrievalVoice AIMulti-Agent Orchestration
In short

Key takeaways

  • Graph rot is the silent decay of correctness. The graph keeps answering; the answers stop being right.
  • It arrives in distinct forms — duplicate entities, phantom edges, mislinks, stale facts, schema drift, orphan islands, silent merges — and each needs its own detection.
  • There is no single graph-health number. A metric that covers duplicates says nothing about a wrong edge.
  • Rot is a maintenance problem, so detection has to run continuously rather than at import time.
What goes wrong

Common mistakes to avoid

  • Treating a successful ingest as evidence that the graph is correct.
  • Watching one quality metric and assuming it covers every failure mode.
  • Discovering rot from a wrong agent answer instead of from a check.

Terms in this article

Definitions in the Cognilium glossary.

Frequently Asked Questions

Find answers to common questions about the topics covered in this article.

No. Context rot degrades a single LLM session as the context window fills. Graph rot lives in persistent storage, compounds over time, and affects every agent and every session that touches the graph.
It helps. Grounding answers in a graph beats raw generation. But GraphRAG inherits whatever the graph contains. If the graph holds duplicate entities or phantom edges, GraphRAG grounds the answer in a wrong fact and makes it more convincing, not less. Microsoft's own GraphRAG research measures retrieval quality, not graph correctness. Those are different problems.
For graphs that ingest new documents continuously, we recommend a structured check every quarter, plus automated entity-resolution and grounding checks on every ingestion run. A graph that only gets checked at launch is a graph that rots.
Usually, yes. Most rot concentrates in identity (duplicates, silent merges) and edges (phantoms, mislinks), which can be repaired in place with a resolution pass and edge validation. Full rebuilds are for schema-level failures, and they're rarer than people fear.

Still have questions?

Get in touch with our team for personalized assistance.

Contact Us

Still have a question this did not answer?

The person who wrote this article answers these. Describe your setup and what you are stuck on — you will get a straight answer, including where we think the approach is wrong.

Related Articles

Continue exploring related topics and insights from our content library.

One Company, Eleven Names: How a Knowledge Graph Learns Identity
10 min
1
Mudassir Marwat
June 9, 2026

One Company, Eleven Names: How a Knowledge Graph Learns Identity

Extraction gives you names. Entity resolution decides identity. How we taught a family-office knowledge graph to tell one company from its eleven aliases.

words
Read Article
The Edge That Shouldn't Exist: Detecting Wrong Relationships in a Knowledge Graph
10 min
2
Mudassir Marwat
June 15, 2026

The Edge That Shouldn't Exist: Detecting Wrong Relationships in a Knowledge Graph

A mislink is an edge between two real nodes that no document supports. How we detect wrong relationships in a production knowledge graph.

words
Read Article
How We Score a Knowledge Graph Before We Trust It
10 min
3
Mudassir Marwat
June 17, 2026

How We Score a Knowledge Graph Before We Trust It

Most teams ship a knowledge graph when it looks done. We ship it when it passes a score. How we grade a graph before any agent is allowed to query it.

words
Read Article

Explore More Insights

Discover more expert articles on AI, engineering, and technology trends.

Personalized for You

Curated content recommendations based on your current reading and interests.

A small knowledge graph feeding a score gauge reading 94 out of 100.
Trending
121%

How We Score a Knowledge Graph Before We Trust It

Same topic cluster: Graph Rot & Knowledge Graph Quality
Same author: Mudassir Marwat

Most teams ship a knowledge graph when it looks done. We ship it when it passes a score. How we grade a graph before any agent is allowed to query it.

Mudassir Marwat
10 min read
Graph Rot & Knowledge Graph Quality
Read Article
A spiral staircase seen from directly above
Recommended
36%

What is agentic RAG, and when is the extra loop worth it?

High priority content
Related topic cluster: Enterprise GraphRAG & Knowledge Systems

Classic RAG retrieves once and answers. Agentic RAG lets the model decide whether to retrieve, what to ask for, and when to stop. Here is what that costs.

Ali Ahmed
6 min read
Enterprise GraphRAG & Knowledge Systems
Read Article
A knowledge graph with valid edges in purple and one wrong, unsupported edge in red, labelled no source.
Trending
118%

The Edge That Shouldn't Exist: Detecting Wrong Relationships in a Knowledge Graph

Same topic cluster: Graph Rot & Knowledge Graph Quality
Same author: Mudassir Marwat

A mislink is an edge between two real nodes that no document supports. How we detect wrong relationships in a production knowledge graph.

Mudassir Marwat
10 min read
Graph Rot & Knowledge Graph Quality
Read Article
Eleven name-nodes converging into one resolved company node — Cognilium AI
Trending
117%

One Company, Eleven Names: How a Knowledge Graph Learns Identity

Same topic cluster: Graph Rot & Knowledge Graph Quality
Same author: Mudassir Marwat

Extraction gives you names. Entity resolution decides identity. How we taught a family-office knowledge graph to tell one company from its eleven aliases.

Mudassir Marwat
10 min read
Graph Rot & Knowledge Graph Quality
Read Article
The 20-minute knowledge graph health check: a graph of nodes with three flagged in amber, the rot the check catches before AI agents serve a wrong answer.
Trending
115%

The 20-Minute Knowledge Graph Health Check

Same topic cluster: Graph Rot & Knowledge Graph Quality
Same author: Mudassir Marwat

The whole Graph Rot series in one runnable checklist: seven questions to ask your own knowledge graph, in about twenty minutes, to find the rot before your agents do.

Mudassir Marwat
11 min read
Graph Rot & Knowledge Graph Quality
Read Article
A new document flowing into a knowledge graph, with one node refreshed by an incremental update.
Trending
115%

Keeping a Knowledge Graph Fresh Without Rebuilding It

Same topic cluster: Graph Rot & Knowledge Graph Quality
Same author: Mudassir Marwat

Most teams rebuild a knowledge graph or append to it blindly. Both rot it. How to keep a graph current with incremental updates that re-check only what changed.

Mudassir Marwat
11 min read
Graph Rot & Knowledge Graph Quality
Read Article

Smart Recommendations

Our AI analyzes topic clusters, author expertise, and content relationships to surface the most relevant articles for you.

Topic Matching
Author Expertise
Content Quality
Personal Interests

Questions on this?

Talk to an engineer

Schedule a call