Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(optimizer): woppbs, cost model, cmux tree size x2 #540

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ fn estimate_complexity(
let log2_polynomial_size = glwe_params.log2_polynomial_size;
// Size of cmux_group, can be zero
let cmux_group_count = if precisions_sum > log2_polynomial_size {
2f64.powi((precisions_sum - log2_polynomial_size - 1) as i32)
2f64.powi((precisions_sum - log2_polynomial_size) as i32) - 1.0
} else {
0.0
};
Expand Down
345 changes: 345 additions & 0 deletions compilers/concrete-optimizer/v0-parameters/ref/wop_pbs_2023-8-9_112

Large diffs are not rendered by default.

342 changes: 342 additions & 0 deletions compilers/concrete-optimizer/v0-parameters/ref/wop_pbs_2023-8-9_128

Large diffs are not rendered by default.

329 changes: 329 additions & 0 deletions compilers/concrete-optimizer/v0-parameters/ref/wop_pbs_2023-8-9_192

Large diffs are not rendered by default.

348 changes: 348 additions & 0 deletions compilers/concrete-optimizer/v0-parameters/ref/wop_pbs_2023-8-9_80

Large diffs are not rendered by default.

174 changes: 87 additions & 87 deletions compilers/concrete-optimizer/v0-parameters/ref/wop_pbs_last_112

Large diffs are not rendered by default.

180 changes: 90 additions & 90 deletions compilers/concrete-optimizer/v0-parameters/ref/wop_pbs_last_128

Large diffs are not rendered by default.

170 changes: 85 additions & 85 deletions compilers/concrete-optimizer/v0-parameters/ref/wop_pbs_last_192
Original file line number Diff line number Diff line change
Expand Up @@ -219,111 +219,111 @@ per precision and log norm2:

- 11: # bits
-ln2: k, N, n, br_l,br_b, ks_l,ks_b, cb_l,cb_b, pp_l,pp_b, cost, p_error
- 0 : 3, 10, 1044, 3, 12, 7, 2, 2, 8, 2, 18, 12302, 6.1e-5
- 1 : 3, 10, 1030, 4, 9, 6, 2, 2, 9, 2, 18, 14221, 5.9e-5
- 2 : 3, 10, 1034, 5, 8, 7, 2, 2, 9, 2, 18, 16461, 6.0e-5
- 0 : 3, 10, 1044, 3, 12, 7, 2, 2, 8, 2, 18, 12303, 6.1e-5
- 1 : 3, 10, 1030, 4, 9, 6, 2, 2, 9, 2, 18, 14222, 5.9e-5
- 2 : 3, 10, 1034, 5, 8, 7, 2, 2, 9, 2, 18, 16462, 6.0e-5
- 3 : 3, 10, 1060, 6, 7, 7, 2, 2, 10, 2, 18, 18955, 6.2e-5
- 4 : 3, 10, 1022, 5, 8, 7, 2, 3, 7, 2, 18, 22653, 6.1e-5
- 4 : 3, 10, 1022, 5, 8, 7, 2, 3, 7, 2, 18, 22654, 6.1e-5
- 5 : 3, 10, 1044, 6, 7, 7, 2, 3, 7, 2, 18, 25956, 6.0e-5
- 6 : 3, 10, 1092, 5, 8, 15, 1, 4, 6, 2, 18, 31130, 6.3e-5
- 7 : 3, 10, 1057, 7, 6, 7, 2, 4, 6, 2, 18, 37284, 6.1e-5
- 8 : 3, 10, 1082, 8, 5, 14, 1, 4, 6, 3, 13, 46179, 6.3e-5
- 9 : 3, 10, 1052, 9, 5, 14, 1, 5, 5, 3, 13, 59583, 6.3e-5
- 10: 3, 10, 1033, 9, 5, 14, 1, 7, 4, 3, 13, 79702, 6.3e-5
- 11: 3, 10, 1077, 11, 4, 14, 1, 7, 4, 3, 13, 94880, 6.3e-5
- 12: 3, 10, 1025, 14, 3, 14, 1, 10, 3, 3, 13, 152213, 6.3e-5
- 13: 3, 10, 1061, 22, 2, 14, 1, 10, 3, 3, 13, 225703, 6.2e-5
- 14: 3, 10, 1072, 44, 1, 14, 1, 15, 2, 4, 11, 630578, 6.3e-5
- 6 : 3, 10, 1092, 5, 8, 15, 1, 4, 6, 2, 18, 31131, 6.3e-5
- 7 : 3, 10, 1057, 7, 6, 7, 2, 4, 6, 2, 18, 37285, 6.1e-5
- 8 : 3, 10, 1082, 8, 5, 14, 1, 4, 6, 3, 13, 46180, 6.3e-5
- 9 : 3, 10, 1052, 9, 5, 14, 1, 5, 5, 3, 13, 59584, 6.3e-5
- 10: 3, 10, 1033, 9, 5, 14, 1, 7, 4, 3, 13, 79704, 6.3e-5
- 11: 3, 10, 1077, 11, 4, 14, 1, 7, 4, 3, 13, 94881, 6.3e-5
- 12: 3, 10, 1025, 14, 3, 14, 1, 10, 3, 3, 13, 152215, 6.3e-5
- 13: 3, 10, 1061, 22, 2, 14, 1, 10, 3, 3, 13, 225704, 6.2e-5
- 14: 3, 10, 1072, 44, 1, 14, 1, 15, 2, 4, 11, 630580, 6.3e-5
# no solution starting from log norm2 = 15

- 12: # bits
-ln2: k, N, n, br_l,br_b, ks_l,ks_b, cb_l,cb_b, pp_l,pp_b, cost, p_error
- 0 : 3, 10, 1038, 4, 9, 7, 2, 2, 9, 2, 18, 15577, 6.3e-5
- 1 : 3, 10, 1062, 4, 9, 7, 2, 2, 9, 2, 18, 15844, 6.2e-5
- 2 : 3, 10, 1110, 5, 8, 7, 2, 2, 9, 2, 18, 18849, 6.3e-5
- 3 : 3, 10, 1068, 4, 9, 7, 2, 3, 7, 2, 18, 22078, 6.3e-5
- 4 : 3, 10, 1057, 5, 8, 7, 2, 3, 7, 2, 18, 25133, 6.2e-5
- 5 : 3, 10, 1054, 5, 8, 7, 2, 4, 6, 2, 18, 32057, 6.1e-5
- 6 : 3, 10, 1073, 6, 7, 7, 2, 4, 6, 2, 18, 36638, 6.2e-5
- 7 : 3, 10, 1079, 7, 6, 7, 2, 4, 6, 3, 13, 45005, 6.1e-5
- 8 : 3, 10, 1086, 7, 6, 14, 1, 5, 5, 3, 13, 55761, 6.3e-5
- 9 : 3, 10, 1112, 11, 4, 15, 1, 5, 5, 3, 13, 77674, 6.3e-5
- 10: 3, 10, 1037, 11, 4, 14, 1, 7, 4, 3, 13, 99392, 6.0e-5
- 11: 3, 10, 1098, 14, 3, 15, 1, 7, 4, 3, 13, 124926, 6.3e-5
- 12: 3, 10, 1088, 15, 3, 15, 1, 10, 3, 3, 13, 182079, 6.3e-5
- 13: 3, 10, 1067, 22, 2, 14, 1, 15, 2, 3, 13, 359340, 6.3e-5
- 14: 3, 10, 1093, 44, 1, 15, 1, 31, 1, 4, 11, 1398498, 6.3e-5
- 0 : 3, 10, 1038, 4, 9, 7, 2, 2, 9, 2, 18, 15578, 6.3e-5
- 1 : 3, 10, 1062, 4, 9, 7, 2, 2, 9, 2, 18, 15845, 6.2e-5
- 2 : 3, 10, 1110, 5, 8, 7, 2, 2, 9, 2, 18, 18850, 6.3e-5
- 3 : 3, 10, 1068, 4, 9, 7, 2, 3, 7, 2, 18, 22079, 6.3e-5
- 4 : 3, 10, 1057, 5, 8, 7, 2, 3, 7, 2, 18, 25135, 6.2e-5
- 5 : 3, 10, 1054, 5, 8, 7, 2, 4, 6, 2, 18, 32059, 6.1e-5
- 6 : 3, 10, 1073, 6, 7, 7, 2, 4, 6, 2, 18, 36640, 6.2e-5
- 7 : 3, 10, 1079, 7, 6, 7, 2, 4, 6, 3, 13, 45007, 6.1e-5
- 8 : 3, 10, 1086, 7, 6, 14, 1, 5, 5, 3, 13, 55763, 6.3e-5
- 9 : 3, 10, 1112, 11, 4, 15, 1, 5, 5, 3, 13, 77677, 6.3e-5
- 10: 3, 10, 1037, 11, 4, 14, 1, 7, 4, 3, 13, 99395, 6.0e-5
- 11: 3, 10, 1098, 14, 3, 15, 1, 7, 4, 3, 13, 124929, 6.3e-5
- 12: 3, 10, 1088, 15, 3, 15, 1, 10, 3, 3, 13, 182083, 6.3e-5
- 13: 3, 10, 1067, 22, 2, 14, 1, 15, 2, 3, 13, 359346, 6.3e-5
- 14: 3, 10, 1093, 44, 1, 15, 1, 31, 1, 4, 11, 1398511, 6.3e-5
# no solution starting from log norm2 = 15

- 13: # bits
-ln2: k, N, n, br_l,br_b, ks_l,ks_b, cb_l,cb_b, pp_l,pp_b, cost, p_error
- 0 : 3, 10, 1039, 4, 9, 7, 2, 2, 9, 2, 18, 16497, 5.8e-5
- 1 : 3, 10, 1065, 4, 9, 7, 2, 2, 9, 2, 18, 16802, 6.3e-5
- 2 : 3, 10, 1135, 5, 8, 8, 2, 2, 9, 2, 18, 20381, 6.3e-5
- 3 : 3, 10, 1073, 4, 9, 7, 2, 3, 7, 2, 18, 23524, 6.2e-5
- 4 : 3, 10, 1060, 5, 8, 7, 2, 3, 7, 2, 18, 26734, 6.0e-5
- 5 : 3, 10, 1056, 5, 8, 7, 2, 4, 6, 2, 18, 34144, 6.1e-5
- 6 : 3, 10, 1079, 6, 7, 7, 2, 4, 6, 2, 18, 39124, 6.2e-5
- 7 : 3, 10, 1086, 7, 6, 7, 2, 4, 6, 3, 13, 48098, 6.3e-5
- 8 : 3, 10, 1108, 7, 6, 15, 1, 5, 5, 3, 13, 60366, 6.3e-5
- 9 : 3, 10, 1043, 8, 5, 14, 1, 7, 4, 3, 13, 85382, 6.1e-5
- 10: 3, 10, 1039, 11, 4, 14, 1, 7, 4, 3, 13, 106145, 6.0e-5
- 11: 3, 10, 1070, 15, 3, 14, 1, 7, 4, 3, 13, 137474, 6.3e-5
- 12: 3, 10, 1121, 15, 3, 15, 1, 10, 3, 3, 13, 199283, 6.3e-5
- 13: 3, 10, 1077, 22, 2, 14, 1, 15, 2, 3, 13, 387141, 6.2e-5
- 14: 3, 10, 1081, 44, 1, 15, 1, 32, 1, 4, 11, 1528228, 6.2e-5
- 0 : 3, 10, 1039, 4, 9, 7, 2, 2, 9, 2, 18, 16500, 5.8e-5
- 1 : 3, 10, 1065, 4, 9, 7, 2, 2, 9, 2, 18, 16804, 6.3e-5
- 2 : 3, 10, 1135, 5, 8, 8, 2, 2, 9, 2, 18, 20384, 6.3e-5
- 3 : 3, 10, 1073, 4, 9, 7, 2, 3, 7, 2, 18, 23527, 6.2e-5
- 4 : 3, 10, 1060, 5, 8, 7, 2, 3, 7, 2, 18, 26737, 6.0e-5
- 5 : 3, 10, 1056, 5, 8, 7, 2, 4, 6, 2, 18, 34148, 6.1e-5
- 6 : 3, 10, 1079, 6, 7, 7, 2, 4, 6, 2, 18, 39128, 6.2e-5
- 7 : 3, 10, 1086, 7, 6, 7, 2, 4, 6, 3, 13, 48102, 6.3e-5
- 8 : 3, 10, 1108, 7, 6, 15, 1, 5, 5, 3, 13, 60371, 6.3e-5
- 9 : 3, 10, 1043, 8, 5, 14, 1, 7, 4, 3, 13, 85389, 6.1e-5
- 10: 3, 10, 1039, 11, 4, 14, 1, 7, 4, 3, 13, 106152, 6.0e-5
- 11: 3, 10, 1070, 15, 3, 14, 1, 7, 4, 3, 13, 137481, 6.3e-5
- 12: 3, 10, 1121, 15, 3, 15, 1, 10, 3, 3, 13, 199292, 6.3e-5
- 13: 3, 10, 1077, 22, 2, 14, 1, 15, 2, 3, 13, 387155, 6.2e-5
- 14: 3, 10, 1081, 44, 1, 15, 1, 32, 1, 4, 11, 1528257, 6.2e-5
# no solution starting from log norm2 = 15

- 14: # bits
-ln2: k, N, n, br_l,br_b, ks_l,ks_b, cb_l,cb_b, pp_l,pp_b, cost, p_error
- 0 : 3, 10, 1040, 4, 9, 7, 2, 2, 9, 2, 18, 18909, 5.7e-5
- 1 : 3, 10, 1073, 4, 9, 7, 2, 2, 9, 2, 18, 19354, 6.3e-5
- 2 : 3, 10, 1053, 6, 7, 7, 2, 2, 10, 2, 18, 24761, 6.2e-5
- 3 : 3, 10, 1086, 4, 9, 7, 2, 3, 7, 2, 18, 27105, 6.2e-5
- 4 : 3, 10, 1066, 5, 8, 7, 2, 3, 7, 2, 18, 30677, 6.0e-5
- 5 : 3, 10, 1061, 5, 8, 7, 2, 4, 6, 2, 18, 39083, 6.0e-5
- 6 : 3, 10, 1096, 6, 7, 7, 2, 4, 6, 2, 18, 45185, 6.2e-5
- 7 : 3, 10, 1091, 7, 6, 14, 1, 4, 6, 3, 13, 55798, 6.3e-5
- 8 : 3, 10, 1050, 8, 5, 14, 1, 5, 5, 3, 13, 71992, 6.3e-5
- 9 : 3, 10, 1048, 8, 5, 14, 1, 7, 4, 3, 13, 97485, 6.3e-5
- 10: 3, 10, 1043, 11, 4, 14, 1, 7, 4, 3, 13, 121160, 6.1e-5
- 11: 3, 10, 1094, 15, 3, 15, 1, 7, 4, 3, 13, 159523, 6.2e-5
- 12: 3, 10, 1077, 21, 2, 14, 1, 10, 3, 3, 13, 287927, 6.3e-5
- 13: 3, 10, 1111, 22, 2, 15, 1, 15, 2, 3, 13, 452007, 6.3e-5
- 14: 3, 10, 1095, 45, 1, 15, 1, 32, 1, 4, 11, 1790063, 6.3e-5
- 0 : 3, 10, 1040, 4, 9, 7, 2, 2, 9, 2, 18, 18920, 5.7e-5
- 1 : 3, 10, 1073, 4, 9, 7, 2, 2, 9, 2, 18, 19364, 6.3e-5
- 2 : 3, 10, 1053, 6, 7, 7, 2, 2, 10, 2, 18, 24771, 6.2e-5
- 3 : 3, 10, 1086, 4, 9, 7, 2, 3, 7, 2, 18, 27119, 6.2e-5
- 4 : 3, 10, 1066, 5, 8, 7, 2, 3, 7, 2, 18, 30690, 6.0e-5
- 5 : 3, 10, 1061, 5, 8, 7, 2, 4, 6, 2, 18, 39100, 6.0e-5
- 6 : 3, 10, 1096, 6, 7, 7, 2, 4, 6, 2, 18, 45203, 6.2e-5
- 7 : 3, 10, 1091, 7, 6, 14, 1, 4, 6, 3, 13, 55816, 6.3e-5
- 8 : 3, 10, 1050, 8, 5, 14, 1, 5, 5, 3, 13, 72013, 6.3e-5
- 9 : 3, 10, 1048, 8, 5, 14, 1, 7, 4, 3, 13, 97514, 6.3e-5
- 10: 3, 10, 1043, 11, 4, 14, 1, 7, 4, 3, 13, 121189, 6.1e-5
- 11: 3, 10, 1094, 15, 3, 15, 1, 7, 4, 3, 13, 159552, 6.2e-5
- 12: 3, 10, 1077, 21, 2, 14, 1, 10, 3, 3, 13, 287966, 6.3e-5
- 13: 3, 10, 1111, 22, 2, 15, 1, 15, 2, 3, 13, 452065, 6.3e-5
- 14: 3, 10, 1095, 45, 1, 15, 1, 32, 1, 4, 11, 1790184, 6.3e-5
# no solution starting from log norm2 = 15

- 15: # bits
-ln2: k, N, n, br_l,br_b, ks_l,ks_b, cb_l,cb_b, pp_l,pp_b, cost, p_error
- 0 : 3, 10, 1117, 5, 8, 7, 2, 2, 9, 2, 18, 21866, 6.2e-5
- 1 : 3, 10, 1132, 6, 7, 8, 2, 2, 10, 2, 18, 25123, 6.3e-5
- 2 : 3, 10, 1108, 5, 8, 7, 2, 3, 7, 2, 18, 29993, 6.2e-5
- 3 : 3, 10, 1147, 5, 8, 15, 1, 3, 7, 2, 18, 31666, 6.3e-5
- 4 : 3, 10, 1156, 5, 8, 8, 2, 4, 6, 2, 18, 39624, 6.3e-5
- 5 : 3, 10, 1109, 7, 6, 15, 1, 4, 6, 2, 18, 48995, 6.3e-5
- 6 : 3, 10, 1127, 8, 5, 15, 1, 4, 6, 3, 13, 59269, 6.3e-5
- 7 : 3, 10, 1155, 8, 5, 16, 1, 5, 5, 3, 13, 73425, 6.3e-5
- 8 : 3, 10, 1150, 8, 5, 16, 1, 7, 4, 3, 13, 98939, 6.3e-5
- 9 : 3, 10, 1127, 11, 4, 15, 1, 7, 4, 3, 13, 121904, 6.3e-5
- 10: 3, 10, 1102, 14, 3, 15, 1, 10, 3, 3, 13, 199810, 6.2e-5
- 11: 3, 10, 1120, 22, 2, 15, 1, 10, 3, 3, 13, 292808, 6.3e-5
- 12: 3, 10, 1124, 44, 1, 15, 1, 15, 2, 4, 11, 813233, 6.2e-5
- 0 : 3, 10, 1117, 5, 8, 7, 2, 2, 9, 2, 18, 21871, 6.2e-5
- 1 : 3, 10, 1132, 6, 7, 8, 2, 2, 10, 2, 18, 25127, 6.3e-5
- 2 : 3, 10, 1108, 5, 8, 7, 2, 3, 7, 2, 18, 30000, 6.2e-5
- 3 : 3, 10, 1147, 5, 8, 15, 1, 3, 7, 2, 18, 31673, 6.3e-5
- 4 : 3, 10, 1156, 5, 8, 8, 2, 4, 6, 2, 18, 39633, 6.3e-5
- 5 : 3, 10, 1109, 7, 6, 15, 1, 4, 6, 2, 18, 49003, 6.3e-5
- 6 : 3, 10, 1127, 8, 5, 15, 1, 4, 6, 3, 13, 59277, 6.3e-5
- 7 : 3, 10, 1155, 8, 5, 16, 1, 5, 5, 3, 13, 73435, 6.3e-5
- 8 : 3, 10, 1150, 8, 5, 16, 1, 7, 4, 3, 13, 98953, 6.3e-5
- 9 : 3, 10, 1127, 11, 4, 15, 1, 7, 4, 3, 13, 121918, 6.3e-5
- 10: 3, 10, 1102, 14, 3, 15, 1, 10, 3, 3, 13, 199829, 6.2e-5
- 11: 3, 10, 1120, 22, 2, 15, 1, 10, 3, 3, 13, 292828, 6.3e-5
- 12: 3, 10, 1124, 44, 1, 15, 1, 15, 2, 4, 11, 813261, 6.2e-5
# no solution starting from log norm2 = 13

- 16: # bits
-ln2: k, N, n, br_l,br_b, ks_l,ks_b, cb_l,cb_b, pp_l,pp_b, cost, p_error
- 0 : 3, 10, 1069, 4, 9, 7, 2, 2, 9, 2, 18, 20532, 6.1e-5
- 1 : 3, 10, 1081, 5, 8, 7, 2, 2, 9, 2, 18, 23807, 6.1e-5
- 2 : 3, 10, 1126, 6, 7, 7, 2, 2, 10, 2, 18, 27814, 6.3e-5
- 3 : 3, 10, 1067, 5, 8, 7, 2, 3, 7, 2, 18, 32623, 6.1e-5
- 4 : 3, 10, 1094, 6, 7, 7, 2, 3, 7, 2, 18, 37545, 6.3e-5
- 5 : 3, 10, 1073, 6, 7, 7, 2, 4, 6, 2, 18, 47199, 6.1e-5
- 6 : 3, 10, 1116, 7, 6, 7, 2, 4, 6, 2, 18, 54231, 6.2e-5
- 7 : 3, 10, 1093, 9, 5, 15, 1, 4, 6, 3, 13, 70325, 6.3e-5
- 8 : 3, 10, 1120, 9, 5, 15, 1, 5, 5, 3, 13, 87075, 6.3e-5
- 9 : 3, 10, 1088, 9, 5, 14, 1, 7, 4, 3, 13, 115170, 6.3e-5
- 10: 3, 10, 1065, 14, 3, 14, 1, 7, 4, 3, 13, 156682, 6.1e-5
- 11: 3, 10, 1075, 14, 3, 15, 1, 10, 3, 3, 13, 219826, 6.3e-5
- 12: 3, 10, 1093, 22, 2, 15, 1, 10, 3, 4, 11, 334703, 6.2e-5
- 13: 3, 10, 1078, 44, 1, 14, 1, 16, 2, 4, 11, 935247, 6.3e-5
- 0 : 3, 10, 1069, 4, 9, 7, 2, 2, 9, 2, 18, 20552, 6.1e-5
- 1 : 3, 10, 1081, 5, 8, 7, 2, 2, 9, 2, 18, 23828, 6.1e-5
- 2 : 3, 10, 1126, 6, 7, 7, 2, 2, 10, 2, 18, 27834, 6.3e-5
- 3 : 3, 10, 1067, 5, 8, 7, 2, 3, 7, 2, 18, 32651, 6.1e-5
- 4 : 3, 10, 1094, 6, 7, 7, 2, 3, 7, 2, 18, 37573, 6.3e-5
- 5 : 3, 10, 1073, 6, 7, 7, 2, 4, 6, 2, 18, 47234, 6.1e-5
- 6 : 3, 10, 1116, 7, 6, 7, 2, 4, 6, 2, 18, 54266, 6.2e-5
- 7 : 3, 10, 1093, 9, 5, 15, 1, 4, 6, 3, 13, 70361, 6.3e-5
- 8 : 3, 10, 1120, 9, 5, 15, 1, 5, 5, 3, 13, 87118, 6.3e-5
- 9 : 3, 10, 1088, 9, 5, 14, 1, 7, 4, 3, 13, 115227, 6.3e-5
- 10: 3, 10, 1065, 14, 3, 14, 1, 7, 4, 3, 13, 156740, 6.1e-5
- 11: 3, 10, 1075, 14, 3, 15, 1, 10, 3, 3, 13, 219906, 6.3e-5
- 12: 3, 10, 1093, 22, 2, 15, 1, 10, 3, 4, 11, 334782, 6.2e-5
- 13: 3, 10, 1078, 44, 1, 14, 1, 16, 2, 4, 11, 935371, 6.3e-5
# no solution starting from log norm2 = 14
Loading
Loading