File size: 3,432 Bytes
2d2a690 | 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 | {
"run_info": {
"script": "kaggle.py",
"platform": "Kaggle (GPU T4 x2)",
"start_utc": "2026-09-08T12:06:52.839121Z",
"end_utc": "2026-09-08T13:21:01.029704Z",
"total_time": "1:14:08",
"total_seconds": 4448.2
},
"hardware": {
"gpus": [
{
"index": 0,
"name": "Tesla T4",
"vram_gb": 15.64,
"cuda_capability": "7.5",
"multi_processors": 40
}
],
"gpu_count_used": 1,
"note": "gradient_checkpointing activo; DataParallel desactivado",
"cpu_physical_cores": 1,
"cpu_logical_threads": 2,
"ram_total_gb": 13.61,
"os": "Linux 6.6.122+"
},
"software": {
"python": "3.13.15",
"pytorch": "2.11.0+cu128",
"cuda": "12.8",
"cudnn": "91900",
"transformers": "5.16.1",
"numpy": "2.1.3",
"pandas": "2.2.3",
"scikit_learn": "1.6.1"
},
"model": {
"base": "microsoft/codebert-base",
"architecture": "RobertaModel → [CLS] → Linear(768,128) → GELU → Dropout → Linear(128,4)",
"total_params": 124744580,
"trainable_params": 124744580,
"gradient_checkpointing": true
},
"hyperparameters": {
"max_len": 510,
"batch_size_per_step": 16,
"grad_accum_steps": 4,
"effective_batch_size": 64,
"epochs_max": 50,
"early_stop_patience": 10,
"lr_encoder": 2.35e-05,
"lr_head": 0.00153,
"beta1": 0.89,
"warmup_epochs": 3,
"lr_scheduler": "ExponentialLR(gamma=0.976, aplica a ambos grupos)",
"optimizer": "Adam",
"weight_decay": 1.31e-05,
"dropout": 0.086,
"hidden_dim": 128,
"loss_function": "BCEWithLogitsLoss"
},
"dataset": {
"train_csv": "/content/drive/MyDrive/tesis/data/train_functions.csv",
"test_csv": "/content/drive/MyDrive/tesis/data/test_functions.csv",
"train_size": 6644,
"test_size": 5179,
"vulnerability_classes": [
"Re-entrancy",
"Timestamp-Dependency",
"Unhandled-Exceptions",
"tx.origin"
],
"train_distribution": {
"Re-entrancy": 3500,
"Timestamp-Dependency": 3500,
"Unhandled-Exceptions": 312,
"tx.origin": 71
}
},
"training_summary": {
"epochs_run": 20,
"best_epoch": 10,
"avg_epoch_time_s": 216.5,
"avg_epoch_time": "0:03:36",
"loss_train_final": 0.002726,
"loss_val_final": 0.197784
},
"results": {
"f1_macro": 0.938385,
"f1_micro": 0.936281,
"recall_macro": 0.939737,
"precision_macro": 0.950687,
"accuracy": 0.936281,
"per_class": {
"Re-entrancy": {
"f1": 0.890584,
"recall": 1.0,
"precision": 0.80275,
"accuracy": 0.936281,
"support": 1343
},
"Timestamp-Dependency": {
"f1": 1.0,
"recall": 1.0,
"precision": 1.0,
"accuracy": 1.0,
"support": 1131
},
"Unhandled-Exceptions": {
"f1": 0.862957,
"recall": 0.758948,
"precision": 1.0,
"accuracy": 0.936281,
"support": 1369
},
"tx.origin": {
"f1": 1.0,
"recall": 1.0,
"precision": 1.0,
"accuracy": 1.0,
"support": 1336
}
}
},
"paper_reference": {
"title": "Deep learning-based solution for smart contract vulnerabilities detection",
"authors": "Tang et al.",
"journal": "Scientific Reports",
"year": 2023,
"doi": "10.1038/s41598-023-47219-0",
"reported_f1": 0.9353
}
} |