File size: 6,143 Bytes
1c8e365
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
{
  "config": {
    "model": "meta-llama/Llama-2-7b-chat-hf",
    "device": "cuda",
    "model_dtype": "fp16",
    "tasks": "gsm8k,commonsenseqa,strategyqa,arc_challenge,openbookqa,qasc,logiqa",
    "heldout_tasks": "gsm8k,logiqa",
    "layer": 10,
    "n_subspace": 64,
    "n_eval": 32,
    "use_forced_choice": true,
    "do_sample": false,
    "offline": true
  },
  "commands": {
    "gsm8k": [
      "/home/zs89/miniconda3/envs/flashsvd/bin/python",
      "/home/zs89/decodeshare/reasoning/disturb_CoT_shared_loto_reasoning.py",
      "--model",
      "meta-llama/Llama-2-7b-chat-hf",
      "--device",
      "cuda",
      "--model_dtype",
      "fp16",
      "--layer",
      "10",
      "--tasks",
      "gsm8k,commonsenseqa,strategyqa,arc_challenge,openbookqa,qasc,logiqa",
      "--mode",
      "loto",
      "--loto_eval_mode",
      "heldout",
      "--loto_only",
      "gsm8k",
      "--n_subspace",
      "64",
      "--n_eval",
      "32",
      "--pca_var",
      "0.95",
      "--tau",
      "0.001",
      "--m_shared",
      "all",
      "--calib_decode_max_new_tokens",
      "48",
      "--per_task_max_states",
      "2048",
      "--alpha_remove",
      "1.0",
      "--reasoning_tokens",
      "64",
      "--max_new_tokens",
      "96",
      "--temperature",
      "0.7",
      "--top_p",
      "0.9",
      "--top_k",
      "0",
      "--do_sample",
      "0",
      "--template_randomization",
      "1",
      "--template_seed",
      "1234",
      "--shuffle_choices",
      "1",
      "--add_answer_prefix",
      "1",
      "--answer_prefix",
      "\nFinal answer:",
      "--use_forced_choice",
      "1",
      "--fc_warmup_tokens",
      "0",
      "--fc_prefix_mode",
      "auto",
      "--fc_answer_prefix",
      "\nFinal answer:",
      "--batch_size",
      "2",
      "--max_prompt_len",
      "512",
      "--bootstrap_iters",
      "500",
      "--perm_iters",
      "1000",
      "--ci_alpha",
      "0.05",
      "--seed",
      "42",
      "--sample_seed",
      "12345",
      "--out_json",
      "/home/zs89/decodeshare/rebuttal/reasoning/raw/gsm8k_loto.json",
      "--out_md",
      "/home/zs89/decodeshare/rebuttal/reasoning/raw/gsm8k_loto.md"
    ],
    "logiqa": [
      "/home/zs89/miniconda3/envs/flashsvd/bin/python",
      "/home/zs89/decodeshare/reasoning/disturb_CoT_shared_loto_reasoning.py",
      "--model",
      "meta-llama/Llama-2-7b-chat-hf",
      "--device",
      "cuda",
      "--model_dtype",
      "fp16",
      "--layer",
      "10",
      "--tasks",
      "gsm8k,commonsenseqa,strategyqa,arc_challenge,openbookqa,qasc,logiqa",
      "--mode",
      "loto",
      "--loto_eval_mode",
      "heldout",
      "--loto_only",
      "logiqa",
      "--n_subspace",
      "64",
      "--n_eval",
      "32",
      "--pca_var",
      "0.95",
      "--tau",
      "0.001",
      "--m_shared",
      "all",
      "--calib_decode_max_new_tokens",
      "48",
      "--per_task_max_states",
      "2048",
      "--alpha_remove",
      "1.0",
      "--reasoning_tokens",
      "64",
      "--max_new_tokens",
      "96",
      "--temperature",
      "0.7",
      "--top_p",
      "0.9",
      "--top_k",
      "0",
      "--do_sample",
      "0",
      "--template_randomization",
      "1",
      "--template_seed",
      "1234",
      "--shuffle_choices",
      "1",
      "--add_answer_prefix",
      "1",
      "--answer_prefix",
      "\nFinal answer:",
      "--use_forced_choice",
      "1",
      "--fc_warmup_tokens",
      "0",
      "--fc_prefix_mode",
      "auto",
      "--fc_answer_prefix",
      "\nFinal answer:",
      "--batch_size",
      "2",
      "--max_prompt_len",
      "512",
      "--bootstrap_iters",
      "500",
      "--perm_iters",
      "1000",
      "--ci_alpha",
      "0.05",
      "--seed",
      "42",
      "--sample_seed",
      "12345",
      "--out_json",
      "/home/zs89/decodeshare/rebuttal/reasoning/raw/logiqa_loto.json",
      "--out_md",
      "/home/zs89/decodeshare/rebuttal/reasoning/raw/logiqa_loto.md"
    ]
  },
  "raw_files": {
    "gsm8k": {
      "json": "/home/zs89/decodeshare/rebuttal/reasoning/raw/gsm8k_loto.json",
      "md": "/home/zs89/decodeshare/rebuttal/reasoning/raw/gsm8k_loto.md"
    },
    "logiqa": {
      "json": "/home/zs89/decodeshare/rebuttal/reasoning/raw/logiqa_loto.json",
      "md": "/home/zs89/decodeshare/rebuttal/reasoning/raw/logiqa_loto.md"
    }
  },
  "per_task": [
    {
      "task": "gsm8k",
      "task_label": "Open-ended numeric reasoning",
      "n_eval": 32,
      "protocol": "generation",
      "k_eval": 77,
      "chance_acc": null,
      "baseline_near_floor": true,
      "baseline_acc": 0.0,
      "decode_shared_acc": 0.0,
      "prefill_shared_acc": 0.0,
      "random_acc": 0.0,
      "decode_minus_prefill": 0.0,
      "decode_minus_prefill_ci_low": 0.0,
      "decode_minus_prefill_ci_high": 0.0,
      "decode_minus_prefill_p": 1.0,
      "decode_minus_baseline": 0.0,
      "prefill_minus_baseline": 0.0,
      "random_minus_baseline": 0.0
    },
    {
      "task": "logiqa",
      "task_label": "Logical reasoning multiple choice",
      "n_eval": 32,
      "protocol": "forced_choice",
      "k_eval": 70,
      "chance_acc": 0.25,
      "baseline_near_floor": false,
      "baseline_acc": 0.3125,
      "decode_shared_acc": 0.15625,
      "prefill_shared_acc": 0.34375,
      "random_acc": 0.34375,
      "decode_minus_prefill": -0.1875,
      "decode_minus_prefill_ci_low": -0.3125,
      "decode_minus_prefill_ci_high": -0.0625,
      "decode_minus_prefill_p": 0.03596403596403597,
      "decode_minus_baseline": -0.15625,
      "prefill_minus_baseline": 0.03125,
      "random_minus_baseline": 0.03125
    }
  ],
  "aggregate": {
    "baseline_acc_mean": 0.15625,
    "decode_shared_acc_mean": 0.078125,
    "prefill_shared_acc_mean": 0.171875,
    "random_acc_mean": 0.171875,
    "decode_minus_baseline_mean": -0.078125,
    "prefill_minus_baseline_mean": 0.015625,
    "random_minus_baseline_mean": 0.015625,
    "decode_minus_prefill_mean": -0.09375,
    "informative_tasks": [
      "logiqa"
    ],
    "inconclusive_tasks": [
      "gsm8k"
    ]
  }
}