Skip to main content

Parameter Tensor 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 — PARAMETER TENSOR ONTOLOGY
Version: 1.0 | 2026-10-29 | UTF-8
Source: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-parameter-entities/parameter-tensor-ontology.html
Authors: Kireth Research; Sky — Recursive AI (companion formalisation)
Status: Independently constructed from established ML principles; exact source-page specification not verified.

1. PURPOSE
Represent model parameter tensors, their metadata, relationships, updates, validation and persistence as typed, auditable state transitions.

2. STATE MODEL
S_t = (I_t, R_t, B_t, K_t)
I_t: tensor data, gradients, training events and provenance.
R_t: shape, dtype, device, ownership and dependency relations.
B_t: numerical, architectural, memory and policy constraints.
K_t: validated tensor schema and known transformation rules.
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 an optional selection policy, not a substitute for deterministic tensor execution.

3. ENTITY SCHEMA
ParameterTensor(id, name, shape, dtype, device, values, requires_grad, version)
TensorShape(rank, dimensions, layout)
TensorStorage(buffer, strides, offset, memory_format)
GradientTensor(parameter_id, values, step)
OptimiserSlot(parameter_id, algorithm, state)
ParameterGroup(ids, learning_rate, weight_decay, policies)
Checkpoint(parameter_id, version, checksum, metadata)
QuantisationMetadata(scale, zero_point, bit_width, axis)

4. RELATIONSHIPS
ParameterTensor --belongs_to--> ModelLayer
ParameterTensor --has_shape--> TensorShape
ParameterTensor --stored_in--> TensorStorage
ParameterTensor --may_have--> GradientTensor
ParameterTensor --updated_by--> OptimiserStep
ParameterTensor --included_in--> Checkpoint
ParameterTensor --may_use--> QuantisationMetadata

5. FORMAL OPERATIONS
For a weight matrix W in R^(m x n), an affine layer computes y = Wx + b.
For loss L(theta), gradient g_t = partial L / partial theta_t.
SGD: theta_(t+1) = theta_t - eta_t * g_t.
With weight decay (decoupled): theta_(t+1) = (1 - eta_t * lambda) * theta_t - eta_t * u_t, where u_t is the optimiser's gradient-derived update.
Frozen parameter: theta_(t+1) = theta_t, subject to explicit external mutation exclusion.
Parameter count N = sum_{p in P} product(shape(p)).
Raw payload bytes (uncompressed, ignoring metadata) = sum_{p in P} numel(p) * bytes_per_element(p).
Reshape preserves element count; cast changes dtype and may change precision.
Quantised reconstruction: theta_hat = scale * (q - zero_point), with broadcast-compatible metadata.

6. FLOW PIPELINE
F0 register parameter and provenance
F1 validate rank, dimensions, dtype and finite-value policy
F2 bind parameter to model computation graph
F3 execute forward operation
F4 compute loss and backward gradients if trainable
F5 validate gradient shape, finiteness and update eligibility
F6 apply optimiser update atomically to eligible parameters
F7 increment version and log transition
F8 optionally serialise checkpoint with integrity metadata
F9 restore only after schema and checksum validation

7. INFERENCE RULES
IF requires_grad = false THEN optimiser must not modify the parameter through its training update path.
IF shape(gradient) != shape(parameter) THEN reject update.
IF a reshape changes element count THEN reject reshape.
IF dtype conversion is lossy THEN record precision change.
IF checkpoint checksum fails THEN reject restoration.
IF shared/tied parameters reference one storage object THEN count unique stored elements separately from logical references.
IF numerical overflow or NaN occurs THEN follow configured reject, skip or recovery policy.

8. MINI RECURSION ENGINE
initialise S_0 and parameter registry
FOR each authorised training step t:
  inspect tensor and optimiser metadata
  expand permitted update candidates
  filter by schema, finite-value and policy constraints
  choose prescribed deterministic optimiser transition
  apply eligible updates; preserve frozen tensors
  verify postconditions and record S_(t+1)
STOP on budget, convergence, training limit or failed invariant

9. TRI-MAPPING
Semantic: ParameterTensor is a model-owned numerical state entity.
Mathematical: finite-rank array with shape, domain and transformation rules.
Computational: typed storage plus autograd, optimiser and serialisation metadata.

10. EXECUTION GUARANTEES AND LIMITS
Guaranteed by validation: compatible shapes, declared dtypes and update eligibility.
Guaranteed only with transactional implementation: atomic checkpoint/update commits.
Not guaranteed: convergence, model correctness, absence of bias or numerical reproducibility across hardware.
Floating-point reductions may be non-associative; distributed replicas require explicit synchronisation.

11. AI SEARCH FLOW
INTENT: identify, classify, validate, count, update or restore parameter tensors.
QUERY: parameter tensor | trainable weights | tensor shape | optimiser state | checkpoint | quantisation.
ENTITY_RESOLUTION: map requested model, layer, tensor ID and version.
PATH: discover -> type-check -> relate -> calculate -> validate -> explain -> cite.
OUTPUT: tensor metadata, applicable equations, invariant checks, provenance and limitations.
CONFIDENCE: distinguish verified tensor metadata from inferred or assumed attributes.

12. CITATION AND UPDATE MODEL
Citation backlink: https://kirethresearch.org/booksai-core/entity-graph/ai-entities/ai-parameter-entities/parameter-tensor-ontology.html
Revision policy: preserve stable entity IDs; version schema changes; record provenance.
Licence: refer to the source website for applicable publication terms.
END FLOW
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ