File size: 5,060 Bytes
4e09985
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "encoder": "answerdotai/ModernBERT-large",
  "head_layers": 2,
  "max_len": 512,
  "head_max_len": 512,
  "max_prefixes": 6,
  "act_costs": {
    "escalate": 0.5
  },
  "cost_wrong_act": 3.0,
  "amp_dtype": "bf16",
  "model_name": "rl-agent",
  "temperature": [
    3.49420428276062,
    1.0,
    1.0
  ],
  "training": {
    "updates": 7313,
    "epochs_completed": 1,
    "hours": 1.96,
    "world_size": 1,
    "fine_tuned_from_checkpoint": true,
    "laya_train": {
      "epochs": 4,
      "micro_batch": 8,
      "grad_accum": 8,
      "encoder_lr": 2.5e-05,
      "head_lr": 0.0001,
      "min_lr": 1e-06,
      "weight_decay": 0.01,
      "grad_clip": 1.0,
      "loss": "rlcd",
      "rl_samples": 4,
      "sigma_start": 0.4,
      "sigma_end": 0.1,
      "w_sph": 0.75,
      "w_rps": 1.0,
      "shuffle_options": [],
      "option_layout": null,
      "freeze_encoder": false,
      "calib_max": 400,
      "calib_frac": 0.1,
      "calib_seed": 20260922,
      "seed": 0,
      "max_len": null,
      "head_max_len": 512,
      "amp": null,
      "gradient_checkpointing": null,
      "log_every": 100,
      "label_smoothing": 0.0,
      "text_column": "text",
      "label_column": "label",
      "question_id": "label",
      "instructions": null,
      "eval_data": null,
      "target_error": 0.01,
      "min_abstain_n": 10
    },
    "laya_train_calibration": {
      "choice": {
        "items": 400,
        "temperature": 3.49420428276062,
        "issues": [],
        "accuracy": 0.9075,
        "mean_confidence": 0.9215655326454519
      },
      "score": {
        "items": 0,
        "temperature": 1.0,
        "issues": []
      },
      "noul": {
        "items": 0,
        "temperature": 1.0,
        "issues": []
      }
    },
    "train_report": {
      "eval_source": "calibration_slice",
      "eval_mode": "in_sample_calibration",
      "is_held_out": false,
      "eval_items": 400,
      "note": "Metrics reflect in-sample calibration fit, not independent held-out evaluation. Provide --eval for held-out validation.",
      "before": {
        "items": 400,
        "loss": 11.0271,
        "accuracy": 0.4375,
        "mean_confidence": 0.8994,
        "ece": 0.4665,
        "brier": 1.0062,
        "brier_top1": 0.4425,
        "by_type": {
          "choice": {
            "items": 400,
            "loss": 11.0271,
            "accuracy": 0.4375,
            "mean_confidence": 0.8994,
            "ece": 0.4665,
            "brier": 1.0062,
            "brier_top1": 0.4425
          }
        }
      },
      "after": {
        "items": 400,
        "loss": 0.4723,
        "accuracy": 0.9075,
        "mean_confidence": 0.9216,
        "ece": 0.0399,
        "brier": 0.1525,
        "brier_top1": 0.0651,
        "by_type": {
          "choice": {
            "items": 400,
            "loss": 0.4723,
            "accuracy": 0.9075,
            "mean_confidence": 0.9216,
            "ece": 0.0399,
            "brier": 0.1525,
            "brier_top1": 0.0651
          }
        }
      },
      "comparison": {
        "delta_accuracy": 0.47,
        "delta_loss": -10.5548,
        "delta_ece": -0.4266,
        "delta_brier": -0.8537,
        "delta_brier_top1": -0.3774,
        "delta_mean_confidence": 0.0222
      },
      "calibration": {
        "choice": {
          "items": 400,
          "temperature": 3.49420428276062,
          "issues": [],
          "accuracy": 0.9075,
          "mean_confidence": 0.9215655326454519
        },
        "score": {
          "items": 0,
          "temperature": 1.0,
          "issues": []
        },
        "noul": {
          "items": 0,
          "temperature": 1.0,
          "issues": []
        }
      },
      "abstention_thresholds": {
        "choice:11+": 0.979
      },
      "training": {
        "epochs": 4,
        "micro_batch": 8,
        "grad_accum": 8,
        "encoder_lr": 2.5e-05,
        "head_lr": 0.0001,
        "min_lr": 1e-06,
        "weight_decay": 0.01,
        "grad_clip": 1.0,
        "loss": "rlcd",
        "rl_samples": 4,
        "sigma_start": 0.4,
        "sigma_end": 0.1,
        "w_sph": 0.75,
        "w_rps": 1.0,
        "shuffle_options": [],
        "option_layout": null,
        "freeze_encoder": false,
        "calib_max": 400,
        "calib_frac": 0.1,
        "calib_seed": 20260922,
        "seed": 0,
        "max_len": null,
        "head_max_len": 512,
        "amp": null,
        "gradient_checkpointing": null,
        "log_every": 100,
        "label_smoothing": 0.0,
        "text_column": "text",
        "label_column": "label",
        "question_id": "label",
        "instructions": null,
        "eval_data": null,
        "target_error": 0.01,
        "min_abstain_n": 10
      }
    },
    "abstention_thresholds": {
      "choice:11+": 0.979
    }
  },
  "fine_tuned": true
}