File size: 1,170 Bytes
23c39b5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: baselines.loop_cot@LoopedCoTTransformer
head: lm_head@LMHead

# NOTE: no half_layers — the single looped stack uses the FULL n_layers
# (24 at size L), matching transformer / ut / looped_tf parameters.

# Looped transformer with a soft-CoT channel between cycles:
#   z0 = frozen random init (UT-style)
#   each cycle: z <- core( z + alpha * decode(z) + beta * x )
# where decode(z) re-embeds z through a top-k softmax over the vocab.
cycles: 4

# CoT channel (loop-cot reference defaults)
cot_gate_mode: dynamic       # per-token sigmoid gates; "scalar" for 2 learned scalars
cot_decode_topk: 128
cot_decode_topk_chunk_size: 8192
cot_decode_temperature: 1.0
cot_detach_decode_embedding: false
cot_alpha_init: 0.5
cot_beta_init: 0.5
cot_beta_fixed: null   # set to 1.0 for UT-style hard input injection (beta not learned)
cot_alpha_fixed_per_cycle: null   # e.g. [0.0,1.0,1.0,1.0]: per-cycle constant alpha; 0.0 skips decode

# BP warmup: ramp bp_min_cycles -> cycles (full backprop) over the first
# 20% of training steps (staircase). Start at 2 to match ut.yaml exactly,
# so the ONLY difference vs UT is the CoT channel.
bp_warmup_ratio: 0.2
bp_min_cycles: 2