Skip to content

Add a live screen of chained squeeze-excitation gates - #50

Merged
noelEOS merged 4 commits into
mainfrom
raster/se-chain-fixtures
Nov 16, 2026
Merged

noelEOS merged 4 commits into
mainfrom
raster/se-chain-fixtures

Conversation

@noelEOS

@noelEOS noelEOS commented Nov 16, 2026

Copy link
Copy Markdown
Owner

A live-fixture selection, se_chain, that screens how request time grows when squeeze-excitation gates are chained in one graph. Fixtures, tests and evidence only: no block, compiler, harness, record, status or default changes.

  • Fixtures. Five chains of residual blocks through compile_model on stand-in modules, on a 64 × 64 map with 8 channels: 1, 2, 4 and 8 blocks with a gate, and 8 blocks without it as the control. Each block is a depthwise 3 × 3 convolution, SiLU, the gate (adaptive_avg_pool2d, two 1 × 1 convolutions with SiLU between, sigmoid, product), a 1 × 1 convolution and a residual sum. Each chain has its own integer-generated input and weights, so no request shares another's computation.
  • Role. They are composition checks, kept out of block evidence in both allowance sets. They compare with PyTorch only; the composed NumPy mirrors are checked offline in tests/test_raster_se_chain.py.

Base revision: add5acf8 (main).

Changes by layer

  • Fixtures: tools/fixtures/raster.py (selection se_chain).
  • Tests: tests/test_raster_se_chain.py (new), tests/test_live_fixtures.py, tests/test_x02b_validated_settings.py (the five ids added to the composition allowance).
  • Evidence: docs/evidence/raster-se-chain-offline.json, docs/evidence/live-fixtures/20261116T022247Z-se_chain.json.

Checks on the head commit

Run locally on cb3b51e with a clean tree (Python 3.14, all extras, trained checkpoints present):

  • G1: 45 of 45 graphs equal (9 trained, 36 fixtures, none skipped).
  • G1-ext: 19 of 19 graphs equal.
  • Both gates at the base: 45 of 45 and 19 of 19, run on add5acf8 before the first edit.
  • pytest -q: 4138 passed, 20 skipped.
  • Catalogue check: in sync.
  • --offline se_chain: 5 fixtures passed, zero cloud calls (reference only; no mirror in the harness).
  • --plan se_chain: 5 requests, largest 73,728 values and 598,613 bytes, 0 assets, 0 tasks, within budget.
  • Existing raster selections: the --plan graphs and request counts of calibration, p02, hard_activations, batch_norm, bilinear, grouped_conv, standardize, global_pool_multiply and padded_conv are identical to the base's (checked at c8c10ca4; the later commit changes no fixture graph).

Not reproduced locally: the hosted jobs on Python 3.11 and 3.12 without extras.

Live run

The selection ran once on the clean revision c8c10ca4: 5 fixtures, 5 requests (the planned count), 0 assets, 0 tasks, no refused calls, 77.7 s. Every fixture passed. The record is committed unedited, and the head commit's 5 planned graph hashes are identical to that revision's.

Chain Wall time of its one request Live: Earth Engine vs float32 PyTorch Offline: composed mirrors vs float32 PyTorch
raster/multiply/se-chain-1-h64-w64 3.66 s 1.19e-07 1.19e-07
raster/multiply/se-chain-2-h64-w64 4.99 s 2.38e-07 2.38e-07
raster/multiply/se-chain-4-h64-w64 14.22 s 2.38e-07 2.38e-07
raster/multiply/se-chain-8-h64-w64 43.10 s 3.58e-07 3.58e-07
raster/residual_add/no-gate-chain-8-h64-w64 5.15 s 4.77e-07 4.77e-07

The fixtures have no mirror in the harness, so the live comparison is with PyTorch only.

What the timings show, and what they do not

  • A gate reads its block's output twice, for the whole-map mean and for the product.
  • Request time did not double per gate: 8 gates took 11.8 times as long as 1.
  • It grew faster than the number of gates: a straight line through the 1- and 2-gate chains predicts 7.7 s and 13.0 s for 4 and 8 gates, against 14.2 s and 43.1 s observed.
  • Eight gated blocks took 8.4 times as long as eight blocks without gates.
  • These are single wall-clock samples of interactive requests, including the network. They are not compute units, their noise is unmeasured, and they establish no growth law. Batch exports, larger maps, wider layers and chains longer than 8 were not measured. The chains also read an inline input, which a real run would not.

Limitations

  • No statement about any whole model's cost follows from this.
  • No documentation changes: the timings are stated here and in the record only.

…uest-cost screen

Five raster fixtures built through compile_model on stand-in modules: chains of 1, 2, 4
and 8 residual blocks with a squeeze-excitation gate, and a control chain of 8 blocks
without it, on a 64 x 64 map with 8 channels, one request each. Each has its own seed,
input and weights. They compare with PyTorch only and are composition checks, excluded
from block coverage. No block, compiler, harness, record, status or default changes.
…ared nodes

The existing NumPy mirrors composed block by block agree with float32 PyTorch within the
standing 1e-4 target on every chain (an offline check, not a live criterion); outputs stay
of order 1 and the gates inside (0.1, 0.9); and no node two of the five graphs share holds
a value computed from an input or a weight.
tools/live_fixtures.py --offline se_chain on the committed tree: five fixtures passed,
zero cloud calls; PyTorch only, so no mirror comparison is recorded.
…ount

The se_chain selection ran live once: 5 fixtures, 5 requests, all passed, each chain within
4.77e-07 of float32 PyTorch. Wall time per request: 3.7, 5.0, 14.2 and 43.1 s for chains of
1, 2, 4 and 8 gated blocks, and 5.1 s for 8 blocks without gates. Single interactive
requests, wall time and not compute units.

The fixture histories point at the record, and the chains stay out of block evidence in the
validated-settings test.
@noelEOS
noelEOS merged commit b20a69b into main Nov 16, 2026
3 checks passed
@noelEOS
noelEOS deleted the raster/se-chain-fixtures branch November 16, 2026 04:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant