Skip to main content

Model Parameter Ontology

AI Parameter Entities
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 29 October 2026
Audio Overview
FLOW ALGEBRA — MODEL PARAMETER ONTOLOGY
Semantic Library | AI Core > Entity Graph > AI Entities > AI Parameter Entities
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-parameter-entities/model-parameter-ontology.html
Format: UTF-8 TXT | Language: en-GB | Date: 2026-10-29
Status: Companion formalisation based on established ML principles; exact source-page specification not verified.
Authors: Kireth Research; Sky — Recursive AI (companion formalisation)
Citation: Cite the source URL and this companion flow when reused.

01 PURPOSE
Represent model parameters as typed, versioned tensor-valued entities governing a learned mapping, with explicit training, inference, storage and provenance semantics.

02 STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t = (architecture A, parameters Θ_t, inputs X_t, mode m_t)
R_t = (tensor typing, graph connectivity, update rules, sharing constraints)
B_t = (shapes, dtype, device, memory, permissions, numerical limits)
K_t = (training history, optimiser metadata, provenance, checkpoint identifiers)
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)
Note: argmax is a search/selection abstraction, not a claim that every optimiser performs Bayesian maximisation.

03 ENTITY SCHEMA
ModelParameter: {id, name, tensor, shape, dtype, trainable, shared_with, owner_module, version}
ParameterTensor: {values, axes, device, precision, sparsity}
Module: {id, operation, inputs, outputs, parameter_refs}
Model: {architecture, parameter_set, configuration, version}
Gradient: {parameter_ref, derivative, step}
OptimiserState: {parameter_ref, moments, step, schedule}
Checkpoint: {model_version, parameter_snapshot, integrity_hash, metadata}
Constraint: {kind, predicate, severity}

04 RELATIONSHIP GRAPH
Model --contains--> Module
Module --references--> ModelParameter
ModelParameter --has_value--> ParameterTensor
ModelParameter --receives--> Gradient
Optimiser --updates--> ModelParameter
Checkpoint --serialises--> ParameterTensor
ModelParameter --may_share_storage_with--> ModelParameter
Architecture --constrains_shape_of--> ModelParameter
Inference --reads--> ModelParameter

05 PARAMETER CLASSES
Weights: matrices/tensors implementing learned transformations.
Biases: additive trainable offsets where present.
Embeddings: token/item lookup tensors where present.
Normalisation parameters: learned scale/shift where applicable.
Adapter parameters: optional low-rank or other fine-tuning components.
Buffers (e.g. running statistics) are model state but are not necessarily trainable parameters.
Hyperparameters (learning rate, depth, batch size) configure the process; they are not automatically model parameters.

06 FORMAL OPERATIONS
Forward: Y = f_A(X; Θ)
Loss: L_t = ℓ(f_A(X_t; Θ_t), Y_t)
Gradient: G_t = ∇_Θ L_t
SGD: Θ_{t+1} = Θ_t - η_t G_t
Weight decay (decoupled example): Θ_{t+1} = (1 - η_t λ)Θ_t - η_t G_t
Freeze mask M in {0,1}^|Θ|: Θ_{t+1} = Θ_t - η_t (M ⊙ G_t)
Parameter count: N = Σ_{p in unique_parameter_storages} numel(p)
Memory estimate (raw weights): bytes ≈ Σ_p numel(p) × bytes_per_element(p)
Training memory also includes gradients, optimiser state, activations and overhead.

07 TRANSITION PATHWAYS
INITIALISE -> VALIDATE_SHAPES -> FORWARD -> LOSS -> BACKPROPAGATE -> UPDATE -> VALIDATE -> CHECKPOINT
INFERENCE: LOAD_CHECKPOINT -> VALIDATE_COMPATIBILITY -> FORWARD -> RETURN_OUTPUT
FINE_TUNE: LOAD_BASE -> SELECT_TRAINABLE_SUBSET -> TRAIN -> SAVE_DELTA_OR_FULL_MODEL

08 INFERENCE RULES
IF shape(parameter) mismatches module contract THEN reject binding.
IF parameter.trainable = false THEN do not apply optimiser update to that parameter.
IF shared parameter storage exists THEN count and update consistently, avoiding double counting.
IF checkpoint architecture is incompatible THEN require explicit migration or reject load.
IF dtype conversion occurs THEN record numerical-precision implications.
IF non-finite values arise THEN flag numerical validity failure.
IF model is in inference mode THEN do not assume parameter mutation.

09 MINI RECURSION ENGINE
function step(S_t):
  candidates = expand(S_t.I, S_t.R)
  valid = filter(candidates, S_t.B)
  chosen = select(valid, S_t.K)
  next_state = update(S_t, chosen)
  return validate(next_state)
Training recursion: Θ_{t+1} = OptimiserStep(Θ_t, ∇_Θ L_t, O_t)
Stop on convergence criterion, iteration limit, invalid state or external interruption.

10 TRI-MAPPING
Entity mapping: Parameter -> Tensor -> Module -> Model.
Relational mapping: owns, references, shares, updates, serialises.
Operational mapping: initialise -> evaluate -> differentiate -> update -> checkpoint.

11 HOW TO READ
Θ denotes the collection of model parameters; A is architecture; X is input;
Y is target/output according to context; η is learning rate; λ is weight decay;
M is a trainability mask; O is optimiser state; t is a discrete step.

12 EXECUTION GUARANTEES AND LIMITS
Guarantee only conditional structural checks: declared shapes, types, graph bindings,
checkpoint integrity and deterministic transformations under explicitly controlled conditions.
No unconditional guarantee of convergence, accuracy, safety, reproducibility across hardware,
or freedom from numerical errors.

13 AI SEARCH FLOW
INTENT: define model parameter; compare weight vs hyperparameter; inspect training updates;
       reason about freezing, sharing, counting, checkpointing and inference.
ENTITIES: ModelParameter, ParameterTensor, Module, Model, Gradient, OptimiserState, Checkpoint.
PATHWAYS: definition -> classification -> tensor contract -> operational role -> constraints.
SEMANTIC_EQUIVALENCE: model weights ~ learned parameters (context dependent);
                      trainable parameter != hyperparameter;
                      model state != exclusively trainable parameters.
CONFIDENCE: structural equations high for specified assumptions; empirical outcomes unverified.
UPDATE_MODEL: version changes require updated provenance and compatible parameter schema.
FLOW_HASH: compute SHA-256 of canonical UTF-8 text at publication; not pre-populated.

14 CROSS-REFERENCES
AI Parameter Ontology; Transformer Parameter Ontology; Trainable Parameter Ontology;
Frozen Parameter Ontology; Optimiser State Ontology; Parameter Tensor Ontology;
Checkpoint Ontology; Neural Network Architecture Ontology.

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