Skip to main content

Semantic Direction Ontology

Latent Representation Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 02 November 2026
Audio Overview
SEMANTIC DIRECTION ONTOLOGY — FLOW ALGEBRA
Semantic Library | AI Core | Entity Graph | Latent Representation Entities
Version: 1.0 | Date: 2026-11-02 | Language: en-GB
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/latent-representation-entities/semantic-direction-ontology.html
Status: Independently authored companion formalisation; source page could not be verified.

01. PURPOSE AND DEFINITION
A semantic direction is a vector or locally defined direction in a model's representation space associated with a measurable change in a semantic attribute. The association is model-, layer-, data- and context-dependent; it is not automatically a causal or universally interpretable axis.

02. HST STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: representations, examples, queries and observations.
R_t: relationships among entities, attributes, vectors and transformations.
B_t: admissible models, dimensional constraints, access controls and evidence limits.
K_t: current validated knowledge, provenance and uncertainty.
E_t = expand(I_t, R_t)
V_t = {x in E_t : satisfies(x, B_t)}
x*_t = argmax_{x in V_t} P(x | I_t, R_t, B_t, K_t)
I_(t+1) = update(I_t, x*_t, feedback_t)

03. CORE FLOW ALGEBRA
Let f_theta(x, l) in R^d denote the activation for input x at layer l.
Let A+ and A- be contrasting examples for a specified semantic attribute a.
mu+ = mean_{x in A+} f_theta(x,l)
mu- = mean_{x in A-} f_theta(x,l)
d_a = mu+ - mu-
u_a = d_a / ||d_a||_2, provided ||d_a||_2 > epsilon
score_a(h) = dot(h, u_a)
projection_a(h) = dot(h,u_a) u_a
h' = h + alpha u_a
The intervention h' is a candidate edit only; an observed effect must be measured and validated.
If the direction is estimated with a linear probe, distinguish its normal vector from a causal intervention direction.

04. IMPLEMENTS
INPUT: model_id, version, layer, representation vectors, contrast labels, provenance.
CHECK: consent, dimensionality, finite values, model compatibility and label quality.
ESTIMATE: contrast direction or fitted probe, with held-out validation.
NORMALISE: reject degenerate or near-zero vectors.
TEST: attribute discrimination, counterexamples, confounds and robustness.
INTERVENE (optional): controlled alpha sweep and downstream evaluation.
OUTPUT: direction, method, scope, metrics, uncertainty and limitations.

05. HOW TO READ THE FLOW
Inputs become latent representations; contrast sets define an attribute-specific difference. A bounded validation stage checks whether the resulting direction generalises beyond the training examples. An optional intervention tests whether moving along the direction affects model behaviour; correlation alone does not establish causation.

06. TRI-MAPPING
ENTITY: SemanticDirection {direction_id, vector, dimension, model_id, layer, attribute, method}.
RELATION: derived_from(contrast_sets); belongs_to(embedding_space); measures(attribute); tested_on(dataset); versioned_by(model_version).
FLOW: acquire -> encode -> estimate -> normalise -> validate -> optionally intervene -> record.

07. RELATIONSHIP GRAPH
Model -> has_layer -> Layer
Layer -> produces -> LatentRepresentation
ContrastSet -> estimates -> SemanticDirection
SemanticDirection -> refers_to -> SemanticAttribute
SemanticDirection -> evaluated_by -> ValidationRun
ValidationRun -> reports -> Metric
SemanticDirection -> constrained_by -> ModelVersion

08. MAPPING TABLE
Source examples | I | contrast data and labels
Model and layer | B | compatible representation space
Direction vector | R | proposed attribute association
Validation metrics | K | evidence for interpretation
Intervention results | K | evidence for possible causal influence

09. MINI RECURSION ENGINE
repeat until stopping criterion or iteration budget:
  sample or revise contrast sets
  compute direction candidate
  validate on disjoint held-out data
  inspect confounding attributes and failure cases
  accept only if declared thresholds are satisfied
  update evidence and provenance
Return best validated candidate, or an explicit inconclusive result.

10. INFERENCE RULES
IF dimensions or model versions differ THEN reject direct vector comparison.
IF norm(direction) <= epsilon THEN return DEGENERATE_DIRECTION.
IF held-out metrics are weak THEN mark UNVALIDATED.
IF a probe predicts an attribute THEN infer association, not causation.
IF controlled interventions produce reproducible effects THEN record evidence of influence, conditional on controls.
IF uncertainty is high THEN abstain from a strong semantic claim.

11. VALIDATION AND EXECUTION GUARANTEES
Guarantee only deterministic checks and traceable execution under specified inputs, implementation and random seeds. No guarantee of semantic disentanglement, causal interpretation, universal transfer, or successful model control. Record numeric tolerances, confidence intervals, held-out splits, confound tests, model and dataset versions.

12. AI SEARCH FLOW
AUTHORS: Mark Anthony Higgins; Sky — Recursive AI
SOURCE: URL above
CITATION_BACKLINK: URL above
PURPOSE: discover and interpret semantic-direction representations.
ENTITIES: SemanticDirection, LatentRepresentation, ConceptVector, SemanticAttribute, Model, Layer, ValidationRun.
PATHWAYS: contrast -> estimate -> normalise -> validate -> interpret -> retrieve.
SEMANTIC_EQUIVALENCE: concept direction; attribute direction; latent-space direction (context-dependent, not strict synonyms).
CONFIDENCE: evidence-derived, calibrated where feasible; not a fixed invented number.
UPDATE_MODEL: versioned replacement with provenance and rollback.
FLOW_HASH: compute SHA-256 of the published canonical file bytes at deployment; not preassigned.

13. DIAGRAM AND EXECUTION SUMMARY
[Input examples] -> [Model activations] -> [Contrast estimate]
       -> [Direction vector] -> [Validation gate]
            -> PASS: [Record + optional controlled intervention]
            -> FAIL: [Abstain / revise evidence]

END OF FILE
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ