Skip to content

research(h237): preregister AdaBelief/RAdam for the r882 adapter continuation (xbabe2 CPU, A1) - #2074

Merged
jepsontaylor merged 3 commits into
mainfrom
rd/h237-prereg
Nov 3, 2026
Merged

jepsontaylor merged 3 commits into
mainfrom
rd/h237-prereg

Conversation

@jepsontaylor

@jepsontaylor jepsontaylor commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

H237 prereg: AdaBelief / RAdam for the r882 adapter continuation (xbabe2 CPU, host amendment A1)

Preregisters H237 (hw_t0030_opus_h237_adabelief.md). Nothing scientific runs before this merges. Does not touch PR #2071.

Idea. Is the plateau partly an adaptive-step-size artefact? AdaBelief (Zhuang et al. 2020) scales steps by the variance of the gradient around its EMA instead of the raw second moment.

Arms. Only the optimizer differs. All arms share the CTRL loss, batches, lr 1e-4, betas (0.9, 0.999) and decoupled wd 1e-4.

  • CONTROL: AdamW (exact H170 CTRL).
  • ABEL (primary): inline AdaBelief with ε = 1e-16 inside s, bias correction, decoupled wd and no rectification.
  • RADAM (secondary): torch.optim.RAdam with decoupled_weight_decay=True. Holm m = 2.

Machinery. Merged H234/H232 with the A1/A2 fixes. Fresh per-seed folds 237141–237143 (best-match Jaccard ≤ 0.186 against earlier waves), seeds 237101–237103, 15 cells, 1,800 updates. Read-only r882 copy, with DOPE c51a56d0 frozen.

Decision. On DL-Val91, an arm ADVANCEs iff its median seed gain against r882 is > +0.002, its family LCB95 is > 0 and its Holm p is < 0.05. Beating CONTROL alone is descriptive. Elo is reported against r882 and CONTROL, and each arm is also compared descriptively with the plateau best 1.1389572 (r3175).

Guards (memory rule from hw_t0030; host from amendment A1, hw_t0036).

  • xbabe2 CPU, taskset 48–51, nice 19. These cores avoid H231, H233 and H236.
  • Pause the worker's own process group on load5 > 108 or MemAvailable < 20 GiB; resume at load5 ≤ 100 and MemAvailable ≥ 22 GiB.
  • Hard stops: MemAvailable < 12 GiB, RSS 4 GiB, free disk 300 GB, 4 threads, and the compute stop at 06:30Z.
  • Admission needs load5 ≤ 100 and MemAvailable ≥ 22 GiB.

Amendment A1 (pre-outcome, host only). xbabe1 MemAvailable was 16–17 GiB, below the 22 GiB gate. The pre-merge smoke there was refused at admission and never ran. A1 moves the wave to xbabe2 (about 70 GiB), with inputs re-pinned to a hash-identical r882 copy. It is recorded in the PREREG Deviations section and in H237_claim.txt. No science change.

Local checks at this head.

  • test_h237.py: 15 passed. They include AdaBelief against the reference update over 30 steps (to 1e-12), the belief property (larger steps than Adam on consistent gradients), RAdam with decoupled wd, and the monitor's load and memory pause hysteresis.
  • ruff, git diff --check and the JSON parses are clean.
  • All 7 jope-records gates return rc 0, including coverage validate.
  • All input and asset pins verify on xbabe2.
  • Pre-merge constructor smoke on xbabe2 at this head: PASS (47 tensors, 29,211 parameters, DOPE c51a56d0, 0 updates).

🤖 Generated with Claude Code

Agent-Session: rd_opus
Agent-Model: claude-opus-5-5
Agent-Task: H237 prereg
…inuation (xbabe1 CPU)

ABEL (AdaBelief, Zhuang et al. 2020; inline, eps 1e-16, bias-corrected, decoupled wd, no
rectification) primary and RADAM (torch RAdam, decoupled wd) secondary (Holm m=2) vs the
exact H170 CTRL AdamW recipe; identical CTRL loss, lr 1e-4, betas (0.9, 0.999), wd 1e-4.
Merged H234/H232 machinery, fresh per-seed folds 237141-237143, 1,800 updates. DL-Val91:
ADVANCE iff median gain vs r882 > +0.002, family LCB95 > 0, Holm p < 0.05. xbabe1 CPU
taskset 44-47; memory/load pause (MemAvailable <20 GiB pause, >=22 GiB resume, <12 GiB
hard stop); compute stop 2026-11-03T06:30Z.

Agent-Session: rd_opus
Agent-Model: claude-opus-5-5
Agent-Task: H237 prereg
…be2 taskset 48-51

Per hw_t0036 (sha256 2d2cb87a...): xbabe1 MemAvailable 16-17 GiB < the 22 GiB gate; xbabe2
~70 GiB. Host xbabe2, cores 48-51 (avoid H231/H233/H236), load5 pause >108 / resume <=100,
free >= 300 GB, inputs re-pinned to a hash-identical r882 copy on xbabe2. Memory pause/stop,
RSS, threads, compute stop and all science unchanged. No smoke or run happened on xbabe1.

Agent-Session: rd_opus
Agent-Model: claude-opus-5-5
Agent-Task: H237 prereg A1
@jepsontaylor jepsontaylor changed the title research(h237): preregister AdaBelief/RAdam for the r882 adapter continuation (xbabe1 CPU) research(h237): preregister AdaBelief/RAdam for the r882 adapter continuation (xbabe2 CPU, A1) Nov 3, 2026

@jepsontaylor jepsontaylor left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same-agent review (rd_opus), head 26fb142e5fa943d01e7df21d2bdf9183b46a4c1a. This is not an independent review.

  • Science.
    • treatment.py: inline AdaBelief equals the reference update over 30 steps (to 1e-12) and skips None gradients; RAdam is torch's with decoupled wd; every arm uses the CTRL loss.
    • analysis.py: seeds and per-seed folds 237141–237143, arms CONTROL/ABEL/RADAM, Holm m = 2 with the +0.002 margin.
    • runner.py: identical to merged H234 apart from the host and wave name.
  • Monitor.
    • Memory below 20 GiB pauses the worker's own group, resuming at 22 GiB; below 12 GiB is a hard stop.
    • Load5 > 108 pauses, resuming at ≤ 100 (A1). Hysteresis is tested.
    • Only the worker's own process group is ever signalled.
  • A1 (host only, pre-outcome). Recorded in the PREREG Deviations section and the claim receipt. All pins re-verified on xbabe2.
  • Pre-merge smoke at this head on xbabe2: PASS.
  • Checks. 15 tests passed, ruff clean, 7 gates rc 0.
  • Findings. None blocking.

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