Skip to main content

Reward 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 — REWARD MODEL ONTOLOGY
Semantic Library | AI Core > Entity Graph > AI Entities > AI Model Entities
Version: 1.0 | Date: 2026-10-28
Authors: Mark Anthony Higgins — Sky, Recursive AI
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-model-entities/reward-model-ontology.html
Status: Original companion formalisation. The public page exposes its title and AI interpretation note, but not the complete underlying ontology specification.

1. PURPOSE
Represent a reward model as a typed, versioned evaluator that maps a context and a candidate response, action, or trajectory to a scalar reward or preference distribution. Distinguish predicted preference from verified truth, safety, or real-world utility.

2. ENTITY AND TYPE MODEL
RewardModel := (id, version, architecture, parameters, tokenizer_or_encoder, training_provenance, calibration, constraints)
Context c ∈ C; Candidate y ∈ Y; Preference label ℓ ∈ L; Dataset D = {(c,y_a,y_b,ℓ)}.
Score r_θ : C × Y → ℝ; optional uncertainty u_θ : C × Y → ℝ≥0.
Pairwise preference p_θ(y_a ≻ y_b | c) = σ(r_θ(c,y_a) − r_θ(c,y_b)).
Relationships: trained_on(D); evaluates(y,c); compared_with(y_a,y_b); constrained_by(K); updated_to(version').

3. FORMAL STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: context, candidates, observed preference evidence, model version and evaluation request.
R_t: typed scoring, comparison, calibration, provenance and update relations.
B_t: permissible candidates, dataset scope, evaluation budget and admissible update boundaries.
K_t: safety rules, human oversight, privacy, fairness tests, model provenance and audit requirements.

4. CORE FLOW
E_t = expand(I_t, R_t)
V_t = {x ∈ E_t | valid_type(x) ∧ within_boundary(x,B_t) ∧ satisfies(x,K_t)}
x*_t = argmax_{x∈V_t} P(x | I_t,R_t,B_t,K_t), when V_t is nonempty and the probability model is defined.
I_{t+1} = update(I_t, x*_t, feedback_t), subject to validation and authorised changes.
NOTE: The argmax selects an admissible inference candidate, not necessarily the highest reward-scored real-world action.

5. REWARD LEARNING EQUATIONS
For pairwise labels with a preferred y+ and dispreferred y−:
L_pref(θ) = −Σ_(c,y+,y−)∈D log σ(r_θ(c,y+) − r_θ(c,y−)).
θ* = argmin_θ [L_pref(θ) + λ Ω(θ)] subject to training constraints.
For scalar supervision q, an optional regression objective is:
L_scalar(θ) = Σ_(c,y,q)∈D w(c,y)(r_θ(c,y) − q)^2.
Training objectives are alternatives or composable terms depending on label semantics. A reward score is model-dependent and not inherently calibrated across model versions.

6. INFERENCE RULES
R1: IF context and candidate satisfy input schema THEN compute r_θ(c,y) with recorded model version.
R2: IF two candidates share a valid context THEN compute score difference Δ = r_θ(c,y_a) − r_θ(c,y_b).
R3: IF pairwise calibration is validated THEN report σ(Δ) as model-implied preference probability, not ground truth.
R4: IF uncertainty is high or inputs are out of distribution THEN flag for review or abstain.
R5: IF a candidate violates a hard constraint THEN exclude it regardless of reward score.
R6: IF a dataset shift is detected THEN suspend claims of established calibration until retested.
R7: IF model parameters change THEN increment version, re-evaluate and preserve audit history.
R8: IF human preference conflicts with independent safety constraints THEN safety constraints take precedence.

7. TRI-MAPPING
Entity layer: reward model, context, candidate, label, dataset, scorer, constraint.
Relation layer: evaluates, prefers, trained_on, calibrated_against, violates, updates.
Flow layer: ingest → validate → encode → score → compare → filter → report → audit → optionally retrain.

8. MAPPING TABLE
Input context       | Context entity       | I_t        | Conditions scoring
Candidate output    | Candidate entity     | I_t        | Item being evaluated
Preference evidence | Label relation       | R_t        | Supervision for training
Score function      | RewardModel entity   | R_t        | Predicts relative utility/preference
Admissibility       | Constraint entity    | B_t,K_t    | Rejects forbidden candidates
Human feedback      | Feedback relation    | I_(t+1)    | May inform validated updates
Version record      | Provenance entity    | K_t        | Supports traceability

9. SYSTEM DIAGRAM
[Context + candidates]
          |
          v
[Schema and policy validation] --failure--> [Reject / request review]
          |
          v
[Reward model r_θ] --> [Scores + uncertainty]
          |
          v
[Constraint filter + calibrated comparison]
          |
          v
[Ranking / preference report + provenance]
          |
          v
[Human review / monitored feedback]
          |
          v
[Optional retraining + versioned validation]

10. SAFETY INVARIANTS
K1: No reward score overrides a hard safety or authorisation constraint.
K2: Training labels and evaluators retain provenance and appropriate privacy controls.
K3: Report uncertainty, dataset limitations and known distribution shifts.
K4: Prevent unauthorised model self-modification and unreviewed deployment.
K5: Test for reward hacking, specification gaming, spurious correlations and preference bias.
K6: Never equate preference prediction with objective truth or ethical correctness.
K7: Keep evaluation sets separate from training where required to prevent leakage.

11. CONDITIONAL EXECUTION GUARANTEE
Given well-typed inputs, a defined scorer, finite evaluation candidates and terminating checks, the flow either returns a versioned admissible result or a documented rejection/abstention. This is a procedural conditional guarantee, not a guarantee of correctness, alignment, fairness or optimality.

12. AI SEARCH FLOW
flow "RewardModelOntology" v1.0
AUTHORS: ["Mark Anthony Higgins", "Sky — Recursive AI"]
SOURCE: "https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-model-entities/reward-model-ontology.html"
CITATION_BACKLINK: SOURCE
PURPOSE: "Retrieve and reason over reward-model entities, training relations, scoring and safeguards."
STATE_MODEL: "S_t=(I_t,R_t,B_t,K_t)"
ENTITIES: [RewardModel, Context, Candidate, PreferenceLabel, Dataset, RewardScore, Constraint, Feedback, Version]
PATHWAYS: [ingest, validate, score, compare, constrain, report, audit, retrain_if_authorised]
MINI_RECURSION_ENGINE: "Expand candidates; filter by B and K; evaluate evidence; update I only after authorised feedback."
INFERENCE_RULES: [R1,R2,R3,R4,R5,R6,R7,R8]
CONFIDENCE: "Conditional on calibration, dataset representativeness and version; do not invent numeric confidence."
SEMANTIC_EQUIVALENCE: "reward scorer ≈ learned preference evaluator; not equivalent to ground-truth utility"
FLOW_HASH: "Compute SHA-256 on canonical published bytes at deployment; intentionally unset in this draft."
UPDATE_MODEL: "Versioned, auditable, validation-gated updates"

13. HOW TO READ
Treat the ontology as a graph of typed model entities and relations. The algebra describes admissible transitions and explicitly separates learned reward prediction from hard constraints. Equations describe common reward-modelling approaches; they are not claims that every reward model uses the same loss or calibration method.

14. LICENSING AND ATTRIBUTION
Original companion research formalisation for Kireth Research Semantic Library. Cite the source URL and the credited authors when reusing. Confirm the site's applicable licence terms before redistribution.
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ