Skip to main content

Local Explanation Ontology

Explainability Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 03 November 2026
Audio Overview
SEMANTIC LIBRARY — AI CORE / EXPLAINABILITY ENTITIES
LOCAL EXPLANATION ONTOLOGY — FLOW ALGEBRA
Version: 1.0 | Date: 03 November 2026 | Language: en-GB
Authors: Mark Anthony Higgins; Sky — Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/explainability-entities/local-explanation-ontology.html
Status: Original formalisation of the named ontology; not a verbatim transcription of dynamically loaded page specifications.

1. PURPOSE
Define a local explanation as a bounded, instance-specific account of why an AI model produced a particular output for a particular input, with explicit scope, method, evidence, uncertainty and fidelity checks. Local explanations do not automatically establish causation.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = {x, f, y, target, explainer, background, perturbations, evidence}
R_t = {feature_relations, attribution_relations, neighbourhood_relations, provenance_relations}
B_t = {instance_scope, valid_feature_domains, intervention_constraints, budget, privacy_limits}
K_t = {model_metadata, feature_schema, reference_distribution, explanation_methods, audit_history}
y = f(x)
E_t = (x, y, method, scope, contributions, evidence, fidelity, stability, uncertainty, provenance)

3. CORE ENTITIES
LocalExplanation; TargetInstance; Model; Prediction; TargetOutput; Feature; FeatureValue; Attribution; LocalSurrogate; Neighbourhood; Perturbation; Baseline; ExplanationEvidence; ExplanationSource; FidelityMetric; StabilityMetric; UncertaintyEstimate; ExplanationBoundary; ExplanationGraph; ExplanationStep.

4. FORMAL FLOW ALGEBRA
Expansion: E_t^+ = expand(I_t, R_t)
Validation: V_t = {z in E_t^+ | satisfies(z, B_t) and supported(z, K_t)}
Selection: z* = argmax_{z in V_t} P(z | I_t, R_t, B_t, K_t)
State update: I_{t+1} = update(I_t, z*, observed_evidence)
Explanation construction:
L(x, f, m, B) = assemble(target=f(x), method=m, local_scope=B, contributions=A_m(x), evidence=Q_m(x), checks=C_m(x))
Acceptance: accept(L) iff scope_valid(L) AND provenance_present(L) AND fidelity_meets_threshold(L) AND constraints_respected(L)
No eligible explanation: V_t = empty => abstain_or_request_more_evidence.

5. LOCAL ATTRIBUTION AND SURROGATE FLOWS
Attribution method: a = A_m(f, x, b), where b is an explicitly recorded baseline/background when required.
Surrogate method: N_x = sample_neighbourhood(x, B); g* = argmin_g sum_{z in N_x} w_x(z) loss(f(z), g(z)) + regulariser(g).
Surrogate fidelity: F_local = 1 - normalised_error(f, g*, N_x), if the metric is well-defined.
Perturbation validity: z in N_x only if z respects feature dependencies and domain constraints.
Method outputs are method-dependent estimates; they must not be represented as universal feature causes.

6. ENTITY RELATIONSHIPS
TargetInstance --evaluated_by--> Model
Model --produces--> Prediction
LocalExplanation --explains--> Prediction
LocalExplanation --scoped_to--> TargetInstance
LocalExplanation --uses--> ExplanationSource
LocalExplanation --supported_by--> ExplanationEvidence
LocalExplanation --contains--> Attribution
LocalExplanation --bounded_by--> ExplanationBoundary
LocalExplanation --evaluated_with--> FidelityMetric
LocalExplanation --evaluated_with--> StabilityMetric
Attribution --references--> Feature
LocalSurrogate --approximates_locally--> Model
Perturbation --belongs_to--> Neighbourhood
ExplanationStep --forms_part_of--> ExplanationGraph

7. INFERENCE RULES
R1: IF model output and target instance are known THEN create a candidate local explanation request.
R2: IF a method requires a baseline THEN record the baseline and its provenance before attribution.
R3: IF perturbations violate feature dependencies THEN exclude them from local fidelity assessment.
R4: IF local fidelity falls below the declared threshold THEN flag the explanation as unreliable.
R5: IF small valid perturbations produce materially different explanations THEN report instability.
R6: IF evidence is missing THEN label claims unsupported; do not infer confidence from presentation detail.
R7: IF a feature contribution is estimated THEN describe association/attribution, not causal effect, unless a separate causal identification argument exists.
R8: IF privacy or safety constraints prohibit disclosure THEN redact restricted material and record the limitation.
R9: IF the model, input, method or baseline changes THEN invalidate or version dependent explanation artefacts.

8. MINI RECURSION ENGINE
INPUT: target instance x; model f; method m; constraints B; knowledge K.
STEP 1: Validate model identity, input schema and requested target output.
STEP 2: Compute prediction y=f(x); capture model/version identifiers.
STEP 3: Select a method compatible with model access and feature types.
STEP 4: Generate permitted local neighbourhood or attribution inputs.
STEP 5: Produce candidate feature contributions and supporting evidence.
STEP 6: Test local fidelity, stability and sensitivity to baseline choice.
STEP 7: Reject unsupported claims; revise method or scope where possible.
STEP 8: Emit an explanation with provenance, limitations and checks.
RECURSE only if a failed check admits a safe, bounded revision.
STOP when accepted, the iteration budget is exhausted, or evidence is insufficient.

9. TRI-MAPPING
Semantic: instance -> prediction -> explanation -> evidence -> limitation.
Mathematical: (x, f(x)) -> A_m(x) or g* -> fidelity/stability measures.
Execution: validate -> evaluate -> explain -> test -> record -> publish/abstain.

10. MAPPING TABLE
Entity | Input | Transformation | Output
TargetInstance | feature values | schema validation | valid x
Prediction | model and x | inference | y
Neighbourhood | x and boundary | constrained sampling | N_x
Attribution | f, x, baseline | attribution method | contribution vector
LocalSurrogate | f and N_x | weighted fit | g*
Evidence | tests and source records | verification | support records
Explanation | all accepted records | bounded assembly | L

11. EXECUTION GUARANTEE / LIMITS
The flow guarantees a defined sequence of validation and recording steps when implemented as specified; it does not guarantee that a faithful explanation exists. Claims of fidelity require measured evidence. Local scope cannot be generalised globally without additional tests. Counterfactual and causal claims require separate assumptions and validation.

12. AI SEARCH FLOW
FLOW_ID: semantic-library.ai-core.explainability.local-explanation.v1
TITLE: Local Explanation Ontology
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/explainability-entities/local-explanation-ontology.html
CITATION_BACKLINK: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/explainability-entities/local-explanation-ontology.html
PURPOSE: Retrieve and reason over instance-specific model explanations.
STATE_MODEL: S=(I,R,B,K)
ENTITIES: LocalExplanation, TargetInstance, Prediction, Attribution, Neighbourhood, LocalSurrogate, Evidence, Boundary, Fidelity, Stability.
PATHWAYS: input -> prediction -> local method -> evidence -> checks -> explanation.
MINI_RECURSION_ENGINE: validate; compute; attribute; test; revise; accept_or_abstain.
INFERENCE_RULES: R1-R9 above.
CONFIDENCE: Report measured fidelity and stability separately; no invented numerical confidence.
SEMANTIC_EQUIVALENCE: local explanation; instance-level explanation; prediction-specific explanation (context-dependent).
FLOW_HASH: Compute SHA-256 over the canonical published file bytes during deployment; not pre-asserted.
UPDATE_MODEL: Version on model, data, method, baseline, evidence or ontology change.

13. HOW TO READ
Treat each explanation as a claim about a single prediction in a declared neighbourhood. Follow its source and evidence links; inspect the baseline, method, validity constraints, measured fidelity and uncertainty before reuse.

14. CITATION AND LICENCE NOTE
Cite the source ontology URL above when reusing this formalisation. Confirm the current published Open Research Licence terms on the source site before redistribution.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ