Skip to main content

Recommendation Model Ontology

AI Model Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 28 October 2026
Audio Overview
FLOW ALGEBRA — RECOMMENDATION MODEL ONTOLOGY
Semantic Library | AI Core > Entity Graph > AI Entities > AI Model Entities
Version: 1.0 | Date: 2026-10-28 | Language: en-GB
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-model-entities/recommendation-model-ontology.html
Status: Original companion formalisation; source page's full specification not exposed in retrieved HTML.

1. PURPOSE
Represent recommendation models as typed systems that map user context, candidate items, interaction evidence and constraints to ranked suggestions, with explicit uncertainty, provenance and feedback updates.

2. ENTITY GRAPH
Entities: User U; Item J; Context C; Interaction E; Feature F; Model M; CandidateSet A; Score Q; Ranking L; Policy P; Feedback G.
Relations:
  U --has_context--> C
  U --interacts_with--> J [via E]
  J --has_feature--> F
  M --scores--> (U,J,C)
  P --filters--> A
  L --orders--> A
  G --updates--> M
Every entity has an identifier, type, timestamp where relevant, provenance and validity scope.

3. FORMAL STATE
S_t = (I_t, R_t, B_t, K_t)
I_t = {user signals, item features, contextual observations, feedback}
R_t = {eligibility, relevance, ranking, fairness, privacy, freshness rules}
B_t = {candidate universe, resource limits, legal and safety boundaries}
K_t = {model parameters, embeddings, calibrated confidence, domain knowledge}

4. CORE FLOW ALGEBRA
E_t = expand(I_t, R_t)
V_t = {x in E_t : valid(x, B_t, K_t)}
A_t = retrieve_candidates(U_t, C_t, K_t) intersect V_t
score_t(j) = f_theta(U_t, j, C_t, I_t) for j in A_t
L_t = stable_sort(A_t, by=score_t descending, tie_break=item_id)
y_t = select_top_k(L_t, k, P_t)
I_(t+1) = update(I_t, observed_feedback_t)
K_(t+1) = authorised_learn(K_t, feedback_t, R_t, B_t)

5. RECOMMENDATION OBJECTIVES
Pointwise: minimise sum loss(y_uj, f_theta(u,j,c)).
Pairwise: minimise sum log(1 + exp(-(s(u,j+) - s(u,j-)))).
Listwise: minimise list ranking loss using observed relevance and exposure correction.
Constrained utility: maximise expected relevance subject to privacy, safety, coverage, latency and diversity constraints.
An observed click is an interaction signal, not proof of user preference or benefit.

6. IMPLEMENTS
Input: user/context, candidate catalogue, interaction history, policy constraints.
Validate: schema, consent, provenance, feature freshness and allowable use.
Retrieve: eligible candidate items using content, collaborative or hybrid signals.
Score: estimate relevance with calibrated uncertainty where supported.
Re-rank: apply diversity, novelty, fairness and business constraints transparently.
Output: ordered item IDs, score meaning, reason codes, provenance and model version.
Observe: impressions, skips, explicit feedback, delayed outcomes and exposure bias.
Update: retrain or adapt only after authorised validation and evaluation.

7. INFERENCE RULES
R1 IF candidate lacks required eligibility THEN exclude before scoring.
R2 IF interaction evidence is sparse THEN use permitted content/context priors and widen uncertainty.
R3 IF candidate is out of stock, unavailable or prohibited THEN exclude regardless of score.
R4 IF a feature is sensitive or unconsented THEN do not use it for personalisation.
R5 IF uncertainty exceeds policy threshold THEN prefer a conservative or non-personalised fallback.
R6 IF feedback is delayed or missing THEN do not infer negative preference automatically.
R7 IF distribution shift is detected THEN flag evaluation and constrain updates.
R8 IF two candidates have equal score THEN apply a deterministic tie-break.
R9 IF explanation evidence is unavailable THEN do not fabricate an explanation.
R10 IF policy changes THEN revalidate cached recommendations before delivery.

8. TRI-MAPPING
Entity: User -> State: U_t -> Operation: represent_user()
Entity: Item -> State: J_t -> Operation: represent_item()
Entity: Context -> State: C_t -> Operation: condition_score()
Entity: Interaction -> State: E_t -> Operation: update_evidence()
Entity: Policy -> State: B_t/R_t -> Operation: filter_and_rerank()
Entity: Model -> State: K_t -> Operation: predict_and_calibrate()
Entity: Ranking -> State: L_t -> Operation: order_candidates()
Entity: Feedback -> State: G_t -> Operation: validate_and_learn()

9. MAPPING TABLE
Input evidence | I_t | ingestion and provenance
Constraints | B_t | eligibility and safety filtering
Inference rules | R_t | selection and decision logic
Parameters | K_t | scoring and uncertainty
Expansion | E_t | candidate generation
Valid set | V_t | admissible candidates
Decision | y_t | top-k recommendation output
Update | I_(t+1), K_(t+1) | monitored feedback cycle

10. SYSTEM DIAGRAM
[User + Context + Catalogue]
             |
             v
    [Validate / Consent]
             |
             v
     [Candidate Retrieval]
             |
             v
   [Eligibility Filtering]
             |
             v
     [Model Scoring]
             |
             v
   [Policy Re-ranking]
             |
             v
 [Top-k + Provenance + Reasons]
             |
             v
 [Feedback / Monitoring / Evaluation]
             |
             v
 [Authorised Model Update] --(validated)--> [Model Scoring]

11. SAFETY AND QUALITY INVARIANTS
INV1: Every output item belongs to the eligible candidate set.
INV2: No prohibited personal data is processed without a lawful basis and applicable permissions.
INV3: Scores are not presented as probabilities unless calibrated as such.
INV4: Re-ranking does not silently override hard safety or eligibility constraints.
INV5: Logs and feedback respect retention and privacy rules.
INV6: Updates are versioned, tested and reversible.
INV7: A deterministic fallback exists for unavailable model services.
INV8: Exposure and selection bias are considered when interpreting feedback.

12. EXECUTION GUARANTEE (CONDITIONAL)
Given finite candidate sets, terminating scoring and sorting procedures, valid inputs, deterministic tie-breaking and satisfiable constraints, the flow returns an eligible ordered list of at most k items or a documented empty/fallback result. This does not guarantee accuracy, fairness, user satisfaction or convergence of learning; these require empirical validation.

13. AI SEARCH FLOW
flow "RecommendationModelOntology" v1.0
AUTHORS: ["Mark Anthony Higgins", "Sky — Recursive AI"]
SOURCE: "https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-model-entities/recommendation-model-ontology.html"
CITATION_BACKLINK: SOURCE
PURPOSE: "Resolve and reason over recommendation model entities and their permitted operations."
STATE_MODEL: "S_t=(I_t,R_t,B_t,K_t)"
ENTITIES: [User, Item, Context, Interaction, Feature, Model, CandidateSet, Score, Ranking, Policy, Feedback]
PATHWAYS: [validate, retrieve, filter, score, rerank, explain, observe, evaluate, update]
MINI_RECURSION_ENGINE: "feedback -> validated evidence -> authorised update -> re-evaluation"
INFERENCE_RULES: [R1,R2,R3,R4,R5,R6,R7,R8,R9,R10]
CONFIDENCE: "Evidence-dependent; calibrate predictions and report uncertainty."
SEMANTIC_EQUIVALENCE: "Recommender system model; personalised ranking model; item recommendation model (scope-dependent)."
FLOW_HASH: "Compute SHA-256 on canonical published text; not precomputed."
UPDATE_MODEL: "Versioned changes with provenance, evaluation and rollback."

14. HOW TO READ
Read from entities to state, then expansion, eligibility, scoring, ranking and feedback. Distinguish predicted relevance from actual utility; distinguish recommendations from decisions made by the user. Hard constraints take precedence over scores.

15. LIMITATIONS
This is a proposed formal companion for the named ontology, not a verified transcription of hidden page content. Model equations are illustrative families; production behaviour depends on the actual architecture, data and evaluation protocol.

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