GOVINDFROM commited on
Commit
5135496
·
verified ·
1 Parent(s): 38a786f

Automated push from Zaratan

Browse files
Files changed (48) hide show
  1. results/g3-gam0.0-elbo0.05-s0.json +48 -0
  2. results/g3-gam0.0-elbo0.05-s1.json +48 -0
  3. results/g3-gam0.0-elbo0.2-s0.json +48 -0
  4. results/g3-gam0.0-elbo0.2-s1.json +48 -0
  5. results/g3-gam0.0-elbo1.0-s0.json +48 -0
  6. results/g3-gam0.0-elbo1.0-s1.json +48 -0
  7. results/g3-gam0.1-elbo0.05-s0.json +48 -0
  8. results/g3-gam0.1-elbo0.05-s1.json +48 -0
  9. results/g3-gam0.1-elbo0.2-s0.json +48 -0
  10. results/g3-gam0.1-elbo0.2-s1.json +48 -0
  11. results/g3-gam0.1-elbo1.0-s0.json +48 -0
  12. results/g3-gam0.1-elbo1.0-s1.json +48 -0
  13. results/g3-gam0.5-elbo0.05-s0.json +49 -0
  14. results/g3-gam0.5-elbo0.05-s1.json +49 -0
  15. results/g3-gam0.5-elbo0.2-s0.json +49 -0
  16. results/g3-gam0.5-elbo0.2-s1.json +49 -0
  17. results/g3-gam0.5-elbo1.0-s0.json +49 -0
  18. results/g3-gam0.5-elbo1.0-s1.json +49 -0
  19. results/g3-gam1.0-elbo0.05-s0.json +49 -0
  20. results/g3-gam1.0-elbo0.05-s1.json +49 -0
  21. results/g3-gam1.0-elbo0.2-s0.json +49 -0
  22. results/g3-gam1.0-elbo0.2-s1.json +49 -0
  23. results/g3-gam1.0-elbo1.0-s0.json +49 -0
  24. results/g3-gam1.0-elbo1.0-s1.json +49 -0
  25. results/g3-gam2.0-elbo0.05-s0.json +49 -0
  26. results/g3-gam2.0-elbo0.05-s1.json +49 -0
  27. results/g3-gam2.0-elbo0.2-s0.json +49 -0
  28. results/g3-gam2.0-elbo0.2-s1.json +49 -0
  29. results/g3-gam2.0-elbo1.0-s0.json +49 -0
  30. results/g3-gam2.0-elbo1.0-s1.json +49 -0
  31. results/g4-agree-gam0.5-dw0-s0.json +49 -0
  32. results/g4-agree-gam0.5-dw0-s1.json +49 -0
  33. results/g4-copy-gam0.5-dw0-s0.json +49 -0
  34. results/g4-copy-gam0.5-dw0-s1.json +49 -0
  35. results/g4-copy-gam0.5-dw1-s0.json +49 -0
  36. results/g4-copy-gam0.5-dw1-s1.json +49 -0
  37. results/g4-copy-gam2.0-dw0-s0.json +49 -0
  38. results/g4-copy-gam2.0-dw0-s1.json +49 -0
  39. results/g4-copy-gam2.0-dw1-s0.json +49 -0
  40. results/g4-copy-gam2.0-dw1-s1.json +49 -0
  41. results/g4-copy-gam8.0-dw0-s0.json +49 -0
  42. results/g4-copy-gam8.0-dw0-s1.json +49 -0
  43. results/g4-copy-gam8.0-dw1-s0.json +49 -0
  44. results/g4-copy-gam8.0-dw1-s1.json +49 -0
  45. slurm/g4.sh +38 -0
  46. slurm/grid3.sh +37 -0
  47. src/diffusion.py +80 -2
  48. src/train.py +14 -2
results/g3-gam0.0-elbo0.05-s0.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.0,
17
+ "elbo_w": 0.05,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 0,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.0-elbo0.05-s0"
40
+ },
41
+ "minutes": 5.432604718208313,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.0-elbo0.05-s1.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.0,
17
+ "elbo_w": 0.05,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 1,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.0-elbo0.05-s1"
40
+ },
41
+ "minutes": 5.529767870903015,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.0-elbo0.2-s0.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.0,
17
+ "elbo_w": 0.2,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 0,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.0-elbo0.2-s0"
40
+ },
41
+ "minutes": 5.417752428849538,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.0-elbo0.2-s1.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.0,
17
+ "elbo_w": 0.2,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 1,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.0-elbo0.2-s1"
40
+ },
41
+ "minutes": 5.443442535400391,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.0-elbo1.0-s0.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.0,
17
+ "elbo_w": 1.0,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 0,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.0-elbo1.0-s0"
40
+ },
41
+ "minutes": 5.452999484539032,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.0-elbo1.0-s1.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.0,
17
+ "elbo_w": 1.0,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 1,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.0-elbo1.0-s1"
40
+ },
41
+ "minutes": 5.407823407649994,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.1-elbo0.05-s0.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.1,
17
+ "elbo_w": 0.05,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 0,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.1-elbo0.05-s0"
40
+ },
41
+ "minutes": 8.475962579250336,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.1-elbo0.05-s1.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.1,
17
+ "elbo_w": 0.05,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 1,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.1-elbo0.05-s1"
40
+ },
41
+ "minutes": 8.52948188384374,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.1-elbo0.2-s0.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.1,
17
+ "elbo_w": 0.2,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 0,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.1-elbo0.2-s0"
40
+ },
41
+ "minutes": 8.450251412391662,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.1-elbo0.2-s1.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.1,
17
+ "elbo_w": 0.2,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 1,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.1-elbo0.2-s1"
40
+ },
41
+ "minutes": 8.430337603886922,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.1-elbo1.0-s0.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.1,
17
+ "elbo_w": 1.0,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 0,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.1-elbo1.0-s0"
40
+ },
41
+ "minutes": 8.355311985810598,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.1-elbo1.0-s1.json ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.1,
17
+ "elbo_w": 1.0,
18
+ "group": 4,
19
+ "coord_every": 4,
20
+ "k_frac": 0.25,
21
+ "correct_weight": 1.0,
22
+ "ramp_frac": 0.2,
23
+ "task": "agree",
24
+ "coupling": 4,
25
+ "seq_len": 128,
26
+ "n_train": 200000,
27
+ "n_eval": 500,
28
+ "d": 384,
29
+ "layers": 6,
30
+ "heads": 6,
31
+ "pe": "rope",
32
+ "bs": 64,
33
+ "steps": 20000,
34
+ "lr": 0.0003,
35
+ "warmup": 500,
36
+ "seed": 1,
37
+ "data_root": "data",
38
+ "eval_bs": 100,
39
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.1-elbo1.0-s1"
40
+ },
41
+ "minutes": 8.506091515223185,
42
+ "compute": {
43
+ "params": 10660608,
44
+ "train_tokens": 163840000,
45
+ "train_flops_approx": 10479804088320000,
46
+ "fwd_per_step": 1
47
+ }
48
+ }
results/g3-gam0.5-elbo0.05-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.05,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.5-elbo0.05-s0"
41
+ },
42
+ "minutes": 10.564957304795582,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam0.5-elbo0.05-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.05,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.5-elbo0.05-s1"
41
+ },
42
+ "minutes": 10.484416369597117,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam0.5-elbo0.2-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.2,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.5-elbo0.2-s0"
41
+ },
42
+ "minutes": 10.366264355182647,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam0.5-elbo0.2-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.2,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.5-elbo0.2-s1"
41
+ },
42
+ "minutes": 10.578846287727355,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam0.5-elbo1.0-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.5-elbo1.0-s0"
41
+ },
42
+ "minutes": 10.441694112618764,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam0.5-elbo1.0-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam0.5-elbo1.0-s1"
41
+ },
42
+ "minutes": 10.469638713200887,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam1.0-elbo0.05-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 1.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.05,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam1.0-elbo0.05-s0"
41
+ },
42
+ "minutes": 10.54262443780899,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam1.0-elbo0.05-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 1.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.05,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam1.0-elbo0.05-s1"
41
+ },
42
+ "minutes": 10.598351208368937,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam1.0-elbo0.2-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 1.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.2,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam1.0-elbo0.2-s0"
41
+ },
42
+ "minutes": 10.403599965572358,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam1.0-elbo0.2-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 1.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.2,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam1.0-elbo0.2-s1"
41
+ },
42
+ "minutes": 10.530384941895802,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam1.0-elbo1.0-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 1.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam1.0-elbo1.0-s0"
41
+ },
42
+ "minutes": 10.438667662938435,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam1.0-elbo1.0-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 1.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam1.0-elbo1.0-s1"
41
+ },
42
+ "minutes": 10.58419309457143,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam2.0-elbo0.05-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 2.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.05,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam2.0-elbo0.05-s0"
41
+ },
42
+ "minutes": 10.587692022323608,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam2.0-elbo0.05-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 2.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.05,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam2.0-elbo0.05-s1"
41
+ },
42
+ "minutes": 10.614048687616984,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam2.0-elbo0.2-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 2.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.2,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam2.0-elbo0.2-s0"
41
+ },
42
+ "minutes": 10.523026792208354,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam2.0-elbo0.2-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 2.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 0.2,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam2.0-elbo0.2-s1"
41
+ },
42
+ "minutes": 10.575358454386393,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam2.0-elbo1.0-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 2.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam2.0-elbo1.0-s0"
41
+ },
42
+ "minutes": 10.310235365231831,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g3-gam2.0-elbo1.0-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 1.0,
16
+ "gamma": 2.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g3-gam2.0-elbo1.0-s1"
41
+ },
42
+ "minutes": 10.305338247617085,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-agree-gam0.5-dw0-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 0.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 0,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-agree-gam0.5-dw0-s0"
41
+ },
42
+ "minutes": 6.659133970737457,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-agree-gam0.5-dw0-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 0.0,
4
+ "2": 0.0,
5
+ "4": 0.0,
6
+ "8": 0.0,
7
+ "16": 0.0,
8
+ "32": 0.0,
9
+ "64": 0.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 0,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "agree",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-agree-gam0.5-dw0-s1"
41
+ },
42
+ "minutes": 6.71096578836441,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam0.5-dw0-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 0,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam0.5-dw0-s0"
41
+ },
42
+ "minutes": 6.716651705900828,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam0.5-dw0-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 0,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam0.5-dw0-s1"
41
+ },
42
+ "minutes": 6.62840025027593,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam0.5-dw1-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam0.5-dw1-s0"
41
+ },
42
+ "minutes": 8.691880404949188,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam0.5-dw1-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 0.5,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam0.5-dw1-s1"
41
+ },
42
+ "minutes": 8.653803006807964,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam2.0-dw0-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 2.0,
17
+ "dep_weighted": 0,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam2.0-dw0-s0"
41
+ },
42
+ "minutes": 6.72961677312851,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam2.0-dw0-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 2.0,
17
+ "dep_weighted": 0,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam2.0-dw0-s1"
41
+ },
42
+ "minutes": 6.645028352737427,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam2.0-dw1-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 2.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam2.0-dw1-s0"
41
+ },
42
+ "minutes": 8.62372316122055,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam2.0-dw1-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 2.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam2.0-dw1-s1"
41
+ },
42
+ "minutes": 8.700080172220867,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam8.0-dw0-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 8.0,
17
+ "dep_weighted": 0,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam8.0-dw0-s0"
41
+ },
42
+ "minutes": 6.665486351648966,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam8.0-dw0-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 8.0,
17
+ "dep_weighted": 0,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam8.0-dw0-s1"
41
+ },
42
+ "minutes": 6.602849837144216,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam8.0-dw1-s0.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 8.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 0,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam8.0-dw1-s0"
41
+ },
42
+ "minutes": 8.781805845101674,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
results/g4-copy-gam8.0-dw1-s1.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "accuracy_by_passes": {
3
+ "1": 1.0,
4
+ "2": 1.0,
5
+ "4": 1.0,
6
+ "8": 1.0,
7
+ "16": 1.0,
8
+ "32": 1.0,
9
+ "64": 1.0,
10
+ "128": 1.0
11
+ },
12
+ "args": {
13
+ "objective": "coord",
14
+ "alpha": 0.5,
15
+ "beta": 0.0,
16
+ "gamma": 8.0,
17
+ "dep_weighted": 1,
18
+ "elbo_w": 1.0,
19
+ "group": 4,
20
+ "coord_every": 4,
21
+ "k_frac": 0.25,
22
+ "correct_weight": 1.0,
23
+ "ramp_frac": 0.2,
24
+ "task": "copy",
25
+ "coupling": 4,
26
+ "seq_len": 128,
27
+ "n_train": 200000,
28
+ "n_eval": 500,
29
+ "d": 384,
30
+ "layers": 6,
31
+ "heads": 6,
32
+ "pe": "rope",
33
+ "bs": 64,
34
+ "steps": 20000,
35
+ "lr": 0.0003,
36
+ "warmup": 500,
37
+ "seed": 1,
38
+ "data_root": "data",
39
+ "eval_bs": 100,
40
+ "out": "/scratch/zt1/project/msml612/user/govind02/pcmd/runs/g4-copy-gam8.0-dw1-s1"
41
+ },
42
+ "minutes": 8.761348100503286,
43
+ "compute": {
44
+ "params": 10660608,
45
+ "train_tokens": 163840000,
46
+ "train_flops_approx": 10479804088320000,
47
+ "fwd_per_step": 1
48
+ }
49
+ }
slurm/g4.sh ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Grid 4 - the method: dependence-weighted entropy regularization.
3
+ #
4
+ # Prediction, and the thing that makes it falsifiable:
5
+ # agree/parity (positions dependent) -> accuracy at high parallelism RISES
6
+ # copy (positions independent) -> UNCHANGED at 100%, because measured
7
+ # dependence is ~0 so no penalty applies
8
+ # The un-weighted ablation (dep_weighted=0) should hurt `copy`, which is how we
9
+ # show the weighting is doing the work rather than the entropy term alone.
10
+ #SBATCH -J g4
11
+ #SBATCH -p gpu-h100
12
+ #SBATCH --gpus=h100:1
13
+ #SBATCH -c 8
14
+ #SBATCH --mem=64g
15
+ #SBATCH -t 06:00:00
16
+ #SBATCH -o logs/g4-%A_%a.out
17
+ #SBATCH --array=0-35%12
18
+ source /etc/profile
19
+ SCR=/scratch/zt1/project/msml612/user/$USER
20
+ module load python/3.10.10
21
+ export PYTHONPATH=
22
+ PY=$SCR/hf_env/bin/python
23
+ cd $SCR/pcmd/src
24
+
25
+ I=$SLURM_ARRAY_TASK_ID
26
+ TASKS=(copy agree parity); GAMMA=(0.5 2.0 8.0); DW=(1 0); SEEDS=(0 1)
27
+ T=${TASKS[$((I / 12))]}
28
+ G=${GAMMA[$(((I % 12) / 4))]}
29
+ D=${DW[$(((I % 4) / 2))]}
30
+ S=${SEEDS[$((I % 2))]}
31
+
32
+ NAME="g4-$T-gam$G-dw$D-s$S"
33
+ echo "=== $NAME ==="
34
+ $PY train.py --task $T --objective coord --coupling 4 --seed $S \
35
+ --seq_len 128 --n_train 200000 --n_eval 500 --eval_bs 100 \
36
+ --d 384 --layers 6 --heads 6 --bs 64 --steps 20000 --lr 3e-4 \
37
+ --beta 0.0 --gamma $G --dep_weighted $D --elbo_w 1.0 --ramp_frac 0.2 \
38
+ --out $SCR/pcmd/runs/$NAME
slurm/grid3.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ # Grid 3 — trace the likelihood <-> parallel-decodability trade-off.
3
+ #
4
+ # Grid 2 showed coordination alone is cancelled by the ELBO: the sequential
5
+ # teacher picks an arbitrary value for a free group, so averaged over batches
6
+ # its target is still uniform, while the ELBO actively pulls back to uniform.
7
+ # The weight IS the experiment. gamma penalises marginal entropy (explicit
8
+ # symmetry breaking); elbo_w down-weights the term fighting it.
9
+ #SBATCH -J g3
10
+ #SBATCH -p gpu-h100
11
+ #SBATCH --gpus=h100:1
12
+ #SBATCH -c 8
13
+ #SBATCH --mem=64g
14
+ #SBATCH -t 06:00:00
15
+ #SBATCH -o logs/g3-%A_%a.out
16
+ #SBATCH --array=0-29%12
17
+
18
+ source /etc/profile
19
+ SCR=/scratch/zt1/project/msml612/user/$USER
20
+ module load python/3.10.10
21
+ export PYTHONPATH=
22
+ PY=$SCR/hf_env/bin/python
23
+ cd $SCR/pcmd/src
24
+
25
+ I=$SLURM_ARRAY_TASK_ID
26
+ GAMMA=(0.0 0.1 0.5 1.0 2.0); ELBOW=(1.0 0.2 0.05); SEEDS=(0 1)
27
+ G=${GAMMA[$((I / 6))]}
28
+ E=${ELBOW[$(((I % 6) / 2))]}
29
+ S=${SEEDS[$((I % 2))]}
30
+
31
+ NAME="g3-gam$G-elbo$E-s$S"
32
+ echo "=== $NAME ==="
33
+ $PY train.py --task agree --objective coord --coupling 4 --seed $S \
34
+ --seq_len 128 --n_train 200000 --n_eval 500 --eval_bs 100 \
35
+ --d 384 --layers 6 --heads 6 --bs 64 --steps 20000 --lr 3e-4 \
36
+ --beta 1.0 --gamma $G --elbo_w $E --group 4 --coord_every 4 --ramp_frac 0.2 \
37
+ --out $SCR/pcmd/runs/$NAME
src/diffusion.py CHANGED
@@ -224,18 +224,96 @@ def coordination_loss(model, x0, tok, group=4, t_min=None):
224
  return F.cross_entropy(sel.reshape(-1, sel.size(-1)), target.reshape(-1))
225
 
226
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
227
  def cmd_loss(model, x0, tok, alpha=0.5, beta=1.0, k_frac=0.25, ramp=1.0,
228
- group=4, use_coord=True):
 
229
  """Coordinated Masked Diffusion: ELBO + self-conditioning + coordination.
230
 
231
  The ELBO term is always present. The two additions are auxiliaries, not
232
  replacements: an earlier version used self-conditioning INSTEAD of the ELBO
233
  and scored 35% where the plain baseline scored 100%.
234
  """
235
- total = mdlm_loss(model, x0, tok)
 
 
 
 
236
  if alpha > 0 and ramp > 0:
237
  total = total + alpha * self_corrupted_loss(
238
  model, x0, tok, k_frac=k_frac, correct_weight=1.0, ramp=ramp)
239
  if beta > 0 and ramp > 0 and use_coord:
240
  total = total + beta * ramp * coordination_loss(model, x0, tok, group=group)
241
  return total
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
  return F.cross_entropy(sel.reshape(-1, sel.size(-1)), target.reshape(-1))
225
 
226
 
227
+ def entropy_penalty(model, x0, tok, t_min=None):
228
+ """Break the symmetry that makes free groups undecodable in parallel.
229
+
230
+ Where a group must agree but the value is free, the likelihood-optimal
231
+ marginal is uniform over the valid values, and independent sampling from
232
+ uniform marginals can never coordinate. Penalising marginal entropy pushes
233
+ each position toward a single mode; because the model is shared across the
234
+ group, the same mode is chosen at each member and parallel sampling becomes
235
+ self-consistent. This is the term that is *supposed* to cost likelihood -
236
+ it is the explicit price of parallel decodability.
237
+ """
238
+ B, L = x0.shape
239
+ dev = x0.device
240
+ t_min = t_min if t_min is not None else 1.0 / L
241
+ t = t_min + (1.0 - t_min) * torch.rand(B, device=dev)
242
+ m = torch.rand(B, L, device=dev) < t[:, None]
243
+ xt = torch.where(m, torch.full_like(x0, tok.mask), x0)
244
+ p = model(xt).softmax(-1)
245
+ ent = -(p * p.clamp_min(1e-9).log()).sum(-1)
246
+ return (ent * m).sum() / m.sum().clamp_min(1)
247
+
248
+
249
  def cmd_loss(model, x0, tok, alpha=0.5, beta=1.0, k_frac=0.25, ramp=1.0,
250
+ group=4, use_coord=True, gamma=0.0, elbo_w=1.0,
251
+ dep_weighted=True):
252
  """Coordinated Masked Diffusion: ELBO + self-conditioning + coordination.
253
 
254
  The ELBO term is always present. The two additions are auxiliaries, not
255
  replacements: an earlier version used self-conditioning INSTEAD of the ELBO
256
  and scored 35% where the plain baseline scored 100%.
257
  """
258
+ total = elbo_w * mdlm_loss(model, x0, tok)
259
+ if gamma > 0 and ramp > 0:
260
+ total = total + gamma * ramp * (
261
+ dependence_weighted_entropy(model, x0, tok) if dep_weighted
262
+ else entropy_penalty(model, x0, tok))
263
  if alpha > 0 and ramp > 0:
264
  total = total + alpha * self_corrupted_loss(
265
  model, x0, tok, k_frac=k_frac, correct_weight=1.0, ramp=ramp)
266
  if beta > 0 and ramp > 0 and use_coord:
267
  total = total + beta * ramp * coordination_loss(model, x0, tok, group=group)
268
  return total
269
+
270
+
271
+ def dependence_weighted_entropy(model, x0, tok, t_min=None):
272
+ """THE METHOD. Sharpen the marginals exactly where positions are dependent.
273
+
274
+ Why entropy is the right quantity. Two independent draws from a marginal p
275
+ agree with probability sum_v p(v)^2 = exp(-H2(p)), the Renyi-2 entropy. So
276
+ minimising H2 directly maximises the probability that positions sampled
277
+ independently - which is precisely what parallel decoding does - land on the
278
+ same choice. For a group that must agree but whose value is free, this is
279
+ the only way to make parallel sampling self-consistent: the likelihood
280
+ optimum (uniform over valid values) is guaranteed to disagree.
281
+
282
+ Why it must be WEIGHTED. Sharpening everywhere would destroy likelihood
283
+ wherever high entropy is correct, which is most of natural text, and would
284
+ also break `copy`, where positions are already independent and the baseline
285
+ is perfect. So the penalty is scaled by a measured dependence:
286
+
287
+ reveal one masked position, and see how far every other position's
288
+ belief moves. A position whose distribution shifts a lot depends on the
289
+ revealed one; a position that does not move is conditionally
290
+ independent and is left alone.
291
+
292
+ d_i = KL(p_i-after-reveal || p_i-before), normalised per example. The
293
+ penalty is d_i * H2(p_i), so the likelihood cost is paid only where it buys
294
+ coordination.
295
+ """
296
+ B, L = x0.shape
297
+ dev = x0.device
298
+ t_min = t_min if t_min is not None else 1.0 / L
299
+ t = t_min + (1.0 - t_min) * torch.rand(B, device=dev)
300
+ m = torch.rand(B, L, device=dev) < t[:, None]
301
+ m[torch.arange(B, device=dev), torch.randint(0, L, (B,), device=dev)] = True
302
+ xt = torch.where(m, torch.full_like(x0, tok.mask), x0)
303
+
304
+ with torch.no_grad():
305
+ p0 = model(xt).softmax(-1)
306
+ samp = torch.distributions.Categorical(probs=p0).sample()
307
+ # reveal one masked position per example and measure the ripple
308
+ pick = torch.rand(B, L, device=dev).masked_fill(~m, -1.0).argmax(1)
309
+ x1 = xt.clone()
310
+ ar = torch.arange(B, device=dev)
311
+ x1[ar, pick] = samp[ar, pick]
312
+ p1 = model(x1).softmax(-1)
313
+ d = (p1 * (p1.clamp_min(1e-9).log() - p0.clamp_min(1e-9).log())).sum(-1)
314
+ d = (d * m).clamp_min(0)
315
+ d = d / d.amax(1, keepdim=True).clamp_min(1e-6) # per-example scale
316
+
317
+ p = model(xt).softmax(-1)
318
+ h2 = -(p.pow(2).sum(-1).clamp_min(1e-9)).log() # Renyi-2 entropy
319
+ return (d * h2 * m).sum() / m.sum().clamp_min(1)
src/train.py CHANGED
@@ -22,6 +22,14 @@ def get_args():
22
  "coord=+coordination; cmd=full method (all three)")
23
  p.add_argument("--alpha", type=float, default=0.5, help="self-conditioning weight")
24
  p.add_argument("--beta", type=float, default=1.0, help="coordination weight")
 
 
 
 
 
 
 
 
25
  p.add_argument("--group", type=int, default=4)
26
  p.add_argument("--coord_every", type=int, default=4,
27
  help="apply the coordination term every N steps; the teacher\n costs `group` sequential passes, so this amortises it")
@@ -157,10 +165,14 @@ def main():
157
  uc = (step % a.coord_every == 0)
158
  if a.objective == "cmd":
159
  loss = dfn.cmd_loss(model, x0, tok, a.alpha, a.beta, a.k_frac,
160
- ramp, a.group, use_coord=uc)
 
 
161
  elif a.objective == "coord":
162
  loss = dfn.cmd_loss(model, x0, tok, 0.0, a.beta, a.k_frac,
163
- ramp, a.group, use_coord=uc)
 
 
164
  elif a.objective == "selfcorrupt":
165
  loss = dfn.cmd_loss(model, x0, tok, a.alpha, 0.0, a.k_frac, ramp)
166
  else:
 
22
  "coord=+coordination; cmd=full method (all three)")
23
  p.add_argument("--alpha", type=float, default=0.5, help="self-conditioning weight")
24
  p.add_argument("--beta", type=float, default=1.0, help="coordination weight")
25
+ p.add_argument("--gamma", type=float, default=0.0,
26
+ help="marginal-entropy penalty: the explicit price paid in "
27
+ "likelihood to buy parallel decodability")
28
+ p.add_argument("--dep_weighted", type=int, default=1,
29
+ help="1 = sharpen only where positions are measurably dependent; "
30
+ "0 = sharpen everywhere (ablation)")
31
+ p.add_argument("--elbo_w", type=float, default=1.0,
32
+ help="down-weight the ELBO so coordination is not cancelled by it")
33
  p.add_argument("--group", type=int, default=4)
34
  p.add_argument("--coord_every", type=int, default=4,
35
  help="apply the coordination term every N steps; the teacher\n costs `group` sequential passes, so this amortises it")
 
165
  uc = (step % a.coord_every == 0)
166
  if a.objective == "cmd":
167
  loss = dfn.cmd_loss(model, x0, tok, a.alpha, a.beta, a.k_frac,
168
+ ramp, a.group, use_coord=uc,
169
+ gamma=a.gamma, elbo_w=a.elbo_w,
170
+ dep_weighted=bool(a.dep_weighted))
171
  elif a.objective == "coord":
172
  loss = dfn.cmd_loss(model, x0, tok, 0.0, a.beta, a.k_frac,
173
+ ramp, a.group, use_coord=uc,
174
+ gamma=a.gamma, elbo_w=a.elbo_w,
175
+ dep_weighted=bool(a.dep_weighted))
176
  elif a.objective == "selfcorrupt":
177
  loss = dfn.cmd_loss(model, x0, tok, a.alpha, 0.0, a.k_frac, ramp)
178
  else: