The per-example fused-SGD nodes — one *_den per op kind, shared by every per-example chain #
The per-example train steps (the MNIST / CIFAR chapter nets, and the per-example tiers of
ResNet-34, MobileNetV2, ConvNeXt and ViT) emit fused θ − lr·∂Loss/∂θ ops. Each lemma here says
one such op denotes the certified SGD step at an arbitrary cotangent, so a net's fold is these at
its layers. The batched, un-fused peers are in GradNodesB.
| op | lemma | namespace |
|---|---|---|
dense weight / bias (weightSgd, biasSgd) | denseW_den, denseB_den | Cifar8PoC |
conv weight / bias (convWeightSgd, convBiasSgd) | convW_den, convB_den | CifarPoC |
per-channel BN γ / β (bnGammaSgd, bnBetaSgd), and the pair as one clause | bnGamma_den, bnBeta_den, BnSgdPairTied | CifarBnPoC |
Namespaces are the net that first needed each op, kept so that every citation keeps its name.
Any emitted dense weight op = certified. Generic in the layer dims, the
activation a, bias b and cotangent c: den (weightSgd a W (.operand _ c)) = W − lr·(certified ∂dense/∂W · c). Every small net's dense layers are instances.
Any emitted dense bias op = certified. Generic peer of denseW_den.
Any emitted conv weight op = certified. Generic in the conv dims and the
cotangent c: the convWeightSgd op denotes flatten W − lr·(certified ∂conv/∂W · c). Instantiated at each layer's (b,x,W,c) it certifies W₁…W₄.
Any emitted conv bias op = certified. Generic peer of convW_den.
Per-channel BN γ op = certified. The emitted bnGammaSgd, fed the BN-output
cotangent c and the saved conv output v, denotes γ − lr·(certified ∂(per-channel BN)/∂γ · c) — via reassocFwd into the oc·m cert layout.
Per-channel BN β op = certified. Likewise β − lr·(certified ∂BN/∂β · c).
The emitted bnGammaSgd and bnBetaSgd ops of one per-channel BN layer, fed its BN-output
cotangent c at the saved conv output v, are the certified SGD steps on γ and β — the
statements of bnGamma_den and bnBeta_den under ∀. The per-example peer of
EnetPoC.BnSgdPairTiedB.
Equations
- One or more equations did not get rendered due to their size.