SixSigmaEngineer commited on
Commit
58a8945
·
verified ·
1 Parent(s): 387cd50

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +64 -0
README.md CHANGED
@@ -1,3 +1,67 @@
1
  ---
2
  license: apache-2.0
 
 
 
 
 
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
  license: apache-2.0
3
+ language:
4
+ - en
5
+ tags:
6
+ - transformers
7
+ - residual-connections
8
+ - scaling-laws
9
+ - language-modeling
10
+ - reliability
11
+ pretty_name: "Review Residuals — Scaling Sweep Results"
12
+ size_categories:
13
+ - n<1K
14
  ---
15
+
16
+ # Review Residuals — Scaling Sweep Results
17
+
18
+ Supporting data, code, and paper for **"Review Residuals: Update-Conditioned Residual Gating for Transformers"** (Kyle Kramer, NeraTech LLC, 2026).
19
+
20
+ Review Residuals scale each transformer sublayer's proposed update by a small learned gate conditioned on *both* the current state **and** the proposed update — an in-network analogue of *independent verification*. Trained from scratch with parameter-matched baselines, the advantage over both a Highway gate and the standard residual **emerges with scale**.
21
+
22
+ **Code & full repo:** https://github.com/SixSigmaEngineer/review-residuals
23
+
24
+ ## What's here
25
+
26
+ - `scaling_v8.csv` — the 42 training runs (per-seed validation losses) behind every number in the paper.
27
+ - `train.py`, `analyze_results.py`, `make_emergence_figure.py`, `run_on_runpod.ipynb` — training, analysis, figure, and cloud-GPU code.
28
+ - `review_residuals.pdf` — the technical paper; plain-English companion included.
29
+ - Figures: `mechanism_additive.png`, `emergence_curve.png`.
30
+
31
+ ## `scaling_v8.csv` schema
32
+
33
+ | column | meaning |
34
+ |---|---|
35
+ | `size` | model size group (60M, 150M, 320M, 590M, 1B) |
36
+ | `variant` | `review_neutral` (ours), `highway`, or `standard` (both baselines parameter-matched up to Review) |
37
+ | `seed` | random seed |
38
+ | `params_M` | actual parameter count (millions) |
39
+ | `steps` | training steps |
40
+ | `val_loss` | validation loss (lower is better) |
41
+ | `ece` | expected calibration error (where measured) |
42
+ | `minutes` | wall-clock training time |
43
+
44
+ ## Headline result
45
+
46
+ | Size | Review | Highway | Standard | Review wins? |
47
+ |---|:--:|:--:|:--:|:--|
48
+ | 60M | 1.6891 | 1.6923 | **1.6805** | no |
49
+ | 150M | 1.5576 | 1.5625 | 1.5548 | tie |
50
+ | 320M | **1.5001** | 1.5042 | 1.5037 | tie |
51
+ | 590M | **1.4795** | 1.4889 | 1.4901 | **yes (p<0.05)** |
52
+ | 1B | **1.4876** | 1.5031 | 1.5040 | **yes (strong trend)** |
53
+
54
+ Reproduce the table and t-tests with `python analyze_results.py`.
55
+
56
+ ## Citation
57
+
58
+ ```bibtex
59
+ @misc{kramer2026reviewresiduals,
60
+ title = {Review Residuals: Update-Conditioned Residual Gating for Transformers},
61
+ author = {Kramer, Kyle},
62
+ year = {2026},
63
+ note = {NeraTech LLC}
64
+ }
65
+ ```
66
+
67
+ Licensed under Apache-2.0.