CIFAR-8 last-conv SGD descent #
Does the segment-Lipschitz SGD-descent argument (proven for the MNIST CNN, SgdDescent.Cnn)
reach a CIFAR net? At the last conv layer, yes.
CIFAR-8's tail — its last conv W₈ (c4→c4) → relu → maxpool → three denses → CE — is
byte-for-byte the program cnn_conv2_sgd_descends proves descent for. So descent at the LAST
conv layer is an instance of the MNIST lemma at the frozen earlier-layer features, with the same
hypotheses (oracle accuracy, the relu and post-ReLU pool margins, small-step and dominance
conditions) stated at x₁. Made rigorous in two steps:
cifarCnn8Forward_factor— the actual committed net factors ashead ∘ (relu ∘ flatConv W₈) ∘ prefix7(purerfl;Function.compis definitionally associative).cifar8_lastConv_sgd_descends— one SGD step onW₈(the earlier seven conv layers held fixed, their output onimagebeing the frozen feature mapx₁) decreases the example's CIFAR-8 cross-entropy by≥ lr·‖∇‖²/2. Proved by reducing the CIFAR-8 loss-as-a-function-of-W₈to thecnn_conv2program atx₁(hfac, via the factor lemma +flatConv = flatten∘conv2d∘unflatten) and applyingcnn_conv2_sgd_descends.
Scope. Descent through the depth of all eight conv layers is not proved here.
cnn_conv2_sgd_descends's small-step condition hsmall is a PRODUCT of the per-layer operator-norm
factors (the three dense bounds × spatial); each additional conv layer would multiply another
(spatial · weight-bound) factor into that product, so the admissible lr shrinks geometrically
with depth.
The CIFAR-8 classifier head (everything after the last conv's relu): maxpool → 3 denses.
Equations
- Proofs.cifar8Head W₉ b₉ Wa ba Wb bb = Proofs.dense Wb bb ∘ (Proofs.relu d1 ∘ Proofs.dense Wa ba) ∘ (Proofs.relu d1 ∘ Proofs.dense W₉ b₉) ∘ Proofs.maxPoolFlat c4 h w
Instances For
The CIFAR-8 first-7-conv feature extractor (everything before the last conv W₈).
Equations
- One or more equations did not get rendered due to their size.
Instances For
CIFAR-8 factors at the last conv — cifarCnn8Forward = head ∘ (relu ∘ flatConv W₈) ∘ prefix7.
Pure rfl (same ∘-chain, regrouped; Function.comp is definitionally associative).
The loss as a function of the flattened last-conv kernel.
Equations
- One or more equations did not get rendered due to their size.
Instances For
CIFAR-8 last-conv SGD descent. One SGD step on the LAST conv W₈ of the actual
cifarCnn8Forward net (the earlier seven conv layers held fixed — their output on image is the
frozen feature map x₁) decreases the cross-entropy loss of the example (image, label) by at
least lr·‖∇‖²/2, under
the segment-margin conditions that freeze the ReLU/MaxPool routing along the step. Because
CIFAR-8's tail (W₈ → relu → maxpool → 3 denses) is byte-for-byte the architecture
cnn_conv2_sgd_descends proves descent for, this is an INSTANCE of that lemma at the frozen
features x₁, via cifarCnn8Forward_factor, with that lemma's hypotheses (oracle accuracy
hgh, the margins hm2/hmq/hm3/hm4, hsmall, h1, h2) stated at x₁. Descent through
the depth of all eight conv layers is not proved: each extra layer would multiply another
operator-norm factor into hsmall's admissible-lr product.