RadarFound by OpenFHE Radar· 4 follow

Include HYBRID digit term in BGV noise estimate

Nov 30 find · published Nov 24
GHGitHub · openfheorg/openfhe-development · 2 min readRead original
BGV schemeGitHub pull requestBug fix

tzasacky 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.

2,237pke_tests passed
249BGV tests passed
~1 bitModulus size increase for one third

Comments

Sign in to join the conversation.

More from this batch

OpenFHE recognized as community reference standardX · @vedangvatsaGPU-accelerated CKKS bootstrapping webinar December 1openfhe.discourse.groupFix BFV packed encoding when t - 1 > q_0/2GitHub · openfheorg/openfhe-developmentReject BFV plaintext moduli of 2^37 and above for BEHZGitHub · openfheorg/openfhe-developmentThrow for non-relinearized ciphertexts in relinearizing opsGitHub · openfheorg/openfhe-developmentEncrypted medical inference and training with CKKS, BGV, BFV on OpenFHE 1.6.1GitHub
OpenFHE RadarEverything around OpenFHE: releases, notable GitHub issues and pull requests, papers and benchmarks that use it, applications built on it, talks, workshops and events, and what its maintainers and community are working on.