The PALISADE-CPU backend is a Reference backend engine for HEBench which is a shared library that implements the required functions specified in either the hebench::APIBridge or hebench::cpp wrapper. It is intended only as a reference on how to implement a PALISADE backend for HEBench and it is not fully optimized for performance.
Apache License 2.0
6
stars
2
forks
source link
LRi (and other CKKS benchmarks) Fail Validation *somtimes* When CoeffModBits Are Set too Low #13
Describe the bug
When dealing with solutions that come out very close to zero, the comparison is so strict that it'll fail even when the ground truth and result are both basically zero.
To Reproduce
Steps to reproduce the behavior:
Build & Install default reference backend
Generate a config file with --dump
Remove the unnecessary benchmarks not being tested (issue shows up primarily in LRi and Element-wise Mult (ckks))
Set the CoeffModBits/Scale to 40 instead of the current default of 50
Expected behavior
The expectation is that even with CoeffModBits set down to 40, the accuracy will still be strong enough to pass, assuming a result is close to zero.
*Version not released yet. Commit is (ee84413)
Describe the bug
When dealing with solutions that come out very close to zero, the comparison is so strict that it'll fail even when the ground truth and result are both basically zero.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The expectation is that even with CoeffModBits set down to 40, the accuracy will still be strong enough to pass, assuming a result is close to zero.
Screenshots
N/A
Additional context
N/A