-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Labels
dialect: ckksIssues related to the CKKS dialectIssues related to the CKKS dialect
Description
We have discussed CKKS parameter selection for a while, but I wanted to collect some thoughts in an issue to help us decide what to do next.
- CCH+23 noise model is drafted in CKKS: Add CCH+23 Noise Model #1685
- We have a SimFHE target from Add SimFHE Emitter #1913. if we reworked it a bit we could try to use SimFHE (repeatedly, inside a pass) for estimating cost of a particular choice of parameters, as the basis of a parameter search.
- We will need to find a solution to providing CKKS intermediate value range bounds (Explore tools for annotating intermediate layers of ML models with range bounds #1700) but can probably get away with hard-coding bounds on the input IR for a specialized domain like ML inference. This is needed to provide an accurate noise estimate.
Maybe if we get a SimFHE-in-the-loop pass working, we could avoid requiring intermediate value bounds and do a naive-ish sweep over the parameter space. One question I have is: if we had intermediate value bounds and a noise model like CCH+23 merged in, would SimFHE still be useful? Or would the analogous parameter selection techniques for BGV/BFV suffice for CKKS?
Metadata
Metadata
Assignees
Labels
dialect: ckksIssues related to the CKKS dialectIssues related to the CKKS dialect