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

Investigate how Integer Arithmetic is supported in CKKS pipeline #1641

Open
ZenithalHourlyRate opened this issue Apr 2, 2025 · 2 comments
Open

Comments

@ZenithalHourlyRate
Copy link
Collaborator

In CKKS pipeline, aside from handling arith.{add,mul}f, we also have some code handling arith.{add,mul}i in like secret-insert-mgmt-ckks and secret-to-ckks. Technically we can support some kind of integer arithmetic in CKKS, however, we have no example mlir that goes through them to actually test them.

This issue is intended as meta-issue on integer arithmetic support in CKKS.

One sub issue is the arith.uitofp one (#1628)

@AlexanderViand-Intel
Copy link
Collaborator

I think this touches on a deeper issue with the CKKS pipeline, which is that we don't really have a semantic for the types. My intuition would be that any integer "x" should basically be treated as "x.0", so arith.uitofp would become a no-op (just like arith.extui already is). However, we need to somehow communicate this semantic to the developer in a concise way + there's the question of "at what scale will x be encoded?", especially in more complex CKKS settings where we don't have a single scale for everything.

Copy link

github-actions bot commented Apr 4, 2025

This issue has 1 outstanding TODOs:

This comment was autogenerated by todo-backlinks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants