queelius commited on
Commit
0839939
Β·
verified Β·
1 Parent(s): f5ab64e

Update Model Card for micro-pilot-v1

Browse files
Files changed (1) hide show
  1. README.md +193 -0
README.md ADDED
@@ -0,0 +1,193 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ language:
4
+ - en
5
+ library_name: pytorch
6
+ tags:
7
+ - reinforcement-learning
8
+ - rlvr
9
+ - latent-cot
10
+ - grpo
11
+ - dapo
12
+ - self-supervised-learning
13
+ - pytorch
14
+ datasets:
15
+ - queelius/big-probs-phase1-data
16
+ ---
17
+
18
+ # Big-Probs Phase 1: Small-Model Latent-CoT RL Pilot Checkpoints
19
+
20
+ Trained PyTorch checkpoints, training telemetry, and evaluation artifacts for the [Big-Probs Phase 1 Latent-CoT RL Pilot](https://github.com/queelius/big-probs), testing whether teacher-free self-supervised RL (Dr. GRPO + DAPO Clip-Higher + frozen-anchor proper scoring rewards) and continuous/hybrid latent thought interfaces enable small decoder-only Transformers to outperform pause-token controls and FLOPs-matched baselines.
21
+
22
+ - **Code & Methodology:** [https://github.com/queelius/big-probs](https://github.com/queelius/big-probs)
23
+ - **Stratified Datasets:** [https://huggingface.co/datasets/queelius/big-probs-phase1-data](https://huggingface.co/datasets/queelius/big-probs-phase1-data)
24
+ - **Latest Published Tag:** `micro-pilot-v1`
25
+
26
+ > **Scope Notice:** CPU micro-scale proof-of-life & pipeline validation (distinct from 160M/410M/1.0B H100 Stage 1).
27
+
28
+ ## Published Arms (`micro-pilot-v1/`)
29
+
30
+ | Directory | Arm | Preset | Variant | Parameters | Steps | Interface / Reward |
31
+ | :--- | :--- | :--- | :--- | ---: | ---: | :--- |
32
+ | `micro-pilot-v1/b1/` | `B1` | `micro-small` | `ntp` | 984,192 | 80 | Supervised NTP |
33
+ | `micro-pilot-v1/b2/` | `B2` | `micro-large` | `ntp` | 2,853,312 | 80 | Supervised NTP |
34
+ | `micro-pilot-v1/b3/` | `B3` | `micro-small` | `pause` | 984,704 | 80 | Supervised NTP |
35
+ | `micro-pilot-v1/b4/` | `B4` | `micro-small` | `continuous_latent` | 1,000,704 | 80 | Supervised NTP |
36
+ | `micro-pilot-v1/i2_hybrid/` | `I2-Hybrid` | `micro-small` | `hybrid_latent+discrete_thought` | 1,033,600 | 20 | `I2_hybrid` / `R3_brier` (`T2_self`) |
37
+ | `micro-pilot-v1/rl_r1/` | `RL-R1` | `micro-small` | `ntp+discrete_thought` | 984,192 | 20 | `I1_discrete` / `R1_exact` (`T2_self`) |
38
+ | `micro-pilot-v1/rl_r3/` | `RL-R3` | `micro-small` | `ntp+discrete_thought` | 984,192 | 20 | `I1_discrete` / `R3_brier` (`T2_self`) |
39
+
40
+ ## Evaluation Summary
41
+
42
+ - **Track 1 Β§5.5 Falsification Verdict (`micro-pilot-v1`):** `FALSIFIED`
43
+ - **Rationale:** Falsified: no small-model latent-CoT or RL arm simultaneously beat pause control B3 (0.0%) and FLOPs-matched B2 (6.2%). Best candidate `I2-Hybrid` reached 3.1% at 2.51x B2 FLOPs.
44
+ - **Run Config:** `seed=42`, `n_train=600`, `sup_steps=80`, `rl_steps=20`, `group_size=4`, `thought_len=6`, `n_ahead=4`
45
+
46
+ ### Summary Comparison Table (All 7 Arms)
47
+
48
+ | Arm | Params | FLOPs/tok (vs B2) | Exact Acc | Hard-BPB | OOD pass@max_k | Ξ”NLL_swap | Ξ”NLL_trunc | Mono Depth | Reg3 ECE | Reg3 Brier |
49
+ | :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | :---: | ---: | ---: |
50
+ | `B1` | 984,192 | 0.34Γ— | 3.1% | 2.318 | 31.2% | β€” | β€” | β€” | 0.005 | -0.994 |
51
+ | `B2` | 2,853,312 | 1.00Γ— | 6.2% | 2.266 | 31.2% | β€” | β€” | β€” | 0.040 | -1.006 |
52
+ | `B3` | 984,704 | 1.71Γ— | 0.0% | 2.317 | 31.2% | β€” | β€” | β€” | 0.032 | -1.003 |
53
+ | `B4` | 1,000,704 | 1.74Γ— | 3.1% | 2.272 | 18.8% | -0.001 | +2.909 | No | 0.045 | -0.989 |
54
+ | `RL-R1` | 984,192 | 3.10Γ— | 3.1% | 2.326 | 31.2% | -0.002 | +0.001 | No | 0.026 | -0.997 |
55
+ | `RL-R3` | 984,192 | 3.10Γ— | 1.6% | 2.309 | 25.0% | +0.000 | -0.001 | No | 0.040 | -1.005 |
56
+ | `I2-Hybrid` | 1,033,600 | 2.51Γ— | 3.1% | 2.271 | 37.5% | -0.003 | +2.732 | No | 0.032 | -0.998 |
57
+
58
+ ## 2. Diagnostic 1 & 2 β€” Accuracy & `pass@k` by Hop Depth (ID `d={2,4}` vs OOD `d={6,8}`)
59
+
60
+ | Arm | Greedy Acc `d=2` | Greedy Acc `d=4` | Greedy Acc `d=6` (OOD) | Greedy Acc `d=8` (OOD) | ID `pass@1` | OOD `pass@1` | OOD `pass@16` |
61
+ | :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
62
+ | `B1` | 12.5% | 0.0% | 0.0% | 0.0% | 3.1% | 2.0% | 31.2% |
63
+ | `B2` | 6.2% | 0.0% | 6.2% | 12.5% | 2.7% | 2.3% | 31.2% |
64
+ | `B3` | 0.0% | 0.0% | 0.0% | 0.0% | 2.3% | 2.7% | 31.2% |
65
+ | `B4` | 12.5% | 0.0% | 0.0% | 0.0% | 5.1% | 1.2% | 18.8% |
66
+ | `RL-R1` | 6.2% | 0.0% | 0.0% | 6.2% | 3.9% | 2.0% | 31.2% |
67
+ | `RL-R3` | 0.0% | 0.0% | 0.0% | 6.2% | 2.0% | 2.3% | 25.0% |
68
+ | `I2-Hybrid` | 0.0% | 0.0% | 6.2% | 6.2% | 3.5% | 2.7% | 37.5% |
69
+
70
+ ---
71
+
72
+ ## 3. Diagnostic 3 β€” Causal Thought Faithfulness (Swap, Format-Matched Truncation & Depth Scaling)
73
+
74
+ | Arm | Mode | NLL(thought) | Ξ”NLL_swap (nats) | Ξ”NLL_trunc (nats) | Swap `d=2` | Swap `d=4` | Swap `d=6` | Swap `d=8` | Monotonic? |
75
+ | :--- | :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | :---: |
76
+ | `B1` | `ntp` | 3.440 | +0.0000 | +0.0000 | +0.0000 | +0.0000 | +0.0000 | +0.0000 | No |
77
+ | `B2` | `ntp` | 3.362 | +0.0000 | +0.0000 | +0.0000 | +0.0000 | +0.0000 | +0.0000 | No |
78
+ | `B3` | `pause` | 3.437 | +0.0000 | +0.0000 | +0.0000 | +0.0000 | +0.0000 | +0.0000 | No |
79
+ | `B4` | `continuous` | 3.371 | -0.0008 | +2.9091 | +0.0141 | -0.0125 | +0.0051 | -0.0101 | No |
80
+ | `RL-R1` | `discrete` | 3.452 | -0.0016 | +0.0008 | -0.0063 | +0.0001 | -0.0005 | +0.0002 | No |
81
+ | `RL-R3` | `discrete` | 3.426 | +0.0003 | -0.0009 | -0.0016 | +0.0005 | +0.0022 | +0.0002 | No |
82
+ | `I2-Hybrid` | `hybrid` | 3.369 | -0.0026 | +2.7323 | -0.0005 | -0.0064 | -0.0029 | -0.0007 | No |
83
+
84
+ ---
85
+
86
+ ## 4. Diagnostic 4 β€” Distributional Calibration (Regime 1 vs Regime 3 Aleatoric Negative Control)
87
+
88
+ | Arm | Reg1 ECE | Reg1 Brier (`[-2,0]`) | Reg3 ECE (Aleatoric) | Reg3 Brier (`[-2,0]`) | Reg3 Mean Conf | Reg3 Acc | Reg3 Overconf Gap |
89
+ | :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
90
+ | `B1` | 0.0235 | -0.9629 | 0.0046 | -0.9936 | 0.0162 | 0.0208 | -0.0046 |
91
+ | `B2` | 0.0131 | -0.9595 | 0.0397 | -1.0056 | 0.0397 | 0.0000 | +0.0397 |
92
+ | `B3` | 0.0517 | -0.9640 | 0.0323 | -1.0027 | 0.0323 | 0.0000 | +0.0323 |
93
+ | `B4` | 0.0197 | -0.9586 | 0.0447 | -0.9889 | 0.0178 | 0.0625 | -0.0447 |
94
+ | `RL-R1` | 0.0262 | -0.9644 | 0.0255 | -0.9971 | 0.0255 | 0.0000 | +0.0255 |
95
+ | `RL-R3` | 0.0380 | -0.9632 | 0.0400 | -1.0046 | 0.0400 | 0.0000 | +0.0400 |
96
+ | `I2-Hybrid` | 0.0354 | -0.9581 | 0.0325 | -0.9982 | 0.0325 | 0.0000 | +0.0325 |
97
+
98
+ ---
99
+
100
+ ## 5. Diagnostic 5 β€” Training Stability Telemetry
101
+
102
+ | Arm | Steps | Final Train Loss / `loss_pg` | Final Val NLL / `loss_ntp` | Mean Reward | Policy Entropy | `sigma=0` Frac | No-Thought NLL Drift |
103
+ | :--- | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
104
+ | `B1` | 80 | 1.4134 | 1.2866 | β€” | β€” | β€” | β€” |
105
+ | `B2` | 80 | 1.3435 | 1.2898 | β€” | β€” | β€” | β€” |
106
+ | `B3` | 80 | 1.4950 | 1.2776 | β€” | β€” | β€” | β€” |
107
+ | `B4` | 80 | 1.5092 | 1.3047 | β€” | β€” | β€” | β€” |
108
+ | `RL-R1` | 20 | -0.0000 | 1.3647 | +0.5000 | 2.727 | 1.00 | -0.0686 |
109
+ | `RL-R3` | 20 | +0.0000 | 1.3456 | -0.0124 | 2.269 | 0.00 | +0.0559 |
110
+ | `I2-Hybrid` | 20 | -0.0000 | 1.4726 | +0.1331 | 4.122 | 0.00 | -0.5746 |
111
+
112
+ ### Headline Criterion Checklist (`I2-Hybrid`)
113
+
114
+ - `teacher_free`: **PASS**
115
+ - `b2_accuracy_parity`: **FAIL**
116
+ - `b2_flops_matched`: **FAIL**
117
+ - `beats_b3_by_3pp`: **PASS**
118
+ - `beats_b3_strict`: **PASS**
119
+ - `swap_sensitivity_gt_0_15`: **FAIL**
120
+ - `trunc_faithfulness_gt_0`: **PASS**
121
+ - `monotonic_ood_depth_scaling`: **FAIL**
122
+ - `ood_pass_at_k_expansion`: **PASS**
123
+ - `calibration_stable`: **PASS**
124
+
125
+ ## Repository Structure
126
+
127
+ ```text
128
+ micro-pilot-v1/
129
+ b1/
130
+ checkpoint.pt # PyTorch state_dict + train_config (+ rl_config)
131
+ config.json # ModelConfig + TrainConfig (+ RLConfig) metadata
132
+ metrics.jsonl # Step-by-step training/validation telemetry
133
+ b2/
134
+ checkpoint.pt # PyTorch state_dict + train_config (+ rl_config)
135
+ config.json # ModelConfig + TrainConfig (+ RLConfig) metadata
136
+ metrics.jsonl # Step-by-step training/validation telemetry
137
+ b3/
138
+ checkpoint.pt # PyTorch state_dict + train_config (+ rl_config)
139
+ config.json # ModelConfig + TrainConfig (+ RLConfig) metadata
140
+ metrics.jsonl # Step-by-step training/validation telemetry
141
+ b4/
142
+ checkpoint.pt # PyTorch state_dict + train_config (+ rl_config)
143
+ config.json # ModelConfig + TrainConfig (+ RLConfig) metadata
144
+ metrics.jsonl # Step-by-step training/validation telemetry
145
+ i2_hybrid/
146
+ checkpoint.pt # PyTorch state_dict + train_config (+ rl_config)
147
+ config.json # ModelConfig + TrainConfig (+ RLConfig) metadata
148
+ metrics.jsonl # Step-by-step training/validation telemetry
149
+ rl_r1/
150
+ checkpoint.pt # PyTorch state_dict + train_config (+ rl_config)
151
+ config.json # ModelConfig + TrainConfig (+ RLConfig) metadata
152
+ metrics.jsonl # Step-by-step training/validation telemetry
153
+ rl_r3/
154
+ checkpoint.pt # PyTorch state_dict + train_config (+ rl_config)
155
+ config.json # ModelConfig + TrainConfig (+ RLConfig) metadata
156
+ metrics.jsonl # Step-by-step training/validation telemetry
157
+ micro_pilot_report.md # Full 5-diagnostic Markdown evaluation report
158
+ micro_pilot_metrics.json # Machine-readable diagnostic metrics payload
159
+ manifest.json # SHA256 checksums and file sizes
160
+ ```
161
+
162
+ Future H100 Stage 1 runs (`160m` / `410m` / `1b`) are published under sibling tags (e.g., `h100-stage1/`) using the same `scripts/publish_hf.py` publisher without overwriting prior tags.
163
+
164
+ ## Loading a Checkpoint in PyTorch
165
+
166
+ ```python
167
+ import json
168
+ import torch
169
+ from huggingface_hub import hf_hub_download
170
+ from phase1_pilot.config import ModelConfig
171
+ from phase1_pilot.data import PilotTokenizer
172
+ from phase1_pilot.models import build_model
173
+
174
+ REPO_ID = "queelius/big-probs-phase1-models"
175
+ ARM_PATH = "micro-pilot-v1/i2_hybrid" # or b1, b2, b3, b4, rl_r1, rl_r3
176
+
177
+ cfg_file = hf_hub_download(repo_id=REPO_ID, filename=f"{ARM_PATH}/config.json")
178
+ ckpt_file = hf_hub_download(repo_id=REPO_ID, filename=f"{ARM_PATH}/checkpoint.pt")
179
+
180
+ meta = json.loads(open(cfg_file, encoding="utf-8").read())
181
+ model_cfg = ModelConfig(**meta["model_config"])
182
+ tokenizer = PilotTokenizer()
183
+ kwargs = {"pause_token_id": tokenizer.pause_id} if model_cfg.variant == "pause" else {}
184
+ model = build_model(model_cfg, **kwargs)
185
+
186
+ ckpt = torch.load(ckpt_file, map_location="cpu", weights_only=False)
187
+ model.load_state_dict(ckpt["model_state_dict"], strict=True)
188
+ model.eval()
189
+ ```
190
+
191
+ ## License
192
+
193
+ Released under the MIT License. See the [Big-Probs repository](https://github.com/queelius/big-probs) for full project documentation.