Trace Transformer: macro-F1 0.927, LC recall 0.892, linear probe 0.779
Browse files- .gitattributes +2 -0
- seq/config.json +58 -0
- seq/figures/seq_confusion_matrix.pdf +0 -0
- seq/figures/seq_confusion_matrix.png +3 -0
- seq/figures/seq_training_curves.pdf +0 -0
- seq/figures/seq_training_curves.png +3 -0
- seq/metrics.json +119 -0
- seq/model.safetensors +3 -0
- seq/training_history.csv +15 -0
.gitattributes
CHANGED
|
@@ -35,3 +35,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
rf/figures/rf_confusion_matrix.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
rf/model.skops filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
rf/figures/rf_confusion_matrix.png filter=lfs diff=lfs merge=lfs -text
|
| 37 |
rf/model.skops filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
seq/figures/seq_confusion_matrix.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
seq/figures/seq_training_curves.png filter=lfs diff=lfs merge=lfs -text
|
seq/config.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"class_names": [
|
| 3 |
+
"latency_critical",
|
| 4 |
+
"interactive",
|
| 5 |
+
"throughput",
|
| 6 |
+
"maintenance",
|
| 7 |
+
"system"
|
| 8 |
+
],
|
| 9 |
+
"d_ff": 128,
|
| 10 |
+
"d_model": 64,
|
| 11 |
+
"dropout": 0.1,
|
| 12 |
+
"n_classes": 5,
|
| 13 |
+
"n_heads": 4,
|
| 14 |
+
"n_layers": 2,
|
| 15 |
+
"n_train_rows": 64189,
|
| 16 |
+
"seed": 42,
|
| 17 |
+
"seq_len": 32,
|
| 18 |
+
"spec_version": "3.0.0",
|
| 19 |
+
"tokens": {
|
| 20 |
+
"fields": [
|
| 21 |
+
"op",
|
| 22 |
+
"size",
|
| 23 |
+
"jump",
|
| 24 |
+
"gap"
|
| 25 |
+
],
|
| 26 |
+
"gap_edges_us": [
|
| 27 |
+
100,
|
| 28 |
+
1000,
|
| 29 |
+
10000,
|
| 30 |
+
100000,
|
| 31 |
+
1000000,
|
| 32 |
+
10000000
|
| 33 |
+
],
|
| 34 |
+
"jump_edges_log2": [
|
| 35 |
+
16,
|
| 36 |
+
20,
|
| 37 |
+
24,
|
| 38 |
+
28,
|
| 39 |
+
32
|
| 40 |
+
],
|
| 41 |
+
"seq_len": 32,
|
| 42 |
+
"size_log2_max": 20,
|
| 43 |
+
"size_log2_min": 9,
|
| 44 |
+
"vocab": [
|
| 45 |
+
2,
|
| 46 |
+
12,
|
| 47 |
+
14,
|
| 48 |
+
8
|
| 49 |
+
]
|
| 50 |
+
},
|
| 51 |
+
"torch_version": "2.14.1+cpu",
|
| 52 |
+
"vocab": [
|
| 53 |
+
2,
|
| 54 |
+
12,
|
| 55 |
+
14,
|
| 56 |
+
8
|
| 57 |
+
]
|
| 58 |
+
}
|
seq/figures/seq_confusion_matrix.pdf
ADDED
|
Binary file (17.9 kB). View file
|
|
|
seq/figures/seq_confusion_matrix.png
ADDED
|
Git LFS Details
|
seq/figures/seq_training_curves.pdf
ADDED
|
Binary file (17.8 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 18 |
+
0,
|
| 19 |
+
2,
|
| 20 |
+
424,
|
| 21 |
+
0,
|
| 22 |
+
0
|
| 23 |
+
],
|
| 24 |
+
[
|
| 25 |
+
0,
|
| 26 |
+
2,
|
| 27 |
+
1,
|
| 28 |
+
1153,
|
| 29 |
+
9
|
| 30 |
+
],
|
| 31 |
+
[
|
| 32 |
+
0,
|
| 33 |
+
116,
|
| 34 |
+
0,
|
| 35 |
+
139,
|
| 36 |
+
24669
|
| 37 |
+
]
|
| 38 |
+
],
|
| 39 |
+
"inference_ms_500_actors": 40.95554997911677,
|
| 40 |
+
"label_source": "msr_behavior_rules",
|
| 41 |
+
"latency_critical_recall": 0.8923311325545963,
|
| 42 |
+
"linear_probe_val_macro_f1": 0.779381297984736,
|
| 43 |
+
"macro_f1": 0.9266784806704429,
|
| 44 |
+
"macro_f1_holdout_traces": 0.9249428709644139,
|
| 45 |
+
"model": "trace_transformer",
|
| 46 |
+
"no_pretraining": {
|
| 47 |
+
"test_macro_f1": 0.9263400969541534,
|
| 48 |
+
"val_macro_f1": 0.9080818370381223
|
| 49 |
+
},
|
| 50 |
+
"parameters": 74345,
|
| 51 |
+
"per_class": {
|
| 52 |
+
"interactive": {
|
| 53 |
+
"f1-score": 0.8974695225605906,
|
| 54 |
+
"precision": 0.9250100120144173,
|
| 55 |
+
"recall": 0.8715215545703235,
|
| 56 |
+
"support": 10601.0
|
| 57 |
+
},
|
| 58 |
+
"latency_critical": {
|
| 59 |
+
"f1-score": 0.8483141546632332,
|
| 60 |
+
"precision": 0.8084355828220859,
|
| 61 |
+
"recall": 0.8923311325545963,
|
| 62 |
+
"support": 5907.0
|
| 63 |
+
},
|
| 64 |
+
"maintenance": {
|
| 65 |
+
"f1-score": 0.9249899719213799,
|
| 66 |
+
"precision": 0.8682228915662651,
|
| 67 |
+
"recall": 0.9896995708154507,
|
| 68 |
+
"support": 1165.0
|
| 69 |
+
},
|
| 70 |
+
"system": {
|
| 71 |
+
"f1-score": 0.9934758970641536,
|
| 72 |
+
"precision": 0.9972107688576279,
|
| 73 |
+
"recall": 0.9897688974482427,
|
| 74 |
+
"support": 24924.0
|
| 75 |
+
},
|
| 76 |
+
"throughput": {
|
| 77 |
+
"f1-score": 0.9691428571428572,
|
| 78 |
+
"precision": 0.9443207126948775,
|
| 79 |
+
"recall": 0.9953051643192489,
|
| 80 |
+
"support": 426.0
|
| 81 |
+
}
|
| 82 |
+
},
|
| 83 |
+
"pretraining": {
|
| 84 |
+
"most_common_guess_accuracy": {
|
| 85 |
+
"gap": 0.45044488777088176,
|
| 86 |
+
"jump": 0.2988369372450046,
|
| 87 |
+
"op": 0.4522169629124055,
|
| 88 |
+
"size": 0.4318893228319422
|
| 89 |
+
},
|
| 90 |
+
"most_common_guess_loss_nats": 5.93662669849005,
|
| 91 |
+
"val_next_request_accuracy": {
|
| 92 |
+
"gap": 0.6915149442696212,
|
| 93 |
+
"jump": 0.5408996327097383,
|
| 94 |
+
"op": 0.981587031732605,
|
| 95 |
+
"size": 0.8324932128137645
|
| 96 |
+
},
|
| 97 |
+
"val_next_request_loss_nats": 2.7761730839711705
|
| 98 |
+
},
|
| 99 |
+
"rf_baseline": {
|
| 100 |
+
"agreement_with_transformer": 0.947376984403691,
|
| 101 |
+
"latency_critical_recall": 0.999661418655832,
|
| 102 |
+
"macro_f1": 0.9997413593139894
|
| 103 |
+
},
|
| 104 |
+
"rows": {
|
| 105 |
+
"pretrain_sequences": 117170,
|
| 106 |
+
"test": 43023,
|
| 107 |
+
"train": 64189,
|
| 108 |
+
"val": 15443
|
| 109 |
+
},
|
| 110 |
+
"targets": {
|
| 111 |
+
"latency_critical_recall": 0.9,
|
| 112 |
+
"macro_f1": 0.85
|
| 113 |
+
},
|
| 114 |
+
"targets_missed": [
|
| 115 |
+
"latency_critical_recall"
|
| 116 |
+
],
|
| 117 |
+
"train_dataset": "msr",
|
| 118 |
+
"val_macro_f1": 0.9028091410943446
|
| 119 |
+
}
|
seq/model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ab9ac56b65b9ef8536cf39f18274ba966aafd67402181afe62ffad557deefebd
|
| 3 |
+
size 301060
|
seq/training_history.csv
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
stage,epoch,train_loss,val_next_request_loss,val_macro_f1
|
| 2 |
+
pretrain,0,3.4729524600624866,2.9823463716413765,
|
| 3 |
+
pretrain,1,2.9644594021825097,2.871446135507474,
|
| 4 |
+
pretrain,2,2.871333842636874,2.814173310639157,
|
| 5 |
+
pretrain,3,2.8148003415686182,2.7761730839711705,
|
| 6 |
+
finetune,0,0.9700384993565716,,0.8913134861253911
|
| 7 |
+
finetune,1,0.806806464561595,,0.8928885635276487
|
| 8 |
+
finetune,2,0.7642154648771656,,0.9028091410943446
|
| 9 |
+
finetune,3,0.7676772633481994,,0.8963913059534002
|
| 10 |
+
finetune,4,0.7441919513220734,,0.874293857964808
|
| 11 |
+
no_pretraining,0,1.2791554324378696,,0.8775333270529749
|
| 12 |
+
no_pretraining,1,0.909949515717532,,0.8800241890006149
|
| 13 |
+
no_pretraining,2,0.8486450646777128,,0.9080818370381223
|
| 14 |
+
no_pretraining,3,0.8272863873556765,,0.8399779051159484
|
| 15 |
+
no_pretraining,4,0.8072950731705296,,0.8862448021208982
|