Javed / benchmark.json
AbdullahKhanSherwani's picture
Publish Javed WDC adapter and held-out product matching benchmark
fe580b5 verified
Raw History Blame Contribute Delete
13.7 kB
{
"task": "binary product entity matching",
"setup": "WDC Products medium pairwise, 80% corner cases, 100% unseen test products per author export",
"score": "T=1 softmax over MATCH and DIFFERENT option logits",
"splits": {
"train": {
"rows": 6000,
"labels": {
"DIFFERENT": 4500,
"MATCH": 1500
},
"sha256": "9292d02a67acfd375bef4013d76ba511aad7a7f786f25c6524ecc379e7208ce4"
},
"val": {
"rows": 3500,
"labels": {
"DIFFERENT": 3000,
"MATCH": 500
},
"sha256": "dfd7ea54899cf09b727c3b14657c6c101465b616c522bcb7accce0d6b01f66aa"
},
"test": {
"rows": 4500,
"labels": {
"DIFFERENT": 4000,
"MATCH": 500
},
"sha256": "3342f7eac09efe70193cbcecb6129c593df3ab564d1b0750e67344bf021059f6"
}
},
"base_revision": "2fc06364715b967f1860aea9cf38778875588b17",
"adapter_sha256": "d6822da94665fe65d0f04f12c68ecf4eac45123605a4591aa0c054b43d51255a",
"comparison_models": {
"base": {
"val": {
"n": 3500,
"pos": 500,
"pr_auc": 0.37948548537095034,
"roc_auc": 0.7670523333333333
},
"test": {
"n": 4500,
"pos": 500,
"pr_auc": 0.3766443522695853,
"roc_auc": 0.7878300000000001
},
"fpr1": {
"val": {
"threshold": 0.2658804730998169,
"tp": 43,
"fp": 29,
"fn": 457,
"tn": 2971,
"predicted_match": 72,
"precision": 0.5972222222222222,
"recall": 0.086,
"f1": 0.15034965034965034,
"fpr": 0.009666666666666667
},
"test": {
"threshold": 0.2658804730998169,
"tp": 74,
"fp": 38,
"fn": 426,
"tn": 3962,
"predicted_match": 112,
"precision": 0.6607142857142857,
"recall": 0.148,
"f1": 0.24183006535947713,
"fpr": 0.0095
}
},
"maxf1": {
"val": {
"threshold": 0.14414885303274072,
"tp": 256,
"fp": 481,
"fn": 244,
"tn": 2519,
"predicted_match": 737,
"precision": 0.3473541383989145,
"recall": 0.512,
"f1": 0.41390460792239286,
"fpr": 0.16033333333333333
},
"test": {
"threshold": 0.14414885303274072,
"tp": 293,
"fp": 677,
"fn": 207,
"tn": 3323,
"predicted_match": 970,
"precision": 0.3020618556701031,
"recall": 0.586,
"f1": 0.39863945578231297,
"fpr": 0.16925
}
},
"all_reject_test": {
"threshold": null,
"tp": 0,
"fp": 0,
"fn": 500,
"tn": 4000,
"predicted_match": 0,
"precision": 0.0,
"recall": 0.0,
"f1": 0.0,
"fpr": 0.0
}
},
"released": {
"val": {
"n": 3500,
"pos": 500,
"pr_auc": 0.6938930944745237,
"roc_auc": 0.9266686666666666
},
"test": {
"n": 4500,
"pos": 500,
"pr_auc": 0.6985044486958936,
"roc_auc": 0.9501242500000001
},
"fpr1": {
"val": {
"threshold": 0.5813030906443138,
"tp": 154,
"fp": 30,
"fn": 346,
"tn": 2970,
"predicted_match": 184,
"precision": 0.8369565217391305,
"recall": 0.308,
"f1": 0.4502923976608187,
"fpr": 0.01
},
"test": {
"threshold": 0.5813030906443138,
"tp": 173,
"fp": 43,
"fn": 327,
"tn": 3957,
"predicted_match": 216,
"precision": 0.8009259259259259,
"recall": 0.346,
"f1": 0.4832402234636871,
"fpr": 0.01075
}
},
"maxf1": {
"val": {
"threshold": 0.3702253925955865,
"tp": 345,
"fp": 224,
"fn": 155,
"tn": 2776,
"predicted_match": 569,
"precision": 0.6063268892794376,
"recall": 0.69,
"f1": 0.6454630495790459,
"fpr": 0.07466666666666667
},
"test": {
"threshold": 0.3702253925955865,
"tp": 364,
"fp": 207,
"fn": 136,
"tn": 3793,
"predicted_match": 571,
"precision": 0.637478108581436,
"recall": 0.728,
"f1": 0.6797385620915033,
"fpr": 0.05175
}
},
"all_reject_test": {
"threshold": null,
"tp": 0,
"fp": 0,
"fn": 500,
"tn": 4000,
"predicted_match": 0,
"precision": 0.0,
"recall": 0.0,
"f1": 0.0,
"fpr": 0.0
}
},
"reranker": {
"val": {
"n": 3500,
"pos": 500,
"pr_auc": 0.6292927139151498,
"roc_auc": 0.9120246666666666
},
"test": {
"n": 4500,
"pos": 500,
"pr_auc": 0.6346575114861608,
"roc_auc": 0.9337085
},
"fpr1": {
"val": {
"threshold": 0.9985786080360413,
"tp": 103,
"fp": 30,
"fn": 397,
"tn": 2970,
"predicted_match": 133,
"precision": 0.7744360902255639,
"recall": 0.206,
"f1": 0.325434439178515,
"fpr": 0.01
},
"test": {
"threshold": 0.9985786080360413,
"tp": 116,
"fp": 29,
"fn": 384,
"tn": 3971,
"predicted_match": 145,
"precision": 0.8,
"recall": 0.232,
"f1": 0.35968992248062015,
"fpr": 0.00725
}
},
"maxf1": {
"val": {
"threshold": 0.9899863600730896,
"tp": 356,
"fp": 262,
"fn": 144,
"tn": 2738,
"predicted_match": 618,
"precision": 0.5760517799352751,
"recall": 0.712,
"f1": 0.6368515205724509,
"fpr": 0.08733333333333333
},
"test": {
"threshold": 0.9899863600730896,
"tp": 350,
"fp": 268,
"fn": 150,
"tn": 3732,
"predicted_match": 618,
"precision": 0.5663430420711975,
"recall": 0.7,
"f1": 0.6261180679785331,
"fpr": 0.067
}
},
"all_reject_test": {
"threshold": null,
"tp": 0,
"fp": 0,
"fn": 500,
"tn": 4000,
"predicted_match": 0,
"precision": 0.0,
"recall": 0.0,
"f1": 0.0,
"fpr": 0.0
}
},
"tuned": {
"val": {
"n": 3500,
"pos": 500,
"pr_auc": 0.8985383994743842,
"roc_auc": 0.9769299999999999
},
"test": {
"n": 4500,
"pos": 500,
"pr_auc": 0.8738075633332518,
"roc_auc": 0.980618
},
"fpr1": {
"val": {
"threshold": 0.9926541734255221,
"tp": 329,
"fp": 30,
"fn": 171,
"tn": 2970,
"predicted_match": 359,
"precision": 0.9164345403899722,
"recall": 0.658,
"f1": 0.7660069848661235,
"fpr": 0.01
},
"test": {
"threshold": 0.9926541734255221,
"tp": 306,
"fp": 45,
"fn": 194,
"tn": 3955,
"predicted_match": 351,
"precision": 0.8717948717948718,
"recall": 0.612,
"f1": 0.7191539365452408,
"fpr": 0.01125
}
},
"maxf1": {
"val": {
"threshold": 0.8221891305219491,
"tp": 421,
"fp": 103,
"fn": 79,
"tn": 2897,
"predicted_match": 524,
"precision": 0.8034351145038168,
"recall": 0.842,
"f1": 0.822265625,
"fpr": 0.034333333333333334
},
"test": {
"threshold": 0.8221891305219491,
"tp": 422,
"fp": 122,
"fn": 78,
"tn": 3878,
"predicted_match": 544,
"precision": 0.7757352941176471,
"recall": 0.844,
"f1": 0.8084291187739464,
"fpr": 0.0305
}
},
"all_reject_test": {
"threshold": null,
"tp": 0,
"fp": 0,
"fn": 500,
"tn": 4000,
"predicted_match": 0,
"precision": 0.0,
"recall": 0.0,
"f1": 0.0,
"fpr": 0.0
}
}
},
"cpu_baselines": {
"hashes_verified": {
"train": "9292d02a67acfd375bef4013d76ba511aad7a7f786f25c6524ecc379e7208ce4",
"val": "dfd7ea54899cf09b727c3b14657c6c101465b616c522bcb7accce0d6b01f66aa",
"test": "3342f7eac09efe70193cbcecb6129c593df3ab564d1b0750e67344bf021059f6"
},
"models": {
"wratio": {
"name": "RapidFuzz WRatio (title only)",
"operating_points": {
"max_f1": {
"threshold": 0.753968253968254,
"precision": 0.22033898305084745,
"recall": 0.598,
"f1": 0.32202477113624123,
"ap": 0.22339574596497672,
"roc_auc": 0.7611637499999999,
"fpr": 0.2645,
"matched_count": 1357,
"false_positives": 1058,
"tn": 2942,
"fp": 1058,
"fn": 201,
"tp": 299
},
"max_recall_fpr1pct": {
"threshold": 0.9006493506493506,
"precision": 0.3055555555555556,
"recall": 0.044,
"f1": 0.07692307692307693,
"ap": 0.22339574596497672,
"roc_auc": 0.7611637499999999,
"fpr": 0.0125,
"matched_count": 72,
"false_positives": 50,
"tn": 3950,
"fp": 50,
"fn": 478,
"tp": 22
}
}
},
"token_set": {
"name": "RapidFuzz token_set_ratio (title only)",
"operating_points": {
"max_f1": {
"threshold": 0.41935483870967744,
"precision": 0.18322381136451488,
"recall": 0.948,
"f1": 0.30709426627793973,
"ap": 0.3044798315632117,
"roc_auc": 0.7805057500000001,
"fpr": 0.52825,
"matched_count": 2587,
"false_positives": 2113,
"tn": 1887,
"fp": 2113,
"fn": 26,
"tp": 474
},
"max_recall_fpr1pct": {
"threshold": 0.9354838709677419,
"precision": 0.47959183673469385,
"recall": 0.094,
"f1": 0.15719063545150502,
"ap": 0.3044798315632117,
"roc_auc": 0.7805057500000001,
"fpr": 0.01275,
"matched_count": 98,
"false_positives": 51,
"tn": 3949,
"fp": 51,
"fn": 453,
"tp": 47
}
}
},
"logistic": {
"name": "Logistic Regression",
"features": [
"title_wratio",
"title_token_set",
"desc_wratio",
"desc_token_set",
"brand_exact",
"tfidf_cosine"
],
"operating_points": {
"max_f1": {
"threshold": 0.22461911981303626,
"precision": 0.23845193508114856,
"recall": 0.764,
"f1": 0.3634633682207422,
"ap": 0.27725469612731046,
"roc_auc": 0.8052915,
"fpr": 0.305,
"matched_count": 1602,
"false_positives": 1220,
"tn": 2780,
"fp": 1220,
"fn": 118,
"tp": 382
},
"max_recall_fpr1pct": {
"threshold": 0.6570985353495697,
"precision": 0.29292929292929293,
"recall": 0.058,
"f1": 0.09682804674457429,
"ap": 0.27725469612731046,
"roc_auc": 0.8052915,
"fpr": 0.0175,
"matched_count": 99,
"false_positives": 70,
"tn": 3930,
"fp": 70,
"fn": 471,
"tp": 29
}
}
}
},
"hard_negatives": {
"train": 3000,
"val": 2000,
"test": "unavailable (test)"
},
"latency": {
"wratio_seconds": 2.706047534942627,
"token_set_seconds": 2.233886241912842,
"logistic_seconds": 20.335410833358765
}
},
"validation_hard_negatives": {
"base": {
"hardneg_n": 2000,
"hardneg_fp": 27,
"easyneg_n": 1000,
"easyneg_fp": 2,
"AP_pos_vs_hardneg": 0.4013323314564088
},
"tuned": {
"hardneg_n": 2000,
"hardneg_fp": 30,
"easyneg_n": 1000,
"easyneg_fp": 0,
"AP_pos_vs_hardneg": 0.8991984438172913
},
"released": {
"hardneg_n": 2000,
"hardneg_fp": 29,
"easyneg_n": 1000,
"easyneg_fp": 1,
"AP_pos_vs_hardneg": 0.6970093466654763
},
"reranker": {
"hardneg_n": 2000,
"hardneg_fp": 30,
"easyneg_n": 1000,
"easyneg_fp": 0,
"AP_pos_vs_hardneg": 0.6302473531431101
}
}
}