EAAPLEnterprise AI Architecture Pattern Library
EAAPLLibraryKnowledge Management
Proven
⇄ Compare

EAAPL-KNW005: Knowledge Graph for Explainability

EAAPL-KNW005: Knowledge Graph for Explainability

Pattern ID: EAAPL-KNW005 Status: Emerging Complexity: High Tags: knowledge-graph explainability eu-ai-act high-complexity Version: 1.0 Last Updated: 2026-06-12


1. Executive Summary

The Knowledge Graph for Explainability pattern uses a structured knowledge graph to make AI reasoning transparent, traceable, and comprehensible to both end users and regulators. When an AI system produces a recommendation or decision, this pattern generates a human-readable explanation by tracing the reasoning path through the knowledge graph: identifying which facts supported the conclusion, how those facts relate to each other, and what the chain of inference was from evidence to outcome.

This pattern is specifically designed to meet the explainability requirements of the EU AI Act (Article 13 transparency, Article 14 human oversight), GDPR Article 22 (automated decision explanation), and financial services model risk management regulations (SR 11-7, APRA). Unlike post-hoc explanation methods (SHAP, LIME) that approximate explanations for opaque models, knowledge graph reasoning is inherently traceable — explanations are derived from the actual reasoning path, not an approximation of it.

For CIOs and CTOs in regulated industries, this pattern closes the "explainability gap" that blocks high-risk AI use cases from production deployment. Medical triage, credit decisioning, insurance underwriting, and compliance monitoring are all domains where AI could deliver substantial value but regulatory requirements for explanation have blocked deployment. Knowledge graph reasoning makes explanation structural, not aspirational.

Implementation requires the Enterprise Knowledge Graph (EAAPL-KNW001) as a prerequisite, adding an explanation generation and presentation layer on top.


2. Problem Statement

2.1 Business Problem

High-value AI use cases in regulated industries — credit decisioning, medical diagnosis assistance, insurance underwriting, legal compliance monitoring — remain in pilot or PoC status not because the AI lacks accuracy but because organisations cannot explain AI conclusions to affected individuals, regulators, and oversight bodies. The inability to explain means the inability to defend, and the inability to defend means the inability to deploy.

2.2 Technical Problem

Large language models are fundamentally opaque: the internal reasoning process that produces a conclusion is not directly inspectable or extractable. Post-hoc explanation methods (SHAP, LIME, attention visualisation) approximate what inputs influenced the output but do not reconstruct the actual reasoning chain. For high-stakes decisions, an approximation of the reasoning is legally and practically insufficient — the explanation must accurately represent why the system reached the conclusion, not a statistical approximation of the contributing factors.

2.3 Symptoms

  • High-risk AI applications stuck in pilot indefinitely because legal/compliance cannot accept opaque AI decisions
  • AI decisions challenged by customers or regulators but the organisation cannot provide a satisfactory explanation
  • Compliance team manually reviewing and re-justifying every AI recommendation before it is acted upon — eliminating the efficiency gain
  • AI governance programme cannot document AI decision logic at the level required by audit

2.4 Cost of Inaction

  • EU AI Act Article 13 non-compliance for high-risk AI systems carries fines of up to €30M or 6% of global annual turnover
  • GDPR Article 22 violations for automated decision-making without meaningful explanation carry fines of up to €20M or 4% of annual global turnover
  • Continued human-in-the-loop overhead for all high-risk AI decisions, eliminating the efficiency case for AI investment
  • Competitor organisations that solve explainability first can deploy high-risk AI at scale and gain a structural advantage

3. Context

3.1 When to Apply

  • AI systems making or recommending decisions that materially affect individuals (credit, insurance, medical, employment)
  • Regulated AI use cases where regulators require or will require documented AI decision reasoning
  • Domains where domain experts need to understand and validate AI reasoning before acting on recommendations
  • Organisations already operating an Enterprise Knowledge Graph (EAAPL-KNW001) — this pattern extends it
  • AI applications where user trust requires transparency, even in the absence of regulatory mandate

3.2 When NOT to Apply

  • Low-risk AI use cases (content recommendations, search ranking) where informal explanation is sufficient
  • Organisations without an Enterprise Knowledge Graph — the prerequisite investment is substantial; this pattern alone cannot justify it
  • Real-time decisions with sub-100ms latency requirements — explanation generation adds latency incompatible with hard real-time constraints
  • Creative or generative AI tasks (writing, image generation) where "reasoning" is not a well-defined concept

3.3 Prerequisites

  • Enterprise Knowledge Graph (EAAPL-KNW001) operational in production with sufficient domain coverage
  • AI application that produces decisions or recommendations based on knowledge graph traversal (not a pure neural network)
  • Regulatory analysis confirming which explanation obligations apply (EU AI Act risk classification, GDPR Art. 22 automated decision scope)
  • UX design for explanation presentation adapted to target audience (consumer, professional, regulator)

3.4 Industry Applicability

Industry Applicability Primary Regulatory Driver Example Use Case
Financial Services Critical EU AI Act Art. 13; GDPR Art. 22; SR 11-7; APRA Credit decisioning, fraud detection, investment recommendation
Healthcare Critical EU AI Act Art. 13 (high risk); clinical governance Diagnostic assistance, treatment protocol recommendation
Insurance High EU AI Act Art. 13; GDPR Art. 22 Underwriting, claims decisioning
Legal High Professional responsibility; court admissibility Case outcome prediction, compliance monitoring
Government High Algorithmic accountability legislation Benefit eligibility, planning decisions
HR / Recruitment High EU AI Act (high risk employment AI) Candidate screening, performance assessment

4. Architecture Overview

The Knowledge Graph for Explainability architecture adds four layers to the Enterprise Knowledge Graph: Reasoning Path Tracing, Evidence Chain Assembly, Natural Language Explanation Generation, and Explanation Presentation.

4.1 AI Application with Graph-Native Reasoning

This pattern requires that the AI application makes decisions based at least partially on explicit knowledge graph traversal, not solely on LLM token prediction. The decision engine queries the knowledge graph using a defined reasoning strategy: rule-based traversal (if entity A has relationship R1 to entity B, and entity B has property P above threshold T, then conclusion C applies) combined with evidence-weighted inference (multiple supporting facts increase conclusion confidence; contradictory facts decrease it).

The decision engine does not act as a black box — it records every graph query it executes, every node and edge it traverses, and the inference steps from evidence to conclusion. This execution trace is the raw material for explanation generation.

4.2 Reasoning Path Tracing

The reasoning path tracer captures the execution trace from the decision engine in a structured format. For each conclusion the AI system produces, the trace records:

  • The initial query (what question or decision trigger was received)
  • The reasoning strategy applied (which rule set or inference pattern was invoked)
  • The graph traversal sequence: ordered list of (node_id, edge_type, node_id, confidence) tuples traversed
  • The facts retrieved at each step: (subject, predicate, object, source_document, confidence_score, effective_date)
  • The inference steps: how retrieved facts combine to support or contradict the candidate conclusion
  • The conclusion confidence score: weighted combination of supporting evidence confidence

The trace is immutable and stored alongside the decision record. It cannot be retroactively modified.

4.3 Evidence Chain Assembly

The evidence chain assembler converts the raw reasoning trace into a human-logical structure: an ordered sequence of premises and inference steps that a domain expert could follow.

Premise identification: extract the key facts from the reasoning trace that materially influenced the conclusion. Filter out traversal steps that were explored but did not contribute to the final conclusion. Rank remaining premises by their contribution weight.

Contradiction identification: identify any facts in the knowledge graph that contradict the conclusion. An honest explanation must surface these — omitting contradictory evidence from an explanation given to a regulator or affected individual is a governance failure.

Confidence propagation: each premise carries a confidence score. The evidence chain carries an overall conclusion confidence that reflects the weakest link in the chain — a conclusion is only as confident as its least-certain supporting premise.

Source attribution: each premise is attributed to its source document, with document version, section reference, and effective date. The evidence chain is a fully cited argument, not an uncited assertion.

4.4 Natural Language Explanation Generation

The evidence chain (structured premises + inference steps + source attributions) is converted to plain English by an LLM with a tightly constrained prompt. The prompt:

  • Provides the evidence chain as structured input (not free-form text)
  • Specifies the target audience: consumer (plain English, no jargon), professional (domain terminology, concise), regulator (formal language, explicit clause citations)
  • Constrains the LLM to report only what is in the evidence chain — it must not add inferences, context, or conclusions not present in the chain
  • Requires explicit attribution: every claim in the explanation must be traceable to a specific premise in the chain
  • Includes uncertainty communication: if the conclusion confidence is below a threshold, the explanation must communicate this to the reader

The generated explanation is validated against the evidence chain before delivery: every claim in the natural language text is mapped back to a premise in the structured chain. Claims without a corresponding premise are rejected and the explanation is regenerated. This validation step prevents the LLM from hallucinating explanatory content.

4.5 Explanation Presentation

Explanations are presented through multiple channels adapted to the recipient:

Consumer channel: plain English explanation with reading level calibrated to the target demographic. Structured as: "This decision was made because..." followed by 2–4 key reasons in bullet form, each with a "Based on: [source]" citation. A "Why we're not certain" section is included if confidence is below threshold.

Professional channel: more detailed explanation showing the full reasoning chain with intermediate inference steps. Domain terminology used where appropriate. Evidence confidence scores displayed. Contradictory evidence explicitly flagged.

Regulator/audit channel: full structured evidence chain in machine-readable format (JSON-LD), plus the natural language explanation, plus the complete reasoning trace, plus references to the specific ontology nodes and source documents. This is the audit-ready package.

Interactive exploration: for professional users, an interactive graph visualisation that allows them to navigate the reasoning path through the knowledge graph — clicking on each node shows the underlying document evidence.


5. Architecture Diagram

ARCHITECTURE DIAGRAM
flowchart TD subgraph Decision["Decision Engine"] A[Decision Request] B[Graph Traversal] C[Execution Trace] end subgraph Knowledge["Knowledge Graph"] D[(Entity Nodes)] E[(Relationship Edges)] end subgraph Explanation["Explanation Pipeline"] F[Evidence Chain Assembler] G[NL Explanation Generator] H{Claim Validator} end A --> B B --> D B --> E D --> C E --> C C --> F F --> G G --> H H -->|valid| I[Explanation Output] H -->|hallucinated claim| G style A fill:#dbeafe,stroke:#3b82f6 style B fill:#f0fdf4,stroke:#22c55e style C fill:#fef9c3,stroke:#eab308 style D fill:#fef9c3,stroke:#eab308 style E fill:#fef9c3,stroke:#eab308 style F fill:#f0fdf4,stroke:#22c55e style G fill:#f0fdf4,stroke:#22c55e style H fill:#f3e8ff,stroke:#a855f7 style I fill:#d1fae5,stroke:#10b981

6. Components

Component Type Responsibility Technology Options Criticality
Graph-Native Decision Engine AI/Rules Execute reasoning over knowledge graph; emit structured execution trace Custom rules engine, Neo4j procedures, SPARQL inference, Prolog-style reasoner Critical
Reasoning Path Tracer Processing Capture ordered graph traversal; record each node/edge/inference step with confidence Custom instrumentation layer in decision engine Critical
Evidence Chain Assembler Processing Convert raw trace to structured premise-inference-conclusion chain; identify contradictions Custom Python service; LlamaIndex trace utilities High
Natural Language Explanation Generator AI Convert structured evidence chain to audience-appropriate plain English Claude, GPT-4o, Llama 3 with strict structured prompt High
Explanation Validator Processing Verify every claim in NL explanation maps to evidence chain premise Custom claim extraction + mapping service High
Contradiction Detector Processing Surface knowledge graph facts that contradict the conclusion Graph query for opposing edges; custom contradiction logic High
Explanation Store Storage Immutable store of explanations linked to decision records PostgreSQL with WORM policy; S3 Object Lock Critical
Consumer Explanation Renderer UI Render plain English explanation for end users React component; mobile-responsive Medium
Regulatory Audit Pack Generator Processing Assemble complete JSON-LD evidence chain + NL explanation + trace for regulators Custom export service High
Interactive Graph Visualiser UI Allow professional users to navigate reasoning path interactively D3.js, Cytoscape.js, Neo4j Bloom integration Low

7. Data Flow

7.1 Primary Data Flow — Decision to Explanation

Step Actor Action Output
1 User / System Submits decision request with context entities Decision request
2 Decision Engine Selects reasoning strategy; executes graph traversal queries Graph traversal sequence
3 Knowledge Graph Returns facts (nodes, edges, confidence, source) for each traversal step Structured fact set
4 Decision Engine Applies inference logic; weighs supporting and contradictory evidence Conclusion with confidence; execution trace
5 Reasoning Path Tracer Captures full execution trace in structured format Immutable trace record
6 Evidence Chain Assembler Identifies material premises; surfaces contradictions; computes chain confidence Structured evidence chain
7 NL Explanation Generator Converts evidence chain to audience-appropriate natural language Draft NL explanation
8 Explanation Validator Maps every NL claim to evidence chain premise; rejects uncorroborated claims Validated NL explanation
9 Explanation Store Stores explanation linked to decision record with immutable audit flag Persisted explanation
10 Presentation Layer Renders explanation in appropriate channel format for recipient Consumer/professional/regulatory view

7.2 Error Flow

Error Detection Recovery Escalation
Explanation validation failure (hallucinated claim) Validator rejects claim; max regeneration attempts reached Return structured evidence chain only (no NL); flag decision for human explanation Alert AI platform team; investigate prompt/model combination
No explanation path found (AI conclusion not traceable) Reasoning trace empty or conclusion not linked to graph evidence Block decision; require human decision-maker Governance escalation; AI decision blocked until traceability restored
Missing source attribution (fact in graph has no source document) Evidence chain assembler finds unsourced fact Flag fact as "source unknown"; include uncertainty in explanation Data steward must add source; unsourced facts are low-confidence
Contradiction surfaced (significant opposing evidence) Contradiction detector finds high-confidence contradicting facts Include contradictions in explanation with confidence weights; recommendation confidence reduced If contradictions are high-confidence, human review required before action

8. Security Considerations

8.1 Authentication and Authorisation

Explanation endpoints are access-controlled: the same authorisation policies that govern access to the underlying decision apply to access to the explanation. A customer can access the explanation for their own decision; they cannot access explanations for other customers' decisions. Internal professional users are ABAC-controlled by role and domain.

8.2 Secrets Management

Knowledge graph credentials, LLM API keys, and explanation store credentials are stored in a secrets vault. The explanation generation LLM receives only the structured evidence chain — no raw PII or sensitive system data — minimising the sensitivity of the LLM API call.

8.3 Data Classification

Explanations may contain personal data (the explanation for a credit decision references the individual's financial data). Explanation records are classified at the same level as the underlying decision data and subject to the same access controls, retention policies, and right-to-erasure procedures.

8.4 Encryption

Explanation store: encrypted at rest (AES-256, CMK). In transit: TLS 1.3. The reasoning trace record is particularly sensitive (it documents the organisation's decision logic) — store with restricted access beyond the decision record and explanation.

8.5 Auditability

Every explanation is linked to the specific decision record, the specific knowledge graph version (snapshot ID), the reasoning trace, and the LLM model version used for NL generation. This full package constitutes the audit record for any AI decision. Retention matches the decision record retention period (minimum 7 years for financial services decisions).

8.6 OWASP LLM Top 10 Mapping

OWASP LLM Risk Relevance Mitigation
LLM01 Prompt Injection Evidence chain passed to explanation LLM could contain injected instructions from adversarial graph content Structured input format (JSON); LLM instructed to treat all chain content as data, not instructions
LLM02 Insecure Output Handling LLM-generated explanation could contain executable content Explanation treated as plain text; rendered in sandboxed HTML; no script execution
LLM03 Training Data Poisoning Training data bias in explanation LLM affects explanation tone or omissions Explanation validator ensures structural completeness; human review sample of explanations
LLM04 Model Denial of Service Adversarially long evidence chains cause LLM to consume excessive tokens/time Evidence chain length limit; summarise long chains before NL generation
LLM05 Supply Chain Vulnerabilities Explanation LLM provider dependency Vendor risk assessment; fallback to structured-only explanation if LLM unavailable
LLM06 Sensitive Information Disclosure Explanation reveals decision logic that is commercially sensitive Professional and regulatory explanations are access-controlled; consumer explanation uses general terms
LLM07 Insecure Plugin Design Interactive visualisation as a plugin to professional users Read-only graph access for visualisation; no mutation capability
LLM08 Excessive Agency Explanation system could be misused to reverse-engineer proprietary decisioning rules Rate limiting on explanation API; access to full reasoning trace restricted to authorised roles
LLM09 Overreliance Users rely on explanation as complete account of AI reasoning Explanation must include confidence levels and limitations; never present as definitively complete
LLM10 Model Theft Reasoning traces document proprietary decision logic Access to traces restricted to compliance and audit roles; not exposed via customer-facing API

9. Governance Considerations

9.1 Responsible AI

Explainability is a fundamental responsible AI requirement. However, explanation quality can itself introduce bias: if the evidence chain is presented selectively (omitting contradictions, emphasising supporting evidence), the explanation can be misleading even when technically accurate. The contradiction surfacing requirement (§4.3) is a mandatory honest-explanation control. Explanations must represent the AI's actual reasoning, including uncertainty, not a post-hoc rationalisation of a desired outcome.

9.2 Model Risk Management

The explanation generation LLM is a secondary model (it explains the primary decision model's reasoning). It carries its own model risk: it could misrepresent the evidence chain through hallucination. The explanation validator (§4.4) is the primary model risk control for the explanation LLM — it verifies that the NL explanation is a faithful representation of the structured evidence chain. The validator's performance is tracked on a golden explanation set.

9.3 Human Approval Gates

For high-risk decision categories (credit refusal, insurance claim denial, medical triage), the explanation is reviewed by a qualified human professional before delivery to the affected individual. This review does not change the decision (the AI decision stands) but validates that the explanation is accurate, complete, and appropriate in tone. The reviewer can flag explanation quality issues for remediation without overriding the AI decision.

9.4 Policy Ownership

Explanation policy (what level of detail is required for each decision category and recipient type; what language is appropriate; what constitutes an adequate explanation for regulatory purposes) is owned by the Legal and Compliance function in collaboration with the AI Governance team. The AI Platform Engineering team owns the technical implementation. The business unit owns the decision process that generates the explanations.

9.5 Traceability

The complete audit package for any AI decision includes: the decision record, the reasoning trace, the evidence chain, the NL explanation (all versions generated), the validation results, and the knowledge graph snapshot ID at time of decision. This package is linked by a common decision_id and retrievable in its entirety by authorised investigators.

9.6 Governance Artefacts

Artefact Owner Frequency Location
Explanation policy by decision category Legal / Compliance / AI Governance Annual review; ad-hoc for regulatory changes Policy management system
Explanation LLM model card ML Engineering Per model version ML model registry
Explanation validator performance report AI Platform Engineering Quarterly Monitoring platform
Golden explanation set Legal / Compliance Semi-annual review Test suite repository
Human review log for high-risk decisions Business Unit + Compliance Continuous Decision management system
Regulatory correspondence log (explanation disputes) Legal Per event Legal case management system

10. Operational Considerations

10.1 Monitoring and SLOs

Metric SLO Target Alerting Threshold Tool
Explanation generation latency (consumer) ≤5 seconds >10 seconds Application performance monitoring
Explanation validation pass rate ≥99% <97% over 1-hour window Custom metric
Explanations with contradictions surfaced 100% (when contradictions exist) Any month where known contradictions were not surfaced Monthly audit sample
Reasoning trace completeness 100% of decisions have complete trace Any decision with incomplete trace Decision pipeline monitoring
Human review SLA (high-risk decisions) 100% reviewed within 1 business day Any explanation >1 business day without review Workflow SLA alert
Explanation store availability 99.9% <99.5% over 1-hour window Infrastructure monitoring

10.2 Logging

All explanation generation events are logged: decision_id, reasoning trace ID, evidence chain hash, NL explanation version, validation result, delivery channel, recipient role, timestamp. The explanation validator logs each claim-to-premise mapping result. All logs are immutable and retained per decision record retention schedule.

10.3 Incident Management

P1: AI decisions being made without traceable explanations (reasoning trace generation failure) — immediate halt of affected AI decision pipeline; human fallback. P2: Explanation validator failure rate above threshold — investigation of LLM model quality; temporary switch to structured-only explanations. P3: Consumer explanation language quality complaints — tone/reading level adjustment within policy guidelines.

10.4 Disaster Recovery

Scenario RTO RPO Recovery Procedure
Explanation LLM API unavailable 15 min (fail to structured explanation) N/A (stateless generation) Auto-fallback to structured evidence chain only; no NL explanation until LLM restored
Explanation store unavailable 30 min 5 min (replica promotion) Promote read replica; validate recent explanation retrieval
Decision engine trace instrumentation failure Immediate halt of AI decisions N/A Halt AI decisions; engage human decision-making; fix instrumentation before restarting
Knowledge graph unavailable (explanation for historical decision) 4 hours Last graph snapshot Restore graph from snapshot; explanations for historical decisions use the snapshot at time of original decision

10.5 Capacity Planning

Explanation generation adds approximately 1–5 seconds of latency per decision depending on evidence chain complexity and LLM response time. At high decision volumes (>100/second), the explanation generation pipeline must scale horizontally. Explanation store grows linearly with decision volume: approximately 5–50 KB per decision explanation record (including trace and evidence chain). At 1 million decisions per month, expect 5–50 GB of explanation storage per month.


11. Cost Considerations

11.1 Cost Drivers

Cost Driver Description Typical Range
Explanation LLM API calls Per-decision NL generation; depends on evidence chain length $0.005–$0.05 per decision explanation
Explanation store Immutable storage for explanation records at regulatory retention $0.03–$0.10 per GB per month
Reasoning trace instrumentation Minimal compute overhead in decision engine <5% overhead on decision engine
Human review labour Professional review of high-risk decision explanations $10–$50 per reviewed decision (varies by domain)
Interactive visualisation infrastructure Optional; for professional users only $500–$2,000/month if deployed

11.2 Scaling Risks

  • At very high decision volumes (millions per day), LLM explanation generation cost becomes substantial — implement tiered explanation: automated NL generation for medium-risk decisions; structured-only for low-risk; full NL + human review only for high-risk
  • Human review cost is the primary scaling constraint for high-risk decision categories — automation of explanation quality checking reduces but cannot eliminate this

11.3 Optimisations

  • Cache explanations for structurally identical decision scenarios (same evidence chain, different individuals) — generate the explanation template once and fill individual-specific values
  • Use shorter, cheaper models for initial explanation generation; route to more capable models only when validator rejects the first attempt
  • Batch non-urgent explanation generation (e.g., explanations for decisions not yet requested by the individual) during off-peak hours at lower compute cost

11.4 Indicative Cost Ranges

Deployment Scale Monthly Explanation Cost Notes
Low volume (1K decisions/month) $500–$2,000 Includes human review for high-risk; suitable for pilot
Medium volume (100K decisions/month) $10,000–$50,000 Tiered explanation model recommended at this scale
High volume (10M+ decisions/month) $100,000–$500,000 Requires caching, tiering, and human review sampling strategy

12. Trade-Off Analysis

12.1 Explanation Approach Comparison

Approach Transparency Regulatory Acceptance Latency Prerequisite Best For
Knowledge graph reasoning path (this pattern) Highest — actual reasoning is inspectable Highest — faithful representation Medium (1–5s) Enterprise Knowledge Graph High-risk regulated decisions
SHAP / LIME post-hoc explanation Medium — statistical approximation of feature importance Medium — regulators increasingly question post-hoc methods Low (<1s) Any ML model Lower-risk decisions; existing ML models
Rule-based explanation (decision tree) High — rules are directly readable High — deterministic and auditable Very low Rules-based decision system Simple, well-structured decision domains
LLM self-explanation (chain of thought) Low — LLM may hallucinate reasoning Low — faithfulness not guaranteed Low Any LLM Informal explanation; not suitable for high-risk

12.2 Architectural Tensions

Tension Option A Option B Recommended Resolution
Explanation completeness vs. comprehensibility Full reasoning chain with all steps and contradictions Summary explanation with most important reasons only Audience-calibrated: consumer gets summary; regulator gets full chain; both are generated from the same evidence chain
Honest uncertainty vs. user confidence Prominently display confidence levels and limitations Present conclusion without uncertainty to avoid confusing users Honesty is mandatory for regulatory compliance; uncertainty must be communicated; UX design must make uncertainty comprehensible, not hidden
Real-time vs. batch explanation Generate explanation synchronously with decision (real-time) Generate explanation asynchronously (batch, post-decision) Real-time for consumer-facing decisions where individual immediately receives outcome; batch acceptable for internal professional review

13. Failure Modes

Failure Likelihood Impact Detection Recovery
Explanation hallucination (NL claims not in evidence chain) Medium (without validator) Critical — misleading explanation; regulatory and legal risk Explanation validator (mandatory control) Validator catches and blocks; regenerate; log for model quality review
Reasoning trace capture failure Low Critical — no explanation possible; decision blocked Missing trace in decision record Halt AI decision; engage human decision-maker; fix instrumentation
Knowledge graph coverage gap causes incomplete explanation Medium High — explanation omits relevant context Evidence chain confidence below threshold Flag decision for human review; communicate incompleteness in explanation
Explanation inconsistency across decisions (same scenario, different explanation) Medium High — regulatory challenge; perception of arbitrary decisions Explanation consistency audit on structurally equivalent decisions Root cause analysis; evidence chain and reasoning strategy review
Contradictory evidence not surfaced Low (with contradiction detector) Critical — dishonest explanation Quarterly explanation audit with domain experts Contradiction detector tuning; retrospective review of affected decisions

13.1 Cascading Failure Scenarios

Scenario 1: Knowledge Graph Staleness Cascade. A regulatory change alters the eligibility rules for a benefit. The knowledge graph is not updated. AI decisions continue using old rules. Explanations faithfully represent the old reasoning — they are internally consistent with the graph but externally incorrect relative to the new regulation. Users receive explanations citing outdated policy. Regulatory body conducts audit. Root cause: freshness management failure. Mitigation: regulatory corpus freshness SLA (see EAAPL-KNW003); regulatory change management process triggers knowledge graph update.

Scenario 2: Explanation Discrimination Discovery. A statistical audit of AI explanations reveals that the evidence chain systematically cites different factors for demographically different groups making equivalent requests. The knowledge graph contains historically biased relationship data that the AI inherited. The explanations are accurate (they truly reflect the reasoning) but the reasoning itself is biased. The transparency of the knowledge graph explanation system is what reveals the bias — which is a feature, not a bug. Resolution requires: knowledge graph bias audit; reweighting or removal of biased relationship data; decision impact assessment.


14. Regulatory Considerations

Regulation Relevant Clause Requirement How This Pattern Addresses It
EU AI Act Article 13(1) (Transparency) High-risk AI systems must be designed to allow users to interpret the system's output Full evidence chain and reasoning path are the interpretation mechanism
EU AI Act Article 13(3)(d) Performance metrics including accuracy and robustness must be documented Explanation confidence scores and contradictions document robustness directly
EU AI Act Article 14(1) (Human Oversight) Effective human oversight measures for high-risk AI Human review gate for high-risk decisions; explanation enables meaningful oversight
EU GDPR Article 22(3) (Automated Decisions) Right to obtain human intervention, express view, and contest the decision Explanation is the foundation for contestation; evidence chain is the record for human review
EU GDPR Recital 71 (Meaningful Information) Meaningful information about the logic involved in automated decision Evidence chain in plain English satisfies "meaningful information" requirement
APRA CPS 234 §15 (Information Asset Management) AI-generated decisions are information assets requiring documented logic Explanation store + reasoning trace constitutes the documented decision logic
SR 11-7 (Model Risk Management) Section on Model Documentation Model documentation must include model purpose, limitations, assumptions Evidence chain captures assumptions (which facts were used); limitations communicated via confidence scores
ISO/IEC 42001 §8.4 (Transparency) AI system transparency measures must be implemented This pattern is the transparency implementation for graph-native AI decisions
NIST AI RMF GOVERN 6.1 (Transparency) Policies and practices for AI transparency are documented Explanation policy by decision category + implementation = this pattern satisfies GOVERN 6.1

15. Reference Implementations

15.1 AWS

Component AWS Service
Knowledge graph Amazon Neptune
Decision engine + trace instrumentation Custom service on ECS/EKS
Evidence chain assembler AWS Lambda (Python)
Explanation LLM Amazon Bedrock (Claude Sonnet)
Explanation store (immutable) S3 with Object Lock (WORM compliance)
Consumer explanation rendering CloudFront + React SPA
Regulatory audit pack Custom Lambda export; S3 secure download

15.2 Azure

Component Azure Service
Knowledge graph Azure Cosmos DB (Gremlin)
Decision engine Custom service on AKS
Explanation LLM Azure OpenAI (GPT-4o)
Explanation store (immutable) Azure Blob Storage with immutability policies
Monitoring Azure Monitor + Application Insights

15.3 GCP

Component GCP Service
Knowledge graph Neo4j on GKE
Explanation LLM Vertex AI Gemini
Explanation store Cloud Storage with retention locks
Monitoring Cloud Monitoring + Cloud Logging

15.4 On-Premises

Component Technology
Knowledge graph Neo4j Enterprise
Decision engine + tracer Custom Python service
Explanation LLM Self-hosted Llama 3.x on GPU cluster
Explanation store PostgreSQL with write-once audit table + cold archive

Pattern ID Pattern Name Relationship Type Notes
EAAPL-KNW001 Enterprise Knowledge Graph Prerequisite This pattern extends the EKG with explanation capabilities; cannot be deployed without EKG
EAAPL-KNW003 AI Knowledge Corpus Management Supporting Knowledge freshness directly affects explanation accuracy; stale corpus = misleading explanation
EAAPL-GOV002 AI Model Risk Management Complementary Model risk management documents model decisions; this pattern makes individual AI decisions explainable
EAAPL-GOV004 AI Audit Trail Management Complementary Audit trail pattern manages the long-term storage and retrieval of explanation records
EAAPL-SEC004 AI Decision Access Control Supporting Explanation records require the same access controls as the underlying decision data
EAAPL-RAG001 Retrieval Augmented Generation Alternative Approach RAG with source citation provides a lightweight form of explainability for lower-risk use cases

17. Maturity Assessment

Overall Maturity Label: Emerging

Dimension Score (1–5) Rationale
Technology readiness 3 Knowledge graph reasoning is proven; explanation generation via LLM with validation is emerging; interactive graph visualisation is immature
Organisational capability 2 Requires rare combination of knowledge graph engineering, AI explanation methodology, and regulatory knowledge
Standards availability 2 EU AI Act provides the regulatory framework but does not specify technical explanation standards; GQL emerging but not yet standardised
Vendor ecosystem 2 Limited vendor tooling specifically for AI explanation via knowledge graph; mostly custom implementations
Case evidence 2 Early implementations in financial services and healthcare; limited published case studies; most are proprietary
Regulatory alignment 5 This pattern is specifically designed to satisfy EU AI Act Art. 13, GDPR Art. 22, and SR 11-7 — strongest regulatory alignment of any approach
Overall 2.7 / 5 Emerging: strong regulatory need and technical feasibility, but limited vendor support and case evidence; organisations with strong data engineering teams and regulatory pressure should prioritise

18. Revision History

Version Date Author Changes
1.0 2026-06-12 EAAPL Editorial Board Initial publication — covers reasoning path tracing, evidence chain assembly, NL explanation generation with validation, contradiction surfacing, and audience-calibrated presentation; EU AI Act and GDPR Art. 22 compliance mapping
← Back to LibraryMore Knowledge Management