Asilarkness commited on
Commit
9be1e6e
·
verified ·
1 Parent(s): 159a233

Add reasoning SFT then constrained RL v3 policy

Browse files
candidates/budgie-alignment-v2/reasoning-sft-then-rl-v3/bootstrap/REASONING_SFT_THEN_RL_V3_POLICY.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Budgie reasoning SFT → constrained RL v3
2
+
3
+ ## Principle
4
+
5
+ Do not ask RL to create reasoning ability from sparse rewards. First build a stronger reasoning prior with long, verified SFT; only if SFT passes protected gates may information-management RL continue from that accepted SFT anchor.
6
+
7
+ The architecture remains 487,800,064 parameters. The immutable recovery base is `verified-math-a025`.
8
+
9
+ ## Stage A — long reasoning SFT
10
+
11
+ Training data:
12
+
13
+ - at least 1,200 long, difficult, symbolically verified mathematics question/solution rows from unrelated allowed sources such as `open-r1/OpenR1-Math-220k`;
14
+ - optional independently checkable formal-logic and general-reasoning rows from unrelated sources;
15
+ - 105 manual information-management ideal dialogues as a small retention stream;
16
+ - zero GSM8K, MATH-500, Hendrycks MATH, ARC, or FOLIO training rows.
17
+
18
+ Filtering:
19
+
20
+ - normalized exact match and shared 12-token windows against every fixed held-out prompt;
21
+ - source-level benchmark-family bans;
22
+ - deduplication;
23
+ - length and repetition checks;
24
+ - `math_verify` equivalence between the supplied reference solution and answer;
25
+ - a separate held-out random-math calibration split.
26
+
27
+ Optimization:
28
+
29
+ - start from `verified-math-a025`;
30
+ - FP32 master weights and BF16 autocast;
31
+ - full-sequence assistant-only SFT;
32
+ - frozen-leader KL anchoring;
33
+ - curriculum from medium to hard and short to long;
34
+ - early checkpoints and task-vector line search;
35
+ - no optimizer state on the Hub.
36
+
37
+ Stage A is accepted only if random verified mathematics improves and fixed GSM/MATH/ARC/FOLIO plus dialogue/repetition do not regress.
38
+
39
+ ## Stage B — constrained information RL
40
+
41
+ Only after an accepted Stage A anchor:
42
+
43
+ - reuse manual multi-turn information groups;
44
+ - add verified math RL groups at a minimum 2:1 math-to-information ratio;
45
+ - clipped token-level GRPO/PPO;
46
+ - KL to the accepted SFT anchor and to the original leader;
47
+ - project conflicting information gradients out of the protected math gradient;
48
+ - rollback every 4–8 optimizer updates if any shadow capability gate falls.
49
+
50
+ No public release unless the full fixed, expanded, HelpSteer, dialogue, repetition, and full-split gates are non-regressing.