Fair comparisons
Strategies share attention, MLP, tokenizer, data, training pipeline, and declared tuning budgets.
Software system 02 / Research
Hyphae Transformer is a from-scratch PyTorch framework for controlled research on residual strategies in decoder-only transformers.
Turn architecture research into a replayable process rather than a folder of scripts and selectively reported runs.
01 / Benefits
Strategies share attention, MLP, tokenizer, data, training pipeline, and declared tuning budgets.
Canonical, split, and RMS-normalized ReZero strategies expose explicit residual gates and trajectories.
Hypotheses, stages, budgets, manifests, evidence, and reports are structured rather than implied by filenames.
Atomic checkpoints and append-only histories restore optimizer, data source, and RNG state; completed manifests do not rerun.
Failed seeds, inconclusive intervals, invalid attempts, and stop decisions remain first-class evidence.
Cloud promotion requires local invariants, an explicit cost/lifetime budget, artifact retrieval, and cleanup.
02 / Architecture
A result advances only through ordered gates. Interim curves do not authorize optional stopping.
Question, strategy, baseline, seeds, data identity, effect threshold, budgets, and stop rules
Schemas, source and corpus identity, model geometry, finite-state and contract checks
Correctness-only run before spending the full token or hardware budget
Paired observations, fixed validation grid, checkpoints, gate trajectories, failures, and confidence intervals
Exact manifest, allowlisted runner, hard time/cost cap, artifact retrieval, and resource destruction
Aggregate JSON/HTML, per-seed evidence, verdict, non-claims, protocol defects, and next decision
03 / Surface
ReZero gates, decoder-only model, grouped-query KV caches, RMSNorm, SwiGLU, RoPE, optimizers, and signal diagnostics.
Typed schemas, campaign runner, registry, memory, budgets, search, evaluator, serialization, and reports.
Frozen-backbone control heads for answer, request-evidence, and abstain decisions with strict evidence-pointer bounds.
Checksum-pinned WikiText-2, canonical enwiki8 ranges, portable paths, containers, and an allowlisted manifest runner.
04 / Evidence
The strongest promoted result is narrow: one residual strategy under a specific 30M campaign, not universal transformer superiority.
95% CI [+1.59%, +3.06%]
eight paired seeds
secondary metric
protocol defect remains visible
The eight-seed 30M campaign cleared its preregistered practical threshold. Earlier depth-rung primary verdicts remained inconclusive, and the cloud budget overrun is reported rather than erased.
Hyphae Transformer