cognithesis.

NOTIX

Documentation

NOTIX Design Principles

Taxonomy first, implementation later.

These principles apply to all taxonomic definitions, documentation, encodings, and tooling within the project.

Unambiguous Classification

If two operations are mathematically identical → they should not be separate species, regardless of naming differences in external frameworks.

Stability of Identifiers

New operations may be appended, but existing ones may not be removed or renumbered.

Hardware-Agnostic Semantics

NOTIX describes what an operation is, not how it is implemented.

Human-Readable Documentation

The repo should function like an educational field guide, not a cryptic compiler spec.

Core Taxonomic Model

Overview of Levels

NOTIX classifies every neural operation using a consistent, multi-level model:

  1. Domain
    NonParametric
  2. Kingdom VI
    Pointwise Nonlinear Transforms
  3. Phylum VI.3
    Smooth Threshold & Special Nonlinearities
  4. Family
    Gaussian/GELU-like
  5. Species
    GELU

Each level narrows the behavior and semantics of the operation. Each operation belongs to exactly one path in this hierarchy.

The taxonomy behaves like a tree, not a graph. No operation may belong to more than one branch.

GELU encyclopedia entry

Classification Coverage

8 kingdoms · 35 phyla · 159 families

Every one of the 362 indexed entries has an explicit family and domain. Families group operations by mathematical structure; aliases link to their canonical operations, while compositions and implementation variants retain their documented identities.

The original phylum positions remain stable. Three appended phyla cover tensor construction, graph control flow, and ordered prefix accumulation.

New encyclopedia entries include input/output specifications, parameters, shape constraints, invariants, examples, related operations, and primary references. Numeric identifiers and opcodes remain assigned by the taxonomy generator and kernel registry.

Core Taxonomic Model

Domain

P

Parametric

Uses learned parameters (weights, biases, low-rank adapters, etc.)

N

NonParametric

Behavior is rule-based (shape transforms, nonlinearities, norms, dropout, etc.)

A

Algorithmic

Training objectives & losses, optimization, scheduling, gradient transforms, quantization

Domains appear directly in descriptors and binary headers.

Binary Encoding & Header Format

High-Level Layout

The goal is to provide a compact, deterministic, engine-friendly format that still maps cleanly back to the taxonomy and documentation.

The NOTIX header is composed of three 64-bit words (192 bits):

192 bits3 × 64-BIT WORDS
Word 0Identity & taxonomy
Version0D8Class ID11Kind ID23Variant35Flags43
Word 1Numerics & layout
Input64Weight72Output80Bias88Q96L99Rank104Flags112
Word 2Compact params, dims, role, extension count
Word 3: Reserved / Unused (must be zero for now)Optional 256-bit profile

There is also a 256-bit profile for systems that prefer 32-byte alignment:

Any number of extension words may follow, in 64-bit units, as specified by the header.

Status: Working design intended for implementation. Field layout and semantics are considered stable enough to code against, but any future changes will be versioned via the VERSION field and documented explicitly.

Fusion Composition System

Semantic Equivalence

A fused kernel is a single kernel implementation that performs the equivalent work of multiple atomic operations in sequence.

However, fused kernels can obscure the semantic meaning of what's happening. NOTIX addresses this by requiring every fused kernel to document its composition explicitly.

dense_bias_fp32
XW
II.1MatMulX[M,K], W[K,N]
VI.4Addproduct[M,N], b[N]
Y

MatMul → broadcast Add

The bias is broadcast across rows.

The operation's composition is independent of whether an implementation uses one fused kernel or several instructions. In particular, Dense, DENSE, historical DenseAffine, and native dense_bias_fp32 name MatMul → broadcast Add; they do not introduce a separate atomic species. MatMul remains an atomic member of DenseFamily, and Add retains its own atomic identity in VI.4.

A fused kernel must be semantically equivalent to executing its component operations in sequence.

Opcode Registry & Microkernel ABI

Opcodes vs Species

The goal is to decouple the semantic taxonomy from the execution layer, while keeping a clean, fast, and predictable interface between them.

The descriptor (NOTIX header and NotixOpDesc-like structure) describes a concrete instance of that operation.

The opcode identifies a particular kernel implementation (e.g. dense_f32_rowmajor on CPU).

Dispatch tables map opcodes to kernel pointers, per device or backend.

Taxonomy SpeciesClassId/KindIdDescriptorOpcodeKernel function

Species define semantics; opcodes define how we implement them on a given backend.

Reserved Ranges

These are guidelines; final ranges are defined in the registry doc and codegen tools.

RangeOperation group
0x0001–0x0FFFScalar / pointwise operations (Kingdom VI + simple math)
0x1000–0x1FFFLinear projections & embeddings (Kingdom II)
0x2000–0x2FFFConvolutional & spatial neighborhood ops (Kingdom III)
0x3000–0x3FFFAttention & sequence modeling (Kingdom IV)
0x4000–0x4FFFNormalization & calibration (Kingdom V)
0x5000–0x5FFFStochastic / robustness (Kingdom VII)
0x6000–0x6FFFLosses, optimizers, schedulers, quantization (Kingdom VIII)
0x7000–0x7FFEInternal / utility ops
0x8000–0xBFFFReserved for future official NOTIX extensions
0xC000–0xFFFEVendor / project-specific private opcodes

Sentinel Values

  • 0x0000 : NULL_OPCODE — Reserved sentinel for "no operation" / null checks
  • 0xFFFF : UNINITIALIZED — Reserved sentinel for uninitialized cells
8 kingdoms / 241 encyclopedia entriesTaxonomy first, implementation later.Josh Morgan