Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Scientific ML ecosystem boundaries

Use this page when deciding whether a model, optimizer, inference method, execution primitive, or audit record belongs in Jaxstro or another package.

The scientific question

Which package should own each part of a scientific ML workflow so that Jaxstro adds evidence-bearing contracts without recreating mature ecosystem machinery?

Prerequisites

Review What is a model?, PyTrees as scientific state, and Evidence and claim boundaries.

Mathematical objects

A workflow contains a model, parameters, objective, optimizer transformation, optimizer state, data plan, random keys, execution schedule, inference procedure, metrics, checkpoints, and provenance. Ownership follows semantics, not merely which package can store an array.

Core derivation

For a composed workflow W=ATDMW=A\circ T\circ D\circ M, an audit must identify the owner and contract of every component:

evidence(W)={contract(M),contract(D),contract(T),contract(A)}.\operatorname{evidence}(W) = \{\operatorname{contract}(M),\operatorname{contract}(D), \operatorname{contract}(T),\operatorname{contract}(A)\}.

Composition does not transfer ownership: wrapping an Optax update does not make the optimizer a Jaxstro algorithm. (1) records the four separate contracts required by the composed workflow.

Assumptions and failure boundaries

An adapter is justified only when it adds a stable, consumer-driven scientific contract such as explicit units, plans, provenance, or audit evidence. Thin renaming wrappers, model zoos, duplicate loss libraries, and general posterior inference are outside the proposed boundary.

Worked conceptual example

An Equinox model and Optax transformation can be executed by JAX using a stored Jaxstro-style data plan and run manifest. The downstream project defines the likelihood and scientific acceptance checks. Each layer remains replaceable and auditable because its owner is named.

Ownership boundary

OwnerResponsibility
EquinoxModel and callable-PyTree construction
OptaxOptimizer transformations and optimizer state
JAXTransformations, arrays, PRNG keys, and execution primitives
JaxstroProposed domain-agnostic preprocessing, data-plan, audit, and provenance contracts only
InformaxInference-aware scientific workflows and representation choices
NumPyro/BlackJAXProbabilistic inference and sampling mechanics

Proposed interface

No proposed symbol is part of the API reference. A future design must first show concrete consumers, protocol compatibility, and evidence that the added contract is not a duplicate of its ecosystem owners.

Evidence required before implementation

Evidence must include consumer use cases, protocol tests with Equinox and Optax, JAX transform checks, import-boundary tests, serialization and replay, and an API audit proving that no delegated model, optimizer, or sampler is re-exported as Jaxstro-owned machinery.

Where the claim stops

Clear ownership improves maintainability and auditability; it does not validate a model, objective, inference procedure, or scientific conclusion.

Connected ideas

See Preprocessing without data leakage, Deterministic data plans, Fixed-step, auditable training, and Parameters, constraints, and transforms.