You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Field-Native Algebraically-Bounded Deep Model for STARK AIR
1. Purpose
This specification defines a field-native deep model that can be:
trained offline with backpropagation,
executed as an inference trace over a prime field $\mathbb{F}_p$,
proven in a zkSTARK using only polynomial AIR constraints,
enforced without range checks,
and whose row-to-row transition is unique.
This model does not implement bounded signed-integer arithmetic. It implements a field-native dynamical system whose hidden state is constrained to remain inside a low-degree algebraic set.
2. Semantics
2.1 What is proved
The proof establishes that:
every trace row lies on a fixed algebraic state space,
every next row is the unique valid update of the current row under the frozen model parameters,
therefore the whole trace is the unique valid inference trace of the model.
2.2 What is not proved
This specification does not prove:
that values are small signed integers,
that ordinary integer overflow cannot happen,
that field operations coincide with integer operations.
There are no range checks. All correctness is purely in $\mathbb{F}_p$.
3. State Space
Each hidden feature is represented as a pair of field elements:
$$
g_i = (u_i, v_i) \in \mathbb{F}_p^2
$$
subject to the conic invariant
$$
u_i^2 - \Delta v_i^2 = 1
$$
where:
$p$ is an odd prime,
$\Delta \in \mathbb{F}_p^\times$ is a fixed non-square constant.
This defines the norm-one conic / 1-dimensional torus:
optional scalar gates if constrained algebraically,
optional mixing schedules chosen from a small discrete family outside the proof.
Recommended fixed objects:
$p$,
$\Delta$,
the exponent $e=3$,
the pairing/permutation structure,
the number of layers.
17.2 Parameterization during training
To ensure trainable parameters remain on the conic, use one of:
Option A: projected parameters
Train unconstrained values $(\tilde a,\tilde b)$, then periodically project onto:
$$
a^2 - \Delta b^2 = 1.
$$
Option B: intrinsic parameterization
Parameterize $(a,b)$ by repeated valid conic compositions from a seed point.
Option C: penalty method
Add training loss term:
$$
\lambda \cdot (a^2 - \Delta b^2 - 1)^2
$$
then project once after training.
At proof time, only the final frozen values matter.
17.3 Surrogate arithmetic for training
Training is done offline with ordinary differentiable computation over floating point or high-precision arithmetic, using the same algebraic formulas as the inference model.
After training:
quantize / map learned parameters into $\mathbb{F}_p$,
enforce $a^2 - \Delta b^2 = 1$,
freeze parameters,
use the frozen field-valued model for inference and proof.
18. Minimal AIR Template
For each row and each feature-pair index $i$:
Membership
$$
x_{2i}^2 - \Delta x_{2i+1}^2 - 1 = 0
$$
$$
(x'_{2i})^2 - \Delta (x'_{2i+1})^2 - 1 = 0
$$
Transition
If $(2i,2i+1)$ and $(2j,2j+1)$ are paired in this layer, enforce the block constraints from Section 10.3.
Permutation layer
If the next layer changes pairing, add copy/permutation constraints.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Field-Native Algebraically-Bounded Deep Model for STARK AIR
1. Purpose
This specification defines a field-native deep model that can be:
This model does not implement bounded signed-integer arithmetic. It implements a field-native dynamical system whose hidden state is constrained to remain inside a low-degree algebraic set.
2. Semantics
2.1 What is proved
The proof establishes that:
2.2 What is not proved
This specification does not prove:
There are no range checks. All correctness is purely in$\mathbb{F}_p$ .
3. State Space
Each hidden feature is represented as a pair of field elements:
subject to the conic invariant
where:
This defines the norm-one conic / 1-dimensional torus:
All hidden states must lie in$C_\Delta$ .
4. Group Law
Define the binary operation
If both inputs lie on the conic, then the output also lies on the conic.
The identity element is:
The inverse is:
So$C_\Delta$ is closed under $\star$ .
5. Trace Layout
Use two trace columns per feature.
For feature$i$ :
If the current row contains columns$x_c$ , then the next row contains $x'_c$ .
6. Layer Structure
Each layer acts on pairs of features.
Let one block consume two feature-pairs:
$$
g_1 = (x_c, x_{c+1})
$$
$$
g_2 = (x_d, x_{d+1})
$$
with$c,d$ even and typically $d = c + 2$ in the simplest layout.
Each block performs:
7. Nonlinear Power Map
Choose a fixed exponent$e$ such that:
For the simplest implementation, choose:
and ensure:
For the standard non-square-$\Delta$ conic over$\mathbb{F}_p$ , this usually means:
The cubic map is:
$$
3 =
\left(
u^3 + 3\Delta u v^2,;
3u^2v + \Delta v^3
\right).
$$
Define:
$$
\operatorname{cube}(u,v) := 3.
$$
8. Trainable Parameters
Each output feature has a trainable translation parameter:
which must also lie on the conic:
These parameters are learned offline, then frozen for proving.
For one 2-feature block, use two trainable parameters:
9. Coupled Block Definition
Let:
First compute the cubic images:
$$
(A_1,B_1) := 3
$$
$$
(A_2,B_2) := 3
$$
that is,
Then perform coupling:
so
Finally apply trainable translations:
which gives:
This is one nonlinear bijective block.
10. AIR Constraints
10.1 State Membership Constraints
For every feature-pair$(x_{2i}, x_{2i+1})$ in every row:
For every corresponding next-row pair:
These ensure the state remains on the conic.
10.2 Parameter Validity Constraints
For each frozen trainable parameter pair$(a_j,b_j)$ :
If parameters are public constants, this can be checked once outside the trace or treated as setup assumptions.
10.3 Transition Constraints for One 2-Feature Block
Given current row columns:
and next row columns:
enforce the following.
Cubic transforms
Coupling
Trainable translations
11. Fully Inlined Version
If no helper columns are used, the transition can be written directly as:
with
This is simpler to read but higher degree in AIR.
12. Recommended Low-Degree Implementation
To keep AIR degree low, use helper columns.
12.1 Helper Columns for One Feature-Pair
For pair$(x_c, x_{c+1})$ , add:
with constraints:
Do the same for$(x_d, x_{d+1})$ .
Then use:
This keeps most constraints quadratic.
12.2 Helper Columns for Coupling
Add:
with constraints exactly as in Section 10.3.
This makes the transition mostly bilinear.
13. Why the Transition Is Unique
The transition is unique because it is a composition of bijections on$C_\Delta$ :
Therefore each block defines a bijection from valid input state to valid output state.
As a result:
14. Why There Are No Range Checks
This construction uses no range checks.
The reason is:
So the invariant is:
not:
All correctness is field-native.
15. Model Stacking
A deep network is formed by stacking multiple blocks with permutations between them.
Let the hidden state have$2n$ columns:
A layer consists of:
A permutation layer is just column relabeling or copy constraints, for example:
16. Input and Output Encoding
16.1 Input
Inputs must be embedded into conic points.
A simple implementation is:
16.2 Output
Outputs may be:
If using a projection, define it as a polynomial map over the final row and prove it with AIR constraints.
17. Offline Training
17.1 What is trainable
Recommended trainable objects:
Recommended fixed objects:
17.2 Parameterization during training
To ensure trainable parameters remain on the conic, use one of:
Option A: projected parameters
Train unconstrained values$(\tilde a,\tilde b)$ , then periodically project onto:
Option B: intrinsic parameterization
Parameterize$(a,b)$ by repeated valid conic compositions from a seed point.
Option C: penalty method
Add training loss term:
then project once after training.
At proof time, only the final frozen values matter.
17.3 Surrogate arithmetic for training
Training is done offline with ordinary differentiable computation over floating point or high-precision arithmetic, using the same algebraic formulas as the inference model.
After training:
18. Minimal AIR Template
For each row and each feature-pair index$i$ :
Membership
Transition
If$(2i,2i+1)$ and $(2j,2j+1)$ are paired in this layer, enforce the block constraints from Section 10.3.
Permutation layer
If the next layer changes pairing, add copy/permutation constraints.
19. Concrete Example with 4 State Columns
Let the row state be:
$$
(x_0,x_1)
$$
$$
(x_2,x_3)
$$
Next row:
Trainable parameters:
Membership constraints
Parameter constraints
Cubic helper definitions
Coupling helpers
Output definitions
This is a complete one-layer AIR block.
20. Field Selection Rules
Choose the field prime$p$ such that:
For the cubic map, ensure:
If this fails, choose another odd exponent such as$e=5$ , provided:
21. Soundness Statement
Given:
the proof establishes that:
where:
Hence the trace is the unique valid inference trace of the frozen field-native model.
22. Implementation Checklist
23. Summary
This specification gives a deep model with the following properties:
The core invariant is not numerical boundedness, but algebraic boundedness:
The core transition is a composition of:
This is the intended implementation target.
All reactions