Include HYBRID digit term in BGV noise estimate
Nov 30 find · published Nov 24tzasacky opened pull request #1423 to fix BGV parameter generation where the HYBRID key-switching digit contribution was always zero. The ParameterGenerationBGVRNS::computeNoiseEstimates function read GetNumPartQ() and GetNumPerPartQ() while selecting moduli, but these values are not set until PrecomputeCRTTables runs afterward. The fix passes numPartQ into the modulus and noise-estimation routines and computes the values that PrecomputeCRTTables will later set: sizeQ (regular Q moduli) plus extra moduli for FLEXIBLEAUTOEXT and NOISE_FLOODING_MULTIPARTY, with towers per digit as ceil(sizeQ/numPartQ). The HYBRID digit term is now numPartQ*ceil(sizeQ/numPartQ)*expansionFactor*Berr. For BGV with HYBRID key switching, this increases automatically selected modulus sizes by about one bit for roughly one third of tested configurations. The PR depends on #1410 and includes 2,237 passing pke_tests and 249 BGV tests.
Comments
Sign in to join the conversation.